{ "smithy": "1.0", "metadata": { "suppressions": [ { "id": "HttpMethodSemantics", "namespace": "*" }, { "id": "HttpResponseCodeSemantics", "namespace": "*" }, { "id": "PaginatedTrait", "namespace": "*" }, { "id": "HttpHeaderTrait", "namespace": "*" }, { "id": "HttpUriConflict", "namespace": "*" }, { "id": "Service", "namespace": "*" } ] }, "shapes": { "com.amazonaws.codegurureviewer#AWSGuruFrontendService": { "type": "service", "version": "2019-09-19", "operations": [ { "target": "com.amazonaws.codegurureviewer#AssociateRepository" }, { "target": "com.amazonaws.codegurureviewer#CreateCodeReview" }, { "target": "com.amazonaws.codegurureviewer#DescribeCodeReview" }, { "target": "com.amazonaws.codegurureviewer#DescribeRecommendationFeedback" }, { "target": "com.amazonaws.codegurureviewer#DescribeRepositoryAssociation" }, { "target": "com.amazonaws.codegurureviewer#DisassociateRepository" }, { "target": "com.amazonaws.codegurureviewer#ListCodeReviews" }, { "target": "com.amazonaws.codegurureviewer#ListRecommendationFeedback" }, { "target": "com.amazonaws.codegurureviewer#ListRecommendations" }, { "target": "com.amazonaws.codegurureviewer#ListRepositoryAssociations" }, { "target": "com.amazonaws.codegurureviewer#ListTagsForResource" }, { "target": "com.amazonaws.codegurureviewer#PutRecommendationFeedback" }, { "target": "com.amazonaws.codegurureviewer#TagResource" }, { "target": "com.amazonaws.codegurureviewer#UntagResource" } ], "traits": { "aws.api#service": { "sdkId": "CodeGuru Reviewer", "arnNamespace": "codeguru-reviewer", "cloudFormationName": "CodeGuruReviewer", "cloudTrailEventSource": "codegurureviewer.amazonaws.com", "endpointPrefix": "codeguru-reviewer" }, "aws.auth#sigv4": { "name": "codeguru-reviewer" }, "aws.protocols#restJson1": {}, "smithy.api#documentation": "

This section provides documentation for the Amazon CodeGuru Reviewer API operations. CodeGuru Reviewer is a service\n that uses program analysis and machine learning to detect potential defects that are difficult for developers to find and recommendations to \n address them in your Java and Python code.

\n \n

By proactively detecting and providing recommendations for addressing code defects and implementing best practices, CodeGuru Reviewer\n improves the overall quality and maintainability of your code base during the code review stage. For more information about CodeGuru Reviewer, see the \n \n Amazon CodeGuru Reviewer User Guide.\n

\n \n

\n To improve the security of your CodeGuru Reviewer API calls, you can establish a private connection between your VPC and CodeGuru Reviewer by \n creating an interface VPC endpoint. For more information, see \n CodeGuru Reviewer and interface \n VPC endpoints (AWS PrivateLink) in the Amazon CodeGuru Reviewer User Guide.\n

", "smithy.api#title": "Amazon CodeGuru Reviewer" } }, "com.amazonaws.codegurureviewer#AccessDeniedException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.codegurureviewer#ErrorMessage" } }, "traits": { "smithy.api#documentation": "

You do not have sufficient access to perform this action.

", "smithy.api#error": "client", "smithy.api#httpError": 403 } }, "com.amazonaws.codegurureviewer#Arn": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 1600 }, "smithy.api#pattern": "^arn:aws[^:\\s]*:codeguru-reviewer:[^:\\s]+:[\\d]{12}:[a-z-]+:[\\w-]+$" } }, "com.amazonaws.codegurureviewer#AssociateRepository": { "type": "operation", "input": { "target": "com.amazonaws.codegurureviewer#AssociateRepositoryRequest" }, "output": { "target": "com.amazonaws.codegurureviewer#AssociateRepositoryResponse" }, "errors": [ { "target": "com.amazonaws.codegurureviewer#AccessDeniedException" }, { "target": "com.amazonaws.codegurureviewer#ConflictException" }, { "target": "com.amazonaws.codegurureviewer#InternalServerException" }, { "target": "com.amazonaws.codegurureviewer#ThrottlingException" }, { "target": "com.amazonaws.codegurureviewer#ValidationException" } ], "traits": { "smithy.api#documentation": "

\n Use to associate an AWS CodeCommit repository or a repostory managed by \n AWS CodeStar Connections with Amazon CodeGuru Reviewer. When you associate a \n repository, CodeGuru Reviewer reviews source code changes in the repository's pull requests and provides \n automatic recommendations. You can view recommendations using the CodeGuru Reviewer console. For more information, see \n Recommendations in \n Amazon CodeGuru Reviewer in the Amazon CodeGuru Reviewer User Guide. \n

\n \n

If you associate a CodeCommit repository, it must be in the same \n AWS Region and AWS account where its CodeGuru Reviewer code reviews are configured.

\n \n

Bitbucket and GitHub Enterprise Server repositories are managed by AWS CodeStar\n Connections to connect to CodeGuru Reviewer. For more information, see Associate a repository in\n the Amazon CodeGuru Reviewer User Guide.\n

\n \n \n

\n You cannot use the CodeGuru Reviewer SDK or the AWS CLI to associate a GitHub repository with Amazon CodeGuru Reviewer. To associate \n a GitHub repository, use the console. For more information, see \n Getting \n started with CodeGuru Reviewer in the CodeGuru Reviewer User Guide.\n

\n
", "smithy.api#http": { "method": "POST", "uri": "/associations", "code": 200 } } }, "com.amazonaws.codegurureviewer#AssociateRepositoryRequest": { "type": "structure", "members": { "Repository": { "target": "com.amazonaws.codegurureviewer#Repository", "traits": { "smithy.api#documentation": "

The repository to associate.

", "smithy.api#required": {} } }, "ClientRequestToken": { "target": "com.amazonaws.codegurureviewer#ClientRequestToken", "traits": { "smithy.api#documentation": "

Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository\n associations if there are failures and retries.

", "smithy.api#idempotencyToken": {} } }, "Tags": { "target": "com.amazonaws.codegurureviewer#TagMap", "traits": { "smithy.api#documentation": "

\n\t\t\tAn array of key-value pairs used to tag an associated repository. A tag is a custom attribute label with two parts: \n\t\t

\n\t\t " } }, "KMSKeyDetails": { "target": "com.amazonaws.codegurureviewer#KMSKeyDetails", "traits": { "smithy.api#documentation": "

A KMSKeyDetails object that contains:

\n " } } } }, "com.amazonaws.codegurureviewer#AssociateRepositoryResponse": { "type": "structure", "members": { "RepositoryAssociation": { "target": "com.amazonaws.codegurureviewer#RepositoryAssociation", "traits": { "smithy.api#documentation": "

Information about the repository association.

" } }, "Tags": { "target": "com.amazonaws.codegurureviewer#TagMap", "traits": { "smithy.api#documentation": "

\n\t\t\tAn array of key-value pairs used to tag an associated repository. A tag is a custom attribute label with two parts: \n\t\t

\n\t\t " } } } }, "com.amazonaws.codegurureviewer#AssociationArn": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 1600 }, "smithy.api#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}$" } }, "com.amazonaws.codegurureviewer#AssociationId": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 64 } } }, "com.amazonaws.codegurureviewer#BranchName": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 256 } } }, "com.amazonaws.codegurureviewer#ClientRequestToken": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 64 }, "smithy.api#pattern": "^[\\w-]+$" } }, "com.amazonaws.codegurureviewer#CodeCommitRepository": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.codegurureviewer#Name", "traits": { "smithy.api#documentation": "

The name of the AWS CodeCommit repository. For more information, see \n repositoryName \n in the AWS CodeCommit API Reference.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

Information about an AWS CodeCommit repository. The CodeCommit repository must be in the same \n AWS Region and AWS account where its CodeGuru Reviewer code reviews are configured.

" } }, "com.amazonaws.codegurureviewer#CodeReview": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.codegurureviewer#Name", "traits": { "smithy.api#documentation": "

\n The name of the code review.\n

" } }, "CodeReviewArn": { "target": "com.amazonaws.codegurureviewer#Arn", "traits": { "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the \n CodeReview\n object.\n

" } }, "RepositoryName": { "target": "com.amazonaws.codegurureviewer#Name", "traits": { "smithy.api#documentation": "

\n The name of the repository.\n

" } }, "Owner": { "target": "com.amazonaws.codegurureviewer#Owner", "traits": { "smithy.api#documentation": "

The owner of the repository. For an AWS CodeCommit repository, this is the AWS account ID of the \n account that owns the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket repository, this is the username for the account that owns the repository.

" } }, "ProviderType": { "target": "com.amazonaws.codegurureviewer#ProviderType", "traits": { "smithy.api#documentation": "

\n The type of repository that contains the reviewed code (for example, GitHub or Bitbucket).\n

" } }, "State": { "target": "com.amazonaws.codegurureviewer#JobState", "traits": { "smithy.api#documentation": "

The valid code review states are:

\n " } }, "StateReason": { "target": "com.amazonaws.codegurureviewer#StateReason", "traits": { "smithy.api#documentation": "

\n The reason for the state of the code review.\n

" } }, "CreatedTimeStamp": { "target": "com.amazonaws.codegurureviewer#TimeStamp", "traits": { "smithy.api#documentation": "

\n The time, in milliseconds since the epoch, when the code review was created.\n

" } }, "LastUpdatedTimeStamp": { "target": "com.amazonaws.codegurureviewer#TimeStamp", "traits": { "smithy.api#documentation": "

\n The time, in milliseconds since the epoch, when the code review was last updated.\n

" } }, "Type": { "target": "com.amazonaws.codegurureviewer#Type", "traits": { "smithy.api#documentation": "

\n The type of code review.\n

" } }, "PullRequestId": { "target": "com.amazonaws.codegurureviewer#PullRequestId", "traits": { "smithy.api#documentation": "

\n The pull request ID for the code review.\n

" } }, "SourceCodeType": { "target": "com.amazonaws.codegurureviewer#SourceCodeType", "traits": { "smithy.api#documentation": "

\n The type of the source code for the code review.\n

" } }, "AssociationArn": { "target": "com.amazonaws.codegurureviewer#AssociationArn", "traits": { "smithy.api#documentation": "

\n\t\t\tThe Amazon Resource Name (ARN) of the \n\t\t\t\n RepositoryAssociation\n that contains \n\t\t\tthe reviewed source code. You can retrieve associated repository ARNs by calling \n\t\t\t\n ListRepositoryAssociations\n .\n\t\t

" } }, "Metrics": { "target": "com.amazonaws.codegurureviewer#Metrics", "traits": { "smithy.api#documentation": "

\n The statistics from the code review.\n

" } } }, "traits": { "smithy.api#documentation": "

\n Information about a code review. A code review belongs to the associated repository that contains the reviewed code. \n

" } }, "com.amazonaws.codegurureviewer#CodeReviewName": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 100 }, "smithy.api#pattern": "[a-zA-Z0-9-_]*" } }, "com.amazonaws.codegurureviewer#CodeReviewSummaries": { "type": "list", "member": { "target": "com.amazonaws.codegurureviewer#CodeReviewSummary" } }, "com.amazonaws.codegurureviewer#CodeReviewSummary": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.codegurureviewer#Name", "traits": { "smithy.api#documentation": "

\n The name of the code review.\n

" } }, "CodeReviewArn": { "target": "com.amazonaws.codegurureviewer#Arn", "traits": { "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the \n CodeReview\n object.\n

" } }, "RepositoryName": { "target": "com.amazonaws.codegurureviewer#Name", "traits": { "smithy.api#documentation": "

\n The name of the repository.\n

" } }, "Owner": { "target": "com.amazonaws.codegurureviewer#Owner", "traits": { "smithy.api#documentation": "

The owner of the repository. For an AWS CodeCommit repository, this is the AWS account ID of the \n account that owns the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket repository, this is the username for the account that owns the repository.

" } }, "ProviderType": { "target": "com.amazonaws.codegurureviewer#ProviderType", "traits": { "smithy.api#documentation": "

\n The provider type of the repository association.\n

" } }, "State": { "target": "com.amazonaws.codegurureviewer#JobState", "traits": { "smithy.api#documentation": "

\n The state of the code review.\n

\n

The valid code review states are:

\n " } }, "CreatedTimeStamp": { "target": "com.amazonaws.codegurureviewer#TimeStamp", "traits": { "smithy.api#documentation": "

\n The time, in milliseconds since the epoch, when the code review was created.\n

" } }, "LastUpdatedTimeStamp": { "target": "com.amazonaws.codegurureviewer#TimeStamp", "traits": { "smithy.api#documentation": "

\n The time, in milliseconds since the epoch, when the code review was last updated.\n

" } }, "Type": { "target": "com.amazonaws.codegurureviewer#Type", "traits": { "smithy.api#documentation": "

\n The type of the code review.\n

" } }, "PullRequestId": { "target": "com.amazonaws.codegurureviewer#PullRequestId", "traits": { "smithy.api#documentation": "

\n The pull request ID for the code review.\n

" } }, "MetricsSummary": { "target": "com.amazonaws.codegurureviewer#MetricsSummary", "traits": { "smithy.api#documentation": "

\n The statistics from the code review.\n

" } } }, "traits": { "smithy.api#documentation": "

\n Information about the summary of the code review.\n

" } }, "com.amazonaws.codegurureviewer#CodeReviewType": { "type": "structure", "members": { "RepositoryAnalysis": { "target": "com.amazonaws.codegurureviewer#RepositoryAnalysis", "traits": { "smithy.api#documentation": "

A code review that analyzes all code under a specified branch in an associated\n\t\t\trepository. The associated repository is specified using its ARN in \n CreateCodeReview\n .

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

\n The type of a code review. There are two code review types: \n

\n " } }, "com.amazonaws.codegurureviewer#CommitDiffSourceCodeType": { "type": "structure", "members": { "SourceCommit": { "target": "com.amazonaws.codegurureviewer#CommitId", "traits": { "smithy.api#documentation": "

\n The SHA of the source commit used to generate a commit diff.\n

" } }, "DestinationCommit": { "target": "com.amazonaws.codegurureviewer#CommitId", "traits": { "smithy.api#documentation": "

\n The SHA of the destination commit used to generate a commit diff.\n

" } } }, "traits": { "smithy.api#documentation": "

\n A type of \n SourceCodeType\n that \n specifies the commit diff for a pull request on an associated repository.\n

" } }, "com.amazonaws.codegurureviewer#CommitId": { "type": "string", "traits": { "smithy.api#length": { "min": 6, "max": 64 } } }, "com.amazonaws.codegurureviewer#ConflictException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.codegurureviewer#ErrorMessage" } }, "traits": { "smithy.api#documentation": "

The requested operation would cause a conflict with the current state of a service\n resource associated with the request. Resolve the conflict before retrying this request.

", "smithy.api#error": "client", "smithy.api#httpError": 409 } }, "com.amazonaws.codegurureviewer#ConnectionArn": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 256 }, "smithy.api#pattern": "arn:aws(-[\\w]+)*:.+:.+:[0-9]{12}:.+" } }, "com.amazonaws.codegurureviewer#CreateCodeReview": { "type": "operation", "input": { "target": "com.amazonaws.codegurureviewer#CreateCodeReviewRequest" }, "output": { "target": "com.amazonaws.codegurureviewer#CreateCodeReviewResponse" }, "errors": [ { "target": "com.amazonaws.codegurureviewer#AccessDeniedException" }, { "target": "com.amazonaws.codegurureviewer#ConflictException" }, { "target": "com.amazonaws.codegurureviewer#InternalServerException" }, { "target": "com.amazonaws.codegurureviewer#ResourceNotFoundException" }, { "target": "com.amazonaws.codegurureviewer#ThrottlingException" }, { "target": "com.amazonaws.codegurureviewer#ValidationException" } ], "traits": { "smithy.api#documentation": "

\n Use to create a code review with a \n CodeReviewType\n \n of RepositoryAnalysis. This type of code review analyzes all code under a specified branch in an associated repository. \n PullRequest code reviews are automatically triggered by a pull request so cannot be created using this method.\n

", "smithy.api#http": { "method": "POST", "uri": "/codereviews", "code": 200 } } }, "com.amazonaws.codegurureviewer#CreateCodeReviewRequest": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.codegurureviewer#CodeReviewName", "traits": { "smithy.api#documentation": "

\n The name of the code review. The name of each code review in your AWS account must be unique.\n

", "smithy.api#required": {} } }, "RepositoryAssociationArn": { "target": "com.amazonaws.codegurureviewer#AssociationArn", "traits": { "smithy.api#documentation": "

\n The Amazon Resource Name (ARN) of the \n \n RepositoryAssociation\n object. \n You can retrieve this ARN by calling \n \n ListRepositoryAssociations\n .\n

\n

\n A code review can only be created on an associated repository. This is the ARN of the \n associated repository.\n

", "smithy.api#required": {} } }, "Type": { "target": "com.amazonaws.codegurureviewer#CodeReviewType", "traits": { "smithy.api#documentation": "

\n The type of code review to create. This is specified using a \n \n CodeReviewType\n \n object. You can create a code review only of type RepositoryAnalysis. \n

", "smithy.api#required": {} } }, "ClientRequestToken": { "target": "com.amazonaws.codegurureviewer#ClientRequestToken", "traits": { "smithy.api#documentation": "

\n Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate code \n reviews if there are failures and retries.\n

", "smithy.api#idempotencyToken": {} } } } }, "com.amazonaws.codegurureviewer#CreateCodeReviewResponse": { "type": "structure", "members": { "CodeReview": { "target": "com.amazonaws.codegurureviewer#CodeReview" } } }, "com.amazonaws.codegurureviewer#DescribeCodeReview": { "type": "operation", "input": { "target": "com.amazonaws.codegurureviewer#DescribeCodeReviewRequest" }, "output": { "target": "com.amazonaws.codegurureviewer#DescribeCodeReviewResponse" }, "errors": [ { "target": "com.amazonaws.codegurureviewer#AccessDeniedException" }, { "target": "com.amazonaws.codegurureviewer#InternalServerException" }, { "target": "com.amazonaws.codegurureviewer#ResourceNotFoundException" }, { "target": "com.amazonaws.codegurureviewer#ThrottlingException" }, { "target": "com.amazonaws.codegurureviewer#ValidationException" } ], "traits": { "smithy.api#documentation": "

Returns the metadata associated with the code review along with its status.

", "smithy.api#http": { "method": "GET", "uri": "/codereviews/{CodeReviewArn}", "code": 200 } } }, "com.amazonaws.codegurureviewer#DescribeCodeReviewRequest": { "type": "structure", "members": { "CodeReviewArn": { "target": "com.amazonaws.codegurureviewer#Arn", "traits": { "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the \n CodeReview\n object.\n

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } } } }, "com.amazonaws.codegurureviewer#DescribeCodeReviewResponse": { "type": "structure", "members": { "CodeReview": { "target": "com.amazonaws.codegurureviewer#CodeReview", "traits": { "smithy.api#documentation": "

\n Information about the code review.\n

" } } } }, "com.amazonaws.codegurureviewer#DescribeRecommendationFeedback": { "type": "operation", "input": { "target": "com.amazonaws.codegurureviewer#DescribeRecommendationFeedbackRequest" }, "output": { "target": "com.amazonaws.codegurureviewer#DescribeRecommendationFeedbackResponse" }, "errors": [ { "target": "com.amazonaws.codegurureviewer#AccessDeniedException" }, { "target": "com.amazonaws.codegurureviewer#InternalServerException" }, { "target": "com.amazonaws.codegurureviewer#ResourceNotFoundException" }, { "target": "com.amazonaws.codegurureviewer#ThrottlingException" }, { "target": "com.amazonaws.codegurureviewer#ValidationException" } ], "traits": { "smithy.api#documentation": "

\n Describes the customer feedback for a CodeGuru Reviewer recommendation.\n

", "smithy.api#http": { "method": "GET", "uri": "/feedback/{CodeReviewArn}", "code": 200 } } }, "com.amazonaws.codegurureviewer#DescribeRecommendationFeedbackRequest": { "type": "structure", "members": { "CodeReviewArn": { "target": "com.amazonaws.codegurureviewer#Arn", "traits": { "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the \n CodeReview\n object.\n

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "RecommendationId": { "target": "com.amazonaws.codegurureviewer#RecommendationId", "traits": { "smithy.api#documentation": "

\n The recommendation ID that can be used to track the provided recommendations and then to collect the feedback.\n

", "smithy.api#httpQuery": "RecommendationId", "smithy.api#required": {} } }, "UserId": { "target": "com.amazonaws.codegurureviewer#UserId", "traits": { "smithy.api#documentation": "

\n Optional parameter to describe the feedback for a given user. If this is not supplied, it defaults to the user making the request.\n

\n

\n The UserId is an IAM principal that can be specified as an AWS account ID or an Amazon Resource Name (ARN). For \n more information, see \n Specifying a Principal in the AWS Identity and Access Management User Guide.\n

", "smithy.api#httpQuery": "UserId" } } } }, "com.amazonaws.codegurureviewer#DescribeRecommendationFeedbackResponse": { "type": "structure", "members": { "RecommendationFeedback": { "target": "com.amazonaws.codegurureviewer#RecommendationFeedback", "traits": { "smithy.api#documentation": "

\n The recommendation feedback given by the user.\n

" } } } }, "com.amazonaws.codegurureviewer#DescribeRepositoryAssociation": { "type": "operation", "input": { "target": "com.amazonaws.codegurureviewer#DescribeRepositoryAssociationRequest" }, "output": { "target": "com.amazonaws.codegurureviewer#DescribeRepositoryAssociationResponse" }, "errors": [ { "target": "com.amazonaws.codegurureviewer#AccessDeniedException" }, { "target": "com.amazonaws.codegurureviewer#InternalServerException" }, { "target": "com.amazonaws.codegurureviewer#NotFoundException" }, { "target": "com.amazonaws.codegurureviewer#ThrottlingException" }, { "target": "com.amazonaws.codegurureviewer#ValidationException" } ], "traits": { "smithy.api#documentation": "

\n Returns a \n RepositoryAssociation\n object \n that contains information about the requested repository association.\n

", "smithy.api#http": { "method": "GET", "uri": "/associations/{AssociationArn}", "code": 200 } } }, "com.amazonaws.codegurureviewer#DescribeRepositoryAssociationRequest": { "type": "structure", "members": { "AssociationArn": { "target": "com.amazonaws.codegurureviewer#AssociationArn", "traits": { "smithy.api#documentation": "

\n The Amazon Resource Name (ARN) of the \n \n RepositoryAssociation\n object. \n You can retrieve this ARN by calling \n \n ListRepositoryAssociations\n .\n

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } } } }, "com.amazonaws.codegurureviewer#DescribeRepositoryAssociationResponse": { "type": "structure", "members": { "RepositoryAssociation": { "target": "com.amazonaws.codegurureviewer#RepositoryAssociation", "traits": { "smithy.api#documentation": "

Information about the repository association.

" } }, "Tags": { "target": "com.amazonaws.codegurureviewer#TagMap", "traits": { "smithy.api#documentation": "

\n\t\t\tAn array of key-value pairs used to tag an associated repository. A tag is a custom attribute label with two parts: \n\t\t

\n\t\t " } } } }, "com.amazonaws.codegurureviewer#DisassociateRepository": { "type": "operation", "input": { "target": "com.amazonaws.codegurureviewer#DisassociateRepositoryRequest" }, "output": { "target": "com.amazonaws.codegurureviewer#DisassociateRepositoryResponse" }, "errors": [ { "target": "com.amazonaws.codegurureviewer#AccessDeniedException" }, { "target": "com.amazonaws.codegurureviewer#ConflictException" }, { "target": "com.amazonaws.codegurureviewer#InternalServerException" }, { "target": "com.amazonaws.codegurureviewer#NotFoundException" }, { "target": "com.amazonaws.codegurureviewer#ThrottlingException" }, { "target": "com.amazonaws.codegurureviewer#ValidationException" } ], "traits": { "smithy.api#documentation": "

Removes the association between Amazon CodeGuru Reviewer and a repository.

", "smithy.api#http": { "method": "DELETE", "uri": "/associations/{AssociationArn}", "code": 200 } } }, "com.amazonaws.codegurureviewer#DisassociateRepositoryRequest": { "type": "structure", "members": { "AssociationArn": { "target": "com.amazonaws.codegurureviewer#AssociationArn", "traits": { "smithy.api#documentation": "

\n The Amazon Resource Name (ARN) of the \n \n RepositoryAssociation\n object. \n You can retrieve this ARN by calling \n \n ListRepositoryAssociations\n .\n

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } } } }, "com.amazonaws.codegurureviewer#DisassociateRepositoryResponse": { "type": "structure", "members": { "RepositoryAssociation": { "target": "com.amazonaws.codegurureviewer#RepositoryAssociation", "traits": { "smithy.api#documentation": "

Information about the disassociated repository.

" } }, "Tags": { "target": "com.amazonaws.codegurureviewer#TagMap", "traits": { "smithy.api#documentation": "

\n\t\t\tAn array of key-value pairs used to tag an associated repository. A tag is a custom attribute label with two parts: \n\t\t

\n\t\t " } } } }, "com.amazonaws.codegurureviewer#EncryptionOption": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "AWS_OWNED_CMK", "name": "AoCmk" }, { "value": "CUSTOMER_MANAGED_CMK", "name": "CmCmk" } ] } }, "com.amazonaws.codegurureviewer#ErrorMessage": { "type": "string" }, "com.amazonaws.codegurureviewer#FilePath": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 1024 } } }, "com.amazonaws.codegurureviewer#FindingsCount": { "type": "long", "traits": { "smithy.api#box": {} } }, "com.amazonaws.codegurureviewer#InternalServerException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.codegurureviewer#ErrorMessage" } }, "traits": { "smithy.api#documentation": "

The server encountered an internal error and is unable to complete the request.

", "smithy.api#error": "server", "smithy.api#httpError": 500 } }, "com.amazonaws.codegurureviewer#JobState": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "Completed", "name": "COMPLETED" }, { "value": "Pending", "name": "PENDING" }, { "value": "Failed", "name": "FAILED" }, { "value": "Deleting", "name": "DELETING" } ] } }, "com.amazonaws.codegurureviewer#JobStates": { "type": "list", "member": { "target": "com.amazonaws.codegurureviewer#JobState" }, "traits": { "smithy.api#length": { "min": 1, "max": 3 } } }, "com.amazonaws.codegurureviewer#KMSKeyDetails": { "type": "structure", "members": { "KMSKeyId": { "target": "com.amazonaws.codegurureviewer#KMSKeyId", "traits": { "smithy.api#documentation": "

The ID of the AWS KMS key that is associated with a respository association.

" } }, "EncryptionOption": { "target": "com.amazonaws.codegurureviewer#EncryptionOption", "traits": { "smithy.api#documentation": "

The encryption option for a repository association. It is either owned by AWS \n Key Management Service (KMS) (AWS_OWNED_CMK) or customer managed (CUSTOMER_MANAGED_CMK).

" } } }, "traits": { "smithy.api#documentation": "

An object that contains:

\n " } }, "com.amazonaws.codegurureviewer#KMSKeyId": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 2048 }, "smithy.api#pattern": "[a-zA-Z0-9-]+" } }, "com.amazonaws.codegurureviewer#LineNumber": { "type": "integer", "traits": { "smithy.api#box": {} } }, "com.amazonaws.codegurureviewer#ListCodeReviews": { "type": "operation", "input": { "target": "com.amazonaws.codegurureviewer#ListCodeReviewsRequest" }, "output": { "target": "com.amazonaws.codegurureviewer#ListCodeReviewsResponse" }, "errors": [ { "target": "com.amazonaws.codegurureviewer#AccessDeniedException" }, { "target": "com.amazonaws.codegurureviewer#InternalServerException" }, { "target": "com.amazonaws.codegurureviewer#ThrottlingException" }, { "target": "com.amazonaws.codegurureviewer#ValidationException" } ], "traits": { "smithy.api#documentation": "

\n Lists all the code reviews that the customer has created in the past 90 days.\n

", "smithy.api#http": { "method": "GET", "uri": "/codereviews", "code": 200 }, "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", "pageSize": "MaxResults" } } }, "com.amazonaws.codegurureviewer#ListCodeReviewsMaxResults": { "type": "integer", "traits": { "smithy.api#box": {}, "smithy.api#range": { "min": 1, "max": 100 } } }, "com.amazonaws.codegurureviewer#ListCodeReviewsRequest": { "type": "structure", "members": { "ProviderTypes": { "target": "com.amazonaws.codegurureviewer#ProviderTypes", "traits": { "smithy.api#documentation": "

\n List of provider types for filtering that needs to be applied before displaying the result. For example, providerTypes=[GitHub] lists code reviews from GitHub.\n

", "smithy.api#httpQuery": "ProviderTypes" } }, "States": { "target": "com.amazonaws.codegurureviewer#JobStates", "traits": { "smithy.api#documentation": "

\n List of states for filtering that needs to be applied before displaying the result. For example, states=[Pending] lists code reviews in the Pending state.\n

\n

The valid code review states are:

\n ", "smithy.api#httpQuery": "States" } }, "RepositoryNames": { "target": "com.amazonaws.codegurureviewer#RepositoryNames", "traits": { "smithy.api#documentation": "

\n List of repository names for filtering that needs to be applied before displaying the result.\n

", "smithy.api#httpQuery": "RepositoryNames" } }, "Type": { "target": "com.amazonaws.codegurureviewer#Type", "traits": { "smithy.api#documentation": "

\n The type of code reviews to list in the response.\n

", "smithy.api#httpQuery": "Type", "smithy.api#required": {} } }, "MaxResults": { "target": "com.amazonaws.codegurureviewer#ListCodeReviewsMaxResults", "traits": { "smithy.api#documentation": "

\n The maximum number of results that are returned per call. The default is 100.\n

", "smithy.api#httpQuery": "MaxResults" } }, "NextToken": { "target": "com.amazonaws.codegurureviewer#NextToken", "traits": { "smithy.api#documentation": "

\n If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page.\n Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.\n

", "smithy.api#httpQuery": "NextToken" } } } }, "com.amazonaws.codegurureviewer#ListCodeReviewsResponse": { "type": "structure", "members": { "CodeReviewSummaries": { "target": "com.amazonaws.codegurureviewer#CodeReviewSummaries", "traits": { "smithy.api#documentation": "

\n A list of code reviews that meet the criteria of the request.\n

" } }, "NextToken": { "target": "com.amazonaws.codegurureviewer#NextToken", "traits": { "smithy.api#documentation": "

\n Pagination token.\n

" } } } }, "com.amazonaws.codegurureviewer#ListRecommendationFeedback": { "type": "operation", "input": { "target": "com.amazonaws.codegurureviewer#ListRecommendationFeedbackRequest" }, "output": { "target": "com.amazonaws.codegurureviewer#ListRecommendationFeedbackResponse" }, "errors": [ { "target": "com.amazonaws.codegurureviewer#AccessDeniedException" }, { "target": "com.amazonaws.codegurureviewer#InternalServerException" }, { "target": "com.amazonaws.codegurureviewer#ResourceNotFoundException" }, { "target": "com.amazonaws.codegurureviewer#ThrottlingException" }, { "target": "com.amazonaws.codegurureviewer#ValidationException" } ], "traits": { "smithy.api#documentation": "

\n Returns a list of \n \n RecommendationFeedbackSummary\n \n objects that contain customer recommendation feedback for all CodeGuru Reviewer users. \n

", "smithy.api#http": { "method": "GET", "uri": "/feedback/{CodeReviewArn}/RecommendationFeedback", "code": 200 }, "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", "pageSize": "MaxResults" } } }, "com.amazonaws.codegurureviewer#ListRecommendationFeedbackRequest": { "type": "structure", "members": { "NextToken": { "target": "com.amazonaws.codegurureviewer#NextToken", "traits": { "smithy.api#documentation": "

\n If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page.\n Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.\n

", "smithy.api#httpQuery": "NextToken" } }, "MaxResults": { "target": "com.amazonaws.codegurureviewer#MaxResults", "traits": { "smithy.api#documentation": "

\n The maximum number of results that are returned per call. The default is 100.\n

", "smithy.api#httpQuery": "MaxResults" } }, "CodeReviewArn": { "target": "com.amazonaws.codegurureviewer#Arn", "traits": { "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the \n CodeReview\n object.\n

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "UserIds": { "target": "com.amazonaws.codegurureviewer#UserIds", "traits": { "smithy.api#documentation": "

\n An AWS user's account ID or Amazon Resource Name (ARN). Use this ID to query the recommendation feedback for a code review from that user.\n

\n

\n The UserId is an IAM principal that can be specified as an AWS account ID or an Amazon Resource Name (ARN). For \n more information, see \n Specifying a Principal in the AWS Identity and Access Management User Guide.\n

", "smithy.api#httpQuery": "UserIds" } }, "RecommendationIds": { "target": "com.amazonaws.codegurureviewer#RecommendationIds", "traits": { "smithy.api#documentation": "

\n Used to query the recommendation feedback for a given recommendation. \n

", "smithy.api#httpQuery": "RecommendationIds" } } } }, "com.amazonaws.codegurureviewer#ListRecommendationFeedbackResponse": { "type": "structure", "members": { "RecommendationFeedbackSummaries": { "target": "com.amazonaws.codegurureviewer#RecommendationFeedbackSummaries", "traits": { "smithy.api#documentation": "

Recommendation feedback summaries corresponding to the code review ARN.

" } }, "NextToken": { "target": "com.amazonaws.codegurureviewer#NextToken", "traits": { "smithy.api#documentation": "

\n If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page.\n Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.\n

" } } } }, "com.amazonaws.codegurureviewer#ListRecommendations": { "type": "operation", "input": { "target": "com.amazonaws.codegurureviewer#ListRecommendationsRequest" }, "output": { "target": "com.amazonaws.codegurureviewer#ListRecommendationsResponse" }, "errors": [ { "target": "com.amazonaws.codegurureviewer#AccessDeniedException" }, { "target": "com.amazonaws.codegurureviewer#InternalServerException" }, { "target": "com.amazonaws.codegurureviewer#ResourceNotFoundException" }, { "target": "com.amazonaws.codegurureviewer#ThrottlingException" }, { "target": "com.amazonaws.codegurureviewer#ValidationException" } ], "traits": { "smithy.api#documentation": "

\n Returns the list of all recommendations for a completed code review.\n

", "smithy.api#http": { "method": "GET", "uri": "/codereviews/{CodeReviewArn}/Recommendations", "code": 200 }, "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", "pageSize": "MaxResults" } } }, "com.amazonaws.codegurureviewer#ListRecommendationsRequest": { "type": "structure", "members": { "NextToken": { "target": "com.amazonaws.codegurureviewer#NextToken", "traits": { "smithy.api#documentation": "

\n Pagination token.\n

", "smithy.api#httpQuery": "NextToken" } }, "MaxResults": { "target": "com.amazonaws.codegurureviewer#MaxResults", "traits": { "smithy.api#documentation": "

\n The maximum number of results that are returned per call. The default is 100.\n

", "smithy.api#httpQuery": "MaxResults" } }, "CodeReviewArn": { "target": "com.amazonaws.codegurureviewer#Arn", "traits": { "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the \n CodeReview\n object.\n

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } } } }, "com.amazonaws.codegurureviewer#ListRecommendationsResponse": { "type": "structure", "members": { "RecommendationSummaries": { "target": "com.amazonaws.codegurureviewer#RecommendationSummaries", "traits": { "smithy.api#documentation": "

\n List of recommendations for the requested code review.\n

" } }, "NextToken": { "target": "com.amazonaws.codegurureviewer#NextToken", "traits": { "smithy.api#documentation": "

\n Pagination token.\n

" } } } }, "com.amazonaws.codegurureviewer#ListRepositoryAssociations": { "type": "operation", "input": { "target": "com.amazonaws.codegurureviewer#ListRepositoryAssociationsRequest" }, "output": { "target": "com.amazonaws.codegurureviewer#ListRepositoryAssociationsResponse" }, "errors": [ { "target": "com.amazonaws.codegurureviewer#InternalServerException" }, { "target": "com.amazonaws.codegurureviewer#ThrottlingException" }, { "target": "com.amazonaws.codegurureviewer#ValidationException" } ], "traits": { "smithy.api#documentation": "

\n Returns a list of \n RepositoryAssociationSummary\n objects that \n contain summary information about a repository association. You can filter the returned list by \n \n ProviderType\n , \n \n Name\n , \n \n State\n , and \n \n Owner\n .\n

", "smithy.api#http": { "method": "GET", "uri": "/associations", "code": 200 }, "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", "pageSize": "MaxResults" } } }, "com.amazonaws.codegurureviewer#ListRepositoryAssociationsRequest": { "type": "structure", "members": { "ProviderTypes": { "target": "com.amazonaws.codegurureviewer#ProviderTypes", "traits": { "smithy.api#documentation": "

List of provider types to use as a filter.

", "smithy.api#httpQuery": "ProviderType" } }, "States": { "target": "com.amazonaws.codegurureviewer#RepositoryAssociationStates", "traits": { "smithy.api#documentation": "

List of repository association states to use as a filter.

\n

The valid repository association states are:

\n ", "smithy.api#httpQuery": "State" } }, "Names": { "target": "com.amazonaws.codegurureviewer#Names", "traits": { "smithy.api#documentation": "

List of repository names to use as a filter.

", "smithy.api#httpQuery": "Name" } }, "Owners": { "target": "com.amazonaws.codegurureviewer#Owners", "traits": { "smithy.api#documentation": "

List of owners to use as a filter. \n For AWS CodeCommit, it is the name of the CodeCommit account that was\n used to associate the repository. For other repository source providers, such as Bitbucket and GitHub Enterprise Server, this is name of the account \n that was used to associate the repository.

", "smithy.api#httpQuery": "Owner" } }, "MaxResults": { "target": "com.amazonaws.codegurureviewer#MaxResults", "traits": { "smithy.api#documentation": "

The maximum number of repository association results returned by ListRepositoryAssociations \n in paginated output. When this parameter is used, ListRepositoryAssociations only returns \n maxResults results in a single page with a nextToken response \n element. The remaining results of the initial request \n can be seen by sending another ListRepositoryAssociations request with the returned \n nextToken value. \n This value can be between 1 and 100. If this parameter is not used, ListRepositoryAssociations\n returns up to 100 results and a nextToken value if applicable.

", "smithy.api#httpQuery": "MaxResults" } }, "NextToken": { "target": "com.amazonaws.codegurureviewer#NextToken", "traits": { "smithy.api#documentation": "

The nextToken value returned from a previous paginated \n ListRepositoryAssociations request where maxResults was used and the results \n exceeded the value of that parameter. Pagination continues from the end of the previous results \n that returned the nextToken value. \n

\n \n

Treat this token as an opaque identifier that is only used to retrieve \n the next items in a list and not for other programmatic purposes.

\n
", "smithy.api#httpQuery": "NextToken" } } } }, "com.amazonaws.codegurureviewer#ListRepositoryAssociationsResponse": { "type": "structure", "members": { "RepositoryAssociationSummaries": { "target": "com.amazonaws.codegurureviewer#RepositoryAssociationSummaries", "traits": { "smithy.api#documentation": "

A list of repository associations that meet the criteria of the request.

" } }, "NextToken": { "target": "com.amazonaws.codegurureviewer#NextToken", "traits": { "smithy.api#documentation": "

The nextToken value to include in a future ListRecommendations request. \n When the results of a ListRecommendations request exceed maxResults, this \n value can be used to retrieve the next page of results. This value is null when there are no more \n results to return.

" } } } }, "com.amazonaws.codegurureviewer#ListTagsForResource": { "type": "operation", "input": { "target": "com.amazonaws.codegurureviewer#ListTagsForResourceRequest" }, "output": { "target": "com.amazonaws.codegurureviewer#ListTagsForResourceResponse" }, "errors": [ { "target": "com.amazonaws.codegurureviewer#InternalServerException" }, { "target": "com.amazonaws.codegurureviewer#ResourceNotFoundException" }, { "target": "com.amazonaws.codegurureviewer#ValidationException" } ], "traits": { "smithy.api#documentation": "

Returns the list of tags associated with an associated repository resource.

", "smithy.api#http": { "method": "GET", "uri": "/tags/{resourceArn}", "code": 200 } } }, "com.amazonaws.codegurureviewer#ListTagsForResourceRequest": { "type": "structure", "members": { "resourceArn": { "target": "com.amazonaws.codegurureviewer#AssociationArn", "traits": { "smithy.api#documentation": "

\n The Amazon Resource Name (ARN) of the \n \n RepositoryAssociation\n object. \n You can retrieve this ARN by calling \n \n ListRepositoryAssociations\n .\n

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } } } }, "com.amazonaws.codegurureviewer#ListTagsForResourceResponse": { "type": "structure", "members": { "Tags": { "target": "com.amazonaws.codegurureviewer#TagMap", "traits": { "smithy.api#documentation": "

\n\t\t\tAn array of key-value pairs used to tag an associated repository. A tag is a custom attribute label with two parts: \n\t\t

\n\t\t " } } } }, "com.amazonaws.codegurureviewer#MaxResults": { "type": "integer", "traits": { "smithy.api#box": {}, "smithy.api#range": { "min": 1, "max": 100 } } }, "com.amazonaws.codegurureviewer#MeteredLinesOfCodeCount": { "type": "long", "traits": { "smithy.api#box": {} } }, "com.amazonaws.codegurureviewer#Metrics": { "type": "structure", "members": { "MeteredLinesOfCodeCount": { "target": "com.amazonaws.codegurureviewer#MeteredLinesOfCodeCount", "traits": { "smithy.api#documentation": "

\n Lines of code metered in the code review. For the initial code review pull request and all subsequent revisions, \n this includes all lines of code in the files added to the pull request. In subsequent revisions, for files that already \n existed in the pull request, this includes only the changed lines of code. In both cases, this does not include non-code lines such as comments \n and import statements. For example, if you submit a pull request containing 5 files, each with 500 lines of code, and in \n a subsequent revision you added a new file with 200 lines of code, and also modified a total of 25 lines across the initial 5 files, \n MeteredLinesOfCodeCount includes the first 5 files (5 * 500 = 2,500 lines), the new file (200 lines) and the 25 changed lines of\n code for a total of 2,725 lines of code.\n

" } }, "FindingsCount": { "target": "com.amazonaws.codegurureviewer#FindingsCount", "traits": { "smithy.api#documentation": "

\n Total number of recommendations found in the code review.\n

" } } }, "traits": { "smithy.api#documentation": "

\n Information about the statistics from the code review.\n

" } }, "com.amazonaws.codegurureviewer#MetricsSummary": { "type": "structure", "members": { "MeteredLinesOfCodeCount": { "target": "com.amazonaws.codegurureviewer#MeteredLinesOfCodeCount", "traits": { "smithy.api#documentation": "

\n Lines of code metered in the code review. For the initial code review pull request and all subsequent revisions, \n this includes all lines of code in the files added to the pull request. In subsequent revisions, for files that already \n existed in the pull request, this includes only the changed lines of code. In both cases, this does not include non-code lines such as comments \n and import statements. For example, if you submit a pull request containing 5 files, each with 500 lines of code, and in \n a subsequent revision you added a new file with 200 lines of code, and also modified a total of 25 lines across the initial 5 files, \n MeteredLinesOfCodeCount includes the first 5 files (5 * 500 = 2,500 lines), the new file (200 lines) and the 25 changed lines of\n code for a total of 2,725 lines of code.\n

" } }, "FindingsCount": { "target": "com.amazonaws.codegurureviewer#FindingsCount", "traits": { "smithy.api#documentation": "

\n Total number of recommendations found in the code review.\n

" } } }, "traits": { "smithy.api#documentation": "

\n Information about metrics summaries.\n

" } }, "com.amazonaws.codegurureviewer#Name": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 100 }, "smithy.api#pattern": "^\\S[\\w.-]*$" } }, "com.amazonaws.codegurureviewer#Names": { "type": "list", "member": { "target": "com.amazonaws.codegurureviewer#Name" }, "traits": { "smithy.api#length": { "min": 1, "max": 3 } } }, "com.amazonaws.codegurureviewer#NextToken": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 2048 } } }, "com.amazonaws.codegurureviewer#NotFoundException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.codegurureviewer#ErrorMessage" } }, "traits": { "smithy.api#documentation": "

The resource specified in the request was not found.

", "smithy.api#error": "client", "smithy.api#httpError": 404 } }, "com.amazonaws.codegurureviewer#Owner": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 100 }, "smithy.api#pattern": "^\\S(.*\\S)?$" } }, "com.amazonaws.codegurureviewer#Owners": { "type": "list", "member": { "target": "com.amazonaws.codegurureviewer#Owner" }, "traits": { "smithy.api#length": { "min": 1, "max": 3 } } }, "com.amazonaws.codegurureviewer#ProviderType": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "CodeCommit", "name": "CODE_COMMIT" }, { "value": "GitHub", "name": "GIT_HUB" }, { "value": "Bitbucket", "name": "BITBUCKET" }, { "value": "GitHubEnterpriseServer", "name": "GIT_HUB_ENTERPRISE_SERVER" } ] } }, "com.amazonaws.codegurureviewer#ProviderTypes": { "type": "list", "member": { "target": "com.amazonaws.codegurureviewer#ProviderType" }, "traits": { "smithy.api#length": { "min": 1, "max": 3 } } }, "com.amazonaws.codegurureviewer#PullRequestId": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 64 } } }, "com.amazonaws.codegurureviewer#PutRecommendationFeedback": { "type": "operation", "input": { "target": "com.amazonaws.codegurureviewer#PutRecommendationFeedbackRequest" }, "output": { "target": "com.amazonaws.codegurureviewer#PutRecommendationFeedbackResponse" }, "errors": [ { "target": "com.amazonaws.codegurureviewer#AccessDeniedException" }, { "target": "com.amazonaws.codegurureviewer#InternalServerException" }, { "target": "com.amazonaws.codegurureviewer#ResourceNotFoundException" }, { "target": "com.amazonaws.codegurureviewer#ThrottlingException" }, { "target": "com.amazonaws.codegurureviewer#ValidationException" } ], "traits": { "smithy.api#documentation": "

\n Stores customer feedback for a CodeGuru Reviewer recommendation. When this API is called again with different reactions the previous feedback is overwritten.\n

", "smithy.api#http": { "method": "PUT", "uri": "/feedback", "code": 200 } } }, "com.amazonaws.codegurureviewer#PutRecommendationFeedbackRequest": { "type": "structure", "members": { "CodeReviewArn": { "target": "com.amazonaws.codegurureviewer#Arn", "traits": { "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the \n CodeReview\n object.\n

", "smithy.api#required": {} } }, "RecommendationId": { "target": "com.amazonaws.codegurureviewer#RecommendationId", "traits": { "smithy.api#documentation": "

\n The recommendation ID that can be used to track the provided recommendations and then to collect the feedback.\n

", "smithy.api#required": {} } }, "Reactions": { "target": "com.amazonaws.codegurureviewer#Reactions", "traits": { "smithy.api#documentation": "

\n List for storing reactions. Reactions are utf-8 text code for emojis. If you send an empty list it clears all your feedback.\n

", "smithy.api#required": {} } } } }, "com.amazonaws.codegurureviewer#PutRecommendationFeedbackResponse": { "type": "structure", "members": {} }, "com.amazonaws.codegurureviewer#Reaction": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "ThumbsUp", "name": "THUMBS_UP" }, { "value": "ThumbsDown", "name": "THUMBS_DOWN" } ] } }, "com.amazonaws.codegurureviewer#Reactions": { "type": "list", "member": { "target": "com.amazonaws.codegurureviewer#Reaction" }, "traits": { "smithy.api#length": { "min": 0, "max": 1 } } }, "com.amazonaws.codegurureviewer#RecommendationFeedback": { "type": "structure", "members": { "CodeReviewArn": { "target": "com.amazonaws.codegurureviewer#Arn", "traits": { "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the \n CodeReview\n object.\n

" } }, "RecommendationId": { "target": "com.amazonaws.codegurureviewer#RecommendationId", "traits": { "smithy.api#documentation": "

\n The recommendation ID that can be used to track the provided recommendations. Later on it can be used to collect the feedback.\n

" } }, "Reactions": { "target": "com.amazonaws.codegurureviewer#Reactions", "traits": { "smithy.api#documentation": "

\n List for storing reactions. Reactions are utf-8 text code for emojis. You can send an empty list to clear off all your feedback.\n

" } }, "UserId": { "target": "com.amazonaws.codegurureviewer#UserId", "traits": { "smithy.api#documentation": "

\n The ID of the user that made the API call.\n

\n

\n The UserId is an IAM principal that can be specified as an AWS account ID or an Amazon Resource Name (ARN). For \n more information, see \n Specifying a Principal in the AWS Identity and Access Management User Guide.\n

" } }, "CreatedTimeStamp": { "target": "com.amazonaws.codegurureviewer#TimeStamp", "traits": { "smithy.api#documentation": "

\n The time at which the feedback was created.\n

" } }, "LastUpdatedTimeStamp": { "target": "com.amazonaws.codegurureviewer#TimeStamp", "traits": { "smithy.api#documentation": "

\n The time at which the feedback was last updated. \n

" } } }, "traits": { "smithy.api#documentation": "

\n Information about the recommendation feedback.\n

" } }, "com.amazonaws.codegurureviewer#RecommendationFeedbackSummaries": { "type": "list", "member": { "target": "com.amazonaws.codegurureviewer#RecommendationFeedbackSummary" } }, "com.amazonaws.codegurureviewer#RecommendationFeedbackSummary": { "type": "structure", "members": { "RecommendationId": { "target": "com.amazonaws.codegurureviewer#RecommendationId", "traits": { "smithy.api#documentation": "

\n The recommendation ID that can be used to track the provided recommendations. Later on it can be used to collect the feedback.\n

" } }, "Reactions": { "target": "com.amazonaws.codegurureviewer#Reactions", "traits": { "smithy.api#documentation": "

\n List for storing reactions. Reactions are utf-8 text code for emojis.\n

" } }, "UserId": { "target": "com.amazonaws.codegurureviewer#UserId", "traits": { "smithy.api#documentation": "

\n The ID of the user that gave the feedback.\n

\n

\n The UserId is an IAM principal that can be specified as an AWS account ID or an Amazon Resource Name (ARN). For \n more information, see \n Specifying a Principal in the AWS Identity and Access Management User Guide.\n

" } } }, "traits": { "smithy.api#documentation": "

\n Information about recommendation feedback summaries.\n

" } }, "com.amazonaws.codegurureviewer#RecommendationId": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 64 } } }, "com.amazonaws.codegurureviewer#RecommendationIds": { "type": "list", "member": { "target": "com.amazonaws.codegurureviewer#RecommendationId" }, "traits": { "smithy.api#length": { "min": 1, "max": 100 } } }, "com.amazonaws.codegurureviewer#RecommendationSummaries": { "type": "list", "member": { "target": "com.amazonaws.codegurureviewer#RecommendationSummary" } }, "com.amazonaws.codegurureviewer#RecommendationSummary": { "type": "structure", "members": { "FilePath": { "target": "com.amazonaws.codegurureviewer#FilePath", "traits": { "smithy.api#documentation": "

Name of the file on which a recommendation is provided.

" } }, "RecommendationId": { "target": "com.amazonaws.codegurureviewer#RecommendationId", "traits": { "smithy.api#documentation": "

\n The recommendation ID that can be used to track the provided recommendations. Later on it can be used to collect the feedback.\n

" } }, "StartLine": { "target": "com.amazonaws.codegurureviewer#LineNumber", "traits": { "smithy.api#documentation": "

\n Start line from where the recommendation is applicable in the source commit or source branch.\n

" } }, "EndLine": { "target": "com.amazonaws.codegurureviewer#LineNumber", "traits": { "smithy.api#documentation": "

\n Last line where the recommendation is applicable in the source commit or source branch. For a single line comment the start line and end line values are the same.\n

" } }, "Description": { "target": "com.amazonaws.codegurureviewer#Text", "traits": { "smithy.api#documentation": "

\n A description of the recommendation generated by CodeGuru Reviewer for the lines of code between the start line and the end line.\n

" } } }, "traits": { "smithy.api#documentation": "

\n Information about recommendations.\n

" } }, "com.amazonaws.codegurureviewer#Repository": { "type": "structure", "members": { "CodeCommit": { "target": "com.amazonaws.codegurureviewer#CodeCommitRepository", "traits": { "smithy.api#documentation": "

Information about an AWS CodeCommit repository.

" } }, "Bitbucket": { "target": "com.amazonaws.codegurureviewer#ThirdPartySourceRepository", "traits": { "smithy.api#documentation": "

\n Information about a Bitbucket repository.\n

" } }, "GitHubEnterpriseServer": { "target": "com.amazonaws.codegurureviewer#ThirdPartySourceRepository", "traits": { "smithy.api#documentation": "

\n Information about a GitHub Enterprise Server repository.\n

" } } }, "traits": { "smithy.api#documentation": "

\n Information about an associated AWS CodeCommit repository or an associated repository that is managed \n by AWS CodeStar Connections (for example, Bitbucket). This Repository object \n is not used if your source code is in an associated GitHub repository.\n

" } }, "com.amazonaws.codegurureviewer#RepositoryAnalysis": { "type": "structure", "members": { "RepositoryHead": { "target": "com.amazonaws.codegurureviewer#RepositoryHeadSourceCodeType", "traits": { "smithy.api#documentation": "

\n A \n SourceCodeType\n that \n specifies the tip of a branch in an associated repository. \n

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

A code review type that analyzes all code under a specified branch in an associated\n\t\t\trepository. The associated repository is specified using its ARN when you call \n CreateCodeReview\n .

" } }, "com.amazonaws.codegurureviewer#RepositoryAssociation": { "type": "structure", "members": { "AssociationId": { "target": "com.amazonaws.codegurureviewer#AssociationId", "traits": { "smithy.api#documentation": "

The ID of the repository association.

" } }, "AssociationArn": { "target": "com.amazonaws.codegurureviewer#Arn", "traits": { "smithy.api#documentation": "

The Amazon Resource Name (ARN) identifying the repository association.

" } }, "ConnectionArn": { "target": "com.amazonaws.codegurureviewer#ConnectionArn", "traits": { "smithy.api#documentation": "

\n The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection. Its format is \n arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id. For more information, see \n \n Connection\n in \n the AWS CodeStar Connections API Reference.\n

" } }, "Name": { "target": "com.amazonaws.codegurureviewer#Name", "traits": { "smithy.api#documentation": "

The name of the repository.

" } }, "Owner": { "target": "com.amazonaws.codegurureviewer#Owner", "traits": { "smithy.api#documentation": "

The owner of the repository. For an AWS CodeCommit repository, this is the AWS account ID of the \n account that owns the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket repository, this is the username for the account that owns the repository.

" } }, "ProviderType": { "target": "com.amazonaws.codegurureviewer#ProviderType", "traits": { "smithy.api#documentation": "

The provider type of the repository association.

" } }, "State": { "target": "com.amazonaws.codegurureviewer#RepositoryAssociationState", "traits": { "smithy.api#documentation": "

The state of the repository association.

\n

The valid repository association states are:

\n " } }, "StateReason": { "target": "com.amazonaws.codegurureviewer#StateReason", "traits": { "smithy.api#documentation": "

A description of why the repository association is in the current state.

" } }, "LastUpdatedTimeStamp": { "target": "com.amazonaws.codegurureviewer#TimeStamp", "traits": { "smithy.api#documentation": "

The time, in milliseconds since the epoch, when the repository association was last updated.

" } }, "CreatedTimeStamp": { "target": "com.amazonaws.codegurureviewer#TimeStamp", "traits": { "smithy.api#documentation": "

The time, in milliseconds since the epoch, when the repository association was created.

" } }, "KMSKeyDetails": { "target": "com.amazonaws.codegurureviewer#KMSKeyDetails", "traits": { "smithy.api#documentation": "

A KMSKeyDetails object that contains:

\n " } } }, "traits": { "smithy.api#documentation": "

Information about a repository association. The \n \n DescribeRepositoryAssociation\n \n operation returns a RepositoryAssociation object.

" } }, "com.amazonaws.codegurureviewer#RepositoryAssociationState": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "Associated", "name": "ASSOCIATED" }, { "value": "Associating", "name": "ASSOCIATING" }, { "value": "Failed", "name": "FAILED" }, { "value": "Disassociating", "name": "DISASSOCIATING" }, { "value": "Disassociated", "name": "DISASSOCIATED" } ] } }, "com.amazonaws.codegurureviewer#RepositoryAssociationStates": { "type": "list", "member": { "target": "com.amazonaws.codegurureviewer#RepositoryAssociationState" }, "traits": { "smithy.api#length": { "min": 1, "max": 5 } } }, "com.amazonaws.codegurureviewer#RepositoryAssociationSummaries": { "type": "list", "member": { "target": "com.amazonaws.codegurureviewer#RepositoryAssociationSummary" } }, "com.amazonaws.codegurureviewer#RepositoryAssociationSummary": { "type": "structure", "members": { "AssociationArn": { "target": "com.amazonaws.codegurureviewer#Arn", "traits": { "smithy.api#documentation": "

\n The Amazon Resource Name (ARN) of the \n \n RepositoryAssociation\n object. \n You can retrieve this ARN by calling \n \n ListRepositoryAssociations\n .\n

" } }, "ConnectionArn": { "target": "com.amazonaws.codegurureviewer#ConnectionArn", "traits": { "smithy.api#documentation": "

\n The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection. Its format is \n arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id. For more information, see \n \n Connection\n in \n the AWS CodeStar Connections API Reference.\n

" } }, "LastUpdatedTimeStamp": { "target": "com.amazonaws.codegurureviewer#TimeStamp", "traits": { "smithy.api#documentation": "

The time, in milliseconds since the epoch, since the repository association\n was last updated.\n

" } }, "AssociationId": { "target": "com.amazonaws.codegurureviewer#AssociationId", "traits": { "smithy.api#documentation": "

\n The repository association ID.\n

" } }, "Name": { "target": "com.amazonaws.codegurureviewer#Name", "traits": { "smithy.api#documentation": "

The name of the repository association.

" } }, "Owner": { "target": "com.amazonaws.codegurureviewer#Owner", "traits": { "smithy.api#documentation": "

The owner of the repository. For an AWS CodeCommit repository, this is the AWS account ID of the \n account that owns the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket repository, this is the username for the account that owns the repository.

" } }, "ProviderType": { "target": "com.amazonaws.codegurureviewer#ProviderType", "traits": { "smithy.api#documentation": "

The provider type of the repository association.

" } }, "State": { "target": "com.amazonaws.codegurureviewer#RepositoryAssociationState", "traits": { "smithy.api#documentation": "

The state of the repository association.

\n

The valid repository association states are:

\n " } } }, "traits": { "smithy.api#documentation": "

Summary information about a repository association. The \n \n ListRepositoryAssociations\n \n operation returns a list of RepositoryAssociationSummary objects.

" } }, "com.amazonaws.codegurureviewer#RepositoryHeadSourceCodeType": { "type": "structure", "members": { "BranchName": { "target": "com.amazonaws.codegurureviewer#BranchName", "traits": { "smithy.api#documentation": "

\n The name of the branch in an associated repository. The RepositoryHeadSourceCodeType specifies \n the tip of this branch.\n

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

\n A \n SourceCodeType\n that specifies \n the tip of a branch in an associated repository.\n

" } }, "com.amazonaws.codegurureviewer#RepositoryNames": { "type": "list", "member": { "target": "com.amazonaws.codegurureviewer#Name" }, "traits": { "smithy.api#length": { "min": 1, "max": 100 } } }, "com.amazonaws.codegurureviewer#ResourceNotFoundException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.codegurureviewer#ErrorMessage" } }, "traits": { "smithy.api#documentation": "

\n The resource specified in the request was not found.\n

", "smithy.api#error": "client", "smithy.api#httpError": 404 } }, "com.amazonaws.codegurureviewer#SourceCodeType": { "type": "structure", "members": { "CommitDiff": { "target": "com.amazonaws.codegurureviewer#CommitDiffSourceCodeType", "traits": { "smithy.api#documentation": "

\n A \n SourceCodeType\n that \n specifies a commit diff created by a pull request on an associated repository.\n

" } }, "RepositoryHead": { "target": "com.amazonaws.codegurureviewer#RepositoryHeadSourceCodeType" } }, "traits": { "smithy.api#documentation": "

\n Specifies the source code that is analyzed in a code review. A code review can analyze the source code that is specified \n using a pull request diff or a branch in an associated repository.\n

" } }, "com.amazonaws.codegurureviewer#StateReason": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 256 } } }, "com.amazonaws.codegurureviewer#TagKey": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 128 } } }, "com.amazonaws.codegurureviewer#TagKeyList": { "type": "list", "member": { "target": "com.amazonaws.codegurureviewer#TagKey" }, "traits": { "smithy.api#length": { "min": 1, "max": 50 } } }, "com.amazonaws.codegurureviewer#TagMap": { "type": "map", "key": { "target": "com.amazonaws.codegurureviewer#TagKey" }, "value": { "target": "com.amazonaws.codegurureviewer#TagValue" }, "traits": { "smithy.api#length": { "min": 1, "max": 50 } } }, "com.amazonaws.codegurureviewer#TagResource": { "type": "operation", "input": { "target": "com.amazonaws.codegurureviewer#TagResourceRequest" }, "output": { "target": "com.amazonaws.codegurureviewer#TagResourceResponse" }, "errors": [ { "target": "com.amazonaws.codegurureviewer#InternalServerException" }, { "target": "com.amazonaws.codegurureviewer#ResourceNotFoundException" }, { "target": "com.amazonaws.codegurureviewer#ValidationException" } ], "traits": { "smithy.api#documentation": "

Adds one or more tags to an associated repository.

", "smithy.api#http": { "method": "POST", "uri": "/tags/{resourceArn}", "code": 200 } } }, "com.amazonaws.codegurureviewer#TagResourceRequest": { "type": "structure", "members": { "resourceArn": { "target": "com.amazonaws.codegurureviewer#AssociationArn", "traits": { "smithy.api#documentation": "

\n The Amazon Resource Name (ARN) of the \n \n RepositoryAssociation\n object. \n You can retrieve this ARN by calling \n \n ListRepositoryAssociations\n .\n

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "Tags": { "target": "com.amazonaws.codegurureviewer#TagMap", "traits": { "smithy.api#documentation": "

\n\t\t\tAn array of key-value pairs used to tag an associated repository. A tag is a custom attribute label with two parts: \n\t\t

\n\t\t ", "smithy.api#required": {} } } } }, "com.amazonaws.codegurureviewer#TagResourceResponse": { "type": "structure", "members": {} }, "com.amazonaws.codegurureviewer#TagValue": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 256 } } }, "com.amazonaws.codegurureviewer#Text": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 2048 } } }, "com.amazonaws.codegurureviewer#ThirdPartySourceRepository": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.codegurureviewer#Name", "traits": { "smithy.api#documentation": "

\n The name of the third party source repository.\n

", "smithy.api#required": {} } }, "ConnectionArn": { "target": "com.amazonaws.codegurureviewer#ConnectionArn", "traits": { "smithy.api#documentation": "

\n The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection. Its format is \n arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id. For more information, see \n \n Connection\n in \n the AWS CodeStar Connections API Reference.\n

", "smithy.api#required": {} } }, "Owner": { "target": "com.amazonaws.codegurureviewer#Owner", "traits": { "smithy.api#documentation": "

\n The owner of the repository. For a GitHub, GitHub Enterprise, or Bitbucket repository, \n this is the username for the account that owns the repository. \n

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

\n Information about a third-party source repository connected to CodeGuru Reviewer.\n

" } }, "com.amazonaws.codegurureviewer#ThrottlingException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.codegurureviewer#ErrorMessage" } }, "traits": { "smithy.api#documentation": "

The request was denied due to request throttling.

", "smithy.api#error": "client", "smithy.api#httpError": 429 } }, "com.amazonaws.codegurureviewer#TimeStamp": { "type": "timestamp" }, "com.amazonaws.codegurureviewer#Type": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "PullRequest", "name": "PULL_REQUEST" }, { "value": "RepositoryAnalysis", "name": "REPOSITORY_ANALYSIS" } ] } }, "com.amazonaws.codegurureviewer#UntagResource": { "type": "operation", "input": { "target": "com.amazonaws.codegurureviewer#UntagResourceRequest" }, "output": { "target": "com.amazonaws.codegurureviewer#UntagResourceResponse" }, "errors": [ { "target": "com.amazonaws.codegurureviewer#InternalServerException" }, { "target": "com.amazonaws.codegurureviewer#ResourceNotFoundException" }, { "target": "com.amazonaws.codegurureviewer#ValidationException" } ], "traits": { "smithy.api#documentation": "

Removes a tag from an associated repository.

", "smithy.api#http": { "method": "DELETE", "uri": "/tags/{resourceArn}", "code": 200 } } }, "com.amazonaws.codegurureviewer#UntagResourceRequest": { "type": "structure", "members": { "resourceArn": { "target": "com.amazonaws.codegurureviewer#AssociationArn", "traits": { "smithy.api#documentation": "

\n The Amazon Resource Name (ARN) of the \n \n RepositoryAssociation\n object. \n You can retrieve this ARN by calling \n \n ListRepositoryAssociations\n .\n

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "TagKeys": { "target": "com.amazonaws.codegurureviewer#TagKeyList", "traits": { "smithy.api#documentation": "

A list of the keys for each tag you want to remove from an associated repository.

", "smithy.api#httpQuery": "tagKeys", "smithy.api#required": {} } } } }, "com.amazonaws.codegurureviewer#UntagResourceResponse": { "type": "structure", "members": {} }, "com.amazonaws.codegurureviewer#UserId": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 256 } } }, "com.amazonaws.codegurureviewer#UserIds": { "type": "list", "member": { "target": "com.amazonaws.codegurureviewer#UserId" }, "traits": { "smithy.api#length": { "min": 1, "max": 100 } } }, "com.amazonaws.codegurureviewer#ValidationException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.codegurureviewer#ErrorMessage" } }, "traits": { "smithy.api#documentation": "

The input fails to satisfy the specified constraints.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } } } }