|
29 | 29 | {"shape":"ThrottlingException"} |
30 | 30 | ] |
31 | 31 | }, |
| 32 | + "CreateCodeReview":{ |
| 33 | + "name":"CreateCodeReview", |
| 34 | + "http":{ |
| 35 | + "method":"POST", |
| 36 | + "requestUri":"/codereviews" |
| 37 | + }, |
| 38 | + "input":{"shape":"CreateCodeReviewRequest"}, |
| 39 | + "output":{"shape":"CreateCodeReviewResponse"}, |
| 40 | + "errors":[ |
| 41 | + {"shape":"ResourceNotFoundException"}, |
| 42 | + {"shape":"InternalServerException"}, |
| 43 | + {"shape":"ValidationException"}, |
| 44 | + {"shape":"ConflictException"}, |
| 45 | + {"shape":"AccessDeniedException"}, |
| 46 | + {"shape":"ThrottlingException"} |
| 47 | + ] |
| 48 | + }, |
32 | 49 | "DescribeCodeReview":{ |
33 | 50 | "name":"DescribeCodeReview", |
34 | 51 | "http":{ |
|
209 | 226 | "max":64, |
210 | 227 | "min":1 |
211 | 228 | }, |
| 229 | + "BranchName":{ |
| 230 | + "type":"string", |
| 231 | + "max":256, |
| 232 | + "min":1 |
| 233 | + }, |
212 | 234 | "ClientRequestToken":{ |
213 | 235 | "type":"string", |
214 | 236 | "max":64, |
|
240 | 262 | "Metrics":{"shape":"Metrics"} |
241 | 263 | } |
242 | 264 | }, |
| 265 | + "CodeReviewName":{ |
| 266 | + "type":"string", |
| 267 | + "max":100, |
| 268 | + "min":1, |
| 269 | + "pattern":"[a-zA-Z0-9-_]*" |
| 270 | + }, |
243 | 271 | "CodeReviewSummaries":{ |
244 | 272 | "type":"list", |
245 | 273 | "member":{"shape":"CodeReviewSummary"} |
|
260 | 288 | "MetricsSummary":{"shape":"MetricsSummary"} |
261 | 289 | } |
262 | 290 | }, |
| 291 | + "CodeReviewType":{ |
| 292 | + "type":"structure", |
| 293 | + "required":["RepositoryAnalysis"], |
| 294 | + "members":{ |
| 295 | + "RepositoryAnalysis":{"shape":"RepositoryAnalysis"} |
| 296 | + } |
| 297 | + }, |
263 | 298 | "CommitDiffSourceCodeType":{ |
264 | 299 | "type":"structure", |
265 | 300 | "members":{ |
|
286 | 321 | "min":0, |
287 | 322 | "pattern":"arn:aws(-[\\w]+)*:.+:.+:[0-9]{12}:.+" |
288 | 323 | }, |
| 324 | + "CreateCodeReviewRequest":{ |
| 325 | + "type":"structure", |
| 326 | + "required":[ |
| 327 | + "Name", |
| 328 | + "RepositoryAssociationArn", |
| 329 | + "Type" |
| 330 | + ], |
| 331 | + "members":{ |
| 332 | + "Name":{"shape":"CodeReviewName"}, |
| 333 | + "RepositoryAssociationArn":{"shape":"Arn"}, |
| 334 | + "Type":{"shape":"CodeReviewType"}, |
| 335 | + "ClientRequestToken":{ |
| 336 | + "shape":"ClientRequestToken", |
| 337 | + "idempotencyToken":true |
| 338 | + } |
| 339 | + } |
| 340 | + }, |
| 341 | + "CreateCodeReviewResponse":{ |
| 342 | + "type":"structure", |
| 343 | + "members":{ |
| 344 | + "CodeReview":{"shape":"CodeReview"} |
| 345 | + } |
| 346 | + }, |
289 | 347 | "DescribeCodeReviewRequest":{ |
290 | 348 | "type":"structure", |
291 | 349 | "required":["CodeReviewArn"], |
|
719 | 777 | "GitHubEnterpriseServer":{"shape":"ThirdPartySourceRepository"} |
720 | 778 | } |
721 | 779 | }, |
| 780 | + "RepositoryAnalysis":{ |
| 781 | + "type":"structure", |
| 782 | + "required":["RepositoryHead"], |
| 783 | + "members":{ |
| 784 | + "RepositoryHead":{"shape":"RepositoryHeadSourceCodeType"} |
| 785 | + } |
| 786 | + }, |
722 | 787 | "RepositoryAssociation":{ |
723 | 788 | "type":"structure", |
724 | 789 | "members":{ |
|
766 | 831 | "State":{"shape":"RepositoryAssociationState"} |
767 | 832 | } |
768 | 833 | }, |
| 834 | + "RepositoryHeadSourceCodeType":{ |
| 835 | + "type":"structure", |
| 836 | + "required":["BranchName"], |
| 837 | + "members":{ |
| 838 | + "BranchName":{"shape":"BranchName"} |
| 839 | + } |
| 840 | + }, |
769 | 841 | "RepositoryNames":{ |
770 | 842 | "type":"list", |
771 | 843 | "member":{"shape":"Name"}, |
|
783 | 855 | "SourceCodeType":{ |
784 | 856 | "type":"structure", |
785 | 857 | "members":{ |
786 | | - "CommitDiff":{"shape":"CommitDiffSourceCodeType"} |
| 858 | + "CommitDiff":{"shape":"CommitDiffSourceCodeType"}, |
| 859 | + "RepositoryHead":{"shape":"RepositoryHeadSourceCodeType"} |
787 | 860 | } |
788 | 861 | }, |
789 | 862 | "StateReason":{ |
|
820 | 893 | "TimeStamp":{"type":"timestamp"}, |
821 | 894 | "Type":{ |
822 | 895 | "type":"string", |
823 | | - "enum":["PullRequest"] |
| 896 | + "enum":[ |
| 897 | + "PullRequest", |
| 898 | + "RepositoryAnalysis" |
| 899 | + ] |
824 | 900 | }, |
825 | 901 | "UserId":{ |
826 | 902 | "type":"string", |
|
0 commit comments