Debian Codegraph @

models/apis/codeguru-reviewer/2019-09-19/api-2.json

raw
1 {
2 "version":"2.0",
3 "metadata":{
4 "apiVersion":"2019-09-19",
5 "endpointPrefix":"codeguru-reviewer",
6 "jsonVersion":"1.1",
7 "protocol":"rest-json",
8 "serviceAbbreviation":"CodeGuruReviewer",
9 "serviceFullName":"Amazon CodeGuru Reviewer",
10 "serviceId":"CodeGuru Reviewer",
11 "signatureVersion":"v4",
12 "signingName":"codeguru-reviewer",
13 "uid":"codeguru-reviewer-2019-09-19"
14 },
15 "operations":{
16 "AssociateRepository":{
17 "name":"AssociateRepository",
18 "http":{
19 "method":"POST",
20 "requestUri":"/associations"
21 },
22 "input":{"shape":"AssociateRepositoryRequest"},
23 "output":{"shape":"AssociateRepositoryResponse"},
24 "errors":[
25 {"shape":"InternalServerException"},
26 {"shape":"ValidationException"},
27 {"shape":"AccessDeniedException"},
28 {"shape":"ConflictException"},
29 {"shape":"ThrottlingException"}
30 ]
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 },
49 "DescribeCodeReview":{
50 "name":"DescribeCodeReview",
51 "http":{
52 "method":"GET",
53 "requestUri":"/codereviews/{CodeReviewArn}"
54 },
55 "input":{"shape":"DescribeCodeReviewRequest"},
56 "output":{"shape":"DescribeCodeReviewResponse"},
57 "errors":[
58 {"shape":"ResourceNotFoundException"},
59 {"shape":"InternalServerException"},
60 {"shape":"ValidationException"},
61 {"shape":"AccessDeniedException"},
62 {"shape":"ThrottlingException"}
63 ]
64 },
65 "DescribeRecommendationFeedback":{
66 "name":"DescribeRecommendationFeedback",
67 "http":{
68 "method":"GET",
69 "requestUri":"/feedback/{CodeReviewArn}"
70 },
71 "input":{"shape":"DescribeRecommendationFeedbackRequest"},
72 "output":{"shape":"DescribeRecommendationFeedbackResponse"},
73 "errors":[
74 {"shape":"ResourceNotFoundException"},
75 {"shape":"InternalServerException"},
76 {"shape":"ValidationException"},
77 {"shape":"AccessDeniedException"},
78 {"shape":"ThrottlingException"}
79 ]
80 },
81 "DescribeRepositoryAssociation":{
82 "name":"DescribeRepositoryAssociation",
83 "http":{
84 "method":"GET",
85 "requestUri":"/associations/{AssociationArn}"
86 },
87 "input":{"shape":"DescribeRepositoryAssociationRequest"},
88 "output":{"shape":"DescribeRepositoryAssociationResponse"},
89 "errors":[
90 {"shape":"NotFoundException"},
91 {"shape":"InternalServerException"},
92 {"shape":"ValidationException"},
93 {"shape":"AccessDeniedException"},
94 {"shape":"ThrottlingException"}
95 ]
96 },
97 "DisassociateRepository":{
98 "name":"DisassociateRepository",
99 "http":{
100 "method":"DELETE",
101 "requestUri":"/associations/{AssociationArn}"
102 },
103 "input":{"shape":"DisassociateRepositoryRequest"},
104 "output":{"shape":"DisassociateRepositoryResponse"},
105 "errors":[
106 {"shape":"NotFoundException"},
107 {"shape":"InternalServerException"},
108 {"shape":"ValidationException"},
109 {"shape":"AccessDeniedException"},
110 {"shape":"ConflictException"},
111 {"shape":"ThrottlingException"}
112 ]
113 },
114 "ListCodeReviews":{
115 "name":"ListCodeReviews",
116 "http":{
117 "method":"GET",
118 "requestUri":"/codereviews"
119 },
120 "input":{"shape":"ListCodeReviewsRequest"},
121 "output":{"shape":"ListCodeReviewsResponse"},
122 "errors":[
123 {"shape":"InternalServerException"},
124 {"shape":"ValidationException"},
125 {"shape":"ThrottlingException"},
126 {"shape":"AccessDeniedException"}
127 ]
128 },
129 "ListRecommendationFeedback":{
130 "name":"ListRecommendationFeedback",
131 "http":{
132 "method":"GET",
133 "requestUri":"/feedback/{CodeReviewArn}/RecommendationFeedback"
134 },
135 "input":{"shape":"ListRecommendationFeedbackRequest"},
136 "output":{"shape":"ListRecommendationFeedbackResponse"},
137 "errors":[
138 {"shape":"ResourceNotFoundException"},
139 {"shape":"InternalServerException"},
140 {"shape":"ValidationException"},
141 {"shape":"AccessDeniedException"},
142 {"shape":"ThrottlingException"}
143 ]
144 },
145 "ListRecommendations":{
146 "name":"ListRecommendations",
147 "http":{
148 "method":"GET",
149 "requestUri":"/codereviews/{CodeReviewArn}/Recommendations"
150 },
151 "input":{"shape":"ListRecommendationsRequest"},
152 "output":{"shape":"ListRecommendationsResponse"},
153 "errors":[
154 {"shape":"ResourceNotFoundException"},
155 {"shape":"InternalServerException"},
156 {"shape":"ValidationException"},
157 {"shape":"AccessDeniedException"},
158 {"shape":"ThrottlingException"}
159 ]
160 },
161 "ListRepositoryAssociations":{
162 "name":"ListRepositoryAssociations",
163 "http":{
164 "method":"GET",
165 "requestUri":"/associations"
166 },
167 "input":{"shape":"ListRepositoryAssociationsRequest"},
168 "output":{"shape":"ListRepositoryAssociationsResponse"},
169 "errors":[
170 {"shape":"InternalServerException"},
171 {"shape":"ValidationException"},
172 {"shape":"ThrottlingException"}
173 ]
174 },
175 "ListTagsForResource":{
176 "name":"ListTagsForResource",
177 "http":{
178 "method":"GET",
179 "requestUri":"/tags/{resourceArn}"
180 },
181 "input":{"shape":"ListTagsForResourceRequest"},
182 "output":{"shape":"ListTagsForResourceResponse"},
183 "errors":[
184 {"shape":"InternalServerException"},
185 {"shape":"ValidationException"},
186 {"shape":"ResourceNotFoundException"}
187 ]
188 },
189 "PutRecommendationFeedback":{
190 "name":"PutRecommendationFeedback",
191 "http":{
192 "method":"PUT",
193 "requestUri":"/feedback"
194 },
195 "input":{"shape":"PutRecommendationFeedbackRequest"},
196 "output":{"shape":"PutRecommendationFeedbackResponse"},
197 "errors":[
198 {"shape":"ResourceNotFoundException"},
199 {"shape":"InternalServerException"},
200 {"shape":"ValidationException"},
201 {"shape":"AccessDeniedException"},
202 {"shape":"ThrottlingException"}
203 ]
204 },
205 "TagResource":{
206 "name":"TagResource",
207 "http":{
208 "method":"POST",
209 "requestUri":"/tags/{resourceArn}"
210 },
211 "input":{"shape":"TagResourceRequest"},
212 "output":{"shape":"TagResourceResponse"},
213 "errors":[
214 {"shape":"InternalServerException"},
215 {"shape":"ValidationException"},
216 {"shape":"ResourceNotFoundException"}
217 ]
218 },
219 "UntagResource":{
220 "name":"UntagResource",
221 "http":{
222 "method":"DELETE",
223 "requestUri":"/tags/{resourceArn}"
224 },
225 "input":{"shape":"UntagResourceRequest"},
226 "output":{"shape":"UntagResourceResponse"},
227 "errors":[
228 {"shape":"InternalServerException"},
229 {"shape":"ValidationException"},
230 {"shape":"ResourceNotFoundException"}
231 ]
232 }
233 },
234 "shapes":{
235 "AccessDeniedException":{
236 "type":"structure",
237 "members":{
238 "Message":{"shape":"ErrorMessage"}
239 },
240 "error":{"httpStatusCode":403},
241 "exception":true
242 },
243 "AnalysisType":{
244 "type":"string",
245 "enum":[
246 "Security",
247 "CodeQuality"
248 ]
249 },
250 "AnalysisTypes":{
251 "type":"list",
252 "member":{"shape":"AnalysisType"}
253 },
254 "Arn":{
255 "type":"string",
256 "max":1600,
257 "min":1,
258 "pattern":"^arn:aws[^:\\s]*:codeguru-reviewer:[^:\\s]+:[\\d]{12}:[a-z-]+:[\\w-]+$"
259 },
260 "AssociateRepositoryRequest":{
261 "type":"structure",
262 "required":["Repository"],
263 "members":{
264 "Repository":{"shape":"Repository"},
265 "ClientRequestToken":{
266 "shape":"ClientRequestToken",
267 "idempotencyToken":true
268 },
269 "Tags":{"shape":"TagMap"},
270 "KMSKeyDetails":{"shape":"KMSKeyDetails"}
271 }
272 },
273 "AssociateRepositoryResponse":{
274 "type":"structure",
275 "members":{
276 "RepositoryAssociation":{"shape":"RepositoryAssociation"},
277 "Tags":{"shape":"TagMap"}
278 }
279 },
280 "AssociationArn":{
281 "type":"string",
282 "max":1600,
283 "min":1,
284 "pattern":"^arn:aws[^:\\s]*:codeguru-reviewer:[^:\\s]+:[\\d]{12}:association:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"
285 },
286 "AssociationId":{
287 "type":"string",
288 "max":64,
289 "min":1
290 },
291 "BranchDiffSourceCodeType":{
292 "type":"structure",
293 "required":[
294 "SourceBranchName",
295 "DestinationBranchName"
296 ],
297 "members":{
298 "SourceBranchName":{"shape":"BranchName"},
299 "DestinationBranchName":{"shape":"BranchName"}
300 }
301 },
302 "BranchName":{
303 "type":"string",
304 "max":256,
305 "min":1
306 },
307 "BuildArtifactsObjectKey":{
308 "type":"string",
309 "max":1024,
310 "min":1,
311 "pattern":"^\\S(.*\\S)?$"
312 },
313 "ClientRequestToken":{
314 "type":"string",
315 "max":64,
316 "min":1,
317 "pattern":"^[\\w-]+$"
318 },
319 "CodeArtifacts":{
320 "type":"structure",
321 "required":["SourceCodeArtifactsObjectKey"],
322 "members":{
323 "SourceCodeArtifactsObjectKey":{"shape":"SourceCodeArtifactsObjectKey"},
324 "BuildArtifactsObjectKey":{"shape":"BuildArtifactsObjectKey"}
325 }
326 },
327 "CodeCommitRepository":{
328 "type":"structure",
329 "required":["Name"],
330 "members":{
331 "Name":{"shape":"Name"}
332 }
333 },
334 "CodeReview":{
335 "type":"structure",
336 "members":{
337 "Name":{"shape":"Name"},
338 "CodeReviewArn":{"shape":"Arn"},
339 "RepositoryName":{"shape":"Name"},
340 "Owner":{"shape":"Owner"},
341 "ProviderType":{"shape":"ProviderType"},
342 "State":{"shape":"JobState"},
343 "StateReason":{"shape":"StateReason"},
344 "CreatedTimeStamp":{"shape":"TimeStamp"},
345 "LastUpdatedTimeStamp":{"shape":"TimeStamp"},
346 "Type":{"shape":"Type"},
347 "PullRequestId":{"shape":"PullRequestId"},
348 "SourceCodeType":{"shape":"SourceCodeType"},
349 "AssociationArn":{"shape":"AssociationArn"},
350 "Metrics":{"shape":"Metrics"},
351 "AnalysisTypes":{"shape":"AnalysisTypes"},
352 "ConfigFileState":{"shape":"ConfigFileState"}
353 }
354 },
355 "CodeReviewName":{
356 "type":"string",
357 "max":100,
358 "min":1,
359 "pattern":"[a-zA-Z0-9-_]*"
360 },
361 "CodeReviewSummaries":{
362 "type":"list",
363 "member":{"shape":"CodeReviewSummary"}
364 },
365 "CodeReviewSummary":{
366 "type":"structure",
367 "members":{
368 "Name":{"shape":"Name"},
369 "CodeReviewArn":{"shape":"Arn"},
370 "RepositoryName":{"shape":"Name"},
371 "Owner":{"shape":"Owner"},
372 "ProviderType":{"shape":"ProviderType"},
373 "State":{"shape":"JobState"},
374 "CreatedTimeStamp":{"shape":"TimeStamp"},
375 "LastUpdatedTimeStamp":{"shape":"TimeStamp"},
376 "Type":{"shape":"Type"},
377 "PullRequestId":{"shape":"PullRequestId"},
378 "MetricsSummary":{"shape":"MetricsSummary"},
379 "SourceCodeType":{"shape":"SourceCodeType"}
380 }
381 },
382 "CodeReviewType":{
383 "type":"structure",
384 "required":["RepositoryAnalysis"],
385 "members":{
386 "RepositoryAnalysis":{"shape":"RepositoryAnalysis"},
387 "AnalysisTypes":{"shape":"AnalysisTypes"}
388 }
389 },
390 "CommitDiffSourceCodeType":{
391 "type":"structure",
392 "members":{
393 "SourceCommit":{"shape":"CommitId"},
394 "DestinationCommit":{"shape":"CommitId"},
395 "MergeBaseCommit":{"shape":"CommitId"}
396 }
397 },
398 "CommitId":{
399 "type":"string",
400 "max":64,
401 "min":6
402 },
403 "ConfigFileState":{
404 "type":"string",
405 "enum":[
406 "Present",
407 "Absent",
408 "PresentWithErrors"
409 ]
410 },
411 "ConflictException":{
412 "type":"structure",
413 "members":{
414 "Message":{"shape":"ErrorMessage"}
415 },
416 "error":{"httpStatusCode":409},
417 "exception":true
418 },
419 "ConnectionArn":{
420 "type":"string",
421 "max":256,
422 "min":0,
423 "pattern":"arn:aws(-[\\w]+)*:.+:.+:[0-9]{12}:.+"
424 },
425 "CreateCodeReviewRequest":{
426 "type":"structure",
427 "required":[
428 "Name",
429 "RepositoryAssociationArn",
430 "Type"
431 ],
432 "members":{
433 "Name":{"shape":"CodeReviewName"},
434 "RepositoryAssociationArn":{"shape":"AssociationArn"},
435 "Type":{"shape":"CodeReviewType"},
436 "ClientRequestToken":{
437 "shape":"ClientRequestToken",
438 "idempotencyToken":true
439 }
440 }
441 },
442 "CreateCodeReviewResponse":{
443 "type":"structure",
444 "members":{
445 "CodeReview":{"shape":"CodeReview"}
446 }
447 },
448 "DescribeCodeReviewRequest":{
449 "type":"structure",
450 "required":["CodeReviewArn"],
451 "members":{
452 "CodeReviewArn":{
453 "shape":"Arn",
454 "location":"uri",
455 "locationName":"CodeReviewArn"
456 }
457 }
458 },
459 "DescribeCodeReviewResponse":{
460 "type":"structure",
461 "members":{
462 "CodeReview":{"shape":"CodeReview"}
463 }
464 },
465 "DescribeRecommendationFeedbackRequest":{
466 "type":"structure",
467 "required":[
468 "CodeReviewArn",
469 "RecommendationId"
470 ],
471 "members":{
472 "CodeReviewArn":{
473 "shape":"Arn",
474 "location":"uri",
475 "locationName":"CodeReviewArn"
476 },
477 "RecommendationId":{
478 "shape":"RecommendationId",
479 "location":"querystring",
480 "locationName":"RecommendationId"
481 },
482 "UserId":{
483 "shape":"UserId",
484 "location":"querystring",
485 "locationName":"UserId"
486 }
487 }
488 },
489 "DescribeRecommendationFeedbackResponse":{
490 "type":"structure",
491 "members":{
492 "RecommendationFeedback":{"shape":"RecommendationFeedback"}
493 }
494 },
495 "DescribeRepositoryAssociationRequest":{
496 "type":"structure",
497 "required":["AssociationArn"],
498 "members":{
499 "AssociationArn":{
500 "shape":"AssociationArn",
501 "location":"uri",
502 "locationName":"AssociationArn"
503 }
504 }
505 },
506 "DescribeRepositoryAssociationResponse":{
507 "type":"structure",
508 "members":{
509 "RepositoryAssociation":{"shape":"RepositoryAssociation"},
510 "Tags":{"shape":"TagMap"}
511 }
512 },
513 "DisassociateRepositoryRequest":{
514 "type":"structure",
515 "required":["AssociationArn"],
516 "members":{
517 "AssociationArn":{
518 "shape":"AssociationArn",
519 "location":"uri",
520 "locationName":"AssociationArn"
521 }
522 }
523 },
524 "DisassociateRepositoryResponse":{
525 "type":"structure",
526 "members":{
527 "RepositoryAssociation":{"shape":"RepositoryAssociation"},
528 "Tags":{"shape":"TagMap"}
529 }
530 },
531 "EncryptionOption":{
532 "type":"string",
533 "enum":[
534 "AWS_OWNED_CMK",
535 "CUSTOMER_MANAGED_CMK"
536 ]
537 },
538 "ErrorMessage":{"type":"string"},
539 "EventInfo":{
540 "type":"structure",
541 "members":{
542 "Name":{"shape":"EventName"},
543 "State":{"shape":"EventState"}
544 }
545 },
546 "EventName":{
547 "type":"string",
548 "max":32,
549 "min":1,
550 "pattern":"^[ \\-A-Z_a-z]+$"
551 },
552 "EventState":{
553 "type":"string",
554 "max":32,
555 "min":1,
556 "pattern":"^[ \\-A-Z_a-z]+$"
557 },
558 "FilePath":{
559 "type":"string",
560 "max":1024,
561 "min":1
562 },
563 "FindingsCount":{"type":"long"},
564 "InternalServerException":{
565 "type":"structure",
566 "members":{
567 "Message":{"shape":"ErrorMessage"}
568 },
569 "error":{"httpStatusCode":500},
570 "exception":true,
571 "fault":true
572 },
573 "JobState":{
574 "type":"string",
575 "enum":[
576 "Completed",
577 "Pending",
578 "Failed",
579 "Deleting"
580 ]
581 },
582 "JobStates":{
583 "type":"list",
584 "member":{"shape":"JobState"},
585 "max":3,
586 "min":1
587 },
588 "KMSKeyDetails":{
589 "type":"structure",
590 "members":{
591 "KMSKeyId":{"shape":"KMSKeyId"},
592 "EncryptionOption":{"shape":"EncryptionOption"}
593 }
594 },
595 "KMSKeyId":{
596 "type":"string",
597 "max":2048,
598 "min":1,
599 "pattern":"[a-zA-Z0-9-]+"
600 },
601 "LineNumber":{"type":"integer"},
602 "LinesOfCodeCount":{"type":"long"},
603 "ListCodeReviewsMaxResults":{
604 "type":"integer",
605 "max":100,
606 "min":1
607 },
608 "ListCodeReviewsRequest":{
609 "type":"structure",
610 "required":["Type"],
611 "members":{
612 "ProviderTypes":{
613 "shape":"ProviderTypes",
614 "location":"querystring",
615 "locationName":"ProviderTypes"
616 },
617 "States":{
618 "shape":"JobStates",
619 "location":"querystring",
620 "locationName":"States"
621 },
622 "RepositoryNames":{
623 "shape":"RepositoryNames",
624 "location":"querystring",
625 "locationName":"RepositoryNames"
626 },
627 "Type":{
628 "shape":"Type",
629 "location":"querystring",
630 "locationName":"Type"
631 },
632 "MaxResults":{
633 "shape":"ListCodeReviewsMaxResults",
634 "location":"querystring",
635 "locationName":"MaxResults"
636 },
637 "NextToken":{
638 "shape":"NextToken",
639 "location":"querystring",
640 "locationName":"NextToken"
641 }
642 }
643 },
644 "ListCodeReviewsResponse":{
645 "type":"structure",
646 "members":{
647 "CodeReviewSummaries":{"shape":"CodeReviewSummaries"},
648 "NextToken":{"shape":"NextToken"}
649 }
650 },
651 "ListRecommendationFeedbackRequest":{
652 "type":"structure",
653 "required":["CodeReviewArn"],
654 "members":{
655 "NextToken":{
656 "shape":"NextToken",
657 "location":"querystring",
658 "locationName":"NextToken"
659 },
660 "MaxResults":{
661 "shape":"MaxResults",
662 "location":"querystring",
663 "locationName":"MaxResults"
664 },
665 "CodeReviewArn":{
666 "shape":"Arn",
667 "location":"uri",
668 "locationName":"CodeReviewArn"
669 },
670 "UserIds":{
671 "shape":"UserIds",
672 "location":"querystring",
673 "locationName":"UserIds"
674 },
675 "RecommendationIds":{
676 "shape":"RecommendationIds",
677 "location":"querystring",
678 "locationName":"RecommendationIds"
679 }
680 }
681 },
682 "ListRecommendationFeedbackResponse":{
683 "type":"structure",
684 "members":{
685 "RecommendationFeedbackSummaries":{"shape":"RecommendationFeedbackSummaries"},
686 "NextToken":{"shape":"NextToken"}
687 }
688 },
689 "ListRecommendationsMaxResults":{
690 "type":"integer",
691 "max":300,
692 "min":1
693 },
694 "ListRecommendationsRequest":{
695 "type":"structure",
696 "required":["CodeReviewArn"],
697 "members":{
698 "NextToken":{
699 "shape":"NextToken",
700 "location":"querystring",
701 "locationName":"NextToken"
702 },
703 "MaxResults":{
704 "shape":"ListRecommendationsMaxResults",
705 "location":"querystring",
706 "locationName":"MaxResults"
707 },
708 "CodeReviewArn":{
709 "shape":"Arn",
710 "location":"uri",
711 "locationName":"CodeReviewArn"
712 }
713 }
714 },
715 "ListRecommendationsResponse":{
716 "type":"structure",
717 "members":{
718 "RecommendationSummaries":{"shape":"RecommendationSummaries"},
719 "NextToken":{"shape":"NextToken"}
720 }
721 },
722 "ListRepositoryAssociationsRequest":{
723 "type":"structure",
724 "members":{
725 "ProviderTypes":{
726 "shape":"ProviderTypes",
727 "location":"querystring",
728 "locationName":"ProviderType"
729 },
730 "States":{
731 "shape":"RepositoryAssociationStates",
732 "location":"querystring",
733 "locationName":"State"
734 },
735 "Names":{
736 "shape":"Names",
737 "location":"querystring",
738 "locationName":"Name"
739 },
740 "Owners":{
741 "shape":"Owners",
742 "location":"querystring",
743 "locationName":"Owner"
744 },
745 "MaxResults":{
746 "shape":"MaxResults",
747 "location":"querystring",
748 "locationName":"MaxResults"
749 },
750 "NextToken":{
751 "shape":"NextToken",
752 "location":"querystring",
753 "locationName":"NextToken"
754 }
755 }
756 },
757 "ListRepositoryAssociationsResponse":{
758 "type":"structure",
759 "members":{
760 "RepositoryAssociationSummaries":{"shape":"RepositoryAssociationSummaries"},
761 "NextToken":{"shape":"NextToken"}
762 }
763 },
764 "ListTagsForResourceRequest":{
765 "type":"structure",
766 "required":["resourceArn"],
767 "members":{
768 "resourceArn":{
769 "shape":"AssociationArn",
770 "location":"uri",
771 "locationName":"resourceArn"
772 }
773 }
774 },
775 "ListTagsForResourceResponse":{
776 "type":"structure",
777 "members":{
778 "Tags":{"shape":"TagMap"}
779 }
780 },
781 "LongDescription":{
782 "type":"string",
783 "max":1000,
784 "min":1,
785 "pattern":"^\\S(.*\\S)?$"
786 },
787 "MaxResults":{
788 "type":"integer",
789 "max":100,
790 "min":1
791 },
792 "Metrics":{
793 "type":"structure",
794 "members":{
795 "MeteredLinesOfCodeCount":{"shape":"LinesOfCodeCount"},
796 "SuppressedLinesOfCodeCount":{"shape":"LinesOfCodeCount"},
797 "FindingsCount":{"shape":"FindingsCount"}
798 }
799 },
800 "MetricsSummary":{
801 "type":"structure",
802 "members":{
803 "MeteredLinesOfCodeCount":{"shape":"LinesOfCodeCount"},
804 "SuppressedLinesOfCodeCount":{"shape":"LinesOfCodeCount"},
805 "FindingsCount":{"shape":"FindingsCount"}
806 }
807 },
808 "Name":{
809 "type":"string",
810 "max":100,
811 "min":1,
812 "pattern":"^\\S[\\w.-]*$"
813 },
814 "Names":{
815 "type":"list",
816 "member":{"shape":"Name"},
817 "max":3,
818 "min":1
819 },
820 "NextToken":{
821 "type":"string",
822 "max":2048,
823 "min":1
824 },
825 "NotFoundException":{
826 "type":"structure",
827 "members":{
828 "Message":{"shape":"ErrorMessage"}
829 },
830 "error":{"httpStatusCode":404},
831 "exception":true
832 },
833 "Owner":{
834 "type":"string",
835 "max":100,
836 "min":1,
837 "pattern":"^\\S(.*\\S)?$"
838 },
839 "Owners":{
840 "type":"list",
841 "member":{"shape":"Owner"},
842 "max":3,
843 "min":1
844 },
845 "ProviderType":{
846 "type":"string",
847 "enum":[
848 "CodeCommit",
849 "GitHub",
850 "Bitbucket",
851 "GitHubEnterpriseServer",
852 "S3Bucket"
853 ]
854 },
855 "ProviderTypes":{
856 "type":"list",
857 "member":{"shape":"ProviderType"},
858 "max":3,
859 "min":1
860 },
861 "PullRequestId":{
862 "type":"string",
863 "max":64,
864 "min":1
865 },
866 "PutRecommendationFeedbackRequest":{
867 "type":"structure",
868 "required":[
869 "CodeReviewArn",
870 "RecommendationId",
871 "Reactions"
872 ],
873 "members":{
874 "CodeReviewArn":{"shape":"Arn"},
875 "RecommendationId":{"shape":"RecommendationId"},
876 "Reactions":{"shape":"Reactions"}
877 }
878 },
879 "PutRecommendationFeedbackResponse":{
880 "type":"structure",
881 "members":{
882 }
883 },
884 "Reaction":{
885 "type":"string",
886 "enum":[
887 "ThumbsUp",
888 "ThumbsDown"
889 ]
890 },
891 "Reactions":{
892 "type":"list",
893 "member":{"shape":"Reaction"},
894 "max":1,
895 "min":0
896 },
897 "RecommendationCategory":{
898 "type":"string",
899 "enum":[
900 "AWSBestPractices",
901 "AWSCloudFormationIssues",
902 "DuplicateCode",
903 "CodeMaintenanceIssues",
904 "ConcurrencyIssues",
905 "InputValidations",
906 "PythonBestPractices",
907 "JavaBestPractices",
908 "ResourceLeaks",
909 "SecurityIssues",
910 "CodeInconsistencies"
911 ]
912 },
913 "RecommendationFeedback":{
914 "type":"structure",
915 "members":{
916 "CodeReviewArn":{"shape":"Arn"},
917 "RecommendationId":{"shape":"RecommendationId"},
918 "Reactions":{"shape":"Reactions"},
919 "UserId":{"shape":"UserId"},
920 "CreatedTimeStamp":{"shape":"TimeStamp"},
921 "LastUpdatedTimeStamp":{"shape":"TimeStamp"}
922 }
923 },
924 "RecommendationFeedbackSummaries":{
925 "type":"list",
926 "member":{"shape":"RecommendationFeedbackSummary"}
927 },
928 "RecommendationFeedbackSummary":{
929 "type":"structure",
930 "members":{
931 "RecommendationId":{"shape":"RecommendationId"},
932 "Reactions":{"shape":"Reactions"},
933 "UserId":{"shape":"UserId"}
934 }
935 },
936 "RecommendationId":{
937 "type":"string",
938 "max":64,
939 "min":1
940 },
941 "RecommendationIds":{
942 "type":"list",
943 "member":{"shape":"RecommendationId"},
944 "max":100,
945 "min":1
946 },
947 "RecommendationSummaries":{
948 "type":"list",
949 "member":{"shape":"RecommendationSummary"}
950 },
951 "RecommendationSummary":{
952 "type":"structure",
953 "members":{
954 "FilePath":{"shape":"FilePath"},
955 "RecommendationId":{"shape":"RecommendationId"},
956 "StartLine":{"shape":"LineNumber"},
957 "EndLine":{"shape":"LineNumber"},
958 "Description":{"shape":"Text"},
959 "RecommendationCategory":{"shape":"RecommendationCategory"},
960 "RuleMetadata":{"shape":"RuleMetadata"},
961 "Severity":{"shape":"Severity"}
962 }
963 },
964 "Repository":{
965 "type":"structure",
966 "members":{
967 "CodeCommit":{"shape":"CodeCommitRepository"},
968 "Bitbucket":{"shape":"ThirdPartySourceRepository"},
969 "GitHubEnterpriseServer":{"shape":"ThirdPartySourceRepository"},
970 "S3Bucket":{"shape":"S3Repository"}
971 }
972 },
973 "RepositoryAnalysis":{
974 "type":"structure",
975 "members":{
976 "RepositoryHead":{"shape":"RepositoryHeadSourceCodeType"},
977 "SourceCodeType":{"shape":"SourceCodeType"}
978 }
979 },
980 "RepositoryAssociation":{
981 "type":"structure",
982 "members":{
983 "AssociationId":{"shape":"AssociationId"},
984 "AssociationArn":{"shape":"Arn"},
985 "ConnectionArn":{"shape":"ConnectionArn"},
986 "Name":{"shape":"Name"},
987 "Owner":{"shape":"Owner"},
988 "ProviderType":{"shape":"ProviderType"},
989 "State":{"shape":"RepositoryAssociationState"},
990 "StateReason":{"shape":"StateReason"},
991 "LastUpdatedTimeStamp":{"shape":"TimeStamp"},
992 "CreatedTimeStamp":{"shape":"TimeStamp"},
993 "KMSKeyDetails":{"shape":"KMSKeyDetails"},
994 "S3RepositoryDetails":{"shape":"S3RepositoryDetails"}
995 }
996 },
997 "RepositoryAssociationState":{
998 "type":"string",
999 "enum":[
1000 "Associated",
1001 "Associating",
1002 "Failed",
1003 "Disassociating",
1004 "Disassociated"
1005 ]
1006 },
1007 "RepositoryAssociationStates":{
1008 "type":"list",
1009 "member":{"shape":"RepositoryAssociationState"},
1010 "max":5,
1011 "min":1
1012 },
1013 "RepositoryAssociationSummaries":{
1014 "type":"list",
1015 "member":{"shape":"RepositoryAssociationSummary"}
1016 },
1017 "RepositoryAssociationSummary":{
1018 "type":"structure",
1019 "members":{
1020 "AssociationArn":{"shape":"Arn"},
1021 "ConnectionArn":{"shape":"ConnectionArn"},
1022 "LastUpdatedTimeStamp":{"shape":"TimeStamp"},
1023 "AssociationId":{"shape":"AssociationId"},
1024 "Name":{"shape":"Name"},
1025 "Owner":{"shape":"Owner"},
1026 "ProviderType":{"shape":"ProviderType"},
1027 "State":{"shape":"RepositoryAssociationState"}
1028 }
1029 },
1030 "RepositoryHeadSourceCodeType":{
1031 "type":"structure",
1032 "required":["BranchName"],
1033 "members":{
1034 "BranchName":{"shape":"BranchName"}
1035 }
1036 },
1037 "RepositoryNames":{
1038 "type":"list",
1039 "member":{"shape":"Name"},
1040 "max":100,
1041 "min":1
1042 },
1043 "RequestId":{
1044 "type":"string",
1045 "max":64,
1046 "min":1
1047 },
1048 "RequestMetadata":{
1049 "type":"structure",
1050 "members":{
1051 "RequestId":{"shape":"RequestId"},
1052 "Requester":{"shape":"Requester"},
1053 "EventInfo":{"shape":"EventInfo"},
1054 "VendorName":{"shape":"VendorName"}
1055 }
1056 },
1057 "Requester":{
1058 "type":"string",
1059 "max":100,
1060 "min":1,
1061 "pattern":"^\\S(.*\\S)?$"
1062 },
1063 "ResourceNotFoundException":{
1064 "type":"structure",
1065 "members":{
1066 "Message":{"shape":"ErrorMessage"}
1067 },
1068 "error":{"httpStatusCode":404},
1069 "exception":true
1070 },
1071 "RuleId":{
1072 "type":"string",
1073 "max":64,
1074 "min":1,
1075 "pattern":"^\\S+\\/[a-zA-Z0-9-]+@v\\d+\\.\\d+$"
1076 },
1077 "RuleMetadata":{
1078 "type":"structure",
1079 "members":{
1080 "RuleId":{"shape":"RuleId"},
1081 "RuleName":{"shape":"RuleName"},
1082 "ShortDescription":{"shape":"ShortDescription"},
1083 "LongDescription":{"shape":"LongDescription"},
1084 "RuleTags":{"shape":"RuleTags"}
1085 }
1086 },
1087 "RuleName":{
1088 "type":"string",
1089 "max":100,
1090 "min":1,
1091 "pattern":"^\\S(.*\\S)?$"
1092 },
1093 "RuleTag":{
1094 "type":"string",
1095 "max":50,
1096 "min":1,
1097 "pattern":"^\\S(.*\\S)?$"
1098 },
1099 "RuleTags":{
1100 "type":"list",
1101 "member":{"shape":"RuleTag"},
1102 "max":20,
1103 "min":1
1104 },
1105 "S3BucketName":{
1106 "type":"string",
1107 "max":63,
1108 "min":3,
1109 "pattern":"^\\S(.*\\S)?$"
1110 },
1111 "S3BucketRepository":{
1112 "type":"structure",
1113 "required":["Name"],
1114 "members":{
1115 "Name":{"shape":"Name"},
1116 "Details":{"shape":"S3RepositoryDetails"}
1117 }
1118 },
1119 "S3Repository":{
1120 "type":"structure",
1121 "required":[
1122 "Name",
1123 "BucketName"
1124 ],
1125 "members":{
1126 "Name":{"shape":"Name"},
1127 "BucketName":{"shape":"S3BucketName"}
1128 }
1129 },
1130 "S3RepositoryDetails":{
1131 "type":"structure",
1132 "members":{
1133 "BucketName":{"shape":"S3BucketName"},
1134 "CodeArtifacts":{"shape":"CodeArtifacts"}
1135 }
1136 },
1137 "Severity":{
1138 "type":"string",
1139 "enum":[
1140 "Info",
1141 "Low",
1142 "Medium",
1143 "High",
1144 "Critical"
1145 ]
1146 },
1147 "ShortDescription":{
1148 "type":"string",
1149 "max":200,
1150 "min":1,
1151 "pattern":"^\\S(.*\\S)?$"
1152 },
1153 "SourceCodeArtifactsObjectKey":{
1154 "type":"string",
1155 "max":1024,
1156 "min":1,
1157 "pattern":"^\\S(.*\\S)?$"
1158 },
1159 "SourceCodeType":{
1160 "type":"structure",
1161 "members":{
1162 "CommitDiff":{"shape":"CommitDiffSourceCodeType"},
1163 "RepositoryHead":{"shape":"RepositoryHeadSourceCodeType"},
1164 "BranchDiff":{"shape":"BranchDiffSourceCodeType"},
1165 "S3BucketRepository":{"shape":"S3BucketRepository"},
1166 "RequestMetadata":{"shape":"RequestMetadata"}
1167 }
1168 },
1169 "StateReason":{
1170 "type":"string",
1171 "max":256,
1172 "min":0
1173 },
1174 "TagKey":{
1175 "type":"string",
1176 "max":128,
1177 "min":1
1178 },
1179 "TagKeyList":{
1180 "type":"list",
1181 "member":{"shape":"TagKey"},
1182 "max":50,
1183 "min":1
1184 },
1185 "TagMap":{
1186 "type":"map",
1187 "key":{"shape":"TagKey"},
1188 "value":{"shape":"TagValue"},
1189 "max":50,
1190 "min":1
1191 },
1192 "TagResourceRequest":{
1193 "type":"structure",
1194 "required":[
1195 "resourceArn",
1196 "Tags"
1197 ],
1198 "members":{
1199 "resourceArn":{
1200 "shape":"AssociationArn",
1201 "location":"uri",
1202 "locationName":"resourceArn"
1203 },
1204 "Tags":{"shape":"TagMap"}
1205 }
1206 },
1207 "TagResourceResponse":{
1208 "type":"structure",
1209 "members":{
1210 }
1211 },
1212 "TagValue":{
1213 "type":"string",
1214 "max":256
1215 },
1216 "Text":{
1217 "type":"string",
1218 "max":5000,
1219 "min":1
1220 },
1221 "ThirdPartySourceRepository":{
1222 "type":"structure",
1223 "required":[
1224 "Name",
1225 "ConnectionArn",
1226 "Owner"
1227 ],
1228 "members":{
1229 "Name":{"shape":"Name"},
1230 "ConnectionArn":{"shape":"ConnectionArn"},
1231 "Owner":{"shape":"Owner"}
1232 }
1233 },
1234 "ThrottlingException":{
1235 "type":"structure",
1236 "members":{
1237 "Message":{"shape":"ErrorMessage"}
1238 },
1239 "error":{"httpStatusCode":429},
1240 "exception":true
1241 },
1242 "TimeStamp":{"type":"timestamp"},
1243 "Type":{
1244 "type":"string",
1245 "enum":[
1246 "PullRequest",
1247 "RepositoryAnalysis"
1248 ]
1249 },
1250 "UntagResourceRequest":{
1251 "type":"structure",
1252 "required":[
1253 "resourceArn",
1254 "TagKeys"
1255 ],
1256 "members":{
1257 "resourceArn":{
1258 "shape":"AssociationArn",
1259 "location":"uri",
1260 "locationName":"resourceArn"
1261 },
1262 "TagKeys":{
1263 "shape":"TagKeyList",
1264 "location":"querystring",
1265 "locationName":"tagKeys"
1266 }
1267 }
1268 },
1269 "UntagResourceResponse":{
1270 "type":"structure",
1271 "members":{
1272 }
1273 },
1274 "UserId":{
1275 "type":"string",
1276 "max":256,
1277 "min":1
1278 },
1279 "UserIds":{
1280 "type":"list",
1281 "member":{"shape":"UserId"},
1282 "max":100,
1283 "min":1
1284 },
1285 "ValidationException":{
1286 "type":"structure",
1287 "members":{
1288 "Message":{"shape":"ErrorMessage"}
1289 },
1290 "error":{"httpStatusCode":400},
1291 "exception":true
1292 },
1293 "VendorName":{
1294 "type":"string",
1295 "enum":[
1296 "GitHub",
1297 "GitLab",
1298 "NativeS3"
1299 ]
1300 }
1301 }
1302 }