{ "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": { "name": "AssociateRepository", "http": { "method": "POST", "requestUri": "/associations" }, "input": { "shape": "AssociateRepositoryRequest" }, "output": { "shape": "AssociateRepositoryResponse" }, "errors": [ { "shape": "InternalServerException" }, { "shape": "ValidationException" }, { "shape": "AccessDeniedException" }, { "shape": "ConflictException" }, { "shape": "ThrottlingException" } ], "documentation": "

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

If you associate a CodeCommit or S3 repository, it must be in the same Amazon Web Services Region and Amazon Web Services account where its CodeGuru Reviewer code reviews are configured.

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

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

" }, "CreateCodeReview": { "name": "CreateCodeReview", "http": { "method": "POST", "requestUri": "/codereviews" }, "input": { "shape": "CreateCodeReviewRequest" }, "output": { "shape": "CreateCodeReviewResponse" }, "errors": [ { "shape": "ResourceNotFoundException" }, { "shape": "InternalServerException" }, { "shape": "ValidationException" }, { "shape": "ConflictException" }, { "shape": "AccessDeniedException" }, { "shape": "ThrottlingException" } ], "documentation": "

Use to create a code review with a CodeReviewType of RepositoryAnalysis. This type of code review analyzes all code under a specified branch in an associated repository. PullRequest code reviews are automatically triggered by a pull request.

" }, "DescribeCodeReview": { "name": "DescribeCodeReview", "http": { "method": "GET", "requestUri": "/codereviews/{CodeReviewArn}" }, "input": { "shape": "DescribeCodeReviewRequest" }, "output": { "shape": "DescribeCodeReviewResponse" }, "errors": [ { "shape": "ResourceNotFoundException" }, { "shape": "InternalServerException" }, { "shape": "ValidationException" }, { "shape": "AccessDeniedException" }, { "shape": "ThrottlingException" } ], "documentation": "

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

" }, "DescribeRecommendationFeedback": { "name": "DescribeRecommendationFeedback", "http": { "method": "GET", "requestUri": "/feedback/{CodeReviewArn}" }, "input": { "shape": "DescribeRecommendationFeedbackRequest" }, "output": { "shape": "DescribeRecommendationFeedbackResponse" }, "errors": [ { "shape": "ResourceNotFoundException" }, { "shape": "InternalServerException" }, { "shape": "ValidationException" }, { "shape": "AccessDeniedException" }, { "shape": "ThrottlingException" } ], "documentation": "

Describes the customer feedback for a CodeGuru Reviewer recommendation.

" }, "DescribeRepositoryAssociation": { "name": "DescribeRepositoryAssociation", "http": { "method": "GET", "requestUri": "/associations/{AssociationArn}" }, "input": { "shape": "DescribeRepositoryAssociationRequest" }, "output": { "shape": "DescribeRepositoryAssociationResponse" }, "errors": [ { "shape": "NotFoundException" }, { "shape": "InternalServerException" }, { "shape": "ValidationException" }, { "shape": "AccessDeniedException" }, { "shape": "ThrottlingException" } ], "documentation": "

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

" }, "DisassociateRepository": { "name": "DisassociateRepository", "http": { "method": "DELETE", "requestUri": "/associations/{AssociationArn}" }, "input": { "shape": "DisassociateRepositoryRequest" }, "output": { "shape": "DisassociateRepositoryResponse" }, "errors": [ { "shape": "NotFoundException" }, { "shape": "InternalServerException" }, { "shape": "ValidationException" }, { "shape": "AccessDeniedException" }, { "shape": "ConflictException" }, { "shape": "ThrottlingException" } ], "documentation": "

Removes the association between Amazon CodeGuru Reviewer and a repository.

" }, "ListCodeReviews": { "name": "ListCodeReviews", "http": { "method": "GET", "requestUri": "/codereviews" }, "input": { "shape": "ListCodeReviewsRequest" }, "output": { "shape": "ListCodeReviewsResponse" }, "errors": [ { "shape": "InternalServerException" }, { "shape": "ValidationException" }, { "shape": "ThrottlingException" }, { "shape": "AccessDeniedException" } ], "documentation": "

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

" }, "ListRecommendationFeedback": { "name": "ListRecommendationFeedback", "http": { "method": "GET", "requestUri": "/feedback/{CodeReviewArn}/RecommendationFeedback" }, "input": { "shape": "ListRecommendationFeedbackRequest" }, "output": { "shape": "ListRecommendationFeedbackResponse" }, "errors": [ { "shape": "ResourceNotFoundException" }, { "shape": "InternalServerException" }, { "shape": "ValidationException" }, { "shape": "AccessDeniedException" }, { "shape": "ThrottlingException" } ], "documentation": "

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

" }, "ListRecommendations": { "name": "ListRecommendations", "http": { "method": "GET", "requestUri": "/codereviews/{CodeReviewArn}/Recommendations" }, "input": { "shape": "ListRecommendationsRequest" }, "output": { "shape": "ListRecommendationsResponse" }, "errors": [ { "shape": "ResourceNotFoundException" }, { "shape": "InternalServerException" }, { "shape": "ValidationException" }, { "shape": "AccessDeniedException" }, { "shape": "ThrottlingException" } ], "documentation": "

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

" }, "ListRepositoryAssociations": { "name": "ListRepositoryAssociations", "http": { "method": "GET", "requestUri": "/associations" }, "input": { "shape": "ListRepositoryAssociationsRequest" }, "output": { "shape": "ListRepositoryAssociationsResponse" }, "errors": [ { "shape": "InternalServerException" }, { "shape": "ValidationException" }, { "shape": "ThrottlingException" } ], "documentation": "

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

" }, "ListTagsForResource": { "name": "ListTagsForResource", "http": { "method": "GET", "requestUri": "/tags/{resourceArn}" }, "input": { "shape": "ListTagsForResourceRequest" }, "output": { "shape": "ListTagsForResourceResponse" }, "errors": [ { "shape": "InternalServerException" }, { "shape": "ValidationException" }, { "shape": "ResourceNotFoundException" } ], "documentation": "

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

" }, "PutRecommendationFeedback": { "name": "PutRecommendationFeedback", "http": { "method": "PUT", "requestUri": "/feedback" }, "input": { "shape": "PutRecommendationFeedbackRequest" }, "output": { "shape": "PutRecommendationFeedbackResponse" }, "errors": [ { "shape": "ResourceNotFoundException" }, { "shape": "InternalServerException" }, { "shape": "ValidationException" }, { "shape": "AccessDeniedException" }, { "shape": "ThrottlingException" } ], "documentation": "

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

" }, "TagResource": { "name": "TagResource", "http": { "method": "POST", "requestUri": "/tags/{resourceArn}" }, "input": { "shape": "TagResourceRequest" }, "output": { "shape": "TagResourceResponse" }, "errors": [ { "shape": "InternalServerException" }, { "shape": "ValidationException" }, { "shape": "ResourceNotFoundException" } ], "documentation": "

Adds one or more tags to an associated repository.

" }, "UntagResource": { "name": "UntagResource", "http": { "method": "DELETE", "requestUri": "/tags/{resourceArn}" }, "input": { "shape": "UntagResourceRequest" }, "output": { "shape": "UntagResourceResponse" }, "errors": [ { "shape": "InternalServerException" }, { "shape": "ValidationException" }, { "shape": "ResourceNotFoundException" } ], "documentation": "

Removes a tag from an associated repository.

" } }, "shapes": { "AnalysisType": { "type": "string", "enum": [ "Security", "CodeQuality" ] }, "AnalysisTypes": { "type": "list", "member": { "shape": "AnalysisType" } }, "Arn": { "type": "string", "max": 1600, "min": 1, "pattern": "^arn:aws[^:\\s]*:codeguru-reviewer:[^:\\s]+:[\\d]{12}:[a-z-]+:[\\w-]+$" }, "AssociateRepositoryRequest": { "type": "structure", "required": [ "Repository" ], "members": { "Repository": { "shape": "Repository", "documentation": "

The repository to associate.

" }, "ClientRequestToken": { "shape": "ClientRequestToken", "documentation": "

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

", "idempotencyToken": true }, "Tags": { "shape": "TagMap", "documentation": "

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

" }, "KMSKeyDetails": { "shape": "KMSKeyDetails", "documentation": "

A KMSKeyDetails object that contains:

" } } }, "AssociateRepositoryResponse": { "type": "structure", "members": { "RepositoryAssociation": { "shape": "RepositoryAssociation", "documentation": "

Information about the repository association.

" }, "Tags": { "shape": "TagMap", "documentation": "

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

" } } }, "AssociationArn": { "type": "string", "max": 1600, "min": 1, "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}$" }, "AssociationId": { "type": "string", "max": 64, "min": 1 }, "BranchDiffSourceCodeType": { "type": "structure", "required": [ "SourceBranchName", "DestinationBranchName" ], "members": { "SourceBranchName": { "shape": "BranchName", "documentation": "

The source branch for a diff in an associated repository.

" }, "DestinationBranchName": { "shape": "BranchName", "documentation": "

The destination branch for a diff in an associated repository.

" } }, "documentation": "

A type of SourceCodeType that specifies a code diff between a source and destination branch in an associated repository.

" }, "BranchName": { "type": "string", "max": 256, "min": 1 }, "BuildArtifactsObjectKey": { "type": "string", "max": 1024, "min": 1, "pattern": "^\\S(.*\\S)?$" }, "ClientRequestToken": { "type": "string", "max": 64, "min": 1, "pattern": "^[\\w-]+$" }, "CodeArtifacts": { "type": "structure", "required": [ "SourceCodeArtifactsObjectKey" ], "members": { "SourceCodeArtifactsObjectKey": { "shape": "SourceCodeArtifactsObjectKey", "documentation": "

The S3 object key for a source code .zip file. This is required for all code reviews.

" }, "BuildArtifactsObjectKey": { "shape": "BuildArtifactsObjectKey", "documentation": "

The S3 object key for a build artifacts .zip file that contains .jar or .class files. This is required for a code review with security analysis. For more information, see Create code reviews with GitHub Actions in the Amazon CodeGuru Reviewer User Guide.

" } }, "documentation": "

Code artifacts are source code artifacts and build artifacts used in a repository analysis or a pull request review.

" }, "CodeCommitRepository": { "type": "structure", "required": [ "Name" ], "members": { "Name": { "shape": "Name", "documentation": "

The name of the Amazon Web Services CodeCommit repository. For more information, see repositoryName in the Amazon Web Services CodeCommit API Reference.

" } }, "documentation": "

Information about an Amazon Web Services CodeCommit repository. The CodeCommit repository must be in the same Amazon Web Services Region and Amazon Web Services account where its CodeGuru Reviewer code reviews are configured.

" }, "CodeReview": { "type": "structure", "members": { "Name": { "shape": "Name", "documentation": "

The name of the code review.

" }, "CodeReviewArn": { "shape": "Arn", "documentation": "

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

" }, "RepositoryName": { "shape": "Name", "documentation": "

The name of the repository.

" }, "Owner": { "shape": "Owner", "documentation": "

The owner of the repository. For an Amazon Web Services CodeCommit repository, this is the Amazon Web Services account ID of the 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. For an S3 repository, it can be the username or Amazon Web Services account ID.

" }, "ProviderType": { "shape": "ProviderType", "documentation": "

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

" }, "State": { "shape": "JobState", "documentation": "

The valid code review states are:

" }, "StateReason": { "shape": "StateReason", "documentation": "

The reason for the state of the code review.

" }, "CreatedTimeStamp": { "shape": "TimeStamp", "documentation": "

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

" }, "LastUpdatedTimeStamp": { "shape": "TimeStamp", "documentation": "

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

" }, "Type": { "shape": "Type", "documentation": "

The type of code review.

" }, "PullRequestId": { "shape": "PullRequestId", "documentation": "

The pull request ID for the code review.

" }, "SourceCodeType": { "shape": "SourceCodeType", "documentation": "

The type of the source code for the code review.

" }, "AssociationArn": { "shape": "AssociationArn", "documentation": "

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

" }, "Metrics": { "shape": "Metrics", "documentation": "

The statistics from the code review.

" }, "AnalysisTypes": { "shape": "AnalysisTypes", "documentation": "

The types of analysis performed during a repository analysis or a pull request review. You can specify either Security, CodeQuality, or both.

" }, "ConfigFileState": { "shape": "ConfigFileState", "documentation": "

The state of the aws-codeguru-reviewer.yml configuration file that allows the configuration of the CodeGuru Reviewer analysis. The file either exists, doesn't exist, or exists with errors at the root directory of your repository.

" } }, "documentation": "

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

" }, "CodeReviewName": { "type": "string", "max": 100, "min": 1, "pattern": "[a-zA-Z0-9-_]*" }, "CodeReviewSummaries": { "type": "list", "member": { "shape": "CodeReviewSummary" } }, "CodeReviewSummary": { "type": "structure", "members": { "Name": { "shape": "Name", "documentation": "

The name of the code review.

" }, "CodeReviewArn": { "shape": "Arn", "documentation": "

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

" }, "RepositoryName": { "shape": "Name", "documentation": "

The name of the repository.

" }, "Owner": { "shape": "Owner", "documentation": "

The owner of the repository. For an Amazon Web Services CodeCommit repository, this is the Amazon Web Services account ID of the 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. For an S3 repository, it can be the username or Amazon Web Services account ID.

" }, "ProviderType": { "shape": "ProviderType", "documentation": "

The provider type of the repository association.

" }, "State": { "shape": "JobState", "documentation": "

The state of the code review.

The valid code review states are:

" }, "CreatedTimeStamp": { "shape": "TimeStamp", "documentation": "

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

" }, "LastUpdatedTimeStamp": { "shape": "TimeStamp", "documentation": "

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

" }, "Type": { "shape": "Type", "documentation": "

The type of the code review.

" }, "PullRequestId": { "shape": "PullRequestId", "documentation": "

The pull request ID for the code review.

" }, "MetricsSummary": { "shape": "MetricsSummary", "documentation": "

The statistics from the code review.

" }, "SourceCodeType": { "shape": "SourceCodeType" } }, "documentation": "

Information about the summary of the code review.

" }, "CodeReviewType": { "type": "structure", "required": [ "RepositoryAnalysis" ], "members": { "RepositoryAnalysis": { "shape": "RepositoryAnalysis", "documentation": "

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

" }, "AnalysisTypes": { "shape": "AnalysisTypes", "documentation": "

They types of analysis performed during a repository analysis or a pull request review. You can specify either Security, CodeQuality, or both.

" } }, "documentation": "

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

" }, "CommitDiffSourceCodeType": { "type": "structure", "members": { "SourceCommit": { "shape": "CommitId", "documentation": "

The SHA of the source commit used to generate a commit diff. This field is required for a pull request code review.

" }, "DestinationCommit": { "shape": "CommitId", "documentation": "

The SHA of the destination commit used to generate a commit diff. This field is required for a pull request code review.

" }, "MergeBaseCommit": { "shape": "CommitId", "documentation": "

The SHA of the merge base of a commit.

" } }, "documentation": "

A type of SourceCodeType that specifies the commit diff for a pull request on an associated repository. The SourceCommit and DestinationCommit fields are required to do a pull request code review.

" }, "CommitId": { "type": "string", "max": 64, "min": 6 }, "ConfigFileState": { "type": "string", "enum": [ "Present", "Absent", "PresentWithErrors" ] }, "ConnectionArn": { "type": "string", "max": 256, "min": 0, "pattern": "arn:aws(-[\\w]+)*:.+:.+:[0-9]{12}:.+" }, "CreateCodeReviewRequest": { "type": "structure", "required": [ "Name", "RepositoryAssociationArn", "Type" ], "members": { "Name": { "shape": "CodeReviewName", "documentation": "

The name of the code review. The name of each code review in your Amazon Web Services account must be unique.

" }, "RepositoryAssociationArn": { "shape": "AssociationArn", "documentation": "

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

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

" }, "Type": { "shape": "CodeReviewType", "documentation": "

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

" }, "ClientRequestToken": { "shape": "ClientRequestToken", "documentation": "

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

", "idempotencyToken": true } } }, "CreateCodeReviewResponse": { "type": "structure", "members": { "CodeReview": { "shape": "CodeReview" } } }, "DescribeCodeReviewRequest": { "type": "structure", "required": [ "CodeReviewArn" ], "members": { "CodeReviewArn": { "shape": "Arn", "documentation": "

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

", "location": "uri", "locationName": "CodeReviewArn" } } }, "DescribeCodeReviewResponse": { "type": "structure", "members": { "CodeReview": { "shape": "CodeReview", "documentation": "

Information about the code review.

" } } }, "DescribeRecommendationFeedbackRequest": { "type": "structure", "required": [ "CodeReviewArn", "RecommendationId" ], "members": { "CodeReviewArn": { "shape": "Arn", "documentation": "

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

", "location": "uri", "locationName": "CodeReviewArn" }, "RecommendationId": { "shape": "RecommendationId", "documentation": "

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

", "location": "querystring", "locationName": "RecommendationId" }, "UserId": { "shape": "UserId", "documentation": "

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

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

", "location": "querystring", "locationName": "UserId" } } }, "DescribeRecommendationFeedbackResponse": { "type": "structure", "members": { "RecommendationFeedback": { "shape": "RecommendationFeedback", "documentation": "

The recommendation feedback given by the user.

" } } }, "DescribeRepositoryAssociationRequest": { "type": "structure", "required": [ "AssociationArn" ], "members": { "AssociationArn": { "shape": "AssociationArn", "documentation": "

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

", "location": "uri", "locationName": "AssociationArn" } } }, "DescribeRepositoryAssociationResponse": { "type": "structure", "members": { "RepositoryAssociation": { "shape": "RepositoryAssociation", "documentation": "

Information about the repository association.

" }, "Tags": { "shape": "TagMap", "documentation": "

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

" } } }, "DisassociateRepositoryRequest": { "type": "structure", "required": [ "AssociationArn" ], "members": { "AssociationArn": { "shape": "AssociationArn", "documentation": "

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

", "location": "uri", "locationName": "AssociationArn" } } }, "DisassociateRepositoryResponse": { "type": "structure", "members": { "RepositoryAssociation": { "shape": "RepositoryAssociation", "documentation": "

Information about the disassociated repository.

" }, "Tags": { "shape": "TagMap", "documentation": "

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

" } } }, "EncryptionOption": { "type": "string", "enum": [ "AWS_OWNED_CMK", "CUSTOMER_MANAGED_CMK" ] }, "EventInfo": { "type": "structure", "members": { "Name": { "shape": "EventName", "documentation": "

The name of the event. The possible names are pull_request, workflow_dispatch, schedule, and push

" }, "State": { "shape": "EventState", "documentation": "

The state of an event. The state might be open, closed, or another state.

" } }, "documentation": "

Information about an event. The event might be a push, pull request, scheduled request, or another type of event.

" }, "EventName": { "type": "string", "max": 32, "min": 1, "pattern": "^[ \\-A-Z_a-z]+$" }, "EventState": { "type": "string", "max": 32, "min": 1, "pattern": "^[ \\-A-Z_a-z]+$" }, "FilePath": { "type": "string", "max": 1024, "min": 1 }, "FindingsCount": { "type": "long" }, "JobState": { "type": "string", "enum": [ "Completed", "Pending", "Failed", "Deleting" ] }, "JobStates": { "type": "list", "member": { "shape": "JobState" }, "max": 3, "min": 1 }, "KMSKeyDetails": { "type": "structure", "members": { "KMSKeyId": { "shape": "KMSKeyId", "documentation": "

The ID of the Amazon Web Services KMS key that is associated with a repository association.

" }, "EncryptionOption": { "shape": "EncryptionOption", "documentation": "

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

" } }, "documentation": "

An object that contains:

" }, "KMSKeyId": { "type": "string", "max": 2048, "min": 1, "pattern": "[a-zA-Z0-9-]+" }, "LineNumber": { "type": "integer" }, "LinesOfCodeCount": { "type": "long" }, "ListCodeReviewsMaxResults": { "type": "integer", "max": 100, "min": 1 }, "ListCodeReviewsRequest": { "type": "structure", "required": [ "Type" ], "members": { "ProviderTypes": { "shape": "ProviderTypes", "documentation": "

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

", "location": "querystring", "locationName": "ProviderTypes" }, "States": { "shape": "JobStates", "documentation": "

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.

The valid code review states are:

", "location": "querystring", "locationName": "States" }, "RepositoryNames": { "shape": "RepositoryNames", "documentation": "

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

", "location": "querystring", "locationName": "RepositoryNames" }, "Type": { "shape": "Type", "documentation": "

The type of code reviews to list in the response.

", "location": "querystring", "locationName": "Type" }, "MaxResults": { "shape": "ListCodeReviewsMaxResults", "documentation": "

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

", "location": "querystring", "locationName": "MaxResults" }, "NextToken": { "shape": "NextToken", "documentation": "

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

", "location": "querystring", "locationName": "NextToken" } } }, "ListCodeReviewsResponse": { "type": "structure", "members": { "CodeReviewSummaries": { "shape": "CodeReviewSummaries", "documentation": "

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

" }, "NextToken": { "shape": "NextToken", "documentation": "

Pagination token.

" } } }, "ListRecommendationFeedbackRequest": { "type": "structure", "required": [ "CodeReviewArn" ], "members": { "NextToken": { "shape": "NextToken", "documentation": "

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

", "location": "querystring", "locationName": "NextToken" }, "MaxResults": { "shape": "MaxResults", "documentation": "

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

", "location": "querystring", "locationName": "MaxResults" }, "CodeReviewArn": { "shape": "Arn", "documentation": "

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

", "location": "uri", "locationName": "CodeReviewArn" }, "UserIds": { "shape": "UserIds", "documentation": "

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

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

", "location": "querystring", "locationName": "UserIds" }, "RecommendationIds": { "shape": "RecommendationIds", "documentation": "

Used to query the recommendation feedback for a given recommendation.

", "location": "querystring", "locationName": "RecommendationIds" } } }, "ListRecommendationFeedbackResponse": { "type": "structure", "members": { "RecommendationFeedbackSummaries": { "shape": "RecommendationFeedbackSummaries", "documentation": "

Recommendation feedback summaries corresponding to the code review ARN.

" }, "NextToken": { "shape": "NextToken", "documentation": "

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

" } } }, "ListRecommendationsMaxResults": { "type": "integer", "max": 300, "min": 1 }, "ListRecommendationsRequest": { "type": "structure", "required": [ "CodeReviewArn" ], "members": { "NextToken": { "shape": "NextToken", "documentation": "

Pagination token.

", "location": "querystring", "locationName": "NextToken" }, "MaxResults": { "shape": "ListRecommendationsMaxResults", "documentation": "

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

", "location": "querystring", "locationName": "MaxResults" }, "CodeReviewArn": { "shape": "Arn", "documentation": "

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

", "location": "uri", "locationName": "CodeReviewArn" } } }, "ListRecommendationsResponse": { "type": "structure", "members": { "RecommendationSummaries": { "shape": "RecommendationSummaries", "documentation": "

List of recommendations for the requested code review.

" }, "NextToken": { "shape": "NextToken", "documentation": "

Pagination token.

" } } }, "ListRepositoryAssociationsRequest": { "type": "structure", "members": { "ProviderTypes": { "shape": "ProviderTypes", "documentation": "

List of provider types to use as a filter.

", "location": "querystring", "locationName": "ProviderType" }, "States": { "shape": "RepositoryAssociationStates", "documentation": "

List of repository association states to use as a filter.

The valid repository association states are:

", "location": "querystring", "locationName": "State" }, "Names": { "shape": "Names", "documentation": "

List of repository names to use as a filter.

", "location": "querystring", "locationName": "Name" }, "Owners": { "shape": "Owners", "documentation": "

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

", "location": "querystring", "locationName": "Owner" }, "MaxResults": { "shape": "MaxResults", "documentation": "

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

", "location": "querystring", "locationName": "MaxResults" }, "NextToken": { "shape": "NextToken", "documentation": "

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

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

", "location": "querystring", "locationName": "NextToken" } } }, "ListRepositoryAssociationsResponse": { "type": "structure", "members": { "RepositoryAssociationSummaries": { "shape": "RepositoryAssociationSummaries", "documentation": "

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

" }, "NextToken": { "shape": "NextToken", "documentation": "

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

" } } }, "ListTagsForResourceRequest": { "type": "structure", "required": [ "resourceArn" ], "members": { "resourceArn": { "shape": "AssociationArn", "documentation": "

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

", "location": "uri", "locationName": "resourceArn" } } }, "ListTagsForResourceResponse": { "type": "structure", "members": { "Tags": { "shape": "TagMap", "documentation": "

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

" } } }, "LongDescription": { "type": "string", "max": 1000, "min": 1, "pattern": "^\\S(.*\\S)?$" }, "MaxResults": { "type": "integer", "max": 100, "min": 1 }, "Metrics": { "type": "structure", "members": { "MeteredLinesOfCodeCount": { "shape": "LinesOfCodeCount", "documentation": "

MeteredLinesOfCodeCount is the number of lines of code in the repository where the code review happened. This does not include non-code lines such as comments and blank lines.

" }, "SuppressedLinesOfCodeCount": { "shape": "LinesOfCodeCount", "documentation": "

SuppressedLinesOfCodeCount is the number of lines of code in the repository where the code review happened that CodeGuru Reviewer did not analyze. The lines suppressed in the analysis is based on the excludeFiles variable in the aws-codeguru-reviewer.yml file. This number does not include non-code lines such as comments and blank lines.

" }, "FindingsCount": { "shape": "FindingsCount", "documentation": "

Total number of recommendations found in the code review.

" } }, "documentation": "

Information about the statistics from the code review.

" }, "MetricsSummary": { "type": "structure", "members": { "MeteredLinesOfCodeCount": { "shape": "LinesOfCodeCount", "documentation": "

Lines of code metered in the code review. For the initial code review pull request and all subsequent revisions, this includes all lines of code in the files added to the pull request. In subsequent revisions, for files that already 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 and import statements. For example, if you submit a pull request containing 5 files, each with 500 lines of code, and in 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, MeteredLinesOfCodeCount includes the first 5 files (5 * 500 = 2,500 lines), the new file (200 lines) and the 25 changed lines of code for a total of 2,725 lines of code.

" }, "SuppressedLinesOfCodeCount": { "shape": "LinesOfCodeCount", "documentation": "

Lines of code suppressed in the code review based on the excludeFiles element in the aws-codeguru-reviewer.yml file. For full repository analyses, this number includes all lines of code in the files that are suppressed. For pull requests, this number only includes the changed lines of code that are suppressed. In both cases, this number does not include non-code lines such as comments and import statements. For example, if you initiate a full repository analysis on a repository containing 5 files, each file with 100 lines of code, and 2 files are listed as excluded in the aws-codeguru-reviewer.yml file, then SuppressedLinesOfCodeCount returns 200 (2 * 100) as the total number of lines of code suppressed. However, if you submit a pull request for the same repository, then SuppressedLinesOfCodeCount only includes the lines in the 2 files that changed. If only 1 of the 2 files changed in the pull request, then SuppressedLinesOfCodeCount returns 100 (1 * 100) as the total number of lines of code suppressed.

" }, "FindingsCount": { "shape": "FindingsCount", "documentation": "

Total number of recommendations found in the code review.

" } }, "documentation": "

Information about metrics summaries.

" }, "Name": { "type": "string", "max": 100, "min": 1, "pattern": "^\\S[\\w.-]*$" }, "Names": { "type": "list", "member": { "shape": "Name" }, "max": 3, "min": 1 }, "NextToken": { "type": "string", "max": 2048, "min": 1 }, "Owner": { "type": "string", "max": 100, "min": 1, "pattern": "^\\S(.*\\S)?$" }, "Owners": { "type": "list", "member": { "shape": "Owner" }, "max": 3, "min": 1 }, "ProviderType": { "type": "string", "enum": [ "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer", "S3Bucket" ] }, "ProviderTypes": { "type": "list", "member": { "shape": "ProviderType" }, "max": 3, "min": 1 }, "PullRequestId": { "type": "string", "max": 64, "min": 1 }, "PutRecommendationFeedbackRequest": { "type": "structure", "required": [ "CodeReviewArn", "RecommendationId", "Reactions" ], "members": { "CodeReviewArn": { "shape": "Arn", "documentation": "

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

" }, "RecommendationId": { "shape": "RecommendationId", "documentation": "

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

" }, "Reactions": { "shape": "Reactions", "documentation": "

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

" } } }, "PutRecommendationFeedbackResponse": { "type": "structure", "members": {} }, "Reaction": { "type": "string", "enum": [ "ThumbsUp", "ThumbsDown" ] }, "Reactions": { "type": "list", "member": { "shape": "Reaction" }, "max": 1, "min": 0 }, "RecommendationCategory": { "type": "string", "enum": [ "AWSBestPractices", "AWSCloudFormationIssues", "DuplicateCode", "CodeMaintenanceIssues", "ConcurrencyIssues", "InputValidations", "PythonBestPractices", "JavaBestPractices", "ResourceLeaks", "SecurityIssues", "CodeInconsistencies" ] }, "RecommendationFeedback": { "type": "structure", "members": { "CodeReviewArn": { "shape": "Arn", "documentation": "

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

" }, "RecommendationId": { "shape": "RecommendationId", "documentation": "

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

" }, "Reactions": { "shape": "Reactions", "documentation": "

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

" }, "UserId": { "shape": "UserId", "documentation": "

The ID of the user that made the API call.

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

" }, "CreatedTimeStamp": { "shape": "TimeStamp", "documentation": "

The time at which the feedback was created.

" }, "LastUpdatedTimeStamp": { "shape": "TimeStamp", "documentation": "

The time at which the feedback was last updated.

" } }, "documentation": "

Information about the recommendation feedback.

" }, "RecommendationFeedbackSummaries": { "type": "list", "member": { "shape": "RecommendationFeedbackSummary" } }, "RecommendationFeedbackSummary": { "type": "structure", "members": { "RecommendationId": { "shape": "RecommendationId", "documentation": "

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

" }, "Reactions": { "shape": "Reactions", "documentation": "

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

" }, "UserId": { "shape": "UserId", "documentation": "

The ID of the user that gave the feedback.

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

" } }, "documentation": "

Information about recommendation feedback summaries.

" }, "RecommendationId": { "type": "string", "max": 64, "min": 1 }, "RecommendationIds": { "type": "list", "member": { "shape": "RecommendationId" }, "max": 100, "min": 1 }, "RecommendationSummaries": { "type": "list", "member": { "shape": "RecommendationSummary" } }, "RecommendationSummary": { "type": "structure", "members": { "FilePath": { "shape": "FilePath", "documentation": "

Name of the file on which a recommendation is provided.

" }, "RecommendationId": { "shape": "RecommendationId", "documentation": "

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

" }, "StartLine": { "shape": "LineNumber", "documentation": "

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

" }, "EndLine": { "shape": "LineNumber", "documentation": "

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.

" }, "Description": { "shape": "Text", "documentation": "

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

" }, "RecommendationCategory": { "shape": "RecommendationCategory", "documentation": "

The type of a recommendation.

" }, "RuleMetadata": { "shape": "RuleMetadata", "documentation": "

Metadata about a rule. Rule metadata includes an ID, a name, a list of tags, and a short and long description. CodeGuru Reviewer uses rules to analyze code. A rule's recommendation is included in analysis results if code is detected that violates the rule.

" }, "Severity": { "shape": "Severity", "documentation": "

The severity of the issue in the code that generated this recommendation.

" } }, "documentation": "

Information about recommendations.

" }, "Repository": { "type": "structure", "members": { "CodeCommit": { "shape": "CodeCommitRepository", "documentation": "

Information about an Amazon Web Services CodeCommit repository.

" }, "Bitbucket": { "shape": "ThirdPartySourceRepository", "documentation": "

Information about a Bitbucket repository.

" }, "GitHubEnterpriseServer": { "shape": "ThirdPartySourceRepository", "documentation": "

Information about a GitHub Enterprise Server repository.

" }, "S3Bucket": { "shape": "S3Repository" } }, "documentation": "

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

" }, "RepositoryAnalysis": { "type": "structure", "members": { "RepositoryHead": { "shape": "RepositoryHeadSourceCodeType", "documentation": "

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

" }, "SourceCodeType": { "shape": "SourceCodeType" } }, "documentation": "

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

" }, "RepositoryAssociation": { "type": "structure", "members": { "AssociationId": { "shape": "AssociationId", "documentation": "

The ID of the repository association.

" }, "AssociationArn": { "shape": "Arn", "documentation": "

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

" }, "ConnectionArn": { "shape": "ConnectionArn", "documentation": "

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

" }, "Name": { "shape": "Name", "documentation": "

The name of the repository.

" }, "Owner": { "shape": "Owner", "documentation": "

The owner of the repository. For an Amazon Web Services CodeCommit repository, this is the Amazon Web Services account ID of the 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. For an S3 repository, it can be the username or Amazon Web Services account ID.

" }, "ProviderType": { "shape": "ProviderType", "documentation": "

The provider type of the repository association.

" }, "State": { "shape": "RepositoryAssociationState", "documentation": "

The state of the repository association.

The valid repository association states are:

" }, "StateReason": { "shape": "StateReason", "documentation": "

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

" }, "LastUpdatedTimeStamp": { "shape": "TimeStamp", "documentation": "

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

" }, "CreatedTimeStamp": { "shape": "TimeStamp", "documentation": "

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

" }, "KMSKeyDetails": { "shape": "KMSKeyDetails", "documentation": "

A KMSKeyDetails object that contains:

" }, "S3RepositoryDetails": { "shape": "S3RepositoryDetails" } }, "documentation": "

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

" }, "RepositoryAssociationState": { "type": "string", "enum": [ "Associated", "Associating", "Failed", "Disassociating", "Disassociated" ] }, "RepositoryAssociationStates": { "type": "list", "member": { "shape": "RepositoryAssociationState" }, "max": 5, "min": 1 }, "RepositoryAssociationSummaries": { "type": "list", "member": { "shape": "RepositoryAssociationSummary" } }, "RepositoryAssociationSummary": { "type": "structure", "members": { "AssociationArn": { "shape": "Arn", "documentation": "

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

" }, "ConnectionArn": { "shape": "ConnectionArn", "documentation": "

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

" }, "LastUpdatedTimeStamp": { "shape": "TimeStamp", "documentation": "

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

" }, "AssociationId": { "shape": "AssociationId", "documentation": "

The repository association ID.

" }, "Name": { "shape": "Name", "documentation": "

The name of the repository association.

" }, "Owner": { "shape": "Owner", "documentation": "

The owner of the repository. For an Amazon Web Services CodeCommit repository, this is the Amazon Web Services account ID of the 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. For an S3 repository, it can be the username or Amazon Web Services account ID.

" }, "ProviderType": { "shape": "ProviderType", "documentation": "

The provider type of the repository association.

" }, "State": { "shape": "RepositoryAssociationState", "documentation": "

The state of the repository association.

The valid repository association states are:

" } }, "documentation": "

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

" }, "RepositoryHeadSourceCodeType": { "type": "structure", "required": [ "BranchName" ], "members": { "BranchName": { "shape": "BranchName", "documentation": "

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

" } }, "documentation": "

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

" }, "RepositoryNames": { "type": "list", "member": { "shape": "Name" }, "max": 100, "min": 1 }, "RequestId": { "type": "string", "max": 64, "min": 1 }, "RequestMetadata": { "type": "structure", "members": { "RequestId": { "shape": "RequestId", "documentation": "

The ID of the request. This is required for a pull request code review.

" }, "Requester": { "shape": "Requester", "documentation": "

An identifier, such as a name or account ID, that is associated with the requester. The Requester is used to capture the author/actor name of the event request.

" }, "EventInfo": { "shape": "EventInfo", "documentation": "

Information about the event associated with a code review.

" }, "VendorName": { "shape": "VendorName", "documentation": "

The name of the repository vendor used to upload code to an S3 bucket for a CI/CD code review. For example, if code and artifacts are uploaded to an S3 bucket for a CI/CD code review by GitHub scripts from a GitHub repository, then the repository association's ProviderType is S3Bucket and the CI/CD repository vendor name is GitHub. For more information, see the definition for ProviderType in RepositoryAssociation.

" } }, "documentation": "

Metadata that is associated with a code review. This applies to both pull request and repository analysis code reviews.

" }, "Requester": { "type": "string", "max": 100, "min": 1, "pattern": "^\\S(.*\\S)?$" }, "RuleId": { "type": "string", "max": 64, "min": 1, "pattern": "^\\S+\\/[a-zA-Z0-9-]+@v\\d+\\.\\d+$" }, "RuleMetadata": { "type": "structure", "members": { "RuleId": { "shape": "RuleId", "documentation": "

The ID of the rule.

" }, "RuleName": { "shape": "RuleName", "documentation": "

The name of the rule.

" }, "ShortDescription": { "shape": "ShortDescription", "documentation": "

A short description of the rule.

" }, "LongDescription": { "shape": "LongDescription", "documentation": "

A long description of the rule.

" }, "RuleTags": { "shape": "RuleTags", "documentation": "

Tags that are associated with the rule.

" } }, "documentation": "

Metadata about a rule. Rule metadata includes an ID, a name, a list of tags, and a short and long description. CodeGuru Reviewer uses rules to analyze code. A rule's recommendation is included in analysis results if code is detected that violates the rule.

" }, "RuleName": { "type": "string", "max": 100, "min": 1, "pattern": "^\\S(.*\\S)?$" }, "RuleTag": { "type": "string", "max": 50, "min": 1, "pattern": "^\\S(.*\\S)?$" }, "RuleTags": { "type": "list", "member": { "shape": "RuleTag" }, "max": 20, "min": 1 }, "S3BucketName": { "type": "string", "max": 63, "min": 3, "pattern": "^\\S(.*\\S)?$" }, "S3BucketRepository": { "type": "structure", "required": [ "Name" ], "members": { "Name": { "shape": "Name", "documentation": "

The name of the repository when the ProviderType is S3Bucket.

" }, "Details": { "shape": "S3RepositoryDetails", "documentation": "

An S3RepositoryDetails object that specifies the name of an S3 bucket and a CodeArtifacts object. The CodeArtifacts object includes the S3 object keys for a source code .zip file and for a build artifacts .zip file.

" } }, "documentation": "

Information about an associated repository in an S3 bucket. The associated repository contains a source code .zip file and a build artifacts .zip file that contains .jar or .class files.

" }, "S3Repository": { "type": "structure", "required": [ "Name", "BucketName" ], "members": { "Name": { "shape": "Name", "documentation": "

The name of the repository in the S3 bucket.

" }, "BucketName": { "shape": "S3BucketName", "documentation": "

The name of the S3 bucket used for associating a new S3 repository. It must begin with codeguru-reviewer-.

" } }, "documentation": "

Information about a repository in an S3 bucket.

" }, "S3RepositoryDetails": { "type": "structure", "members": { "BucketName": { "shape": "S3BucketName", "documentation": "

The name of the S3 bucket used for associating a new S3 repository. It must begin with codeguru-reviewer-.

" }, "CodeArtifacts": { "shape": "CodeArtifacts", "documentation": "

A CodeArtifacts object. The CodeArtifacts object includes the S3 object key for a source code .zip file and for a build artifacts .zip file that contains .jar or .class files.

" } }, "documentation": "

Specifies the name of an S3 bucket and a CodeArtifacts object that contains the S3 object keys for a source code .zip file and for a build artifacts .zip file that contains .jar or .class files.

" }, "Severity": { "type": "string", "enum": [ "Info", "Low", "Medium", "High", "Critical" ] }, "ShortDescription": { "type": "string", "max": 200, "min": 1, "pattern": "^\\S(.*\\S)?$" }, "SourceCodeArtifactsObjectKey": { "type": "string", "max": 1024, "min": 1, "pattern": "^\\S(.*\\S)?$" }, "SourceCodeType": { "type": "structure", "members": { "CommitDiff": { "shape": "CommitDiffSourceCodeType", "documentation": "

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

" }, "RepositoryHead": { "shape": "RepositoryHeadSourceCodeType" }, "BranchDiff": { "shape": "BranchDiffSourceCodeType", "documentation": "

A type of SourceCodeType that specifies a source branch name and a destination branch name in an associated repository.

" }, "S3BucketRepository": { "shape": "S3BucketRepository", "documentation": "

Information about an associated repository in an S3 bucket that includes its name and an S3RepositoryDetails object. The S3RepositoryDetails object includes the name of an S3 bucket, an S3 key for a source code .zip file, and an S3 key for a build artifacts .zip file. S3BucketRepository is required in SourceCodeType for S3BucketRepository based code reviews.

" }, "RequestMetadata": { "shape": "RequestMetadata", "documentation": "

Metadata that is associated with a code review. This applies to any type of code review supported by CodeGuru Reviewer. The RequestMetadaa field captures any event metadata. For example, it might capture metadata associated with an event trigger, such as a push or a pull request.

" } }, "documentation": "

Specifies the source code that is analyzed in a code review.

" }, "StateReason": { "type": "string", "max": 256, "min": 0 }, "TagKey": { "type": "string", "max": 128, "min": 1 }, "TagKeyList": { "type": "list", "member": { "shape": "TagKey" }, "max": 50, "min": 1 }, "TagMap": { "type": "map", "key": { "shape": "TagKey" }, "value": { "shape": "TagValue" }, "max": 50, "min": 1 }, "TagResourceRequest": { "type": "structure", "required": [ "resourceArn", "Tags" ], "members": { "resourceArn": { "shape": "AssociationArn", "documentation": "

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

", "location": "uri", "locationName": "resourceArn" }, "Tags": { "shape": "TagMap", "documentation": "

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

" } } }, "TagResourceResponse": { "type": "structure", "members": {} }, "TagValue": { "type": "string", "max": 256 }, "Text": { "type": "string", "max": 5000, "min": 1 }, "ThirdPartySourceRepository": { "type": "structure", "required": [ "Name", "ConnectionArn", "Owner" ], "members": { "Name": { "shape": "Name", "documentation": "

The name of the third party source repository.

" }, "ConnectionArn": { "shape": "ConnectionArn", "documentation": "

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

" }, "Owner": { "shape": "Owner", "documentation": "

The owner of the repository. For a GitHub, GitHub Enterprise, or Bitbucket repository, this is the username for the account that owns the repository. For an S3 repository, this can be the username or Amazon Web Services account ID

" } }, "documentation": "

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

" }, "TimeStamp": { "type": "timestamp" }, "Type": { "type": "string", "enum": [ "PullRequest", "RepositoryAnalysis" ] }, "UntagResourceRequest": { "type": "structure", "required": [ "resourceArn", "TagKeys" ], "members": { "resourceArn": { "shape": "AssociationArn", "documentation": "

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

", "location": "uri", "locationName": "resourceArn" }, "TagKeys": { "shape": "TagKeyList", "documentation": "

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

", "location": "querystring", "locationName": "tagKeys" } } }, "UntagResourceResponse": { "type": "structure", "members": {} }, "UserId": { "type": "string", "max": 256, "min": 1 }, "UserIds": { "type": "list", "member": { "shape": "UserId" }, "max": 100, "min": 1 }, "VendorName": { "type": "string", "enum": [ "GitHub", "GitLab", "NativeS3" ] } }, "documentation": "

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

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

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

" }