123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833 |
- {
- "version": "2.0",
- "metadata": {
- "apiVersion": "2019-09-19",
- "endpointPrefix": "codeguru-reviewer",
- "jsonVersion": "1.1",
- "protocol": "rest-json",
- "serviceAbbreviation": "CodeGuruReviewer",
- "serviceFullName": "Amazon CodeGuru Reviewer",
- "serviceId": "CodeGuru Reviewer",
- "signatureVersion": "v4",
- "signingName": "codeguru-reviewer",
- "uid": "codeguru-reviewer-2019-09-19"
- },
- "operations": {
- "AssociateRepository": {
- "http": {
- "requestUri": "/associations"
- },
- "input": {
- "type": "structure",
- "required": [
- "Repository"
- ],
- "members": {
- "Repository": {
- "type": "structure",
- "members": {
- "CodeCommit": {
- "type": "structure",
- "required": [
- "Name"
- ],
- "members": {
- "Name": {}
- }
- },
- "Bitbucket": {
- "shape": "S5"
- },
- "GitHubEnterpriseServer": {
- "shape": "S5"
- },
- "S3Bucket": {
- "type": "structure",
- "required": [
- "Name",
- "BucketName"
- ],
- "members": {
- "Name": {},
- "BucketName": {}
- }
- }
- }
- },
- "ClientRequestToken": {
- "idempotencyToken": true
- },
- "Tags": {
- "shape": "Sb"
- },
- "KMSKeyDetails": {
- "shape": "Se"
- }
- }
- },
- "output": {
- "type": "structure",
- "members": {
- "RepositoryAssociation": {
- "shape": "Si"
- },
- "Tags": {
- "shape": "Sb"
- }
- }
- }
- },
- "CreateCodeReview": {
- "http": {
- "requestUri": "/codereviews"
- },
- "input": {
- "type": "structure",
- "required": [
- "Name",
- "RepositoryAssociationArn",
- "Type"
- ],
- "members": {
- "Name": {},
- "RepositoryAssociationArn": {},
- "Type": {
- "type": "structure",
- "required": [
- "RepositoryAnalysis"
- ],
- "members": {
- "RepositoryAnalysis": {
- "type": "structure",
- "members": {
- "RepositoryHead": {
- "shape": "Sy"
- },
- "SourceCodeType": {
- "shape": "S10"
- }
- }
- },
- "AnalysisTypes": {
- "shape": "S1c"
- }
- }
- },
- "ClientRequestToken": {
- "idempotencyToken": true
- }
- }
- },
- "output": {
- "type": "structure",
- "members": {
- "CodeReview": {
- "shape": "S1f"
- }
- }
- }
- },
- "DescribeCodeReview": {
- "http": {
- "method": "GET",
- "requestUri": "/codereviews/{CodeReviewArn}"
- },
- "input": {
- "type": "structure",
- "required": [
- "CodeReviewArn"
- ],
- "members": {
- "CodeReviewArn": {
- "location": "uri",
- "locationName": "CodeReviewArn"
- }
- }
- },
- "output": {
- "type": "structure",
- "members": {
- "CodeReview": {
- "shape": "S1f"
- }
- }
- }
- },
- "DescribeRecommendationFeedback": {
- "http": {
- "method": "GET",
- "requestUri": "/feedback/{CodeReviewArn}"
- },
- "input": {
- "type": "structure",
- "required": [
- "CodeReviewArn",
- "RecommendationId"
- ],
- "members": {
- "CodeReviewArn": {
- "location": "uri",
- "locationName": "CodeReviewArn"
- },
- "RecommendationId": {
- "location": "querystring",
- "locationName": "RecommendationId"
- },
- "UserId": {
- "location": "querystring",
- "locationName": "UserId"
- }
- }
- },
- "output": {
- "type": "structure",
- "members": {
- "RecommendationFeedback": {
- "type": "structure",
- "members": {
- "CodeReviewArn": {},
- "RecommendationId": {},
- "Reactions": {
- "shape": "S1u"
- },
- "UserId": {},
- "CreatedTimeStamp": {
- "type": "timestamp"
- },
- "LastUpdatedTimeStamp": {
- "type": "timestamp"
- }
- }
- }
- }
- }
- },
- "DescribeRepositoryAssociation": {
- "http": {
- "method": "GET",
- "requestUri": "/associations/{AssociationArn}"
- },
- "input": {
- "type": "structure",
- "required": [
- "AssociationArn"
- ],
- "members": {
- "AssociationArn": {
- "location": "uri",
- "locationName": "AssociationArn"
- }
- }
- },
- "output": {
- "type": "structure",
- "members": {
- "RepositoryAssociation": {
- "shape": "Si"
- },
- "Tags": {
- "shape": "Sb"
- }
- }
- }
- },
- "DisassociateRepository": {
- "http": {
- "method": "DELETE",
- "requestUri": "/associations/{AssociationArn}"
- },
- "input": {
- "type": "structure",
- "required": [
- "AssociationArn"
- ],
- "members": {
- "AssociationArn": {
- "location": "uri",
- "locationName": "AssociationArn"
- }
- }
- },
- "output": {
- "type": "structure",
- "members": {
- "RepositoryAssociation": {
- "shape": "Si"
- },
- "Tags": {
- "shape": "Sb"
- }
- }
- }
- },
- "ListCodeReviews": {
- "http": {
- "method": "GET",
- "requestUri": "/codereviews"
- },
- "input": {
- "type": "structure",
- "required": [
- "Type"
- ],
- "members": {
- "ProviderTypes": {
- "shape": "S21",
- "location": "querystring",
- "locationName": "ProviderTypes"
- },
- "States": {
- "location": "querystring",
- "locationName": "States",
- "type": "list",
- "member": {}
- },
- "RepositoryNames": {
- "location": "querystring",
- "locationName": "RepositoryNames",
- "type": "list",
- "member": {}
- },
- "Type": {
- "location": "querystring",
- "locationName": "Type"
- },
- "MaxResults": {
- "location": "querystring",
- "locationName": "MaxResults",
- "type": "integer"
- },
- "NextToken": {
- "location": "querystring",
- "locationName": "NextToken"
- }
- }
- },
- "output": {
- "type": "structure",
- "members": {
- "CodeReviewSummaries": {
- "type": "list",
- "member": {
- "type": "structure",
- "members": {
- "Name": {},
- "CodeReviewArn": {},
- "RepositoryName": {},
- "Owner": {},
- "ProviderType": {},
- "State": {},
- "CreatedTimeStamp": {
- "type": "timestamp"
- },
- "LastUpdatedTimeStamp": {
- "type": "timestamp"
- },
- "Type": {},
- "PullRequestId": {},
- "MetricsSummary": {
- "type": "structure",
- "members": {
- "MeteredLinesOfCodeCount": {
- "type": "long"
- },
- "SuppressedLinesOfCodeCount": {
- "type": "long"
- },
- "FindingsCount": {
- "type": "long"
- }
- }
- },
- "SourceCodeType": {
- "shape": "S10"
- }
- }
- }
- },
- "NextToken": {}
- }
- }
- },
- "ListRecommendationFeedback": {
- "http": {
- "method": "GET",
- "requestUri": "/feedback/{CodeReviewArn}/RecommendationFeedback"
- },
- "input": {
- "type": "structure",
- "required": [
- "CodeReviewArn"
- ],
- "members": {
- "NextToken": {
- "location": "querystring",
- "locationName": "NextToken"
- },
- "MaxResults": {
- "location": "querystring",
- "locationName": "MaxResults",
- "type": "integer"
- },
- "CodeReviewArn": {
- "location": "uri",
- "locationName": "CodeReviewArn"
- },
- "UserIds": {
- "location": "querystring",
- "locationName": "UserIds",
- "type": "list",
- "member": {}
- },
- "RecommendationIds": {
- "location": "querystring",
- "locationName": "RecommendationIds",
- "type": "list",
- "member": {}
- }
- }
- },
- "output": {
- "type": "structure",
- "members": {
- "RecommendationFeedbackSummaries": {
- "type": "list",
- "member": {
- "type": "structure",
- "members": {
- "RecommendationId": {},
- "Reactions": {
- "shape": "S1u"
- },
- "UserId": {}
- }
- }
- },
- "NextToken": {}
- }
- }
- },
- "ListRecommendations": {
- "http": {
- "method": "GET",
- "requestUri": "/codereviews/{CodeReviewArn}/Recommendations"
- },
- "input": {
- "type": "structure",
- "required": [
- "CodeReviewArn"
- ],
- "members": {
- "NextToken": {
- "location": "querystring",
- "locationName": "NextToken"
- },
- "MaxResults": {
- "location": "querystring",
- "locationName": "MaxResults",
- "type": "integer"
- },
- "CodeReviewArn": {
- "location": "uri",
- "locationName": "CodeReviewArn"
- }
- }
- },
- "output": {
- "type": "structure",
- "members": {
- "RecommendationSummaries": {
- "type": "list",
- "member": {
- "type": "structure",
- "members": {
- "FilePath": {},
- "RecommendationId": {},
- "StartLine": {
- "type": "integer"
- },
- "EndLine": {
- "type": "integer"
- },
- "Description": {},
- "RecommendationCategory": {},
- "RuleMetadata": {
- "type": "structure",
- "members": {
- "RuleId": {},
- "RuleName": {},
- "ShortDescription": {},
- "LongDescription": {},
- "RuleTags": {
- "type": "list",
- "member": {}
- }
- }
- },
- "Severity": {}
- }
- }
- },
- "NextToken": {}
- }
- }
- },
- "ListRepositoryAssociations": {
- "http": {
- "method": "GET",
- "requestUri": "/associations"
- },
- "input": {
- "type": "structure",
- "members": {
- "ProviderTypes": {
- "shape": "S21",
- "location": "querystring",
- "locationName": "ProviderType"
- },
- "States": {
- "location": "querystring",
- "locationName": "State",
- "type": "list",
- "member": {}
- },
- "Names": {
- "location": "querystring",
- "locationName": "Name",
- "type": "list",
- "member": {}
- },
- "Owners": {
- "location": "querystring",
- "locationName": "Owner",
- "type": "list",
- "member": {}
- },
- "MaxResults": {
- "location": "querystring",
- "locationName": "MaxResults",
- "type": "integer"
- },
- "NextToken": {
- "location": "querystring",
- "locationName": "NextToken"
- }
- }
- },
- "output": {
- "type": "structure",
- "members": {
- "RepositoryAssociationSummaries": {
- "type": "list",
- "member": {
- "type": "structure",
- "members": {
- "AssociationArn": {},
- "ConnectionArn": {},
- "LastUpdatedTimeStamp": {
- "type": "timestamp"
- },
- "AssociationId": {},
- "Name": {},
- "Owner": {},
- "ProviderType": {},
- "State": {}
- }
- }
- },
- "NextToken": {}
- }
- }
- },
- "ListTagsForResource": {
- "http": {
- "method": "GET",
- "requestUri": "/tags/{resourceArn}"
- },
- "input": {
- "type": "structure",
- "required": [
- "resourceArn"
- ],
- "members": {
- "resourceArn": {
- "location": "uri",
- "locationName": "resourceArn"
- }
- }
- },
- "output": {
- "type": "structure",
- "members": {
- "Tags": {
- "shape": "Sb"
- }
- }
- }
- },
- "PutRecommendationFeedback": {
- "http": {
- "method": "PUT",
- "requestUri": "/feedback"
- },
- "input": {
- "type": "structure",
- "required": [
- "CodeReviewArn",
- "RecommendationId",
- "Reactions"
- ],
- "members": {
- "CodeReviewArn": {},
- "RecommendationId": {},
- "Reactions": {
- "shape": "S1u"
- }
- }
- },
- "output": {
- "type": "structure",
- "members": {}
- }
- },
- "TagResource": {
- "http": {
- "requestUri": "/tags/{resourceArn}"
- },
- "input": {
- "type": "structure",
- "required": [
- "resourceArn",
- "Tags"
- ],
- "members": {
- "resourceArn": {
- "location": "uri",
- "locationName": "resourceArn"
- },
- "Tags": {
- "shape": "Sb"
- }
- }
- },
- "output": {
- "type": "structure",
- "members": {}
- }
- },
- "UntagResource": {
- "http": {
- "method": "DELETE",
- "requestUri": "/tags/{resourceArn}"
- },
- "input": {
- "type": "structure",
- "required": [
- "resourceArn",
- "TagKeys"
- ],
- "members": {
- "resourceArn": {
- "location": "uri",
- "locationName": "resourceArn"
- },
- "TagKeys": {
- "location": "querystring",
- "locationName": "tagKeys",
- "type": "list",
- "member": {}
- }
- }
- },
- "output": {
- "type": "structure",
- "members": {}
- }
- }
- },
- "shapes": {
- "S5": {
- "type": "structure",
- "required": [
- "Name",
- "ConnectionArn",
- "Owner"
- ],
- "members": {
- "Name": {},
- "ConnectionArn": {},
- "Owner": {}
- }
- },
- "Sb": {
- "type": "map",
- "key": {},
- "value": {}
- },
- "Se": {
- "type": "structure",
- "members": {
- "KMSKeyId": {},
- "EncryptionOption": {}
- }
- },
- "Si": {
- "type": "structure",
- "members": {
- "AssociationId": {},
- "AssociationArn": {},
- "ConnectionArn": {},
- "Name": {},
- "Owner": {},
- "ProviderType": {},
- "State": {},
- "StateReason": {},
- "LastUpdatedTimeStamp": {
- "type": "timestamp"
- },
- "CreatedTimeStamp": {
- "type": "timestamp"
- },
- "KMSKeyDetails": {
- "shape": "Se"
- },
- "S3RepositoryDetails": {
- "shape": "Sp"
- }
- }
- },
- "Sp": {
- "type": "structure",
- "members": {
- "BucketName": {},
- "CodeArtifacts": {
- "type": "structure",
- "required": [
- "SourceCodeArtifactsObjectKey"
- ],
- "members": {
- "SourceCodeArtifactsObjectKey": {},
- "BuildArtifactsObjectKey": {}
- }
- }
- }
- },
- "Sy": {
- "type": "structure",
- "required": [
- "BranchName"
- ],
- "members": {
- "BranchName": {}
- }
- },
- "S10": {
- "type": "structure",
- "members": {
- "CommitDiff": {
- "type": "structure",
- "members": {
- "SourceCommit": {},
- "DestinationCommit": {},
- "MergeBaseCommit": {}
- }
- },
- "RepositoryHead": {
- "shape": "Sy"
- },
- "BranchDiff": {
- "type": "structure",
- "required": [
- "SourceBranchName",
- "DestinationBranchName"
- ],
- "members": {
- "SourceBranchName": {},
- "DestinationBranchName": {}
- }
- },
- "S3BucketRepository": {
- "type": "structure",
- "required": [
- "Name"
- ],
- "members": {
- "Name": {},
- "Details": {
- "shape": "Sp"
- }
- }
- },
- "RequestMetadata": {
- "type": "structure",
- "members": {
- "RequestId": {},
- "Requester": {},
- "EventInfo": {
- "type": "structure",
- "members": {
- "Name": {},
- "State": {}
- }
- },
- "VendorName": {}
- }
- }
- }
- },
- "S1c": {
- "type": "list",
- "member": {}
- },
- "S1f": {
- "type": "structure",
- "members": {
- "Name": {},
- "CodeReviewArn": {},
- "RepositoryName": {},
- "Owner": {},
- "ProviderType": {},
- "State": {},
- "StateReason": {},
- "CreatedTimeStamp": {
- "type": "timestamp"
- },
- "LastUpdatedTimeStamp": {
- "type": "timestamp"
- },
- "Type": {},
- "PullRequestId": {},
- "SourceCodeType": {
- "shape": "S10"
- },
- "AssociationArn": {},
- "Metrics": {
- "type": "structure",
- "members": {
- "MeteredLinesOfCodeCount": {
- "type": "long"
- },
- "SuppressedLinesOfCodeCount": {
- "type": "long"
- },
- "FindingsCount": {
- "type": "long"
- }
- }
- },
- "AnalysisTypes": {
- "shape": "S1c"
- },
- "ConfigFileState": {}
- }
- },
- "S1u": {
- "type": "list",
- "member": {}
- },
- "S21": {
- "type": "list",
- "member": {}
- }
- }
- }
|