@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSCodeCommitClient extends AmazonWebServiceClient implements AWSCodeCommit
This is the CodeCommit API Reference. This reference provides descriptions of the operations and data types for CodeCommit API along with usage examples.
You can use the CodeCommit API to work with the following objects:
Repositories, by calling the following:
BatchGetRepositories, which returns information about one or more repositories associated with your Amazon Web Services account.
CreateRepository, which creates an CodeCommit repository.
DeleteRepository, which deletes an CodeCommit repository.
GetRepository, which returns information about a specified repository.
ListRepositories, which lists all CodeCommit repositories associated with your Amazon Web Services account.
UpdateRepositoryDescription, which sets or updates the description of the repository.
UpdateRepositoryEncryptionKey, which updates the Key Management Service encryption key used to encrypt and decrypt a repository.
UpdateRepositoryName, which changes the name of the repository. If you change the name of a repository, no other users of that repository can access it until you send them the new HTTPS or SSH URL to use.
Branches, by calling the following:
CreateBranch, which creates a branch in a specified repository.
DeleteBranch, which deletes the specified branch in a repository unless it is the default branch.
GetBranch, which returns information about a specified branch.
ListBranches, which lists all branches for a specified repository.
UpdateDefaultBranch, which changes the default branch for a repository.
Files, by calling the following:
DeleteFile, which deletes the content of a specified file from a specified branch.
GetBlob, which returns the base-64 encoded content of an individual Git blob object in a repository.
GetFile, which returns the base-64 encoded content of a specified file.
GetFolder, which returns the contents of a specified folder or directory.
ListFileCommitHistory, which retrieves a list of commits and changes to a specified file.
PutFile, which adds or modifies a single file in a specified repository and branch.
Commits, by calling the following:
BatchGetCommits, which returns information about one or more commits in a repository.
CreateCommit, which creates a commit for changes to a repository.
GetCommit, which returns information about a commit, including commit messages and author and committer information.
GetDifferences, which returns information about the differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID, or other fully qualified reference).
Merges, by calling the following:
BatchDescribeMergeConflicts, which returns information about conflicts in a merge between commits in a repository.
CreateUnreferencedMergeCommit, which creates an unreferenced commit between two branches or commits for the purpose of comparing them and identifying any potential conflicts.
DescribeMergeConflicts, which returns information about merge conflicts between the base, source, and destination versions of a file in a potential merge.
GetMergeCommit, which returns information about the merge between a source and destination commit.
GetMergeConflicts, which returns information about merge conflicts between the source and destination branch in a pull request.
GetMergeOptions, which returns information about the available merge options between two branches or commit specifiers.
MergeBranchesByFastForward, which merges two branches using the fast-forward merge option.
MergeBranchesBySquash, which merges two branches using the squash merge option.
MergeBranchesByThreeWay, which merges two branches using the three-way merge option.
Pull requests, by calling the following:
CreatePullRequest, which creates a pull request in a specified repository.
CreatePullRequestApprovalRule, which creates an approval rule for a specified pull request.
DeletePullRequestApprovalRule, which deletes an approval rule for a specified pull request.
DescribePullRequestEvents, which returns information about one or more pull request events.
EvaluatePullRequestApprovalRules, which evaluates whether a pull request has met all the conditions specified in its associated approval rules.
GetCommentsForPullRequest, which returns information about comments on a specified pull request.
GetPullRequest, which returns information about a specified pull request.
GetPullRequestApprovalStates, which returns information about the approval states for a specified pull request.
GetPullRequestOverrideState, which returns information about whether approval rules have been set aside (overriden) for a pull request, and if so, the Amazon Resource Name (ARN) of the user or identity that overrode the rules and their requirements for the pull request.
ListPullRequests, which lists all pull requests for a repository.
MergePullRequestByFastForward, which merges the source destination branch of a pull request into the specified destination branch for that pull request using the fast-forward merge option.
MergePullRequestBySquash, which merges the source destination branch of a pull request into the specified destination branch for that pull request using the squash merge option.
MergePullRequestByThreeWay, which merges the source destination branch of a pull request into the specified destination branch for that pull request using the three-way merge option.
OverridePullRequestApprovalRules, which sets aside all approval rule requirements for a pull request.
PostCommentForPullRequest, which posts a comment to a pull request at the specified line, file, or request.
UpdatePullRequestApprovalRuleContent, which updates the structure of an approval rule for a pull request.
UpdatePullRequestApprovalState, which updates the state of an approval on a pull request.
UpdatePullRequestDescription, which updates the description of a pull request.
UpdatePullRequestStatus, which updates the status of a pull request.
UpdatePullRequestTitle, which updates the title of a pull request.
Approval rule templates, by calling the following:
AssociateApprovalRuleTemplateWithRepository, which associates a template with a specified repository. After the template is associated with a repository, CodeCommit creates approval rules that match the template conditions on every pull request created in the specified repository.
BatchAssociateApprovalRuleTemplateWithRepositories, which associates a template with one or more specified repositories. After the template is associated with a repository, CodeCommit creates approval rules that match the template conditions on every pull request created in the specified repositories.
BatchDisassociateApprovalRuleTemplateFromRepositories, which removes the association between a template and specified repositories so that approval rules based on the template are not automatically created when pull requests are created in those repositories.
CreateApprovalRuleTemplate, which creates a template for approval rules that can then be associated with one or more repositories in your Amazon Web Services account.
DeleteApprovalRuleTemplate, which deletes the specified template. It does not remove approval rules on pull requests already created with the template.
DisassociateApprovalRuleTemplateFromRepository, which removes the association between a template and a repository so that approval rules based on the template are not automatically created when pull requests are created in the specified repository.
GetApprovalRuleTemplate, which returns information about an approval rule template.
ListApprovalRuleTemplates, which lists all approval rule templates in the Amazon Web Services Region in your Amazon Web Services account.
ListAssociatedApprovalRuleTemplatesForRepository, which lists all approval rule templates that are associated with a specified repository.
ListRepositoriesForApprovalRuleTemplate, which lists all repositories associated with the specified approval rule template.
UpdateApprovalRuleTemplateDescription, which updates the description of an approval rule template.
UpdateApprovalRuleTemplateName, which updates the name of an approval rule template.
UpdateApprovalRuleTemplateContent, which updates the content of an approval rule template.
Comments in a repository, by calling the following:
DeleteCommentContent, which deletes the content of a comment on a commit in a repository.
GetComment, which returns information about a comment on a commit.
GetCommentReactions, which returns information about emoji reactions to comments.
GetCommentsForComparedCommit, which returns information about comments on the comparison between two commit specifiers in a repository.
PostCommentForComparedCommit, which creates a comment on the comparison between two commit specifiers in a repository.
PostCommentReply, which creates a reply to a comment.
PutCommentReaction, which creates or updates an emoji reaction to a comment.
UpdateComment, which updates the content of a comment on a commit in a repository.
Tags used to tag resources in CodeCommit (not Git tags), by calling the following:
ListTagsForResource, which gets information about Amazon Web Servicestags for a specified Amazon Resource Name (ARN) in CodeCommit.
TagResource, which adds or updates tags for a resource in CodeCommit.
UntagResource, which removes tags for a resource in CodeCommit.
Triggers, by calling the following:
GetRepositoryTriggers, which returns information about triggers configured for a repository.
PutRepositoryTriggers, which replaces all triggers for a repository and can be used to create or delete triggers.
TestRepositoryTriggers, which tests the functionality of a repository trigger by sending data to the trigger target.
For information about how to use CodeCommit, see the CodeCommit User Guide.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Constructor and Description |
---|
AWSCodeCommitClient()
Deprecated.
|
AWSCodeCommitClient(AWSCredentials awsCredentials)
Deprecated.
use
AwsClientBuilder.withCredentials(AWSCredentialsProvider) for example:
AWSCodeCommitClientBuilder.standard().withCredentials(new AWSStaticCredentialsProvider(awsCredentials)).build(); |
AWSCodeCommitClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration)
|
AWSCodeCommitClient(AWSCredentialsProvider awsCredentialsProvider)
Deprecated.
|
AWSCodeCommitClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
|
AWSCodeCommitClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
RequestMetricCollector requestMetricCollector)
|
AWSCodeCommitClient(ClientConfiguration clientConfiguration)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
AssociateApprovalRuleTemplateWithRepositoryResult |
associateApprovalRuleTemplateWithRepository(AssociateApprovalRuleTemplateWithRepositoryRequest request)
Creates an association between an approval rule template and a specified repository.
|
BatchAssociateApprovalRuleTemplateWithRepositoriesResult |
batchAssociateApprovalRuleTemplateWithRepositories(BatchAssociateApprovalRuleTemplateWithRepositoriesRequest request)
Creates an association between an approval rule template and one or more specified repositories.
|
BatchDescribeMergeConflictsResult |
batchDescribeMergeConflicts(BatchDescribeMergeConflictsRequest request)
Returns information about one or more merge conflicts in the attempted merge of two commit specifiers using the
squash or three-way merge strategy.
|
BatchDisassociateApprovalRuleTemplateFromRepositoriesResult |
batchDisassociateApprovalRuleTemplateFromRepositories(BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest request)
Removes the association between an approval rule template and one or more specified repositories.
|
BatchGetCommitsResult |
batchGetCommits(BatchGetCommitsRequest request)
Returns information about the contents of one or more commits in a repository.
|
BatchGetRepositoriesResult |
batchGetRepositories(BatchGetRepositoriesRequest request)
Returns information about one or more repositories.
|
static AWSCodeCommitClientBuilder |
builder() |
CreateApprovalRuleTemplateResult |
createApprovalRuleTemplate(CreateApprovalRuleTemplateRequest request)
Creates a template for approval rules that can then be associated with one or more repositories in your Amazon
Web Services account.
|
CreateBranchResult |
createBranch(CreateBranchRequest request)
Creates a branch in a repository and points the branch to a commit.
|
CreateCommitResult |
createCommit(CreateCommitRequest request)
Creates a commit for a repository on the tip of a specified branch.
|
CreatePullRequestResult |
createPullRequest(CreatePullRequestRequest request)
Creates a pull request in the specified repository.
|
CreatePullRequestApprovalRuleResult |
createPullRequestApprovalRule(CreatePullRequestApprovalRuleRequest request)
Creates an approval rule for a pull request.
|
CreateRepositoryResult |
createRepository(CreateRepositoryRequest request)
Creates a new, empty repository.
|
CreateUnreferencedMergeCommitResult |
createUnreferencedMergeCommit(CreateUnreferencedMergeCommitRequest request)
Creates an unreferenced commit that represents the result of merging two branches using a specified merge
strategy.
|
DeleteApprovalRuleTemplateResult |
deleteApprovalRuleTemplate(DeleteApprovalRuleTemplateRequest request)
Deletes a specified approval rule template.
|
DeleteBranchResult |
deleteBranch(DeleteBranchRequest request)
Deletes a branch from a repository, unless that branch is the default branch for the repository.
|
DeleteCommentContentResult |
deleteCommentContent(DeleteCommentContentRequest request)
Deletes the content of a comment made on a change, file, or commit in a repository.
|
DeleteFileResult |
deleteFile(DeleteFileRequest request)
Deletes a specified file from a specified branch.
|
DeletePullRequestApprovalRuleResult |
deletePullRequestApprovalRule(DeletePullRequestApprovalRuleRequest request)
Deletes an approval rule from a specified pull request.
|
DeleteRepositoryResult |
deleteRepository(DeleteRepositoryRequest request)
Deletes a repository.
|
DescribeMergeConflictsResult |
describeMergeConflicts(DescribeMergeConflictsRequest request)
Returns information about one or more merge conflicts in the attempted merge of two commit specifiers using the
squash or three-way merge strategy.
|
DescribePullRequestEventsResult |
describePullRequestEvents(DescribePullRequestEventsRequest request)
Returns information about one or more pull request events.
|
DisassociateApprovalRuleTemplateFromRepositoryResult |
disassociateApprovalRuleTemplateFromRepository(DisassociateApprovalRuleTemplateFromRepositoryRequest request)
Removes the association between a template and a repository so that approval rules based on the template are not
automatically created when pull requests are created in the specified repository.
|
EvaluatePullRequestApprovalRulesResult |
evaluatePullRequestApprovalRules(EvaluatePullRequestApprovalRulesRequest request)
Evaluates whether a pull request has met all the conditions specified in its associated approval rules.
|
GetApprovalRuleTemplateResult |
getApprovalRuleTemplate(GetApprovalRuleTemplateRequest request)
Returns information about a specified approval rule template.
|
GetBlobResult |
getBlob(GetBlobRequest request)
Returns the base-64 encoded content of an individual blob in a repository.
|
GetBranchResult |
getBranch(GetBranchRequest request)
Returns information about a repository branch, including its name and the last commit ID.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful, request, typically used for debugging issues
where a service isn't acting as expected.
|
GetCommentResult |
getComment(GetCommentRequest request)
Returns the content of a comment made on a change, file, or commit in a repository.
|
GetCommentReactionsResult |
getCommentReactions(GetCommentReactionsRequest request)
Returns information about reactions to a specified comment ID.
|
GetCommentsForComparedCommitResult |
getCommentsForComparedCommit(GetCommentsForComparedCommitRequest request)
Returns information about comments made on the comparison between two commits.
|
GetCommentsForPullRequestResult |
getCommentsForPullRequest(GetCommentsForPullRequestRequest request)
Returns comments made on a pull request.
|
GetCommitResult |
getCommit(GetCommitRequest request)
Returns information about a commit, including commit message and committer information.
|
GetDifferencesResult |
getDifferences(GetDifferencesRequest request)
Returns information about the differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID, or
other fully qualified reference).
|
GetFileResult |
getFile(GetFileRequest request)
Returns the base-64 encoded contents of a specified file and its metadata.
|
GetFolderResult |
getFolder(GetFolderRequest request)
Returns the contents of a specified folder in a repository.
|
GetMergeCommitResult |
getMergeCommit(GetMergeCommitRequest request)
Returns information about a specified merge commit.
|
GetMergeConflictsResult |
getMergeConflicts(GetMergeConflictsRequest request)
Returns information about merge conflicts between the before and after commit IDs for a pull request in a
repository.
|
GetMergeOptionsResult |
getMergeOptions(GetMergeOptionsRequest request)
Returns information about the merge options available for merging two specified branches.
|
GetPullRequestResult |
getPullRequest(GetPullRequestRequest request)
Gets information about a pull request in a specified repository.
|
GetPullRequestApprovalStatesResult |
getPullRequestApprovalStates(GetPullRequestApprovalStatesRequest request)
Gets information about the approval states for a specified pull request.
|
GetPullRequestOverrideStateResult |
getPullRequestOverrideState(GetPullRequestOverrideStateRequest request)
Returns information about whether approval rules have been set aside (overridden) for a pull request, and if so,
the Amazon Resource Name (ARN) of the user or identity that overrode the rules and their requirements for the
pull request.
|
GetRepositoryResult |
getRepository(GetRepositoryRequest request)
Returns information about a repository.
|
GetRepositoryTriggersResult |
getRepositoryTriggers(GetRepositoryTriggersRequest request)
Gets information about triggers configured for a repository.
|
ListApprovalRuleTemplatesResult |
listApprovalRuleTemplates(ListApprovalRuleTemplatesRequest request)
Lists all approval rule templates in the specified Amazon Web Services Region in your Amazon Web Services
account.
|
ListAssociatedApprovalRuleTemplatesForRepositoryResult |
listAssociatedApprovalRuleTemplatesForRepository(ListAssociatedApprovalRuleTemplatesForRepositoryRequest request)
Lists all approval rule templates that are associated with a specified repository.
|
ListBranchesResult |
listBranches(ListBranchesRequest request)
Gets information about one or more branches in a repository.
|
ListFileCommitHistoryResult |
listFileCommitHistory(ListFileCommitHistoryRequest request)
Retrieves a list of commits and changes to a specified file.
|
ListPullRequestsResult |
listPullRequests(ListPullRequestsRequest request)
Returns a list of pull requests for a specified repository.
|
ListRepositoriesResult |
listRepositories(ListRepositoriesRequest request)
Gets information about one or more repositories.
|
ListRepositoriesForApprovalRuleTemplateResult |
listRepositoriesForApprovalRuleTemplate(ListRepositoriesForApprovalRuleTemplateRequest request)
Lists all repositories associated with the specified approval rule template.
|
ListTagsForResourceResult |
listTagsForResource(ListTagsForResourceRequest request)
Gets information about Amazon Web Servicestags for a specified Amazon Resource Name (ARN) in CodeCommit.
|
MergeBranchesByFastForwardResult |
mergeBranchesByFastForward(MergeBranchesByFastForwardRequest request)
Merges two branches using the fast-forward merge strategy.
|
MergeBranchesBySquashResult |
mergeBranchesBySquash(MergeBranchesBySquashRequest request)
Merges two branches using the squash merge strategy.
|
MergeBranchesByThreeWayResult |
mergeBranchesByThreeWay(MergeBranchesByThreeWayRequest request)
Merges two specified branches using the three-way merge strategy.
|
MergePullRequestByFastForwardResult |
mergePullRequestByFastForward(MergePullRequestByFastForwardRequest request)
Attempts to merge the source commit of a pull request into the specified destination branch for that pull request
at the specified commit using the fast-forward merge strategy.
|
MergePullRequestBySquashResult |
mergePullRequestBySquash(MergePullRequestBySquashRequest request)
Attempts to merge the source commit of a pull request into the specified destination branch for that pull request
at the specified commit using the squash merge strategy.
|
MergePullRequestByThreeWayResult |
mergePullRequestByThreeWay(MergePullRequestByThreeWayRequest request)
Attempts to merge the source commit of a pull request into the specified destination branch for that pull request
at the specified commit using the three-way merge strategy.
|
OverridePullRequestApprovalRulesResult |
overridePullRequestApprovalRules(OverridePullRequestApprovalRulesRequest request)
Sets aside (overrides) all approval rule requirements for a specified pull request.
|
PostCommentForComparedCommitResult |
postCommentForComparedCommit(PostCommentForComparedCommitRequest request)
Posts a comment on the comparison between two commits.
|
PostCommentForPullRequestResult |
postCommentForPullRequest(PostCommentForPullRequestRequest request)
Posts a comment on a pull request.
|
PostCommentReplyResult |
postCommentReply(PostCommentReplyRequest request)
Posts a comment in reply to an existing comment on a comparison between commits or a pull request.
|
PutCommentReactionResult |
putCommentReaction(PutCommentReactionRequest request)
Adds or updates a reaction to a specified comment for the user whose identity is used to make the request.
|
PutFileResult |
putFile(PutFileRequest request)
Adds or updates a file in a branch in an CodeCommit repository, and generates a commit for the addition in the
specified branch.
|
PutRepositoryTriggersResult |
putRepositoryTriggers(PutRepositoryTriggersRequest request)
Replaces all triggers for a repository.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held
open.
|
TagResourceResult |
tagResource(TagResourceRequest request)
Adds or updates tags for a resource in CodeCommit.
|
TestRepositoryTriggersResult |
testRepositoryTriggers(TestRepositoryTriggersRequest request)
Tests the functionality of repository triggers by sending information to the trigger target.
|
UntagResourceResult |
untagResource(UntagResourceRequest request)
Removes tags for a resource in CodeCommit.
|
UpdateApprovalRuleTemplateContentResult |
updateApprovalRuleTemplateContent(UpdateApprovalRuleTemplateContentRequest request)
Updates the content of an approval rule template.
|
UpdateApprovalRuleTemplateDescriptionResult |
updateApprovalRuleTemplateDescription(UpdateApprovalRuleTemplateDescriptionRequest request)
Updates the description for a specified approval rule template.
|
UpdateApprovalRuleTemplateNameResult |
updateApprovalRuleTemplateName(UpdateApprovalRuleTemplateNameRequest request)
Updates the name of a specified approval rule template.
|
UpdateCommentResult |
updateComment(UpdateCommentRequest request)
Replaces the contents of a comment.
|
UpdateDefaultBranchResult |
updateDefaultBranch(UpdateDefaultBranchRequest request)
Sets or changes the default branch name for the specified repository.
|
UpdatePullRequestApprovalRuleContentResult |
updatePullRequestApprovalRuleContent(UpdatePullRequestApprovalRuleContentRequest request)
Updates the structure of an approval rule created specifically for a pull request.
|
UpdatePullRequestApprovalStateResult |
updatePullRequestApprovalState(UpdatePullRequestApprovalStateRequest request)
Updates the state of a user's approval on a pull request.
|
UpdatePullRequestDescriptionResult |
updatePullRequestDescription(UpdatePullRequestDescriptionRequest request)
Replaces the contents of the description of a pull request.
|
UpdatePullRequestStatusResult |
updatePullRequestStatus(UpdatePullRequestStatusRequest request)
Updates the status of a pull request.
|
UpdatePullRequestTitleResult |
updatePullRequestTitle(UpdatePullRequestTitleRequest request)
Replaces the title of a pull request.
|
UpdateRepositoryDescriptionResult |
updateRepositoryDescription(UpdateRepositoryDescriptionRequest request)
Sets or changes the comment or description for a repository.
|
UpdateRepositoryEncryptionKeyResult |
updateRepositoryEncryptionKey(UpdateRepositoryEncryptionKeyRequest request)
Updates the Key Management Service encryption key used to encrypt and decrypt a CodeCommit repository.
|
UpdateRepositoryNameResult |
updateRepositoryName(UpdateRepositoryNameRequest request)
Renames a repository.
|
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setEndpoint, setRegion
@Deprecated public AWSCodeCommitClient()
AWSCodeCommitClientBuilder.defaultClient()
All service calls made using this new client object are blocking, and will not return until the service call completes.
DefaultAWSCredentialsProviderChain
@Deprecated public AWSCodeCommitClient(ClientConfiguration clientConfiguration)
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
clientConfiguration
- The client configuration options controlling how this client connects to CodeCommit (ex: proxy settings,
retry counts, etc.).DefaultAWSCredentialsProviderChain
@Deprecated public AWSCodeCommitClient(AWSCredentials awsCredentials)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
for example:
AWSCodeCommitClientBuilder.standard().withCredentials(new AWSStaticCredentialsProvider(awsCredentials)).build();
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.@Deprecated public AWSCodeCommitClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.clientConfiguration
- The client configuration options controlling how this client connects to CodeCommit (ex: proxy settings,
retry counts, etc.).@Deprecated public AWSCodeCommitClient(AWSCredentialsProvider awsCredentialsProvider)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.@Deprecated public AWSCodeCommitClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration
- The client configuration options controlling how this client connects to CodeCommit (ex: proxy settings,
retry counts, etc.).@Deprecated public AWSCodeCommitClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, RequestMetricCollector requestMetricCollector)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
and
AwsClientBuilder.withMetricsCollector(RequestMetricCollector)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration
- The client configuration options controlling how this client connects to CodeCommit (ex: proxy settings,
retry counts, etc.).requestMetricCollector
- optional request metric collectorpublic static AWSCodeCommitClientBuilder builder()
public AssociateApprovalRuleTemplateWithRepositoryResult associateApprovalRuleTemplateWithRepository(AssociateApprovalRuleTemplateWithRepositoryRequest request)
Creates an association between an approval rule template and a specified repository. Then, the next time a pull request is created in the repository where the destination reference (if specified) matches the destination reference (branch) for the pull request, an approval rule that matches the template conditions is automatically created for that pull request. If no destination references are specified in the template, an approval rule that matches the template contents is created for all pull requests in that repository.
associateApprovalRuleTemplateWithRepository
in interface AWSCodeCommit
associateApprovalRuleTemplateWithRepositoryRequest
- ApprovalRuleTemplateNameRequiredException
- An approval rule template name is required, but was not specified.InvalidApprovalRuleTemplateNameException
- The name of the approval rule template is not valid. Template names must be between 1 and 100 valid
characters in length. For more information about limits in CodeCommit, see Quotas in the
CodeCommit User Guide.ApprovalRuleTemplateDoesNotExistException
- The specified approval rule template does not exist. Verify that the name is correct and that you are
signed in to the Amazon Web Services Region where the template was created, and then try again.MaximumRuleTemplatesAssociatedWithRepositoryException
- The maximum number of approval rule templates for a repository has been exceeded. You cannot associate
more than 25 approval rule templates with a repository.RepositoryNameRequiredException
- A repository name is required, but was not specified.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryDoesNotExistException
- The specified repository does not exist.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public BatchAssociateApprovalRuleTemplateWithRepositoriesResult batchAssociateApprovalRuleTemplateWithRepositories(BatchAssociateApprovalRuleTemplateWithRepositoriesRequest request)
Creates an association between an approval rule template and one or more specified repositories.
batchAssociateApprovalRuleTemplateWithRepositories
in interface AWSCodeCommit
batchAssociateApprovalRuleTemplateWithRepositoriesRequest
- ApprovalRuleTemplateNameRequiredException
- An approval rule template name is required, but was not specified.InvalidApprovalRuleTemplateNameException
- The name of the approval rule template is not valid. Template names must be between 1 and 100 valid
characters in length. For more information about limits in CodeCommit, see Quotas in the
CodeCommit User Guide.ApprovalRuleTemplateDoesNotExistException
- The specified approval rule template does not exist. Verify that the name is correct and that you are
signed in to the Amazon Web Services Region where the template was created, and then try again.RepositoryNamesRequiredException
- At least one repository name object is required, but was not specified.MaximumRepositoryNamesExceededException
- The maximum number of allowed repository names was exceeded. Currently, this number is 100.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public BatchDescribeMergeConflictsResult batchDescribeMergeConflicts(BatchDescribeMergeConflictsRequest request)
Returns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy.
batchDescribeMergeConflicts
in interface AWSCodeCommit
batchDescribeMergeConflictsRequest
- RepositoryNameRequiredException
- A repository name is required, but was not specified.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryDoesNotExistException
- The specified repository does not exist.MergeOptionRequiredException
- A merge option or stategy is required, and none was provided.InvalidMergeOptionException
- The specified merge option is not valid for this operation. Not all merge strategies are supported for
all operations.InvalidContinuationTokenException
- The specified continuation token is not valid.CommitRequiredException
- A commit was not specified.CommitDoesNotExistException
- The specified commit does not exist or no commit was specified, and the specified repository has no
default branch.InvalidCommitException
- The specified commit is not valid.TipsDivergenceExceededException
- The divergence between the tips of the provided commit specifiers is too great to determine whether there
might be any merge conflicts. Locally compare the specifiers using git diff
or a diff tool.InvalidMaxConflictFilesException
- The specified value for the number of conflict files to return is not valid.InvalidMaxMergeHunksException
- The specified value for the number of merge hunks to return is not valid.InvalidConflictDetailLevelException
- The specified conflict detail level is not valid.InvalidConflictResolutionStrategyException
- The specified conflict resolution strategy is not valid.MaximumFileContentToLoadExceededException
- The number of files to load exceeds the allowed limit.MaximumItemsToCompareExceededException
- The number of items to compare between the source or destination branches and the merge base has exceeded
the maximum allowed.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public BatchDisassociateApprovalRuleTemplateFromRepositoriesResult batchDisassociateApprovalRuleTemplateFromRepositories(BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest request)
Removes the association between an approval rule template and one or more specified repositories.
batchDisassociateApprovalRuleTemplateFromRepositories
in interface AWSCodeCommit
batchDisassociateApprovalRuleTemplateFromRepositoriesRequest
- ApprovalRuleTemplateNameRequiredException
- An approval rule template name is required, but was not specified.InvalidApprovalRuleTemplateNameException
- The name of the approval rule template is not valid. Template names must be between 1 and 100 valid
characters in length. For more information about limits in CodeCommit, see Quotas in the
CodeCommit User Guide.ApprovalRuleTemplateDoesNotExistException
- The specified approval rule template does not exist. Verify that the name is correct and that you are
signed in to the Amazon Web Services Region where the template was created, and then try again.RepositoryNamesRequiredException
- At least one repository name object is required, but was not specified.MaximumRepositoryNamesExceededException
- The maximum number of allowed repository names was exceeded. Currently, this number is 100.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public BatchGetCommitsResult batchGetCommits(BatchGetCommitsRequest request)
Returns information about the contents of one or more commits in a repository.
batchGetCommits
in interface AWSCodeCommit
batchGetCommitsRequest
- CommitIdsListRequiredException
- A list of commit IDs is required, but was either not specified or the list was empty.CommitIdsLimitExceededException
- The maximum number of allowed commit IDs in a batch request is 100. Verify that your batch requests
contains no more than 100 commit IDs, and then try again.RepositoryNameRequiredException
- A repository name is required, but was not specified.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryDoesNotExistException
- The specified repository does not exist.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public BatchGetRepositoriesResult batchGetRepositories(BatchGetRepositoriesRequest request)
Returns information about one or more repositories.
The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a webpage.
batchGetRepositories
in interface AWSCodeCommit
batchGetRepositoriesRequest
- Represents the input of a batch get repositories operation.RepositoryNamesRequiredException
- At least one repository name object is required, but was not specified.MaximumRepositoryNamesExceededException
- The maximum number of allowed repository names was exceeded. Currently, this number is 100.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public CreateApprovalRuleTemplateResult createApprovalRuleTemplate(CreateApprovalRuleTemplateRequest request)
Creates a template for approval rules that can then be associated with one or more repositories in your Amazon Web Services account. When you associate a template with a repository, CodeCommit creates an approval rule that matches the conditions of the template for all pull requests that meet the conditions of the template. For more information, see AssociateApprovalRuleTemplateWithRepository.
createApprovalRuleTemplate
in interface AWSCodeCommit
createApprovalRuleTemplateRequest
- ApprovalRuleTemplateNameRequiredException
- An approval rule template name is required, but was not specified.InvalidApprovalRuleTemplateNameException
- The name of the approval rule template is not valid. Template names must be between 1 and 100 valid
characters in length. For more information about limits in CodeCommit, see Quotas in the
CodeCommit User Guide.ApprovalRuleTemplateNameAlreadyExistsException
- You cannot create an approval rule template with that name because a template with that name already
exists in this Amazon Web Services Region for your Amazon Web Services account. Approval rule template
names must be unique.ApprovalRuleTemplateContentRequiredException
- The content for the approval rule template is empty. You must provide some content for an approval rule
template. The content cannot be null.InvalidApprovalRuleTemplateContentException
- The content of the approval rule template is not valid.InvalidApprovalRuleTemplateDescriptionException
- The description for the approval rule template is not valid because it exceeds the maximum characters
allowed for a description. For more information about limits in CodeCommit, see Quotas in the
CodeCommit User Guide.NumberOfRuleTemplatesExceededException
- The maximum number of approval rule templates has been exceeded for this Amazon Web Services Region.public CreateBranchResult createBranch(CreateBranchRequest request)
Creates a branch in a repository and points the branch to a commit.
Calling the create branch operation does not set a repository's default branch. To do this, call the update default branch operation.
createBranch
in interface AWSCodeCommit
createBranchRequest
- Represents the input of a create branch operation.RepositoryNameRequiredException
- A repository name is required, but was not specified.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryDoesNotExistException
- The specified repository does not exist.BranchNameRequiredException
- A branch name is required, but was not specified.BranchNameExistsException
- Cannot create the branch with the specified name because the commit conflicts with an existing branch
with the same name. Branch names must be unique.InvalidBranchNameException
- The specified reference name is not valid.CommitIdRequiredException
- A commit ID was not specified.CommitDoesNotExistException
- The specified commit does not exist or no commit was specified, and the specified repository has no
default branch.InvalidCommitIdException
- The specified commit ID is not valid.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public CreateCommitResult createCommit(CreateCommitRequest request)
Creates a commit for a repository on the tip of a specified branch.
createCommit
in interface AWSCodeCommit
createCommitRequest
- RepositoryNameRequiredException
- A repository name is required, but was not specified.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryDoesNotExistException
- The specified repository does not exist.ParentCommitIdRequiredException
- A parent commit ID is required. To view the full commit ID of a branch in a repository, use
GetBranch or a Git command (for example, git pull or git log).InvalidParentCommitIdException
- The parent commit ID is not valid. The commit ID cannot be empty, and must match the head commit ID for
the branch of the repository where you want to add or update a file.ParentCommitDoesNotExistException
- The parent commit ID is not valid because it does not exist. The specified parent commit ID does not
exist in the specified branch of the repository.ParentCommitIdOutdatedException
- The file could not be added because the provided parent commit ID is not the current tip of the specified
branch. To view the full commit ID of the current head of the branch, use GetBranch.BranchNameRequiredException
- A branch name is required, but was not specified.InvalidBranchNameException
- The specified reference name is not valid.BranchDoesNotExistException
- The specified branch does not exist.BranchNameIsTagNameException
- The specified branch name is not valid because it is a tag name. Enter the name of a branch in the
repository. For a list of valid branch names, use ListBranches.FileEntryRequiredException
- The commit cannot be created because no files have been specified as added, updated, or changed (PutFile
or DeleteFile) for the commit.MaximumFileEntriesExceededException
- The number of specified files to change as part of this commit exceeds the maximum number of files that
can be changed in a single commit. Consider using a Git client for these changes.PutFileEntryConflictException
- The commit cannot be created because one or more files specified in the commit reference both a file and
a folder.SourceFileOrContentRequiredException
- The commit cannot be created because no source files or file content have been specified for the commit.FileContentAndSourceFileSpecifiedException
- The commit cannot be created because both a source file and file content have been specified for the same
file. You cannot provide both. Either specify a source file or provide the file content directly.PathRequiredException
- The folderPath for a location cannot be null.InvalidPathException
- The specified path is not valid.SamePathRequestException
- The commit cannot be created because one or more changes in this commit duplicate actions in the same
file path. For example, you cannot make the same delete request to the same file in the same file path
twice, or make a delete request and a move request to the same file as part of the same commit.FileDoesNotExistException
- The specified file does not exist. Verify that you have used the correct file name, full path, and
extension.FileContentSizeLimitExceededException
- The file cannot be added because it is too large. The maximum file size is 6 MB, and the combined file
content change size is 7 MB. Consider making these changes using a Git client.FolderContentSizeLimitExceededException
- The commit cannot be created because at least one of the overall changes in the commit results in a
folder whose contents exceed the limit of 6 MB. Either reduce the number and size of your changes, or
split the changes across multiple folders.InvalidDeletionParameterException
- The specified deletion parameter is not valid.RestrictedSourceFileException
- The commit cannot be created because one of the changes specifies copying or moving a .gitkeep file.FileModeRequiredException
- The commit cannot be created because no file mode has been specified. A file mode is required to update
mode permissions for a file.InvalidFileModeException
- The specified file mode permission is not valid. For a list of valid file mode permissions, see
PutFile.NameLengthExceededException
- The user name is not valid because it has exceeded the character limit for author names.InvalidEmailException
- The specified email address either contains one or more characters that are not allowed, or it exceeds
the maximum number of characters allowed for an email address.CommitMessageLengthExceededException
- The commit message is too long. Provide a shorter string.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.NoChangeException
- The commit cannot be created because no changes will be made to the repository as a result of this
commit. A commit must contain at least one change.FileNameConflictsWithDirectoryNameException
- A file cannot be added to the repository because the specified file name has the same name as a directory
in this repository. Either provide another name for the file, or add the file in a directory that does
not match the file name.DirectoryNameConflictsWithFileNameException
- A file cannot be added to the repository because the specified path name has the same name as a file that
already exists in this repository. Either provide a different name for the file, or specify a different
path for the file.FilePathConflictsWithSubmodulePathException
- The commit cannot be created because a specified file path points to a submodule. Verify that the
destination files have valid file paths that do not point to a submodule.public CreatePullRequestResult createPullRequest(CreatePullRequestRequest request)
Creates a pull request in the specified repository.
createPullRequest
in interface AWSCodeCommit
createPullRequestRequest
- RepositoryNameRequiredException
- A repository name is required, but was not specified.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryDoesNotExistException
- The specified repository does not exist.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.ClientRequestTokenRequiredException
- A client request token is required. A client request token is an unique, client-generated idempotency
token that, when provided in a request, ensures the request cannot be repeated with a changed parameter.
If a request is received with the same parameters and a token is included, the request returns
information about the initial request that used that token.InvalidClientRequestTokenException
- The client request token is not valid.IdempotencyParameterMismatchException
- The client request token is not valid. Either the token is not in a valid format, or the token has been
used in a previous request and cannot be reused.ReferenceNameRequiredException
- A reference name is required, but none was provided.InvalidReferenceNameException
- The specified reference name format is not valid. Reference names must conform to the Git references
format (for example, refs/heads/main). For more information, see Git Internals - Git References or
consult your Git documentation.ReferenceDoesNotExistException
- The specified reference does not exist. You must provide a full commit ID.ReferenceTypeNotSupportedException
- The specified reference is not a supported type.TitleRequiredException
- A pull request title is required. It cannot be empty or null.InvalidTitleException
- The title of the pull request is not valid. Pull request titles cannot exceed 100 characters in length.InvalidDescriptionException
- The pull request description is not valid. Descriptions cannot be more than 1,000 characters.TargetsRequiredException
- An array of target objects is required. It cannot be empty or null.InvalidTargetsException
- The targets for the pull request is not valid or not in a valid format. Targets are a list of target
objects. Each target object must contain the full values for the repository name, source branch, and
destination branch for a pull request.TargetRequiredException
- A pull request target is required. It cannot be empty or null. A pull request target must contain the
full values for the repository name, source branch, and destination branch for the pull request.InvalidTargetException
- The target for the pull request is not valid. A target must contain the full values for the repository
name, source branch, and destination branch for the pull request.MultipleRepositoriesInPullRequestException
- You cannot include more than one repository in a pull request. Make sure you have specified only one
repository name in your request, and then try again.MaximumOpenPullRequestsExceededException
- You cannot create the pull request because the repository has too many open pull requests. The maximum
number of open pull requests for a repository is 1,000. Close one or more open pull requests, and then
try again.SourceAndDestinationAreSameException
- The source branch and destination branch for the pull request are the same. You must specify different
branches for the source and destination.public CreatePullRequestApprovalRuleResult createPullRequestApprovalRule(CreatePullRequestApprovalRuleRequest request)
Creates an approval rule for a pull request.
createPullRequestApprovalRule
in interface AWSCodeCommit
createPullRequestApprovalRuleRequest
- ApprovalRuleNameRequiredException
- An approval rule name is required, but was not specified.InvalidApprovalRuleNameException
- The name for the approval rule is not valid.ApprovalRuleNameAlreadyExistsException
- An approval rule with that name already exists. Approval rule names must be unique within the scope of a
pull request.ApprovalRuleContentRequiredException
- The content for the approval rule is empty. You must provide some content for an approval rule. The
content cannot be null.InvalidApprovalRuleContentException
- The content for the approval rule is not valid.NumberOfRulesExceededException
- The approval rule cannot be added. The pull request has the maximum number of approval rules associated
with it.PullRequestDoesNotExistException
- The pull request ID could not be found. Make sure that you have specified the correct repository name and
pull request ID, and then try again.InvalidPullRequestIdException
- The pull request ID is not valid. Make sure that you have provided the full ID and that the pull request
is in the specified repository, and then try again.PullRequestIdRequiredException
- A pull request ID is required, but none was provided.PullRequestAlreadyClosedException
- The pull request status cannot be updated because it is already closed.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public CreateRepositoryResult createRepository(CreateRepositoryRequest request)
Creates a new, empty repository.
createRepository
in interface AWSCodeCommit
createRepositoryRequest
- Represents the input of a create repository operation.RepositoryNameExistsException
- The specified repository name already exists.RepositoryNameRequiredException
- A repository name is required, but was not specified.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
InvalidRepositoryDescriptionException
- The specified repository description is not valid.RepositoryLimitExceededException
- A repository resource limit was exceeded.OperationNotAllowedException
- The requested action is not allowed.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.EncryptionKeyInvalidIdException
- The Key Management Service encryption key is not valid.EncryptionKeyInvalidUsageException
- A KMS encryption key was used to try and encrypt or decrypt a repository, but either the repository or
the key was not in a valid state to support the operation.InvalidTagsMapException
- The map of tags is not valid.TooManyTagsException
- The maximum number of tags for an CodeCommit resource has been exceeded.InvalidSystemTagUsageException
- The specified tag is not valid. Key names cannot be prefixed with aws:.TagPolicyException
- The tag policy is not valid.public CreateUnreferencedMergeCommitResult createUnreferencedMergeCommit(CreateUnreferencedMergeCommitRequest request)
Creates an unreferenced commit that represents the result of merging two branches using a specified merge strategy. This can help you determine the outcome of a potential merge. This API cannot be used with the fast-forward merge strategy because that strategy does not create a merge commit.
This unreferenced merge commit can only be accessed using the GetCommit API or through git commands such as git fetch. To retrieve this commit, you must specify its commit ID or otherwise reference it.
createUnreferencedMergeCommit
in interface AWSCodeCommit
createUnreferencedMergeCommitRequest
- RepositoryNameRequiredException
- A repository name is required, but was not specified.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryDoesNotExistException
- The specified repository does not exist.TipsDivergenceExceededException
- The divergence between the tips of the provided commit specifiers is too great to determine whether there
might be any merge conflicts. Locally compare the specifiers using git diff
or a diff tool.CommitRequiredException
- A commit was not specified.InvalidCommitException
- The specified commit is not valid.CommitDoesNotExistException
- The specified commit does not exist or no commit was specified, and the specified repository has no
default branch.MergeOptionRequiredException
- A merge option or stategy is required, and none was provided.InvalidMergeOptionException
- The specified merge option is not valid for this operation. Not all merge strategies are supported for
all operations.InvalidConflictDetailLevelException
- The specified conflict detail level is not valid.InvalidConflictResolutionStrategyException
- The specified conflict resolution strategy is not valid.InvalidConflictResolutionException
- The specified conflict resolution list is not valid.ManualMergeRequiredException
- The pull request cannot be merged automatically into the destination branch. You must manually merge the
branches and resolve any conflicts.MaximumConflictResolutionEntriesExceededException
- The number of allowed conflict resolution entries was exceeded.MultipleConflictResolutionEntriesException
- More than one conflict resolution entries exists for the conflict. A conflict can have only one conflict
resolution entry.ReplacementTypeRequiredException
- A replacement type is required.InvalidReplacementTypeException
- Automerge was specified for resolving the conflict, but the specified replacement type is not valid.ReplacementContentRequiredException
- USE_NEW_CONTENT was specified, but no replacement content has been provided.InvalidReplacementContentException
- Automerge was specified for resolving the conflict, but the replacement type is not valid or content is
missing.PathRequiredException
- The folderPath for a location cannot be null.InvalidPathException
- The specified path is not valid.FileContentSizeLimitExceededException
- The file cannot be added because it is too large. The maximum file size is 6 MB, and the combined file
content change size is 7 MB. Consider making these changes using a Git client.FolderContentSizeLimitExceededException
- The commit cannot be created because at least one of the overall changes in the commit results in a
folder whose contents exceed the limit of 6 MB. Either reduce the number and size of your changes, or
split the changes across multiple folders.MaximumFileContentToLoadExceededException
- The number of files to load exceeds the allowed limit.MaximumItemsToCompareExceededException
- The number of items to compare between the source or destination branches and the merge base has exceeded
the maximum allowed.ConcurrentReferenceUpdateException
- The merge cannot be completed because the target branch has been modified. Another user might have
modified the target branch while the merge was in progress. Wait a few minutes, and then try again.FileModeRequiredException
- The commit cannot be created because no file mode has been specified. A file mode is required to update
mode permissions for a file.InvalidFileModeException
- The specified file mode permission is not valid. For a list of valid file mode permissions, see
PutFile.NameLengthExceededException
- The user name is not valid because it has exceeded the character limit for author names.InvalidEmailException
- The specified email address either contains one or more characters that are not allowed, or it exceeds
the maximum number of characters allowed for an email address.CommitMessageLengthExceededException
- The commit message is too long. Provide a shorter string.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public DeleteApprovalRuleTemplateResult deleteApprovalRuleTemplate(DeleteApprovalRuleTemplateRequest request)
Deletes a specified approval rule template. Deleting a template does not remove approval rules on pull requests already created with the template.
deleteApprovalRuleTemplate
in interface AWSCodeCommit
deleteApprovalRuleTemplateRequest
- ApprovalRuleTemplateNameRequiredException
- An approval rule template name is required, but was not specified.InvalidApprovalRuleTemplateNameException
- The name of the approval rule template is not valid. Template names must be between 1 and 100 valid
characters in length. For more information about limits in CodeCommit, see Quotas in the
CodeCommit User Guide.ApprovalRuleTemplateInUseException
- The approval rule template is associated with one or more repositories. You cannot delete a template that
is associated with a repository. Remove all associations, and then try again.public DeleteBranchResult deleteBranch(DeleteBranchRequest request)
Deletes a branch from a repository, unless that branch is the default branch for the repository.
deleteBranch
in interface AWSCodeCommit
deleteBranchRequest
- Represents the input of a delete branch operation.RepositoryNameRequiredException
- A repository name is required, but was not specified.RepositoryDoesNotExistException
- The specified repository does not exist.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
BranchNameRequiredException
- A branch name is required, but was not specified.InvalidBranchNameException
- The specified reference name is not valid.DefaultBranchCannotBeDeletedException
- The specified branch is the default branch for the repository, and cannot be deleted. To delete this
branch, you must first set another branch as the default branch.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public DeleteCommentContentResult deleteCommentContent(DeleteCommentContentRequest request)
Deletes the content of a comment made on a change, file, or commit in a repository.
deleteCommentContent
in interface AWSCodeCommit
deleteCommentContentRequest
- CommentDoesNotExistException
- No comment exists with the provided ID. Verify that you have used the correct ID, and then try again.CommentIdRequiredException
- The comment ID is missing or null. A comment ID is required.InvalidCommentIdException
- The comment ID is not in a valid format. Make sure that you have provided the full comment ID.CommentDeletedException
- This comment has already been deleted. You cannot edit or delete a deleted comment.public DeleteFileResult deleteFile(DeleteFileRequest request)
Deletes a specified file from a specified branch. A commit is created on the branch that contains the revision. The file still exists in the commits earlier to the commit that contains the deletion.
deleteFile
in interface AWSCodeCommit
deleteFileRequest
- RepositoryNameRequiredException
- A repository name is required, but was not specified.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryDoesNotExistException
- The specified repository does not exist.ParentCommitIdRequiredException
- A parent commit ID is required. To view the full commit ID of a branch in a repository, use
GetBranch or a Git command (for example, git pull or git log).InvalidParentCommitIdException
- The parent commit ID is not valid. The commit ID cannot be empty, and must match the head commit ID for
the branch of the repository where you want to add or update a file.ParentCommitDoesNotExistException
- The parent commit ID is not valid because it does not exist. The specified parent commit ID does not
exist in the specified branch of the repository.ParentCommitIdOutdatedException
- The file could not be added because the provided parent commit ID is not the current tip of the specified
branch. To view the full commit ID of the current head of the branch, use GetBranch.PathRequiredException
- The folderPath for a location cannot be null.InvalidPathException
- The specified path is not valid.FileDoesNotExistException
- The specified file does not exist. Verify that you have used the correct file name, full path, and
extension.BranchNameRequiredException
- A branch name is required, but was not specified.InvalidBranchNameException
- The specified reference name is not valid.BranchDoesNotExistException
- The specified branch does not exist.BranchNameIsTagNameException
- The specified branch name is not valid because it is a tag name. Enter the name of a branch in the
repository. For a list of valid branch names, use ListBranches.NameLengthExceededException
- The user name is not valid because it has exceeded the character limit for author names.InvalidEmailException
- The specified email address either contains one or more characters that are not allowed, or it exceeds
the maximum number of characters allowed for an email address.CommitMessageLengthExceededException
- The commit message is too long. Provide a shorter string.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public DeletePullRequestApprovalRuleResult deletePullRequestApprovalRule(DeletePullRequestApprovalRuleRequest request)
Deletes an approval rule from a specified pull request. Approval rules can be deleted from a pull request only if the pull request is open, and if the approval rule was created specifically for a pull request and not generated from an approval rule template associated with the repository where the pull request was created. You cannot delete an approval rule from a merged or closed pull request.
deletePullRequestApprovalRule
in interface AWSCodeCommit
deletePullRequestApprovalRuleRequest
- PullRequestDoesNotExistException
- The pull request ID could not be found. Make sure that you have specified the correct repository name and
pull request ID, and then try again.InvalidPullRequestIdException
- The pull request ID is not valid. Make sure that you have provided the full ID and that the pull request
is in the specified repository, and then try again.PullRequestIdRequiredException
- A pull request ID is required, but none was provided.PullRequestAlreadyClosedException
- The pull request status cannot be updated because it is already closed.ApprovalRuleNameRequiredException
- An approval rule name is required, but was not specified.InvalidApprovalRuleNameException
- The name for the approval rule is not valid.CannotDeleteApprovalRuleFromTemplateException
- The approval rule cannot be deleted from the pull request because it was created by an approval rule
template and applied to the pull request automatically.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public DeleteRepositoryResult deleteRepository(DeleteRepositoryRequest request)
Deletes a repository. If a specified repository was already deleted, a null repository ID is returned.
Deleting a repository also deletes all associated objects and metadata. After a repository is deleted, all future push calls to the deleted repository fail.
deleteRepository
in interface AWSCodeCommit
deleteRepositoryRequest
- Represents the input of a delete repository operation.RepositoryNameRequiredException
- A repository name is required, but was not specified.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public DescribeMergeConflictsResult describeMergeConflicts(DescribeMergeConflictsRequest request)
Returns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy. If the merge option for the attempted merge is specified as FAST_FORWARD_MERGE, an exception is thrown.
describeMergeConflicts
in interface AWSCodeCommit
describeMergeConflictsRequest
- RepositoryNameRequiredException
- A repository name is required, but was not specified.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryDoesNotExistException
- The specified repository does not exist.MergeOptionRequiredException
- A merge option or stategy is required, and none was provided.InvalidMergeOptionException
- The specified merge option is not valid for this operation. Not all merge strategies are supported for
all operations.InvalidContinuationTokenException
- The specified continuation token is not valid.CommitRequiredException
- A commit was not specified.CommitDoesNotExistException
- The specified commit does not exist or no commit was specified, and the specified repository has no
default branch.InvalidCommitException
- The specified commit is not valid.TipsDivergenceExceededException
- The divergence between the tips of the provided commit specifiers is too great to determine whether there
might be any merge conflicts. Locally compare the specifiers using git diff
or a diff tool.PathRequiredException
- The folderPath for a location cannot be null.InvalidPathException
- The specified path is not valid.FileDoesNotExistException
- The specified file does not exist. Verify that you have used the correct file name, full path, and
extension.InvalidMaxMergeHunksException
- The specified value for the number of merge hunks to return is not valid.InvalidConflictDetailLevelException
- The specified conflict detail level is not valid.InvalidConflictResolutionStrategyException
- The specified conflict resolution strategy is not valid.MaximumFileContentToLoadExceededException
- The number of files to load exceeds the allowed limit.MaximumItemsToCompareExceededException
- The number of items to compare between the source or destination branches and the merge base has exceeded
the maximum allowed.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public DescribePullRequestEventsResult describePullRequestEvents(DescribePullRequestEventsRequest request)
Returns information about one or more pull request events.
describePullRequestEvents
in interface AWSCodeCommit
describePullRequestEventsRequest
- PullRequestDoesNotExistException
- The pull request ID could not be found. Make sure that you have specified the correct repository name and
pull request ID, and then try again.InvalidPullRequestIdException
- The pull request ID is not valid. Make sure that you have provided the full ID and that the pull request
is in the specified repository, and then try again.PullRequestIdRequiredException
- A pull request ID is required, but none was provided.InvalidPullRequestEventTypeException
- The pull request event type is not valid.InvalidActorArnException
- The Amazon Resource Name (ARN) is not valid. Make sure that you have provided the full ARN for the user
who initiated the change for the pull request, and then try again.ActorDoesNotExistException
- The specified Amazon Resource Name (ARN) does not exist in the Amazon Web Services account.InvalidMaxResultsException
- The specified number of maximum results is not valid.InvalidContinuationTokenException
- The specified continuation token is not valid.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public DisassociateApprovalRuleTemplateFromRepositoryResult disassociateApprovalRuleTemplateFromRepository(DisassociateApprovalRuleTemplateFromRepositoryRequest request)
Removes the association between a template and a repository so that approval rules based on the template are not automatically created when pull requests are created in the specified repository. This does not delete any approval rules previously created for pull requests through the template association.
disassociateApprovalRuleTemplateFromRepository
in interface AWSCodeCommit
disassociateApprovalRuleTemplateFromRepositoryRequest
- ApprovalRuleTemplateNameRequiredException
- An approval rule template name is required, but was not specified.InvalidApprovalRuleTemplateNameException
- The name of the approval rule template is not valid. Template names must be between 1 and 100 valid
characters in length. For more information about limits in CodeCommit, see Quotas in the
CodeCommit User Guide.ApprovalRuleTemplateDoesNotExistException
- The specified approval rule template does not exist. Verify that the name is correct and that you are
signed in to the Amazon Web Services Region where the template was created, and then try again.RepositoryNameRequiredException
- A repository name is required, but was not specified.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryDoesNotExistException
- The specified repository does not exist.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public EvaluatePullRequestApprovalRulesResult evaluatePullRequestApprovalRules(EvaluatePullRequestApprovalRulesRequest request)
Evaluates whether a pull request has met all the conditions specified in its associated approval rules.
evaluatePullRequestApprovalRules
in interface AWSCodeCommit
evaluatePullRequestApprovalRulesRequest
- PullRequestDoesNotExistException
- The pull request ID could not be found. Make sure that you have specified the correct repository name and
pull request ID, and then try again.InvalidPullRequestIdException
- The pull request ID is not valid. Make sure that you have provided the full ID and that the pull request
is in the specified repository, and then try again.PullRequestIdRequiredException
- A pull request ID is required, but none was provided.InvalidRevisionIdException
- The revision ID is not valid. Use GetPullRequest to determine the value.RevisionIdRequiredException
- A revision ID is required, but was not provided.RevisionNotCurrentException
- The revision ID provided in the request does not match the current revision ID. Use GetPullRequest to
retrieve the current revision ID.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public GetApprovalRuleTemplateResult getApprovalRuleTemplate(GetApprovalRuleTemplateRequest request)
Returns information about a specified approval rule template.
getApprovalRuleTemplate
in interface AWSCodeCommit
getApprovalRuleTemplateRequest
- ApprovalRuleTemplateNameRequiredException
- An approval rule template name is required, but was not specified.InvalidApprovalRuleTemplateNameException
- The name of the approval rule template is not valid. Template names must be between 1 and 100 valid
characters in length. For more information about limits in CodeCommit, see Quotas in the
CodeCommit User Guide.ApprovalRuleTemplateDoesNotExistException
- The specified approval rule template does not exist. Verify that the name is correct and that you are
signed in to the Amazon Web Services Region where the template was created, and then try again.public GetBlobResult getBlob(GetBlobRequest request)
Returns the base-64 encoded content of an individual blob in a repository.
getBlob
in interface AWSCodeCommit
getBlobRequest
- Represents the input of a get blob operation.RepositoryNameRequiredException
- A repository name is required, but was not specified.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryDoesNotExistException
- The specified repository does not exist.BlobIdRequiredException
- A blob ID is required, but was not specified.InvalidBlobIdException
- The specified blob is not valid.BlobIdDoesNotExistException
- The specified blob does not exist.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.FileTooLargeException
- The specified file exceeds the file size limit for CodeCommit. For more information about limits in
CodeCommit, see Quotas
in the CodeCommit User Guide.public GetBranchResult getBranch(GetBranchRequest request)
Returns information about a repository branch, including its name and the last commit ID.
getBranch
in interface AWSCodeCommit
getBranchRequest
- Represents the input of a get branch operation.RepositoryNameRequiredException
- A repository name is required, but was not specified.RepositoryDoesNotExistException
- The specified repository does not exist.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
BranchNameRequiredException
- A branch name is required, but was not specified.InvalidBranchNameException
- The specified reference name is not valid.BranchDoesNotExistException
- The specified branch does not exist.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public GetCommentResult getComment(GetCommentRequest request)
Returns the content of a comment made on a change, file, or commit in a repository.
Reaction counts might include numbers from user identities who were deleted after the reaction was made. For a count of reactions from active identities, use GetCommentReactions.
getComment
in interface AWSCodeCommit
getCommentRequest
- CommentDoesNotExistException
- No comment exists with the provided ID. Verify that you have used the correct ID, and then try again.CommentDeletedException
- This comment has already been deleted. You cannot edit or delete a deleted comment.CommentIdRequiredException
- The comment ID is missing or null. A comment ID is required.InvalidCommentIdException
- The comment ID is not in a valid format. Make sure that you have provided the full comment ID.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public GetCommentReactionsResult getCommentReactions(GetCommentReactionsRequest request)
Returns information about reactions to a specified comment ID. Reactions from users who have been deleted will not be included in the count.
getCommentReactions
in interface AWSCodeCommit
getCommentReactionsRequest
- CommentDoesNotExistException
- No comment exists with the provided ID. Verify that you have used the correct ID, and then try again.CommentIdRequiredException
- The comment ID is missing or null. A comment ID is required.InvalidCommentIdException
- The comment ID is not in a valid format. Make sure that you have provided the full comment ID.InvalidReactionUserArnException
- The Amazon Resource Name (ARN) of the user or identity is not valid.InvalidMaxResultsException
- The specified number of maximum results is not valid.InvalidContinuationTokenException
- The specified continuation token is not valid.CommentDeletedException
- This comment has already been deleted. You cannot edit or delete a deleted comment.public GetCommentsForComparedCommitResult getCommentsForComparedCommit(GetCommentsForComparedCommitRequest request)
Returns information about comments made on the comparison between two commits.
Reaction counts might include numbers from user identities who were deleted after the reaction was made. For a count of reactions from active identities, use GetCommentReactions.
getCommentsForComparedCommit
in interface AWSCodeCommit
getCommentsForComparedCommitRequest
- RepositoryNameRequiredException
- A repository name is required, but was not specified.RepositoryDoesNotExistException
- The specified repository does not exist.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
CommitIdRequiredException
- A commit ID was not specified.InvalidCommitIdException
- The specified commit ID is not valid.CommitDoesNotExistException
- The specified commit does not exist or no commit was specified, and the specified repository has no
default branch.InvalidMaxResultsException
- The specified number of maximum results is not valid.InvalidContinuationTokenException
- The specified continuation token is not valid.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public GetCommentsForPullRequestResult getCommentsForPullRequest(GetCommentsForPullRequestRequest request)
Returns comments made on a pull request.
Reaction counts might include numbers from user identities who were deleted after the reaction was made. For a count of reactions from active identities, use GetCommentReactions.
getCommentsForPullRequest
in interface AWSCodeCommit
getCommentsForPullRequestRequest
- PullRequestIdRequiredException
- A pull request ID is required, but none was provided.PullRequestDoesNotExistException
- The pull request ID could not be found. Make sure that you have specified the correct repository name and
pull request ID, and then try again.InvalidPullRequestIdException
- The pull request ID is not valid. Make sure that you have provided the full ID and that the pull request
is in the specified repository, and then try again.RepositoryNameRequiredException
- A repository name is required, but was not specified.RepositoryDoesNotExistException
- The specified repository does not exist.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
CommitIdRequiredException
- A commit ID was not specified.InvalidCommitIdException
- The specified commit ID is not valid.CommitDoesNotExistException
- The specified commit does not exist or no commit was specified, and the specified repository has no
default branch.InvalidMaxResultsException
- The specified number of maximum results is not valid.InvalidContinuationTokenException
- The specified continuation token is not valid.RepositoryNotAssociatedWithPullRequestException
- The repository does not contain any pull requests with that pull request ID. Use GetPullRequest to verify
the correct repository name for the pull request ID.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public GetCommitResult getCommit(GetCommitRequest request)
Returns information about a commit, including commit message and committer information.
getCommit
in interface AWSCodeCommit
getCommitRequest
- Represents the input of a get commit operation.RepositoryNameRequiredException
- A repository name is required, but was not specified.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryDoesNotExistException
- The specified repository does not exist.CommitIdRequiredException
- A commit ID was not specified.InvalidCommitIdException
- The specified commit ID is not valid.CommitIdDoesNotExistException
- The specified commit ID does not exist.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public GetDifferencesResult getDifferences(GetDifferencesRequest request)
Returns information about the differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID, or other fully qualified reference). Results can be limited to a specified path.
getDifferences
in interface AWSCodeCommit
getDifferencesRequest
- RepositoryNameRequiredException
- A repository name is required, but was not specified.RepositoryDoesNotExistException
- The specified repository does not exist.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
InvalidContinuationTokenException
- The specified continuation token is not valid.InvalidMaxResultsException
- The specified number of maximum results is not valid.InvalidCommitIdException
- The specified commit ID is not valid.CommitRequiredException
- A commit was not specified.InvalidCommitException
- The specified commit is not valid.CommitDoesNotExistException
- The specified commit does not exist or no commit was specified, and the specified repository has no
default branch.InvalidPathException
- The specified path is not valid.PathDoesNotExistException
- The specified path does not exist.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public GetFileResult getFile(GetFileRequest request)
Returns the base-64 encoded contents of a specified file and its metadata.
getFile
in interface AWSCodeCommit
getFileRequest
- RepositoryNameRequiredException
- A repository name is required, but was not specified.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryDoesNotExistException
- The specified repository does not exist.InvalidCommitException
- The specified commit is not valid.CommitDoesNotExistException
- The specified commit does not exist or no commit was specified, and the specified repository has no
default branch.PathRequiredException
- The folderPath for a location cannot be null.InvalidPathException
- The specified path is not valid.FileDoesNotExistException
- The specified file does not exist. Verify that you have used the correct file name, full path, and
extension.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.FileTooLargeException
- The specified file exceeds the file size limit for CodeCommit. For more information about limits in
CodeCommit, see Quotas
in the CodeCommit User Guide.public GetFolderResult getFolder(GetFolderRequest request)
Returns the contents of a specified folder in a repository.
getFolder
in interface AWSCodeCommit
getFolderRequest
- RepositoryNameRequiredException
- A repository name is required, but was not specified.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryDoesNotExistException
- The specified repository does not exist.InvalidCommitException
- The specified commit is not valid.CommitDoesNotExistException
- The specified commit does not exist or no commit was specified, and the specified repository has no
default branch.PathRequiredException
- The folderPath for a location cannot be null.InvalidPathException
- The specified path is not valid.FolderDoesNotExistException
- The specified folder does not exist. Either the folder name is not correct, or you did not enter the full
path to the folder.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public GetMergeCommitResult getMergeCommit(GetMergeCommitRequest request)
Returns information about a specified merge commit.
getMergeCommit
in interface AWSCodeCommit
getMergeCommitRequest
- RepositoryNameRequiredException
- A repository name is required, but was not specified.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryDoesNotExistException
- The specified repository does not exist.CommitRequiredException
- A commit was not specified.InvalidCommitException
- The specified commit is not valid.CommitDoesNotExistException
- The specified commit does not exist or no commit was specified, and the specified repository has no
default branch.InvalidConflictDetailLevelException
- The specified conflict detail level is not valid.InvalidConflictResolutionStrategyException
- The specified conflict resolution strategy is not valid.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public GetMergeConflictsResult getMergeConflicts(GetMergeConflictsRequest request)
Returns information about merge conflicts between the before and after commit IDs for a pull request in a repository.
getMergeConflicts
in interface AWSCodeCommit
getMergeConflictsRequest
- RepositoryNameRequiredException
- A repository name is required, but was not specified.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryDoesNotExistException
- The specified repository does not exist.MergeOptionRequiredException
- A merge option or stategy is required, and none was provided.InvalidMergeOptionException
- The specified merge option is not valid for this operation. Not all merge strategies are supported for
all operations.InvalidContinuationTokenException
- The specified continuation token is not valid.CommitRequiredException
- A commit was not specified.CommitDoesNotExistException
- The specified commit does not exist or no commit was specified, and the specified repository has no
default branch.InvalidCommitException
- The specified commit is not valid.TipsDivergenceExceededException
- The divergence between the tips of the provided commit specifiers is too great to determine whether there
might be any merge conflicts. Locally compare the specifiers using git diff
or a diff tool.InvalidMaxConflictFilesException
- The specified value for the number of conflict files to return is not valid.InvalidConflictDetailLevelException
- The specified conflict detail level is not valid.InvalidDestinationCommitSpecifierException
- The destination commit specifier is not valid. You must provide a valid branch name, tag, or full commit
ID.InvalidSourceCommitSpecifierException
- The source commit specifier is not valid. You must provide a valid branch name, tag, or full commit ID.InvalidConflictResolutionStrategyException
- The specified conflict resolution strategy is not valid.MaximumFileContentToLoadExceededException
- The number of files to load exceeds the allowed limit.MaximumItemsToCompareExceededException
- The number of items to compare between the source or destination branches and the merge base has exceeded
the maximum allowed.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public GetMergeOptionsResult getMergeOptions(GetMergeOptionsRequest request)
Returns information about the merge options available for merging two specified branches. For details about why a merge option is not available, use GetMergeConflicts or DescribeMergeConflicts.
getMergeOptions
in interface AWSCodeCommit
getMergeOptionsRequest
- RepositoryNameRequiredException
- A repository name is required, but was not specified.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryDoesNotExistException
- The specified repository does not exist.CommitRequiredException
- A commit was not specified.CommitDoesNotExistException
- The specified commit does not exist or no commit was specified, and the specified repository has no
default branch.InvalidCommitException
- The specified commit is not valid.TipsDivergenceExceededException
- The divergence between the tips of the provided commit specifiers is too great to determine whether there
might be any merge conflicts. Locally compare the specifiers using git diff
or a diff tool.InvalidConflictDetailLevelException
- The specified conflict detail level is not valid.InvalidConflictResolutionStrategyException
- The specified conflict resolution strategy is not valid.MaximumFileContentToLoadExceededException
- The number of files to load exceeds the allowed limit.MaximumItemsToCompareExceededException
- The number of items to compare between the source or destination branches and the merge base has exceeded
the maximum allowed.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public GetPullRequestResult getPullRequest(GetPullRequestRequest request)
Gets information about a pull request in a specified repository.
getPullRequest
in interface AWSCodeCommit
getPullRequestRequest
- PullRequestDoesNotExistException
- The pull request ID could not be found. Make sure that you have specified the correct repository name and
pull request ID, and then try again.InvalidPullRequestIdException
- The pull request ID is not valid. Make sure that you have provided the full ID and that the pull request
is in the specified repository, and then try again.PullRequestIdRequiredException
- A pull request ID is required, but none was provided.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public GetPullRequestApprovalStatesResult getPullRequestApprovalStates(GetPullRequestApprovalStatesRequest request)
Gets information about the approval states for a specified pull request. Approval states only apply to pull requests that have one or more approval rules applied to them.
getPullRequestApprovalStates
in interface AWSCodeCommit
getPullRequestApprovalStatesRequest
- PullRequestDoesNotExistException
- The pull request ID could not be found. Make sure that you have specified the correct repository name and
pull request ID, and then try again.InvalidPullRequestIdException
- The pull request ID is not valid. Make sure that you have provided the full ID and that the pull request
is in the specified repository, and then try again.PullRequestIdRequiredException
- A pull request ID is required, but none was provided.InvalidRevisionIdException
- The revision ID is not valid. Use GetPullRequest to determine the value.RevisionIdRequiredException
- A revision ID is required, but was not provided.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public GetPullRequestOverrideStateResult getPullRequestOverrideState(GetPullRequestOverrideStateRequest request)
Returns information about whether approval rules have been set aside (overridden) for a pull request, and if so, the Amazon Resource Name (ARN) of the user or identity that overrode the rules and their requirements for the pull request.
getPullRequestOverrideState
in interface AWSCodeCommit
getPullRequestOverrideStateRequest
- PullRequestDoesNotExistException
- The pull request ID could not be found. Make sure that you have specified the correct repository name and
pull request ID, and then try again.InvalidPullRequestIdException
- The pull request ID is not valid. Make sure that you have provided the full ID and that the pull request
is in the specified repository, and then try again.PullRequestIdRequiredException
- A pull request ID is required, but none was provided.InvalidRevisionIdException
- The revision ID is not valid. Use GetPullRequest to determine the value.RevisionIdRequiredException
- A revision ID is required, but was not provided.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public GetRepositoryResult getRepository(GetRepositoryRequest request)
Returns information about a repository.
The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a webpage.
getRepository
in interface AWSCodeCommit
getRepositoryRequest
- Represents the input of a get repository operation.RepositoryNameRequiredException
- A repository name is required, but was not specified.RepositoryDoesNotExistException
- The specified repository does not exist.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public GetRepositoryTriggersResult getRepositoryTriggers(GetRepositoryTriggersRequest request)
Gets information about triggers configured for a repository.
getRepositoryTriggers
in interface AWSCodeCommit
getRepositoryTriggersRequest
- Represents the input of a get repository triggers operation.RepositoryNameRequiredException
- A repository name is required, but was not specified.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryDoesNotExistException
- The specified repository does not exist.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public ListApprovalRuleTemplatesResult listApprovalRuleTemplates(ListApprovalRuleTemplatesRequest request)
Lists all approval rule templates in the specified Amazon Web Services Region in your Amazon Web Services account. If an Amazon Web Services Region is not specified, the Amazon Web Services Region where you are signed in is used.
listApprovalRuleTemplates
in interface AWSCodeCommit
listApprovalRuleTemplatesRequest
- InvalidMaxResultsException
- The specified number of maximum results is not valid.InvalidContinuationTokenException
- The specified continuation token is not valid.public ListAssociatedApprovalRuleTemplatesForRepositoryResult listAssociatedApprovalRuleTemplatesForRepository(ListAssociatedApprovalRuleTemplatesForRepositoryRequest request)
Lists all approval rule templates that are associated with a specified repository.
listAssociatedApprovalRuleTemplatesForRepository
in interface AWSCodeCommit
listAssociatedApprovalRuleTemplatesForRepositoryRequest
- RepositoryNameRequiredException
- A repository name is required, but was not specified.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryDoesNotExistException
- The specified repository does not exist.InvalidMaxResultsException
- The specified number of maximum results is not valid.InvalidContinuationTokenException
- The specified continuation token is not valid.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public ListBranchesResult listBranches(ListBranchesRequest request)
Gets information about one or more branches in a repository.
listBranches
in interface AWSCodeCommit
listBranchesRequest
- Represents the input of a list branches operation.RepositoryNameRequiredException
- A repository name is required, but was not specified.RepositoryDoesNotExistException
- The specified repository does not exist.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.InvalidContinuationTokenException
- The specified continuation token is not valid.public ListFileCommitHistoryResult listFileCommitHistory(ListFileCommitHistoryRequest request)
Retrieves a list of commits and changes to a specified file.
listFileCommitHistory
in interface AWSCodeCommit
listFileCommitHistoryRequest
- RepositoryNameRequiredException
- A repository name is required, but was not specified.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryDoesNotExistException
- The specified repository does not exist.InvalidContinuationTokenException
- The specified continuation token is not valid.InvalidMaxResultsException
- The specified number of maximum results is not valid.TipsDivergenceExceededException
- The divergence between the tips of the provided commit specifiers is too great to determine whether there
might be any merge conflicts. Locally compare the specifiers using git diff
or a diff tool.CommitRequiredException
- A commit was not specified.InvalidCommitException
- The specified commit is not valid.CommitDoesNotExistException
- The specified commit does not exist or no commit was specified, and the specified repository has no
default branch.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public ListPullRequestsResult listPullRequests(ListPullRequestsRequest request)
Returns a list of pull requests for a specified repository. The return list can be refined by pull request status or pull request author ARN.
listPullRequests
in interface AWSCodeCommit
listPullRequestsRequest
- InvalidPullRequestStatusException
- The pull request status is not valid. The only valid values are OPEN
and CLOSED
.InvalidAuthorArnException
- The Amazon Resource Name (ARN) is not valid. Make sure that you have provided the full ARN for the author
of the pull request, and then try again.AuthorDoesNotExistException
- The specified Amazon Resource Name (ARN) does not exist in the Amazon Web Services account.RepositoryNameRequiredException
- A repository name is required, but was not specified.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryDoesNotExistException
- The specified repository does not exist.InvalidMaxResultsException
- The specified number of maximum results is not valid.InvalidContinuationTokenException
- The specified continuation token is not valid.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public ListRepositoriesResult listRepositories(ListRepositoriesRequest request)
Gets information about one or more repositories.
listRepositories
in interface AWSCodeCommit
listRepositoriesRequest
- Represents the input of a list repositories operation.InvalidSortByException
- The specified sort by value is not valid.InvalidOrderException
- The specified sort order is not valid.InvalidContinuationTokenException
- The specified continuation token is not valid.public ListRepositoriesForApprovalRuleTemplateResult listRepositoriesForApprovalRuleTemplate(ListRepositoriesForApprovalRuleTemplateRequest request)
Lists all repositories associated with the specified approval rule template.
listRepositoriesForApprovalRuleTemplate
in interface AWSCodeCommit
listRepositoriesForApprovalRuleTemplateRequest
- ApprovalRuleTemplateNameRequiredException
- An approval rule template name is required, but was not specified.InvalidApprovalRuleTemplateNameException
- The name of the approval rule template is not valid. Template names must be between 1 and 100 valid
characters in length. For more information about limits in CodeCommit, see Quotas in the
CodeCommit User Guide.ApprovalRuleTemplateDoesNotExistException
- The specified approval rule template does not exist. Verify that the name is correct and that you are
signed in to the Amazon Web Services Region where the template was created, and then try again.InvalidMaxResultsException
- The specified number of maximum results is not valid.InvalidContinuationTokenException
- The specified continuation token is not valid.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request)
Gets information about Amazon Web Servicestags for a specified Amazon Resource Name (ARN) in CodeCommit. For a list of valid resources in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide.
listTagsForResource
in interface AWSCodeCommit
listTagsForResourceRequest
- RepositoryDoesNotExistException
- The specified repository does not exist.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
ResourceArnRequiredException
- A valid Amazon Resource Name (ARN) for an CodeCommit resource is required. For a list of valid resources
in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide.InvalidResourceArnException
- The value for the resource ARN is not valid. For more information about resources in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide.public MergeBranchesByFastForwardResult mergeBranchesByFastForward(MergeBranchesByFastForwardRequest request)
Merges two branches using the fast-forward merge strategy.
mergeBranchesByFastForward
in interface AWSCodeCommit
mergeBranchesByFastForwardRequest
- RepositoryNameRequiredException
- A repository name is required, but was not specified.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryDoesNotExistException
- The specified repository does not exist.TipsDivergenceExceededException
- The divergence between the tips of the provided commit specifiers is too great to determine whether there
might be any merge conflicts. Locally compare the specifiers using git diff
or a diff tool.CommitRequiredException
- A commit was not specified.InvalidCommitException
- The specified commit is not valid.CommitDoesNotExistException
- The specified commit does not exist or no commit was specified, and the specified repository has no
default branch.InvalidTargetBranchException
- The specified target branch is not valid.InvalidBranchNameException
- The specified reference name is not valid.BranchNameRequiredException
- A branch name is required, but was not specified.BranchNameIsTagNameException
- The specified branch name is not valid because it is a tag name. Enter the name of a branch in the
repository. For a list of valid branch names, use ListBranches.BranchDoesNotExistException
- The specified branch does not exist.ManualMergeRequiredException
- The pull request cannot be merged automatically into the destination branch. You must manually merge the
branches and resolve any conflicts.ConcurrentReferenceUpdateException
- The merge cannot be completed because the target branch has been modified. Another user might have
modified the target branch while the merge was in progress. Wait a few minutes, and then try again.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public MergeBranchesBySquashResult mergeBranchesBySquash(MergeBranchesBySquashRequest request)
Merges two branches using the squash merge strategy.
mergeBranchesBySquash
in interface AWSCodeCommit
mergeBranchesBySquashRequest
- RepositoryNameRequiredException
- A repository name is required, but was not specified.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryDoesNotExistException
- The specified repository does not exist.TipsDivergenceExceededException
- The divergence between the tips of the provided commit specifiers is too great to determine whether there
might be any merge conflicts. Locally compare the specifiers using git diff
or a diff tool.CommitRequiredException
- A commit was not specified.InvalidCommitException
- The specified commit is not valid.CommitDoesNotExistException
- The specified commit does not exist or no commit was specified, and the specified repository has no
default branch.InvalidTargetBranchException
- The specified target branch is not valid.InvalidBranchNameException
- The specified reference name is not valid.BranchNameRequiredException
- A branch name is required, but was not specified.BranchNameIsTagNameException
- The specified branch name is not valid because it is a tag name. Enter the name of a branch in the
repository. For a list of valid branch names, use ListBranches.BranchDoesNotExistException
- The specified branch does not exist.ManualMergeRequiredException
- The pull request cannot be merged automatically into the destination branch. You must manually merge the
branches and resolve any conflicts.InvalidConflictDetailLevelException
- The specified conflict detail level is not valid.InvalidConflictResolutionStrategyException
- The specified conflict resolution strategy is not valid.InvalidConflictResolutionException
- The specified conflict resolution list is not valid.MaximumConflictResolutionEntriesExceededException
- The number of allowed conflict resolution entries was exceeded.MultipleConflictResolutionEntriesException
- More than one conflict resolution entries exists for the conflict. A conflict can have only one conflict
resolution entry.ReplacementTypeRequiredException
- A replacement type is required.InvalidReplacementTypeException
- Automerge was specified for resolving the conflict, but the specified replacement type is not valid.ReplacementContentRequiredException
- USE_NEW_CONTENT was specified, but no replacement content has been provided.InvalidReplacementContentException
- Automerge was specified for resolving the conflict, but the replacement type is not valid or content is
missing.PathRequiredException
- The folderPath for a location cannot be null.InvalidPathException
- The specified path is not valid.FileContentSizeLimitExceededException
- The file cannot be added because it is too large. The maximum file size is 6 MB, and the combined file
content change size is 7 MB. Consider making these changes using a Git client.FolderContentSizeLimitExceededException
- The commit cannot be created because at least one of the overall changes in the commit results in a
folder whose contents exceed the limit of 6 MB. Either reduce the number and size of your changes, or
split the changes across multiple folders.MaximumFileContentToLoadExceededException
- The number of files to load exceeds the allowed limit.MaximumItemsToCompareExceededException
- The number of items to compare between the source or destination branches and the merge base has exceeded
the maximum allowed.FileModeRequiredException
- The commit cannot be created because no file mode has been specified. A file mode is required to update
mode permissions for a file.InvalidFileModeException
- The specified file mode permission is not valid. For a list of valid file mode permissions, see
PutFile.NameLengthExceededException
- The user name is not valid because it has exceeded the character limit for author names.InvalidEmailException
- The specified email address either contains one or more characters that are not allowed, or it exceeds
the maximum number of characters allowed for an email address.CommitMessageLengthExceededException
- The commit message is too long. Provide a shorter string.ConcurrentReferenceUpdateException
- The merge cannot be completed because the target branch has been modified. Another user might have
modified the target branch while the merge was in progress. Wait a few minutes, and then try again.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public MergeBranchesByThreeWayResult mergeBranchesByThreeWay(MergeBranchesByThreeWayRequest request)
Merges two specified branches using the three-way merge strategy.
mergeBranchesByThreeWay
in interface AWSCodeCommit
mergeBranchesByThreeWayRequest
- RepositoryNameRequiredException
- A repository name is required, but was not specified.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryDoesNotExistException
- The specified repository does not exist.TipsDivergenceExceededException
- The divergence between the tips of the provided commit specifiers is too great to determine whether there
might be any merge conflicts. Locally compare the specifiers using git diff
or a diff tool.CommitRequiredException
- A commit was not specified.InvalidCommitException
- The specified commit is not valid.CommitDoesNotExistException
- The specified commit does not exist or no commit was specified, and the specified repository has no
default branch.InvalidTargetBranchException
- The specified target branch is not valid.InvalidBranchNameException
- The specified reference name is not valid.BranchNameRequiredException
- A branch name is required, but was not specified.BranchNameIsTagNameException
- The specified branch name is not valid because it is a tag name. Enter the name of a branch in the
repository. For a list of valid branch names, use ListBranches.BranchDoesNotExistException
- The specified branch does not exist.ManualMergeRequiredException
- The pull request cannot be merged automatically into the destination branch. You must manually merge the
branches and resolve any conflicts.ConcurrentReferenceUpdateException
- The merge cannot be completed because the target branch has been modified. Another user might have
modified the target branch while the merge was in progress. Wait a few minutes, and then try again.InvalidConflictDetailLevelException
- The specified conflict detail level is not valid.InvalidConflictResolutionStrategyException
- The specified conflict resolution strategy is not valid.InvalidConflictResolutionException
- The specified conflict resolution list is not valid.MaximumConflictResolutionEntriesExceededException
- The number of allowed conflict resolution entries was exceeded.MultipleConflictResolutionEntriesException
- More than one conflict resolution entries exists for the conflict. A conflict can have only one conflict
resolution entry.ReplacementTypeRequiredException
- A replacement type is required.InvalidReplacementTypeException
- Automerge was specified for resolving the conflict, but the specified replacement type is not valid.ReplacementContentRequiredException
- USE_NEW_CONTENT was specified, but no replacement content has been provided.InvalidReplacementContentException
- Automerge was specified for resolving the conflict, but the replacement type is not valid or content is
missing.PathRequiredException
- The folderPath for a location cannot be null.InvalidPathException
- The specified path is not valid.FileContentSizeLimitExceededException
- The file cannot be added because it is too large. The maximum file size is 6 MB, and the combined file
content change size is 7 MB. Consider making these changes using a Git client.FolderContentSizeLimitExceededException
- The commit cannot be created because at least one of the overall changes in the commit results in a
folder whose contents exceed the limit of 6 MB. Either reduce the number and size of your changes, or
split the changes across multiple folders.MaximumFileContentToLoadExceededException
- The number of files to load exceeds the allowed limit.MaximumItemsToCompareExceededException
- The number of items to compare between the source or destination branches and the merge base has exceeded
the maximum allowed.FileModeRequiredException
- The commit cannot be created because no file mode has been specified. A file mode is required to update
mode permissions for a file.InvalidFileModeException
- The specified file mode permission is not valid. For a list of valid file mode permissions, see
PutFile.NameLengthExceededException
- The user name is not valid because it has exceeded the character limit for author names.InvalidEmailException
- The specified email address either contains one or more characters that are not allowed, or it exceeds
the maximum number of characters allowed for an email address.CommitMessageLengthExceededException
- The commit message is too long. Provide a shorter string.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public MergePullRequestByFastForwardResult mergePullRequestByFastForward(MergePullRequestByFastForwardRequest request)
Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the fast-forward merge strategy. If the merge is successful, it closes the pull request.
mergePullRequestByFastForward
in interface AWSCodeCommit
mergePullRequestByFastForwardRequest
- ManualMergeRequiredException
- The pull request cannot be merged automatically into the destination branch. You must manually merge the
branches and resolve any conflicts.PullRequestAlreadyClosedException
- The pull request status cannot be updated because it is already closed.PullRequestDoesNotExistException
- The pull request ID could not be found. Make sure that you have specified the correct repository name and
pull request ID, and then try again.InvalidPullRequestIdException
- The pull request ID is not valid. Make sure that you have provided the full ID and that the pull request
is in the specified repository, and then try again.PullRequestIdRequiredException
- A pull request ID is required, but none was provided.TipOfSourceReferenceIsDifferentException
- The tip of the source branch in the destination repository does not match the tip of the source branch
specified in your request. The pull request might have been updated. Make sure that you have the latest
changes.ReferenceDoesNotExistException
- The specified reference does not exist. You must provide a full commit ID.InvalidCommitIdException
- The specified commit ID is not valid.RepositoryNotAssociatedWithPullRequestException
- The repository does not contain any pull requests with that pull request ID. Use GetPullRequest to verify
the correct repository name for the pull request ID.RepositoryNameRequiredException
- A repository name is required, but was not specified.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryDoesNotExistException
- The specified repository does not exist.ConcurrentReferenceUpdateException
- The merge cannot be completed because the target branch has been modified. Another user might have
modified the target branch while the merge was in progress. Wait a few minutes, and then try again.PullRequestApprovalRulesNotSatisfiedException
- The pull request cannot be merged because one or more approval rules applied to the pull request have
conditions that have not been met.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public MergePullRequestBySquashResult mergePullRequestBySquash(MergePullRequestBySquashRequest request)
Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the squash merge strategy. If the merge is successful, it closes the pull request.
mergePullRequestBySquash
in interface AWSCodeCommit
mergePullRequestBySquashRequest
- PullRequestAlreadyClosedException
- The pull request status cannot be updated because it is already closed.PullRequestDoesNotExistException
- The pull request ID could not be found. Make sure that you have specified the correct repository name and
pull request ID, and then try again.PullRequestIdRequiredException
- A pull request ID is required, but none was provided.InvalidPullRequestIdException
- The pull request ID is not valid. Make sure that you have provided the full ID and that the pull request
is in the specified repository, and then try again.InvalidCommitIdException
- The specified commit ID is not valid.ManualMergeRequiredException
- The pull request cannot be merged automatically into the destination branch. You must manually merge the
branches and resolve any conflicts.TipOfSourceReferenceIsDifferentException
- The tip of the source branch in the destination repository does not match the tip of the source branch
specified in your request. The pull request might have been updated. Make sure that you have the latest
changes.TipsDivergenceExceededException
- The divergence between the tips of the provided commit specifiers is too great to determine whether there
might be any merge conflicts. Locally compare the specifiers using git diff
or a diff tool.NameLengthExceededException
- The user name is not valid because it has exceeded the character limit for author names.InvalidEmailException
- The specified email address either contains one or more characters that are not allowed, or it exceeds
the maximum number of characters allowed for an email address.CommitMessageLengthExceededException
- The commit message is too long. Provide a shorter string.InvalidConflictDetailLevelException
- The specified conflict detail level is not valid.InvalidConflictResolutionStrategyException
- The specified conflict resolution strategy is not valid.InvalidConflictResolutionException
- The specified conflict resolution list is not valid.ReplacementTypeRequiredException
- A replacement type is required.InvalidReplacementTypeException
- Automerge was specified for resolving the conflict, but the specified replacement type is not valid.MultipleConflictResolutionEntriesException
- More than one conflict resolution entries exists for the conflict. A conflict can have only one conflict
resolution entry.ReplacementContentRequiredException
- USE_NEW_CONTENT was specified, but no replacement content has been provided.MaximumConflictResolutionEntriesExceededException
- The number of allowed conflict resolution entries was exceeded.ConcurrentReferenceUpdateException
- The merge cannot be completed because the target branch has been modified. Another user might have
modified the target branch while the merge was in progress. Wait a few minutes, and then try again.PathRequiredException
- The folderPath for a location cannot be null.InvalidPathException
- The specified path is not valid.InvalidFileModeException
- The specified file mode permission is not valid. For a list of valid file mode permissions, see
PutFile.InvalidReplacementContentException
- Automerge was specified for resolving the conflict, but the replacement type is not valid or content is
missing.FileContentSizeLimitExceededException
- The file cannot be added because it is too large. The maximum file size is 6 MB, and the combined file
content change size is 7 MB. Consider making these changes using a Git client.FolderContentSizeLimitExceededException
- The commit cannot be created because at least one of the overall changes in the commit results in a
folder whose contents exceed the limit of 6 MB. Either reduce the number and size of your changes, or
split the changes across multiple folders.MaximumFileContentToLoadExceededException
- The number of files to load exceeds the allowed limit.MaximumItemsToCompareExceededException
- The number of items to compare between the source or destination branches and the merge base has exceeded
the maximum allowed.RepositoryNameRequiredException
- A repository name is required, but was not specified.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryDoesNotExistException
- The specified repository does not exist.RepositoryNotAssociatedWithPullRequestException
- The repository does not contain any pull requests with that pull request ID. Use GetPullRequest to verify
the correct repository name for the pull request ID.PullRequestApprovalRulesNotSatisfiedException
- The pull request cannot be merged because one or more approval rules applied to the pull request have
conditions that have not been met.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public MergePullRequestByThreeWayResult mergePullRequestByThreeWay(MergePullRequestByThreeWayRequest request)
Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the three-way merge strategy. If the merge is successful, it closes the pull request.
mergePullRequestByThreeWay
in interface AWSCodeCommit
mergePullRequestByThreeWayRequest
- PullRequestAlreadyClosedException
- The pull request status cannot be updated because it is already closed.PullRequestDoesNotExistException
- The pull request ID could not be found. Make sure that you have specified the correct repository name and
pull request ID, and then try again.PullRequestIdRequiredException
- A pull request ID is required, but none was provided.InvalidPullRequestIdException
- The pull request ID is not valid. Make sure that you have provided the full ID and that the pull request
is in the specified repository, and then try again.InvalidCommitIdException
- The specified commit ID is not valid.ManualMergeRequiredException
- The pull request cannot be merged automatically into the destination branch. You must manually merge the
branches and resolve any conflicts.TipOfSourceReferenceIsDifferentException
- The tip of the source branch in the destination repository does not match the tip of the source branch
specified in your request. The pull request might have been updated. Make sure that you have the latest
changes.TipsDivergenceExceededException
- The divergence between the tips of the provided commit specifiers is too great to determine whether there
might be any merge conflicts. Locally compare the specifiers using git diff
or a diff tool.NameLengthExceededException
- The user name is not valid because it has exceeded the character limit for author names.InvalidEmailException
- The specified email address either contains one or more characters that are not allowed, or it exceeds
the maximum number of characters allowed for an email address.CommitMessageLengthExceededException
- The commit message is too long. Provide a shorter string.InvalidConflictDetailLevelException
- The specified conflict detail level is not valid.InvalidConflictResolutionStrategyException
- The specified conflict resolution strategy is not valid.InvalidConflictResolutionException
- The specified conflict resolution list is not valid.ReplacementTypeRequiredException
- A replacement type is required.InvalidReplacementTypeException
- Automerge was specified for resolving the conflict, but the specified replacement type is not valid.MultipleConflictResolutionEntriesException
- More than one conflict resolution entries exists for the conflict. A conflict can have only one conflict
resolution entry.ReplacementContentRequiredException
- USE_NEW_CONTENT was specified, but no replacement content has been provided.MaximumConflictResolutionEntriesExceededException
- The number of allowed conflict resolution entries was exceeded.PathRequiredException
- The folderPath for a location cannot be null.InvalidPathException
- The specified path is not valid.InvalidFileModeException
- The specified file mode permission is not valid. For a list of valid file mode permissions, see
PutFile.InvalidReplacementContentException
- Automerge was specified for resolving the conflict, but the replacement type is not valid or content is
missing.FileContentSizeLimitExceededException
- The file cannot be added because it is too large. The maximum file size is 6 MB, and the combined file
content change size is 7 MB. Consider making these changes using a Git client.FolderContentSizeLimitExceededException
- The commit cannot be created because at least one of the overall changes in the commit results in a
folder whose contents exceed the limit of 6 MB. Either reduce the number and size of your changes, or
split the changes across multiple folders.MaximumFileContentToLoadExceededException
- The number of files to load exceeds the allowed limit.MaximumItemsToCompareExceededException
- The number of items to compare between the source or destination branches and the merge base has exceeded
the maximum allowed.RepositoryNameRequiredException
- A repository name is required, but was not specified.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryDoesNotExistException
- The specified repository does not exist.RepositoryNotAssociatedWithPullRequestException
- The repository does not contain any pull requests with that pull request ID. Use GetPullRequest to verify
the correct repository name for the pull request ID.ConcurrentReferenceUpdateException
- The merge cannot be completed because the target branch has been modified. Another user might have
modified the target branch while the merge was in progress. Wait a few minutes, and then try again.PullRequestApprovalRulesNotSatisfiedException
- The pull request cannot be merged because one or more approval rules applied to the pull request have
conditions that have not been met.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public OverridePullRequestApprovalRulesResult overridePullRequestApprovalRules(OverridePullRequestApprovalRulesRequest request)
Sets aside (overrides) all approval rule requirements for a specified pull request.
overridePullRequestApprovalRules
in interface AWSCodeCommit
overridePullRequestApprovalRulesRequest
- PullRequestDoesNotExistException
- The pull request ID could not be found. Make sure that you have specified the correct repository name and
pull request ID, and then try again.InvalidPullRequestIdException
- The pull request ID is not valid. Make sure that you have provided the full ID and that the pull request
is in the specified repository, and then try again.PullRequestIdRequiredException
- A pull request ID is required, but none was provided.InvalidRevisionIdException
- The revision ID is not valid. Use GetPullRequest to determine the value.RevisionIdRequiredException
- A revision ID is required, but was not provided.InvalidOverrideStatusException
- The override status is not valid. Valid statuses are OVERRIDE and REVOKE.OverrideStatusRequiredException
- An override status is required, but no value was provided. Valid values include OVERRIDE and REVOKE.OverrideAlreadySetException
- The pull request has already had its approval rules set to override.RevisionNotCurrentException
- The revision ID provided in the request does not match the current revision ID. Use GetPullRequest to
retrieve the current revision ID.PullRequestAlreadyClosedException
- The pull request status cannot be updated because it is already closed.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public PostCommentForComparedCommitResult postCommentForComparedCommit(PostCommentForComparedCommitRequest request)
Posts a comment on the comparison between two commits.
postCommentForComparedCommit
in interface AWSCodeCommit
postCommentForComparedCommitRequest
- RepositoryNameRequiredException
- A repository name is required, but was not specified.RepositoryDoesNotExistException
- The specified repository does not exist.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
ClientRequestTokenRequiredException
- A client request token is required. A client request token is an unique, client-generated idempotency
token that, when provided in a request, ensures the request cannot be repeated with a changed parameter.
If a request is received with the same parameters and a token is included, the request returns
information about the initial request that used that token.InvalidClientRequestTokenException
- The client request token is not valid.IdempotencyParameterMismatchException
- The client request token is not valid. Either the token is not in a valid format, or the token has been
used in a previous request and cannot be reused.CommentContentRequiredException
- The comment is empty. You must provide some content for a comment. The content cannot be null.CommentContentSizeLimitExceededException
- The comment is too large. Comments are limited to 10,240 characters.InvalidFileLocationException
- The location of the file is not valid. Make sure that you include the file name and extension.InvalidRelativeFileVersionEnumException
- Either the enum is not in a valid format, or the specified file version enum is not valid in respect to
the current file version.PathRequiredException
- The folderPath for a location cannot be null.InvalidFilePositionException
- The position is not valid. Make sure that the line number exists in the version of the file you want to
comment on.CommitIdRequiredException
- A commit ID was not specified.InvalidCommitIdException
- The specified commit ID is not valid.BeforeCommitIdAndAfterCommitIdAreSameException
- The before commit ID and the after commit ID are the same, which is not valid. The before commit ID and
the after commit ID must be different commit IDs.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.CommitDoesNotExistException
- The specified commit does not exist or no commit was specified, and the specified repository has no
default branch.InvalidPathException
- The specified path is not valid.PathDoesNotExistException
- The specified path does not exist.PathRequiredException
- The folderPath for a location cannot be null.public PostCommentForPullRequestResult postCommentForPullRequest(PostCommentForPullRequestRequest request)
Posts a comment on a pull request.
postCommentForPullRequest
in interface AWSCodeCommit
postCommentForPullRequestRequest
- PullRequestDoesNotExistException
- The pull request ID could not be found. Make sure that you have specified the correct repository name and
pull request ID, and then try again.InvalidPullRequestIdException
- The pull request ID is not valid. Make sure that you have provided the full ID and that the pull request
is in the specified repository, and then try again.PullRequestIdRequiredException
- A pull request ID is required, but none was provided.RepositoryNotAssociatedWithPullRequestException
- The repository does not contain any pull requests with that pull request ID. Use GetPullRequest to verify
the correct repository name for the pull request ID.RepositoryNameRequiredException
- A repository name is required, but was not specified.RepositoryDoesNotExistException
- The specified repository does not exist.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
ClientRequestTokenRequiredException
- A client request token is required. A client request token is an unique, client-generated idempotency
token that, when provided in a request, ensures the request cannot be repeated with a changed parameter.
If a request is received with the same parameters and a token is included, the request returns
information about the initial request that used that token.InvalidClientRequestTokenException
- The client request token is not valid.IdempotencyParameterMismatchException
- The client request token is not valid. Either the token is not in a valid format, or the token has been
used in a previous request and cannot be reused.CommentContentRequiredException
- The comment is empty. You must provide some content for a comment. The content cannot be null.CommentContentSizeLimitExceededException
- The comment is too large. Comments are limited to 10,240 characters.InvalidFileLocationException
- The location of the file is not valid. Make sure that you include the file name and extension.InvalidRelativeFileVersionEnumException
- Either the enum is not in a valid format, or the specified file version enum is not valid in respect to
the current file version.PathRequiredException
- The folderPath for a location cannot be null.InvalidFilePositionException
- The position is not valid. Make sure that the line number exists in the version of the file you want to
comment on.CommitIdRequiredException
- A commit ID was not specified.InvalidCommitIdException
- The specified commit ID is not valid.BeforeCommitIdAndAfterCommitIdAreSameException
- The before commit ID and the after commit ID are the same, which is not valid. The before commit ID and
the after commit ID must be different commit IDs.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.CommitDoesNotExistException
- The specified commit does not exist or no commit was specified, and the specified repository has no
default branch.InvalidPathException
- The specified path is not valid.PathDoesNotExistException
- The specified path does not exist.PathRequiredException
- The folderPath for a location cannot be null.public PostCommentReplyResult postCommentReply(PostCommentReplyRequest request)
Posts a comment in reply to an existing comment on a comparison between commits or a pull request.
postCommentReply
in interface AWSCodeCommit
postCommentReplyRequest
- ClientRequestTokenRequiredException
- A client request token is required. A client request token is an unique, client-generated idempotency
token that, when provided in a request, ensures the request cannot be repeated with a changed parameter.
If a request is received with the same parameters and a token is included, the request returns
information about the initial request that used that token.InvalidClientRequestTokenException
- The client request token is not valid.IdempotencyParameterMismatchException
- The client request token is not valid. Either the token is not in a valid format, or the token has been
used in a previous request and cannot be reused.CommentContentRequiredException
- The comment is empty. You must provide some content for a comment. The content cannot be null.CommentContentSizeLimitExceededException
- The comment is too large. Comments are limited to 10,240 characters.CommentDoesNotExistException
- No comment exists with the provided ID. Verify that you have used the correct ID, and then try again.CommentIdRequiredException
- The comment ID is missing or null. A comment ID is required.InvalidCommentIdException
- The comment ID is not in a valid format. Make sure that you have provided the full comment ID.public PutCommentReactionResult putCommentReaction(PutCommentReactionRequest request)
Adds or updates a reaction to a specified comment for the user whose identity is used to make the request. You can only add or update a reaction for yourself. You cannot add, modify, or delete a reaction for another user.
putCommentReaction
in interface AWSCodeCommit
putCommentReactionRequest
- CommentDoesNotExistException
- No comment exists with the provided ID. Verify that you have used the correct ID, and then try again.CommentIdRequiredException
- The comment ID is missing or null. A comment ID is required.InvalidCommentIdException
- The comment ID is not in a valid format. Make sure that you have provided the full comment ID.InvalidReactionValueException
- The value of the reaction is not valid. For more information, see the CodeCommit User Guide.ReactionValueRequiredException
- A reaction value is required.ReactionLimitExceededException
- The number of reactions has been exceeded. Reactions are limited to one reaction per user for each
individual comment ID.CommentDeletedException
- This comment has already been deleted. You cannot edit or delete a deleted comment.public PutFileResult putFile(PutFileRequest request)
Adds or updates a file in a branch in an CodeCommit repository, and generates a commit for the addition in the specified branch.
putFile
in interface AWSCodeCommit
putFileRequest
- RepositoryNameRequiredException
- A repository name is required, but was not specified.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryDoesNotExistException
- The specified repository does not exist.ParentCommitIdRequiredException
- A parent commit ID is required. To view the full commit ID of a branch in a repository, use
GetBranch or a Git command (for example, git pull or git log).InvalidParentCommitIdException
- The parent commit ID is not valid. The commit ID cannot be empty, and must match the head commit ID for
the branch of the repository where you want to add or update a file.ParentCommitDoesNotExistException
- The parent commit ID is not valid because it does not exist. The specified parent commit ID does not
exist in the specified branch of the repository.ParentCommitIdOutdatedException
- The file could not be added because the provided parent commit ID is not the current tip of the specified
branch. To view the full commit ID of the current head of the branch, use GetBranch.FileContentRequiredException
- The file cannot be added because it is empty. Empty files cannot be added to the repository with this
API.FileContentSizeLimitExceededException
- The file cannot be added because it is too large. The maximum file size is 6 MB, and the combined file
content change size is 7 MB. Consider making these changes using a Git client.FolderContentSizeLimitExceededException
- The commit cannot be created because at least one of the overall changes in the commit results in a
folder whose contents exceed the limit of 6 MB. Either reduce the number and size of your changes, or
split the changes across multiple folders.PathRequiredException
- The folderPath for a location cannot be null.InvalidPathException
- The specified path is not valid.BranchNameRequiredException
- A branch name is required, but was not specified.InvalidBranchNameException
- The specified reference name is not valid.BranchDoesNotExistException
- The specified branch does not exist.BranchNameIsTagNameException
- The specified branch name is not valid because it is a tag name. Enter the name of a branch in the
repository. For a list of valid branch names, use ListBranches.InvalidFileModeException
- The specified file mode permission is not valid. For a list of valid file mode permissions, see
PutFile.NameLengthExceededException
- The user name is not valid because it has exceeded the character limit for author names.InvalidEmailException
- The specified email address either contains one or more characters that are not allowed, or it exceeds
the maximum number of characters allowed for an email address.CommitMessageLengthExceededException
- The commit message is too long. Provide a shorter string.InvalidDeletionParameterException
- The specified deletion parameter is not valid.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.SameFileContentException
- The file was not added or updated because the content of the file is exactly the same as the content of
that file in the repository and branch that you specified.FileNameConflictsWithDirectoryNameException
- A file cannot be added to the repository because the specified file name has the same name as a directory
in this repository. Either provide another name for the file, or add the file in a directory that does
not match the file name.DirectoryNameConflictsWithFileNameException
- A file cannot be added to the repository because the specified path name has the same name as a file that
already exists in this repository. Either provide a different name for the file, or specify a different
path for the file.FilePathConflictsWithSubmodulePathException
- The commit cannot be created because a specified file path points to a submodule. Verify that the
destination files have valid file paths that do not point to a submodule.public PutRepositoryTriggersResult putRepositoryTriggers(PutRepositoryTriggersRequest request)
Replaces all triggers for a repository. Used to create or delete triggers.
putRepositoryTriggers
in interface AWSCodeCommit
putRepositoryTriggersRequest
- Represents the input of a put repository triggers operation.RepositoryDoesNotExistException
- The specified repository does not exist.RepositoryNameRequiredException
- A repository name is required, but was not specified.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryTriggersListRequiredException
- The list of triggers for the repository is required, but was not specified.MaximumRepositoryTriggersExceededException
- The number of triggers allowed for the repository was exceeded.InvalidRepositoryTriggerNameException
- The name of the trigger is not valid.InvalidRepositoryTriggerDestinationArnException
- The Amazon Resource Name (ARN) for the trigger is not valid for the specified destination. The most
common reason for this error is that the ARN does not meet the requirements for the service type.InvalidRepositoryTriggerRegionException
- The Amazon Web Services Region for the trigger target does not match the Amazon Web Services Region for
the repository. Triggers must be created in the same Amazon Web Services Region as the target for the
trigger.InvalidRepositoryTriggerCustomDataException
- The custom data provided for the trigger is not valid.MaximumBranchesExceededException
- The number of branches for the trigger was exceeded.InvalidRepositoryTriggerBranchNameException
- One or more branch names specified for the trigger is not valid.InvalidRepositoryTriggerEventsException
- One or more events specified for the trigger is not valid. Check to make sure that all events specified
match the requirements for allowed events.RepositoryTriggerNameRequiredException
- A name for the trigger is required, but was not specified.RepositoryTriggerDestinationArnRequiredException
- A destination ARN for the target service for the trigger is required, but was not specified.RepositoryTriggerBranchNameListRequiredException
- At least one branch name is required, but was not specified in the trigger configuration.RepositoryTriggerEventsListRequiredException
- At least one event for the trigger is required, but was not specified.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public TagResourceResult tagResource(TagResourceRequest request)
Adds or updates tags for a resource in CodeCommit. For a list of valid resources in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide.
tagResource
in interface AWSCodeCommit
tagResourceRequest
- RepositoryDoesNotExistException
- The specified repository does not exist.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
ResourceArnRequiredException
- A valid Amazon Resource Name (ARN) for an CodeCommit resource is required. For a list of valid resources
in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide.InvalidResourceArnException
- The value for the resource ARN is not valid. For more information about resources in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide.TagsMapRequiredException
- A map of tags is required.InvalidTagsMapException
- The map of tags is not valid.TooManyTagsException
- The maximum number of tags for an CodeCommit resource has been exceeded.InvalidSystemTagUsageException
- The specified tag is not valid. Key names cannot be prefixed with aws:.TagPolicyException
- The tag policy is not valid.public TestRepositoryTriggersResult testRepositoryTriggers(TestRepositoryTriggersRequest request)
Tests the functionality of repository triggers by sending information to the trigger target. If real data is available in the repository, the test sends data from the last commit. If no data is available, sample data is generated.
testRepositoryTriggers
in interface AWSCodeCommit
testRepositoryTriggersRequest
- Represents the input of a test repository triggers operation.RepositoryDoesNotExistException
- The specified repository does not exist.RepositoryNameRequiredException
- A repository name is required, but was not specified.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryTriggersListRequiredException
- The list of triggers for the repository is required, but was not specified.MaximumRepositoryTriggersExceededException
- The number of triggers allowed for the repository was exceeded.InvalidRepositoryTriggerNameException
- The name of the trigger is not valid.InvalidRepositoryTriggerDestinationArnException
- The Amazon Resource Name (ARN) for the trigger is not valid for the specified destination. The most
common reason for this error is that the ARN does not meet the requirements for the service type.InvalidRepositoryTriggerRegionException
- The Amazon Web Services Region for the trigger target does not match the Amazon Web Services Region for
the repository. Triggers must be created in the same Amazon Web Services Region as the target for the
trigger.InvalidRepositoryTriggerCustomDataException
- The custom data provided for the trigger is not valid.MaximumBranchesExceededException
- The number of branches for the trigger was exceeded.InvalidRepositoryTriggerBranchNameException
- One or more branch names specified for the trigger is not valid.InvalidRepositoryTriggerEventsException
- One or more events specified for the trigger is not valid. Check to make sure that all events specified
match the requirements for allowed events.RepositoryTriggerNameRequiredException
- A name for the trigger is required, but was not specified.RepositoryTriggerDestinationArnRequiredException
- A destination ARN for the target service for the trigger is required, but was not specified.RepositoryTriggerBranchNameListRequiredException
- At least one branch name is required, but was not specified in the trigger configuration.RepositoryTriggerEventsListRequiredException
- At least one event for the trigger is required, but was not specified.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public UntagResourceResult untagResource(UntagResourceRequest request)
Removes tags for a resource in CodeCommit. For a list of valid resources in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide.
untagResource
in interface AWSCodeCommit
untagResourceRequest
- RepositoryDoesNotExistException
- The specified repository does not exist.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
ResourceArnRequiredException
- A valid Amazon Resource Name (ARN) for an CodeCommit resource is required. For a list of valid resources
in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide.InvalidResourceArnException
- The value for the resource ARN is not valid. For more information about resources in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide.TagKeysListRequiredException
- A list of tag keys is required. The list cannot be empty or null.InvalidTagKeysListException
- The list of tags is not valid.TooManyTagsException
- The maximum number of tags for an CodeCommit resource has been exceeded.InvalidSystemTagUsageException
- The specified tag is not valid. Key names cannot be prefixed with aws:.TagPolicyException
- The tag policy is not valid.public UpdateApprovalRuleTemplateContentResult updateApprovalRuleTemplateContent(UpdateApprovalRuleTemplateContentRequest request)
Updates the content of an approval rule template. You can change the number of required approvals, the membership of the approval rule, and whether an approval pool is defined.
updateApprovalRuleTemplateContent
in interface AWSCodeCommit
updateApprovalRuleTemplateContentRequest
- InvalidApprovalRuleTemplateNameException
- The name of the approval rule template is not valid. Template names must be between 1 and 100 valid
characters in length. For more information about limits in CodeCommit, see Quotas in the
CodeCommit User Guide.ApprovalRuleTemplateNameRequiredException
- An approval rule template name is required, but was not specified.ApprovalRuleTemplateDoesNotExistException
- The specified approval rule template does not exist. Verify that the name is correct and that you are
signed in to the Amazon Web Services Region where the template was created, and then try again.InvalidApprovalRuleTemplateContentException
- The content of the approval rule template is not valid.InvalidRuleContentSha256Exception
- The SHA-256 hash signature for the rule content is not valid.ApprovalRuleTemplateContentRequiredException
- The content for the approval rule template is empty. You must provide some content for an approval rule
template. The content cannot be null.public UpdateApprovalRuleTemplateDescriptionResult updateApprovalRuleTemplateDescription(UpdateApprovalRuleTemplateDescriptionRequest request)
Updates the description for a specified approval rule template.
updateApprovalRuleTemplateDescription
in interface AWSCodeCommit
updateApprovalRuleTemplateDescriptionRequest
- InvalidApprovalRuleTemplateNameException
- The name of the approval rule template is not valid. Template names must be between 1 and 100 valid
characters in length. For more information about limits in CodeCommit, see Quotas in the
CodeCommit User Guide.ApprovalRuleTemplateNameRequiredException
- An approval rule template name is required, but was not specified.ApprovalRuleTemplateDoesNotExistException
- The specified approval rule template does not exist. Verify that the name is correct and that you are
signed in to the Amazon Web Services Region where the template was created, and then try again.InvalidApprovalRuleTemplateDescriptionException
- The description for the approval rule template is not valid because it exceeds the maximum characters
allowed for a description. For more information about limits in CodeCommit, see Quotas in the
CodeCommit User Guide.public UpdateApprovalRuleTemplateNameResult updateApprovalRuleTemplateName(UpdateApprovalRuleTemplateNameRequest request)
Updates the name of a specified approval rule template.
updateApprovalRuleTemplateName
in interface AWSCodeCommit
updateApprovalRuleTemplateNameRequest
- InvalidApprovalRuleTemplateNameException
- The name of the approval rule template is not valid. Template names must be between 1 and 100 valid
characters in length. For more information about limits in CodeCommit, see Quotas in the
CodeCommit User Guide.ApprovalRuleTemplateNameRequiredException
- An approval rule template name is required, but was not specified.ApprovalRuleTemplateDoesNotExistException
- The specified approval rule template does not exist. Verify that the name is correct and that you are
signed in to the Amazon Web Services Region where the template was created, and then try again.ApprovalRuleTemplateNameAlreadyExistsException
- You cannot create an approval rule template with that name because a template with that name already
exists in this Amazon Web Services Region for your Amazon Web Services account. Approval rule template
names must be unique.public UpdateCommentResult updateComment(UpdateCommentRequest request)
Replaces the contents of a comment.
updateComment
in interface AWSCodeCommit
updateCommentRequest
- CommentContentRequiredException
- The comment is empty. You must provide some content for a comment. The content cannot be null.CommentContentSizeLimitExceededException
- The comment is too large. Comments are limited to 10,240 characters.CommentDoesNotExistException
- No comment exists with the provided ID. Verify that you have used the correct ID, and then try again.CommentIdRequiredException
- The comment ID is missing or null. A comment ID is required.InvalidCommentIdException
- The comment ID is not in a valid format. Make sure that you have provided the full comment ID.CommentNotCreatedByCallerException
- You cannot modify or delete this comment. Only comment authors can modify or delete their comments.CommentDeletedException
- This comment has already been deleted. You cannot edit or delete a deleted comment.public UpdateDefaultBranchResult updateDefaultBranch(UpdateDefaultBranchRequest request)
Sets or changes the default branch name for the specified repository.
If you use this operation to change the default branch name to the current default branch name, a success message is returned even though the default branch did not change.
updateDefaultBranch
in interface AWSCodeCommit
updateDefaultBranchRequest
- Represents the input of an update default branch operation.RepositoryNameRequiredException
- A repository name is required, but was not specified.RepositoryDoesNotExistException
- The specified repository does not exist.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
BranchNameRequiredException
- A branch name is required, but was not specified.InvalidBranchNameException
- The specified reference name is not valid.BranchDoesNotExistException
- The specified branch does not exist.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public UpdatePullRequestApprovalRuleContentResult updatePullRequestApprovalRuleContent(UpdatePullRequestApprovalRuleContentRequest request)
Updates the structure of an approval rule created specifically for a pull request. For example, you can change the number of required approvers and the approval pool for approvers.
updatePullRequestApprovalRuleContent
in interface AWSCodeCommit
updatePullRequestApprovalRuleContentRequest
- PullRequestDoesNotExistException
- The pull request ID could not be found. Make sure that you have specified the correct repository name and
pull request ID, and then try again.InvalidPullRequestIdException
- The pull request ID is not valid. Make sure that you have provided the full ID and that the pull request
is in the specified repository, and then try again.PullRequestIdRequiredException
- A pull request ID is required, but none was provided.PullRequestAlreadyClosedException
- The pull request status cannot be updated because it is already closed.ApprovalRuleNameRequiredException
- An approval rule name is required, but was not specified.InvalidApprovalRuleNameException
- The name for the approval rule is not valid.ApprovalRuleDoesNotExistException
- The specified approval rule does not exist.InvalidRuleContentSha256Exception
- The SHA-256 hash signature for the rule content is not valid.ApprovalRuleContentRequiredException
- The content for the approval rule is empty. You must provide some content for an approval rule. The
content cannot be null.InvalidApprovalRuleContentException
- The content for the approval rule is not valid.CannotModifyApprovalRuleFromTemplateException
- The approval rule cannot be modified for the pull request because it was created by an approval rule
template and applied to the pull request automatically.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public UpdatePullRequestApprovalStateResult updatePullRequestApprovalState(UpdatePullRequestApprovalStateRequest request)
Updates the state of a user's approval on a pull request. The user is derived from the signed-in account when the request is made.
updatePullRequestApprovalState
in interface AWSCodeCommit
updatePullRequestApprovalStateRequest
- PullRequestDoesNotExistException
- The pull request ID could not be found. Make sure that you have specified the correct repository name and
pull request ID, and then try again.InvalidPullRequestIdException
- The pull request ID is not valid. Make sure that you have provided the full ID and that the pull request
is in the specified repository, and then try again.PullRequestIdRequiredException
- A pull request ID is required, but none was provided.InvalidRevisionIdException
- The revision ID is not valid. Use GetPullRequest to determine the value.RevisionIdRequiredException
- A revision ID is required, but was not provided.InvalidApprovalStateException
- The state for the approval is not valid. Valid values include APPROVE and REVOKE.ApprovalStateRequiredException
- An approval state is required, but was not specified.PullRequestCannotBeApprovedByAuthorException
- The approval cannot be applied because the user approving the pull request matches the user who created
the pull request. You cannot approve a pull request that you created.RevisionNotCurrentException
- The revision ID provided in the request does not match the current revision ID. Use GetPullRequest to
retrieve the current revision ID.PullRequestAlreadyClosedException
- The pull request status cannot be updated because it is already closed.MaximumNumberOfApprovalsExceededException
- The number of approvals required for the approval rule exceeds the maximum number allowed.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public UpdatePullRequestDescriptionResult updatePullRequestDescription(UpdatePullRequestDescriptionRequest request)
Replaces the contents of the description of a pull request.
updatePullRequestDescription
in interface AWSCodeCommit
updatePullRequestDescriptionRequest
- PullRequestDoesNotExistException
- The pull request ID could not be found. Make sure that you have specified the correct repository name and
pull request ID, and then try again.InvalidPullRequestIdException
- The pull request ID is not valid. Make sure that you have provided the full ID and that the pull request
is in the specified repository, and then try again.PullRequestIdRequiredException
- A pull request ID is required, but none was provided.InvalidDescriptionException
- The pull request description is not valid. Descriptions cannot be more than 1,000 characters.PullRequestAlreadyClosedException
- The pull request status cannot be updated because it is already closed.public UpdatePullRequestStatusResult updatePullRequestStatus(UpdatePullRequestStatusRequest request)
Updates the status of a pull request.
updatePullRequestStatus
in interface AWSCodeCommit
updatePullRequestStatusRequest
- PullRequestDoesNotExistException
- The pull request ID could not be found. Make sure that you have specified the correct repository name and
pull request ID, and then try again.InvalidPullRequestIdException
- The pull request ID is not valid. Make sure that you have provided the full ID and that the pull request
is in the specified repository, and then try again.PullRequestIdRequiredException
- A pull request ID is required, but none was provided.InvalidPullRequestStatusUpdateException
- The pull request status update is not valid. The only valid update is from OPEN
to
CLOSED
.InvalidPullRequestStatusException
- The pull request status is not valid. The only valid values are OPEN
and CLOSED
.PullRequestStatusRequiredException
- A pull request status is required, but none was provided.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public UpdatePullRequestTitleResult updatePullRequestTitle(UpdatePullRequestTitleRequest request)
Replaces the title of a pull request.
updatePullRequestTitle
in interface AWSCodeCommit
updatePullRequestTitleRequest
- PullRequestDoesNotExistException
- The pull request ID could not be found. Make sure that you have specified the correct repository name and
pull request ID, and then try again.InvalidPullRequestIdException
- The pull request ID is not valid. Make sure that you have provided the full ID and that the pull request
is in the specified repository, and then try again.PullRequestIdRequiredException
- A pull request ID is required, but none was provided.TitleRequiredException
- A pull request title is required. It cannot be empty or null.InvalidTitleException
- The title of the pull request is not valid. Pull request titles cannot exceed 100 characters in length.PullRequestAlreadyClosedException
- The pull request status cannot be updated because it is already closed.public UpdateRepositoryDescriptionResult updateRepositoryDescription(UpdateRepositoryDescriptionRequest request)
Sets or changes the comment or description for a repository.
The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a webpage.
updateRepositoryDescription
in interface AWSCodeCommit
updateRepositoryDescriptionRequest
- Represents the input of an update repository description operation.RepositoryNameRequiredException
- A repository name is required, but was not specified.RepositoryDoesNotExistException
- The specified repository does not exist.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
InvalidRepositoryDescriptionException
- The specified repository description is not valid.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public UpdateRepositoryEncryptionKeyResult updateRepositoryEncryptionKey(UpdateRepositoryEncryptionKeyRequest request)
Updates the Key Management Service encryption key used to encrypt and decrypt a CodeCommit repository.
updateRepositoryEncryptionKey
in interface AWSCodeCommit
updateRepositoryEncryptionKeyRequest
- RepositoryNameRequiredException
- A repository name is required, but was not specified.RepositoryDoesNotExistException
- The specified repository does not exist.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
EncryptionKeyRequiredException
- A KMS encryption key ID is required but was not specified.EncryptionIntegrityChecksFailedException
- An encryption integrity check failed.EncryptionKeyAccessDeniedException
- An encryption key could not be accessed.EncryptionKeyInvalidIdException
- The Key Management Service encryption key is not valid.EncryptionKeyInvalidUsageException
- A KMS encryption key was used to try and encrypt or decrypt a repository, but either the repository or
the key was not in a valid state to support the operation.EncryptionKeyDisabledException
- The encryption key is disabled.EncryptionKeyNotFoundException
- No encryption key was found.EncryptionKeyUnavailableException
- The encryption key is not available.public UpdateRepositoryNameResult updateRepositoryName(UpdateRepositoryNameRequest request)
Renames a repository. The repository name must be unique across the calling Amazon Web Services account. Repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. The suffix .git is prohibited. For more information about the limits on repository names, see Quotas in the CodeCommit User Guide.
updateRepositoryName
in interface AWSCodeCommit
updateRepositoryNameRequest
- Represents the input of an update repository description operation.RepositoryDoesNotExistException
- The specified repository does not exist.RepositoryNameExistsException
- The specified repository name already exists.RepositoryNameRequiredException
- A repository name is required, but was not specified.InvalidRepositoryNameException
- A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata
in interface AWSCodeCommit
request
- The originally executed requestpublic void shutdown()
AmazonWebServiceClient
shutdown
in interface AWSCodeCommit
shutdown
in class AmazonWebServiceClient