@Generated(value="software.amazon.awssdk:codegen") public interface CodeCommitClient extends SdkClient
builder()
method.
This is the AWS CodeCommit API Reference. This reference provides descriptions of the operations and data types for AWS CodeCommit API along with usage examples.
You can use the AWS 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 AWS account.
CreateRepository, which creates an AWS CodeCommit repository.
DeleteRepository, which deletes an AWS CodeCommit repository.
GetRepository, which returns information about a specified repository.
ListRepositories, which lists all AWS CodeCommit repositories associated with your AWS account.
UpdateRepositoryDescription, which sets or updates the description of the repository.
UpdateRepositoryName, which changes the name of the repository. If you change the name of a repository, no other users of that repository will be able to access it until you send them the new HTTPS or SSH URL to use.
Branches, by calling the following:
CreateBranch, which creates a new 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.
GetFile, which returns the base-64 encoded content of a specified file.
GetFolder, which returns the contents of a specified folder or directory.
PutFile, which adds or modifies a file in a specified repository and branch.
Information about committed code in a repository, by calling the following:
GetBlob, which returns the base-64 encoded content of an individual Git blob object within 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).
Pull requests, by calling the following:
CreatePullRequest, which creates a pull request in a specified repository.
DescribePullRequestEvents, which returns information about one or more pull request events.
GetCommentsForPullRequest, which returns information about comments on a specified pull request.
GetMergeConflicts, which returns information about merge conflicts between the source and destination branch in a pull request.
GetPullRequest, which returns information about a specified 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.
PostCommentForPullRequest, which posts a comment to a pull request at the specified line, file, or 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.
Information about 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.
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.
UpdateComment, which updates the content of a comment on a commit in a repository.
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 AWS CodeCommit, see the AWS CodeCommit User Guide.
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_NAME |
Modifier and Type | Method and Description |
---|---|
default BatchGetRepositoriesResponse |
batchGetRepositories(BatchGetRepositoriesRequest batchGetRepositoriesRequest)
Returns information about one or more repositories.
|
default BatchGetRepositoriesResponse |
batchGetRepositories(Consumer<BatchGetRepositoriesRequest.Builder> batchGetRepositoriesRequest)
Returns information about one or more repositories.
|
static CodeCommitClientBuilder |
builder()
Create a builder that can be used to configure and create a
CodeCommitClient . |
static CodeCommitClient |
create()
Create a
CodeCommitClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider . |
default CreateBranchResponse |
createBranch(Consumer<CreateBranchRequest.Builder> createBranchRequest)
Creates a new branch in a repository and points the branch to a commit.
|
default CreateBranchResponse |
createBranch(CreateBranchRequest createBranchRequest)
Creates a new branch in a repository and points the branch to a commit.
|
default CreatePullRequestResponse |
createPullRequest(Consumer<CreatePullRequestRequest.Builder> createPullRequestRequest)
Creates a pull request in the specified repository.
|
default CreatePullRequestResponse |
createPullRequest(CreatePullRequestRequest createPullRequestRequest)
Creates a pull request in the specified repository.
|
default CreateRepositoryResponse |
createRepository(Consumer<CreateRepositoryRequest.Builder> createRepositoryRequest)
Creates a new, empty repository.
|
default CreateRepositoryResponse |
createRepository(CreateRepositoryRequest createRepositoryRequest)
Creates a new, empty repository.
|
default DeleteBranchResponse |
deleteBranch(Consumer<DeleteBranchRequest.Builder> deleteBranchRequest)
Deletes a branch from a repository, unless that branch is the default branch for the repository.
|
default DeleteBranchResponse |
deleteBranch(DeleteBranchRequest deleteBranchRequest)
Deletes a branch from a repository, unless that branch is the default branch for the repository.
|
default DeleteCommentContentResponse |
deleteCommentContent(Consumer<DeleteCommentContentRequest.Builder> deleteCommentContentRequest)
Deletes the content of a comment made on a change, file, or commit in a repository.
|
default DeleteCommentContentResponse |
deleteCommentContent(DeleteCommentContentRequest deleteCommentContentRequest)
Deletes the content of a comment made on a change, file, or commit in a repository.
|
default DeleteFileResponse |
deleteFile(Consumer<DeleteFileRequest.Builder> deleteFileRequest)
Deletes a specified file from a specified branch.
|
default DeleteFileResponse |
deleteFile(DeleteFileRequest deleteFileRequest)
Deletes a specified file from a specified branch.
|
default DeleteRepositoryResponse |
deleteRepository(Consumer<DeleteRepositoryRequest.Builder> deleteRepositoryRequest)
Deletes a repository.
|
default DeleteRepositoryResponse |
deleteRepository(DeleteRepositoryRequest deleteRepositoryRequest)
Deletes a repository.
|
default DescribePullRequestEventsResponse |
describePullRequestEvents(Consumer<DescribePullRequestEventsRequest.Builder> describePullRequestEventsRequest)
Returns information about one or more pull request events.
|
default DescribePullRequestEventsResponse |
describePullRequestEvents(DescribePullRequestEventsRequest describePullRequestEventsRequest)
Returns information about one or more pull request events.
|
default DescribePullRequestEventsIterable |
describePullRequestEventsPaginator(Consumer<DescribePullRequestEventsRequest.Builder> describePullRequestEventsRequest)
Returns information about one or more pull request events.
|
default DescribePullRequestEventsIterable |
describePullRequestEventsPaginator(DescribePullRequestEventsRequest describePullRequestEventsRequest)
Returns information about one or more pull request events.
|
default GetBlobResponse |
getBlob(Consumer<GetBlobRequest.Builder> getBlobRequest)
Returns the base-64 encoded content of an individual blob within a repository.
|
default GetBlobResponse |
getBlob(GetBlobRequest getBlobRequest)
Returns the base-64 encoded content of an individual blob within a repository.
|
default GetBranchResponse |
getBranch(Consumer<GetBranchRequest.Builder> getBranchRequest)
Returns information about a repository branch, including its name and the last commit ID.
|
default GetBranchResponse |
getBranch(GetBranchRequest getBranchRequest)
Returns information about a repository branch, including its name and the last commit ID.
|
default GetCommentResponse |
getComment(Consumer<GetCommentRequest.Builder> getCommentRequest)
Returns the content of a comment made on a change, file, or commit in a repository.
|
default GetCommentResponse |
getComment(GetCommentRequest getCommentRequest)
Returns the content of a comment made on a change, file, or commit in a repository.
|
default GetCommentsForComparedCommitResponse |
getCommentsForComparedCommit(Consumer<GetCommentsForComparedCommitRequest.Builder> getCommentsForComparedCommitRequest)
Returns information about comments made on the comparison between two commits.
|
default GetCommentsForComparedCommitResponse |
getCommentsForComparedCommit(GetCommentsForComparedCommitRequest getCommentsForComparedCommitRequest)
Returns information about comments made on the comparison between two commits.
|
default GetCommentsForComparedCommitIterable |
getCommentsForComparedCommitPaginator(Consumer<GetCommentsForComparedCommitRequest.Builder> getCommentsForComparedCommitRequest)
Returns information about comments made on the comparison between two commits.
|
default GetCommentsForComparedCommitIterable |
getCommentsForComparedCommitPaginator(GetCommentsForComparedCommitRequest getCommentsForComparedCommitRequest)
Returns information about comments made on the comparison between two commits.
|
default GetCommentsForPullRequestResponse |
getCommentsForPullRequest(Consumer<GetCommentsForPullRequestRequest.Builder> getCommentsForPullRequestRequest)
Returns comments made on a pull request.
|
default GetCommentsForPullRequestResponse |
getCommentsForPullRequest(GetCommentsForPullRequestRequest getCommentsForPullRequestRequest)
Returns comments made on a pull request.
|
default GetCommentsForPullRequestIterable |
getCommentsForPullRequestPaginator(Consumer<GetCommentsForPullRequestRequest.Builder> getCommentsForPullRequestRequest)
Returns comments made on a pull request.
|
default GetCommentsForPullRequestIterable |
getCommentsForPullRequestPaginator(GetCommentsForPullRequestRequest getCommentsForPullRequestRequest)
Returns comments made on a pull request.
|
default GetCommitResponse |
getCommit(Consumer<GetCommitRequest.Builder> getCommitRequest)
Returns information about a commit, including commit message and committer information.
|
default GetCommitResponse |
getCommit(GetCommitRequest getCommitRequest)
Returns information about a commit, including commit message and committer information.
|
default GetDifferencesResponse |
getDifferences(Consumer<GetDifferencesRequest.Builder> getDifferencesRequest)
Returns information about the differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID or
other fully qualified reference).
|
default GetDifferencesResponse |
getDifferences(GetDifferencesRequest getDifferencesRequest)
Returns information about the differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID or
other fully qualified reference).
|
default GetDifferencesIterable |
getDifferencesPaginator(Consumer<GetDifferencesRequest.Builder> getDifferencesRequest)
Returns information about the differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID or
other fully qualified reference).
|
default GetDifferencesIterable |
getDifferencesPaginator(GetDifferencesRequest getDifferencesRequest)
Returns information about the differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID or
other fully qualified reference).
|
default GetFileResponse |
getFile(Consumer<GetFileRequest.Builder> getFileRequest)
Returns the base-64 encoded contents of a specified file and its metadata.
|
default GetFileResponse |
getFile(GetFileRequest getFileRequest)
Returns the base-64 encoded contents of a specified file and its metadata.
|
default GetFolderResponse |
getFolder(Consumer<GetFolderRequest.Builder> getFolderRequest)
Returns the contents of a specified folder in a repository.
|
default GetFolderResponse |
getFolder(GetFolderRequest getFolderRequest)
Returns the contents of a specified folder in a repository.
|
default GetMergeConflictsResponse |
getMergeConflicts(Consumer<GetMergeConflictsRequest.Builder> getMergeConflictsRequest)
Returns information about merge conflicts between the before and after commit IDs for a pull request in a
repository.
|
default GetMergeConflictsResponse |
getMergeConflicts(GetMergeConflictsRequest getMergeConflictsRequest)
Returns information about merge conflicts between the before and after commit IDs for a pull request in a
repository.
|
default GetPullRequestResponse |
getPullRequest(Consumer<GetPullRequestRequest.Builder> getPullRequestRequest)
Gets information about a pull request in a specified repository.
|
default GetPullRequestResponse |
getPullRequest(GetPullRequestRequest getPullRequestRequest)
Gets information about a pull request in a specified repository.
|
default GetRepositoryResponse |
getRepository(Consumer<GetRepositoryRequest.Builder> getRepositoryRequest)
Returns information about a repository.
|
default GetRepositoryResponse |
getRepository(GetRepositoryRequest getRepositoryRequest)
Returns information about a repository.
|
default GetRepositoryTriggersResponse |
getRepositoryTriggers(Consumer<GetRepositoryTriggersRequest.Builder> getRepositoryTriggersRequest)
Gets information about triggers configured for a repository.
|
default GetRepositoryTriggersResponse |
getRepositoryTriggers(GetRepositoryTriggersRequest getRepositoryTriggersRequest)
Gets information about triggers configured for a repository.
|
default ListBranchesResponse |
listBranches(Consumer<ListBranchesRequest.Builder> listBranchesRequest)
Gets information about one or more branches in a repository.
|
default ListBranchesResponse |
listBranches(ListBranchesRequest listBranchesRequest)
Gets information about one or more branches in a repository.
|
default ListBranchesIterable |
listBranchesPaginator(Consumer<ListBranchesRequest.Builder> listBranchesRequest)
Gets information about one or more branches in a repository.
|
default ListBranchesIterable |
listBranchesPaginator(ListBranchesRequest listBranchesRequest)
Gets information about one or more branches in a repository.
|
default ListPullRequestsResponse |
listPullRequests(Consumer<ListPullRequestsRequest.Builder> listPullRequestsRequest)
Returns a list of pull requests for a specified repository.
|
default ListPullRequestsResponse |
listPullRequests(ListPullRequestsRequest listPullRequestsRequest)
Returns a list of pull requests for a specified repository.
|
default ListPullRequestsIterable |
listPullRequestsPaginator(Consumer<ListPullRequestsRequest.Builder> listPullRequestsRequest)
Returns a list of pull requests for a specified repository.
|
default ListPullRequestsIterable |
listPullRequestsPaginator(ListPullRequestsRequest listPullRequestsRequest)
Returns a list of pull requests for a specified repository.
|
default ListRepositoriesResponse |
listRepositories()
Gets information about one or more repositories.
|
default ListRepositoriesResponse |
listRepositories(Consumer<ListRepositoriesRequest.Builder> listRepositoriesRequest)
Gets information about one or more repositories.
|
default ListRepositoriesResponse |
listRepositories(ListRepositoriesRequest listRepositoriesRequest)
Gets information about one or more repositories.
|
default ListRepositoriesIterable |
listRepositoriesPaginator()
Gets information about one or more repositories.
|
default ListRepositoriesIterable |
listRepositoriesPaginator(Consumer<ListRepositoriesRequest.Builder> listRepositoriesRequest)
Gets information about one or more repositories.
|
default ListRepositoriesIterable |
listRepositoriesPaginator(ListRepositoriesRequest listRepositoriesRequest)
Gets information about one or more repositories.
|
default MergePullRequestByFastForwardResponse |
mergePullRequestByFastForward(Consumer<MergePullRequestByFastForwardRequest.Builder> mergePullRequestByFastForwardRequest)
Closes a pull request and 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 option.
|
default MergePullRequestByFastForwardResponse |
mergePullRequestByFastForward(MergePullRequestByFastForwardRequest mergePullRequestByFastForwardRequest)
Closes a pull request and 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 option.
|
default PostCommentForComparedCommitResponse |
postCommentForComparedCommit(Consumer<PostCommentForComparedCommitRequest.Builder> postCommentForComparedCommitRequest)
Posts a comment on the comparison between two commits.
|
default PostCommentForComparedCommitResponse |
postCommentForComparedCommit(PostCommentForComparedCommitRequest postCommentForComparedCommitRequest)
Posts a comment on the comparison between two commits.
|
default PostCommentForPullRequestResponse |
postCommentForPullRequest(Consumer<PostCommentForPullRequestRequest.Builder> postCommentForPullRequestRequest)
Posts a comment on a pull request.
|
default PostCommentForPullRequestResponse |
postCommentForPullRequest(PostCommentForPullRequestRequest postCommentForPullRequestRequest)
Posts a comment on a pull request.
|
default PostCommentReplyResponse |
postCommentReply(Consumer<PostCommentReplyRequest.Builder> postCommentReplyRequest)
Posts a comment in reply to an existing comment on a comparison between commits or a pull request.
|
default PostCommentReplyResponse |
postCommentReply(PostCommentReplyRequest postCommentReplyRequest)
Posts a comment in reply to an existing comment on a comparison between commits or a pull request.
|
default PutFileResponse |
putFile(Consumer<PutFileRequest.Builder> putFileRequest)
Adds or updates a file in a branch in an AWS CodeCommit repository, and generates a commit for the addition in
the specified branch.
|
default PutFileResponse |
putFile(PutFileRequest putFileRequest)
Adds or updates a file in a branch in an AWS CodeCommit repository, and generates a commit for the addition in
the specified branch.
|
default PutRepositoryTriggersResponse |
putRepositoryTriggers(Consumer<PutRepositoryTriggersRequest.Builder> putRepositoryTriggersRequest)
Replaces all triggers for a repository.
|
default PutRepositoryTriggersResponse |
putRepositoryTriggers(PutRepositoryTriggersRequest putRepositoryTriggersRequest)
Replaces all triggers for a repository.
|
static ServiceMetadata |
serviceMetadata() |
default TestRepositoryTriggersResponse |
testRepositoryTriggers(Consumer<TestRepositoryTriggersRequest.Builder> testRepositoryTriggersRequest)
Tests the functionality of repository triggers by sending information to the trigger target.
|
default TestRepositoryTriggersResponse |
testRepositoryTriggers(TestRepositoryTriggersRequest testRepositoryTriggersRequest)
Tests the functionality of repository triggers by sending information to the trigger target.
|
default UpdateCommentResponse |
updateComment(Consumer<UpdateCommentRequest.Builder> updateCommentRequest)
Replaces the contents of a comment.
|
default UpdateCommentResponse |
updateComment(UpdateCommentRequest updateCommentRequest)
Replaces the contents of a comment.
|
default UpdateDefaultBranchResponse |
updateDefaultBranch(Consumer<UpdateDefaultBranchRequest.Builder> updateDefaultBranchRequest)
Sets or changes the default branch name for the specified repository.
|
default UpdateDefaultBranchResponse |
updateDefaultBranch(UpdateDefaultBranchRequest updateDefaultBranchRequest)
Sets or changes the default branch name for the specified repository.
|
default UpdatePullRequestDescriptionResponse |
updatePullRequestDescription(Consumer<UpdatePullRequestDescriptionRequest.Builder> updatePullRequestDescriptionRequest)
Replaces the contents of the description of a pull request.
|
default UpdatePullRequestDescriptionResponse |
updatePullRequestDescription(UpdatePullRequestDescriptionRequest updatePullRequestDescriptionRequest)
Replaces the contents of the description of a pull request.
|
default UpdatePullRequestStatusResponse |
updatePullRequestStatus(Consumer<UpdatePullRequestStatusRequest.Builder> updatePullRequestStatusRequest)
Updates the status of a pull request.
|
default UpdatePullRequestStatusResponse |
updatePullRequestStatus(UpdatePullRequestStatusRequest updatePullRequestStatusRequest)
Updates the status of a pull request.
|
default UpdatePullRequestTitleResponse |
updatePullRequestTitle(Consumer<UpdatePullRequestTitleRequest.Builder> updatePullRequestTitleRequest)
Replaces the title of a pull request.
|
default UpdatePullRequestTitleResponse |
updatePullRequestTitle(UpdatePullRequestTitleRequest updatePullRequestTitleRequest)
Replaces the title of a pull request.
|
default UpdateRepositoryDescriptionResponse |
updateRepositoryDescription(Consumer<UpdateRepositoryDescriptionRequest.Builder> updateRepositoryDescriptionRequest)
Sets or changes the comment or description for a repository.
|
default UpdateRepositoryDescriptionResponse |
updateRepositoryDescription(UpdateRepositoryDescriptionRequest updateRepositoryDescriptionRequest)
Sets or changes the comment or description for a repository.
|
default UpdateRepositoryNameResponse |
updateRepositoryName(Consumer<UpdateRepositoryNameRequest.Builder> updateRepositoryNameRequest)
Renames a repository.
|
default UpdateRepositoryNameResponse |
updateRepositoryName(UpdateRepositoryNameRequest updateRepositoryNameRequest)
Renames a repository.
|
serviceName
close
static final String SERVICE_NAME
static CodeCommitClient create()
CodeCommitClient
with the region loaded from the
DefaultAwsRegionProviderChain
and credentials loaded from the
DefaultCredentialsProvider
.static CodeCommitClientBuilder builder()
CodeCommitClient
.default BatchGetRepositoriesResponse batchGetRepositories(BatchGetRepositoriesRequest batchGetRepositoriesRequest) throws RepositoryNamesRequiredException, MaximumRepositoryNamesExceededException, InvalidRepositoryNameException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
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 web page could 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 web page.
batchGetRepositoriesRequest
- Represents the input of a batch get repositories operation.RepositoryNamesRequiredException
- A repository names object is required but was not specified.MaximumRepositoryNamesExceededException
- The maximum number of allowed repository names was exceeded. Currently, this number is 25.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default BatchGetRepositoriesResponse batchGetRepositories(Consumer<BatchGetRepositoriesRequest.Builder> batchGetRepositoriesRequest) throws RepositoryNamesRequiredException, MaximumRepositoryNamesExceededException, InvalidRepositoryNameException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
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 web page could 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 web page.
This is a convenience which creates an instance of the BatchGetRepositoriesRequest.Builder
avoiding the
need to create one manually via BatchGetRepositoriesRequest.builder()
batchGetRepositoriesRequest
- A Consumer
that will call methods on BatchGetRepositoriesInput.Builder
to create a
request. Represents the input of a batch get repositories operation.RepositoryNamesRequiredException
- A repository names object is required but was not specified.MaximumRepositoryNamesExceededException
- The maximum number of allowed repository names was exceeded. Currently, this number is 25.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default CreateBranchResponse createBranch(CreateBranchRequest createBranchRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, BranchNameRequiredException, BranchNameExistsException, InvalidBranchNameException, CommitIdRequiredException, CommitDoesNotExistException, InvalidCommitIdException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Creates a new 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.
createBranchRequest
- Represents the input of a create branch operation.RepositoryNameRequiredException
- A repository name is required but was not specified.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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
- The specified branch name already exists.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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default CreateBranchResponse createBranch(Consumer<CreateBranchRequest.Builder> createBranchRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, BranchNameRequiredException, BranchNameExistsException, InvalidBranchNameException, CommitIdRequiredException, CommitDoesNotExistException, InvalidCommitIdException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Creates a new 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.
This is a convenience which creates an instance of the CreateBranchRequest.Builder
avoiding the need to
create one manually via CreateBranchRequest.builder()
createBranchRequest
- A Consumer
that will call methods on CreateBranchInput.Builder
to create a request.
Represents the input of a create branch operation.RepositoryNameRequiredException
- A repository name is required but was not specified.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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
- The specified branch name already exists.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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default CreatePullRequestResponse createPullRequest(CreatePullRequestRequest createPullRequestRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, ClientRequestTokenRequiredException, InvalidClientRequestTokenException, IdempotencyParameterMismatchException, ReferenceNameRequiredException, InvalidReferenceNameException, ReferenceDoesNotExistException, ReferenceTypeNotSupportedException, TitleRequiredException, InvalidTitleException, InvalidDescriptionException, TargetsRequiredException, InvalidTargetsException, TargetRequiredException, InvalidTargetException, MultipleRepositoriesInPullRequestException, MaximumOpenPullRequestsExceededException, SourceAndDestinationAreSameException, AwsServiceException, SdkClientException, CodeCommitException
Creates a pull request in the specified repository.
createPullRequestRequest
- RepositoryNameRequiredException
- A repository name is required but was not specified.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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 will return
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 re-used.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/master. 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 are limited to 1,000 characters in length.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 the destination branch for the pull request are the same. You must specify
different branches for the source and destination.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default CreatePullRequestResponse createPullRequest(Consumer<CreatePullRequestRequest.Builder> createPullRequestRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, ClientRequestTokenRequiredException, InvalidClientRequestTokenException, IdempotencyParameterMismatchException, ReferenceNameRequiredException, InvalidReferenceNameException, ReferenceDoesNotExistException, ReferenceTypeNotSupportedException, TitleRequiredException, InvalidTitleException, InvalidDescriptionException, TargetsRequiredException, InvalidTargetsException, TargetRequiredException, InvalidTargetException, MultipleRepositoriesInPullRequestException, MaximumOpenPullRequestsExceededException, SourceAndDestinationAreSameException, AwsServiceException, SdkClientException, CodeCommitException
Creates a pull request in the specified repository.
This is a convenience which creates an instance of the CreatePullRequestRequest.Builder
avoiding the need
to create one manually via CreatePullRequestRequest.builder()
createPullRequestRequest
- A Consumer
that will call methods on CreatePullRequestInput.Builder
to create a request.RepositoryNameRequiredException
- A repository name is required but was not specified.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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 will return
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 re-used.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/master. 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 are limited to 1,000 characters in length.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 the destination branch for the pull request are the same. You must specify
different branches for the source and destination.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default CreateRepositoryResponse createRepository(CreateRepositoryRequest createRepositoryRequest) throws RepositoryNameExistsException, RepositoryNameRequiredException, InvalidRepositoryNameException, InvalidRepositoryDescriptionException, RepositoryLimitExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Creates a new, empty repository.
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
- At least one specified repository name is not valid. This exception only occurs 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.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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default CreateRepositoryResponse createRepository(Consumer<CreateRepositoryRequest.Builder> createRepositoryRequest) throws RepositoryNameExistsException, RepositoryNameRequiredException, InvalidRepositoryNameException, InvalidRepositoryDescriptionException, RepositoryLimitExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Creates a new, empty repository.
This is a convenience which creates an instance of the CreateRepositoryRequest.Builder
avoiding the need
to create one manually via CreateRepositoryRequest.builder()
createRepositoryRequest
- A Consumer
that will call methods on CreateRepositoryInput.Builder
to create a request.
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
- At least one specified repository name is not valid. This exception only occurs 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.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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteBranchResponse deleteBranch(DeleteBranchRequest deleteBranchRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, BranchNameRequiredException, InvalidBranchNameException, DefaultBranchCannotBeDeletedException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Deletes a branch from a repository, unless that branch is the default branch for the repository.
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
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteBranchResponse deleteBranch(Consumer<DeleteBranchRequest.Builder> deleteBranchRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, BranchNameRequiredException, InvalidBranchNameException, DefaultBranchCannotBeDeletedException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Deletes a branch from a repository, unless that branch is the default branch for the repository.
This is a convenience which creates an instance of the DeleteBranchRequest.Builder
avoiding the need to
create one manually via DeleteBranchRequest.builder()
deleteBranchRequest
- A Consumer
that will call methods on DeleteBranchInput.Builder
to create a request.
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
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteCommentContentResponse deleteCommentContent(DeleteCommentContentRequest deleteCommentContentRequest) throws CommentDoesNotExistException, CommentIdRequiredException, InvalidCommentIdException, CommentDeletedException, AwsServiceException, SdkClientException, CodeCommitException
Deletes the content of a comment made on a change, file, or commit in a repository.
deleteCommentContentRequest
- CommentDoesNotExistException
- No comment exists with the provided ID. Verify that you have provided 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteCommentContentResponse deleteCommentContent(Consumer<DeleteCommentContentRequest.Builder> deleteCommentContentRequest) throws CommentDoesNotExistException, CommentIdRequiredException, InvalidCommentIdException, CommentDeletedException, AwsServiceException, SdkClientException, CodeCommitException
Deletes the content of a comment made on a change, file, or commit in a repository.
This is a convenience which creates an instance of the DeleteCommentContentRequest.Builder
avoiding the
need to create one manually via DeleteCommentContentRequest.builder()
deleteCommentContentRequest
- A Consumer
that will call methods on DeleteCommentContentInput.Builder
to create a
request.CommentDoesNotExistException
- No comment exists with the provided ID. Verify that you have provided 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteFileResponse deleteFile(DeleteFileRequest deleteFileRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, ParentCommitIdRequiredException, InvalidParentCommitIdException, ParentCommitDoesNotExistException, ParentCommitIdOutdatedException, PathRequiredException, InvalidPathException, FileDoesNotExistException, BranchNameRequiredException, InvalidBranchNameException, BranchDoesNotExistException, BranchNameIsTagNameException, NameLengthExceededException, InvalidEmailException, CommitMessageLengthExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Deletes a specified file from a specified branch. A commit is created on the branch that contains the revision. The file will still exist in the commits prior to the commit that contains the deletion.
deleteFileRequest
- RepositoryNameRequiredException
- A repository name is required but was not specified.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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 provided the correct name of the file, including
its 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. Type the name of a current 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 file names. File names,
including the path to the file, cannot exceed the character limit.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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteFileResponse deleteFile(Consumer<DeleteFileRequest.Builder> deleteFileRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, ParentCommitIdRequiredException, InvalidParentCommitIdException, ParentCommitDoesNotExistException, ParentCommitIdOutdatedException, PathRequiredException, InvalidPathException, FileDoesNotExistException, BranchNameRequiredException, InvalidBranchNameException, BranchDoesNotExistException, BranchNameIsTagNameException, NameLengthExceededException, InvalidEmailException, CommitMessageLengthExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Deletes a specified file from a specified branch. A commit is created on the branch that contains the revision. The file will still exist in the commits prior to the commit that contains the deletion.
This is a convenience which creates an instance of the DeleteFileRequest.Builder
avoiding the need to
create one manually via DeleteFileRequest.builder()
deleteFileRequest
- A Consumer
that will call methods on DeleteFileInput.Builder
to create a request.RepositoryNameRequiredException
- A repository name is required but was not specified.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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 provided the correct name of the file, including
its 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. Type the name of a current 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 file names. File names,
including the path to the file, cannot exceed the character limit.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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteRepositoryResponse deleteRepository(DeleteRepositoryRequest deleteRepositoryRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Deletes a repository. If a specified repository was already deleted, a null repository ID will be returned.
Deleting a repository also deletes all associated objects and metadata. After a repository is deleted, all future push calls to the deleted repository will fail.
deleteRepositoryRequest
- Represents the input of a delete repository operation.RepositoryNameRequiredException
- A repository name is required but was not specified.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteRepositoryResponse deleteRepository(Consumer<DeleteRepositoryRequest.Builder> deleteRepositoryRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Deletes a repository. If a specified repository was already deleted, a null repository ID will be returned.
Deleting a repository also deletes all associated objects and metadata. After a repository is deleted, all future push calls to the deleted repository will fail.
This is a convenience which creates an instance of the DeleteRepositoryRequest.Builder
avoiding the need
to create one manually via DeleteRepositoryRequest.builder()
deleteRepositoryRequest
- A Consumer
that will call methods on DeleteRepositoryInput.Builder
to create a request.
Represents the input of a delete repository operation.RepositoryNameRequiredException
- A repository name is required but was not specified.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DescribePullRequestEventsResponse describePullRequestEvents(DescribePullRequestEventsRequest describePullRequestEventsRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, InvalidPullRequestEventTypeException, InvalidActorArnException, ActorDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Returns information about one or more pull request events.
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 AWS 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DescribePullRequestEventsResponse describePullRequestEvents(Consumer<DescribePullRequestEventsRequest.Builder> describePullRequestEventsRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, InvalidPullRequestEventTypeException, InvalidActorArnException, ActorDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Returns information about one or more pull request events.
This is a convenience which creates an instance of the DescribePullRequestEventsRequest.Builder
avoiding
the need to create one manually via DescribePullRequestEventsRequest.builder()
describePullRequestEventsRequest
- A Consumer
that will call methods on DescribePullRequestEventsInput.Builder
to create a
request.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 AWS 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DescribePullRequestEventsIterable describePullRequestEventsPaginator(DescribePullRequestEventsRequest describePullRequestEventsRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, InvalidPullRequestEventTypeException, InvalidActorArnException, ActorDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Returns information about one or more pull request events.
This is a variant of
describePullRequestEvents(software.amazon.awssdk.services.codecommit.model.DescribePullRequestEventsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.codecommit.paginators.DescribePullRequestEventsIterable responses = client.describePullRequestEventsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.codecommit.paginators.DescribePullRequestEventsIterable responses = client .describePullRequestEventsPaginator(request); for (software.amazon.awssdk.services.codecommit.model.DescribePullRequestEventsResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.codecommit.paginators.DescribePullRequestEventsIterable responses = client.describePullRequestEventsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
describePullRequestEvents(software.amazon.awssdk.services.codecommit.model.DescribePullRequestEventsRequest)
operation.
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 AWS 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DescribePullRequestEventsIterable describePullRequestEventsPaginator(Consumer<DescribePullRequestEventsRequest.Builder> describePullRequestEventsRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, InvalidPullRequestEventTypeException, InvalidActorArnException, ActorDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Returns information about one or more pull request events.
This is a variant of
describePullRequestEvents(software.amazon.awssdk.services.codecommit.model.DescribePullRequestEventsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.codecommit.paginators.DescribePullRequestEventsIterable responses = client.describePullRequestEventsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.codecommit.paginators.DescribePullRequestEventsIterable responses = client .describePullRequestEventsPaginator(request); for (software.amazon.awssdk.services.codecommit.model.DescribePullRequestEventsResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.codecommit.paginators.DescribePullRequestEventsIterable responses = client.describePullRequestEventsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
describePullRequestEvents(software.amazon.awssdk.services.codecommit.model.DescribePullRequestEventsRequest)
operation.
This is a convenience which creates an instance of the DescribePullRequestEventsRequest.Builder
avoiding
the need to create one manually via DescribePullRequestEventsRequest.builder()
describePullRequestEventsRequest
- A Consumer
that will call methods on DescribePullRequestEventsInput.Builder
to create a
request.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 AWS 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBlobResponse getBlob(GetBlobRequest getBlobRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, BlobIdRequiredException, InvalidBlobIdException, BlobIdDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, FileTooLargeException, AwsServiceException, SdkClientException, CodeCommitException
Returns the base-64 encoded content of an individual blob within a repository.
getBlobRequest
- Represents the input of a get blob operation.RepositoryNameRequiredException
- A repository name is required but was not specified.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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 AWS CodeCommit. For more information about limits in
AWS CodeCommit, see AWS
CodeCommit User Guide.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBlobResponse getBlob(Consumer<GetBlobRequest.Builder> getBlobRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, BlobIdRequiredException, InvalidBlobIdException, BlobIdDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, FileTooLargeException, AwsServiceException, SdkClientException, CodeCommitException
Returns the base-64 encoded content of an individual blob within a repository.
This is a convenience which creates an instance of the GetBlobRequest.Builder
avoiding the need to create
one manually via GetBlobRequest.builder()
getBlobRequest
- A Consumer
that will call methods on GetBlobInput.Builder
to create a request. Represents
the input of a get blob operation.RepositoryNameRequiredException
- A repository name is required but was not specified.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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 AWS CodeCommit. For more information about limits in
AWS CodeCommit, see AWS
CodeCommit User Guide.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBranchResponse getBranch(GetBranchRequest getBranchRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, BranchNameRequiredException, InvalidBranchNameException, BranchDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Returns information about a repository branch, including its name and the last commit ID.
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
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetBranchResponse getBranch(Consumer<GetBranchRequest.Builder> getBranchRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, BranchNameRequiredException, InvalidBranchNameException, BranchDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Returns information about a repository branch, including its name and the last commit ID.
This is a convenience which creates an instance of the GetBranchRequest.Builder
avoiding the need to
create one manually via GetBranchRequest.builder()
getBranchRequest
- A Consumer
that will call methods on GetBranchInput.Builder
to create a request.
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
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetCommentResponse getComment(GetCommentRequest getCommentRequest) throws CommentDoesNotExistException, CommentIdRequiredException, InvalidCommentIdException, CommentDeletedException, AwsServiceException, SdkClientException, CodeCommitException
Returns the content of a comment made on a change, file, or commit in a repository.
getCommentRequest
- CommentDoesNotExistException
- No comment exists with the provided ID. Verify that you have provided 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetCommentResponse getComment(Consumer<GetCommentRequest.Builder> getCommentRequest) throws CommentDoesNotExistException, CommentIdRequiredException, InvalidCommentIdException, CommentDeletedException, AwsServiceException, SdkClientException, CodeCommitException
Returns the content of a comment made on a change, file, or commit in a repository.
This is a convenience which creates an instance of the GetCommentRequest.Builder
avoiding the need to
create one manually via GetCommentRequest.builder()
getCommentRequest
- A Consumer
that will call methods on GetCommentInput.Builder
to create a request.CommentDoesNotExistException
- No comment exists with the provided ID. Verify that you have provided 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetCommentsForComparedCommitResponse getCommentsForComparedCommit(GetCommentsForComparedCommitRequest getCommentsForComparedCommitRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, CommitIdRequiredException, InvalidCommitIdException, CommitDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Returns information about comments made on the comparison between two commits.
getCommentsForComparedCommitRequest
- RepositoryNameRequiredException
- A repository name is required but was not specified.RepositoryDoesNotExistException
- The specified repository does not exist.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetCommentsForComparedCommitResponse getCommentsForComparedCommit(Consumer<GetCommentsForComparedCommitRequest.Builder> getCommentsForComparedCommitRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, CommitIdRequiredException, InvalidCommitIdException, CommitDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Returns information about comments made on the comparison between two commits.
This is a convenience which creates an instance of the GetCommentsForComparedCommitRequest.Builder
avoiding the need to create one manually via GetCommentsForComparedCommitRequest.builder()
getCommentsForComparedCommitRequest
- A Consumer
that will call methods on GetCommentsForComparedCommitInput.Builder
to create a
request.RepositoryNameRequiredException
- A repository name is required but was not specified.RepositoryDoesNotExistException
- The specified repository does not exist.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetCommentsForComparedCommitIterable getCommentsForComparedCommitPaginator(GetCommentsForComparedCommitRequest getCommentsForComparedCommitRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, CommitIdRequiredException, InvalidCommitIdException, CommitDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Returns information about comments made on the comparison between two commits.
This is a variant of
getCommentsForComparedCommit(software.amazon.awssdk.services.codecommit.model.GetCommentsForComparedCommitRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.codecommit.paginators.GetCommentsForComparedCommitIterable responses = client.getCommentsForComparedCommitPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.codecommit.paginators.GetCommentsForComparedCommitIterable responses = client .getCommentsForComparedCommitPaginator(request); for (software.amazon.awssdk.services.codecommit.model.GetCommentsForComparedCommitResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.codecommit.paginators.GetCommentsForComparedCommitIterable responses = client.getCommentsForComparedCommitPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getCommentsForComparedCommit(software.amazon.awssdk.services.codecommit.model.GetCommentsForComparedCommitRequest)
operation.
getCommentsForComparedCommitRequest
- RepositoryNameRequiredException
- A repository name is required but was not specified.RepositoryDoesNotExistException
- The specified repository does not exist.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetCommentsForComparedCommitIterable getCommentsForComparedCommitPaginator(Consumer<GetCommentsForComparedCommitRequest.Builder> getCommentsForComparedCommitRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, CommitIdRequiredException, InvalidCommitIdException, CommitDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Returns information about comments made on the comparison between two commits.
This is a variant of
getCommentsForComparedCommit(software.amazon.awssdk.services.codecommit.model.GetCommentsForComparedCommitRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.codecommit.paginators.GetCommentsForComparedCommitIterable responses = client.getCommentsForComparedCommitPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.codecommit.paginators.GetCommentsForComparedCommitIterable responses = client .getCommentsForComparedCommitPaginator(request); for (software.amazon.awssdk.services.codecommit.model.GetCommentsForComparedCommitResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.codecommit.paginators.GetCommentsForComparedCommitIterable responses = client.getCommentsForComparedCommitPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getCommentsForComparedCommit(software.amazon.awssdk.services.codecommit.model.GetCommentsForComparedCommitRequest)
operation.
This is a convenience which creates an instance of the GetCommentsForComparedCommitRequest.Builder
avoiding the need to create one manually via GetCommentsForComparedCommitRequest.builder()
getCommentsForComparedCommitRequest
- A Consumer
that will call methods on GetCommentsForComparedCommitInput.Builder
to create a
request.RepositoryNameRequiredException
- A repository name is required but was not specified.RepositoryDoesNotExistException
- The specified repository does not exist.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetCommentsForPullRequestResponse getCommentsForPullRequest(GetCommentsForPullRequestRequest getCommentsForPullRequestRequest) throws PullRequestIdRequiredException, PullRequestDoesNotExistException, InvalidPullRequestIdException, RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, CommitIdRequiredException, InvalidCommitIdException, CommitDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, RepositoryNotAssociatedWithPullRequestException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Returns comments made on a pull request.
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
- At least one specified repository name is not valid. This exception only occurs 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. Check to make sure you have
provided the correct repository name for the pull request.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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetCommentsForPullRequestResponse getCommentsForPullRequest(Consumer<GetCommentsForPullRequestRequest.Builder> getCommentsForPullRequestRequest) throws PullRequestIdRequiredException, PullRequestDoesNotExistException, InvalidPullRequestIdException, RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, CommitIdRequiredException, InvalidCommitIdException, CommitDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, RepositoryNotAssociatedWithPullRequestException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Returns comments made on a pull request.
This is a convenience which creates an instance of the GetCommentsForPullRequestRequest.Builder
avoiding
the need to create one manually via GetCommentsForPullRequestRequest.builder()
getCommentsForPullRequestRequest
- A Consumer
that will call methods on GetCommentsForPullRequestInput.Builder
to create a
request.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
- At least one specified repository name is not valid. This exception only occurs 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. Check to make sure you have
provided the correct repository name for the pull request.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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetCommentsForPullRequestIterable getCommentsForPullRequestPaginator(GetCommentsForPullRequestRequest getCommentsForPullRequestRequest) throws PullRequestIdRequiredException, PullRequestDoesNotExistException, InvalidPullRequestIdException, RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, CommitIdRequiredException, InvalidCommitIdException, CommitDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, RepositoryNotAssociatedWithPullRequestException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Returns comments made on a pull request.
This is a variant of
getCommentsForPullRequest(software.amazon.awssdk.services.codecommit.model.GetCommentsForPullRequestRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.codecommit.paginators.GetCommentsForPullRequestIterable responses = client.getCommentsForPullRequestPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.codecommit.paginators.GetCommentsForPullRequestIterable responses = client .getCommentsForPullRequestPaginator(request); for (software.amazon.awssdk.services.codecommit.model.GetCommentsForPullRequestResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.codecommit.paginators.GetCommentsForPullRequestIterable responses = client.getCommentsForPullRequestPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getCommentsForPullRequest(software.amazon.awssdk.services.codecommit.model.GetCommentsForPullRequestRequest)
operation.
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
- At least one specified repository name is not valid. This exception only occurs 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. Check to make sure you have
provided the correct repository name for the pull request.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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetCommentsForPullRequestIterable getCommentsForPullRequestPaginator(Consumer<GetCommentsForPullRequestRequest.Builder> getCommentsForPullRequestRequest) throws PullRequestIdRequiredException, PullRequestDoesNotExistException, InvalidPullRequestIdException, RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, CommitIdRequiredException, InvalidCommitIdException, CommitDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, RepositoryNotAssociatedWithPullRequestException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Returns comments made on a pull request.
This is a variant of
getCommentsForPullRequest(software.amazon.awssdk.services.codecommit.model.GetCommentsForPullRequestRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.codecommit.paginators.GetCommentsForPullRequestIterable responses = client.getCommentsForPullRequestPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.codecommit.paginators.GetCommentsForPullRequestIterable responses = client .getCommentsForPullRequestPaginator(request); for (software.amazon.awssdk.services.codecommit.model.GetCommentsForPullRequestResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.codecommit.paginators.GetCommentsForPullRequestIterable responses = client.getCommentsForPullRequestPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getCommentsForPullRequest(software.amazon.awssdk.services.codecommit.model.GetCommentsForPullRequestRequest)
operation.
This is a convenience which creates an instance of the GetCommentsForPullRequestRequest.Builder
avoiding
the need to create one manually via GetCommentsForPullRequestRequest.builder()
getCommentsForPullRequestRequest
- A Consumer
that will call methods on GetCommentsForPullRequestInput.Builder
to create a
request.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
- At least one specified repository name is not valid. This exception only occurs 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. Check to make sure you have
provided the correct repository name for the pull request.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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetCommitResponse getCommit(GetCommitRequest getCommitRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, CommitIdRequiredException, InvalidCommitIdException, CommitIdDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Returns information about a commit, including commit message and committer information.
getCommitRequest
- Represents the input of a get commit operation.RepositoryNameRequiredException
- A repository name is required but was not specified.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetCommitResponse getCommit(Consumer<GetCommitRequest.Builder> getCommitRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, CommitIdRequiredException, InvalidCommitIdException, CommitIdDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Returns information about a commit, including commit message and committer information.
This is a convenience which creates an instance of the GetCommitRequest.Builder
avoiding the need to
create one manually via GetCommitRequest.builder()
getCommitRequest
- A Consumer
that will call methods on GetCommitInput.Builder
to create a request.
Represents the input of a get commit operation.RepositoryNameRequiredException
- A repository name is required but was not specified.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetDifferencesResponse getDifferences(GetDifferencesRequest getDifferencesRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, InvalidContinuationTokenException, InvalidMaxResultsException, InvalidCommitIdException, CommitRequiredException, InvalidCommitException, CommitDoesNotExistException, InvalidPathException, PathDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
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.
getDifferencesRequest
- RepositoryNameRequiredException
- A repository name is required but was not specified.RepositoryDoesNotExistException
- The specified repository does not exist.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetDifferencesResponse getDifferences(Consumer<GetDifferencesRequest.Builder> getDifferencesRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, InvalidContinuationTokenException, InvalidMaxResultsException, InvalidCommitIdException, CommitRequiredException, InvalidCommitException, CommitDoesNotExistException, InvalidPathException, PathDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
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.
This is a convenience which creates an instance of the GetDifferencesRequest.Builder
avoiding the need to
create one manually via GetDifferencesRequest.builder()
getDifferencesRequest
- A Consumer
that will call methods on GetDifferencesInput.Builder
to create a request.RepositoryNameRequiredException
- A repository name is required but was not specified.RepositoryDoesNotExistException
- The specified repository does not exist.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetDifferencesIterable getDifferencesPaginator(GetDifferencesRequest getDifferencesRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, InvalidContinuationTokenException, InvalidMaxResultsException, InvalidCommitIdException, CommitRequiredException, InvalidCommitException, CommitDoesNotExistException, InvalidPathException, PathDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
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.
This is a variant of
getDifferences(software.amazon.awssdk.services.codecommit.model.GetDifferencesRequest)
operation. The
return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle
making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.codecommit.paginators.GetDifferencesIterable responses = client.getDifferencesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.codecommit.paginators.GetDifferencesIterable responses = client .getDifferencesPaginator(request); for (software.amazon.awssdk.services.codecommit.model.GetDifferencesResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.codecommit.paginators.GetDifferencesIterable responses = client.getDifferencesPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getDifferences(software.amazon.awssdk.services.codecommit.model.GetDifferencesRequest)
operation.
getDifferencesRequest
- RepositoryNameRequiredException
- A repository name is required but was not specified.RepositoryDoesNotExistException
- The specified repository does not exist.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetDifferencesIterable getDifferencesPaginator(Consumer<GetDifferencesRequest.Builder> getDifferencesRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, InvalidContinuationTokenException, InvalidMaxResultsException, InvalidCommitIdException, CommitRequiredException, InvalidCommitException, CommitDoesNotExistException, InvalidPathException, PathDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
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.
This is a variant of
getDifferences(software.amazon.awssdk.services.codecommit.model.GetDifferencesRequest)
operation. The
return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle
making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.codecommit.paginators.GetDifferencesIterable responses = client.getDifferencesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.codecommit.paginators.GetDifferencesIterable responses = client .getDifferencesPaginator(request); for (software.amazon.awssdk.services.codecommit.model.GetDifferencesResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.codecommit.paginators.GetDifferencesIterable responses = client.getDifferencesPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getDifferences(software.amazon.awssdk.services.codecommit.model.GetDifferencesRequest)
operation.
This is a convenience which creates an instance of the GetDifferencesRequest.Builder
avoiding the need to
create one manually via GetDifferencesRequest.builder()
getDifferencesRequest
- A Consumer
that will call methods on GetDifferencesInput.Builder
to create a request.RepositoryNameRequiredException
- A repository name is required but was not specified.RepositoryDoesNotExistException
- The specified repository does not exist.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetFileResponse getFile(GetFileRequest getFileRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, InvalidCommitException, CommitDoesNotExistException, PathRequiredException, InvalidPathException, FileDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, FileTooLargeException, AwsServiceException, SdkClientException, CodeCommitException
Returns the base-64 encoded contents of a specified file and its metadata.
getFileRequest
- RepositoryNameRequiredException
- A repository name is required but was not specified.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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 provided the correct name of the file, including
its 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 AWS CodeCommit. For more information about limits in
AWS CodeCommit, see AWS
CodeCommit User Guide.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetFileResponse getFile(Consumer<GetFileRequest.Builder> getFileRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, InvalidCommitException, CommitDoesNotExistException, PathRequiredException, InvalidPathException, FileDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, FileTooLargeException, AwsServiceException, SdkClientException, CodeCommitException
Returns the base-64 encoded contents of a specified file and its metadata.
This is a convenience which creates an instance of the GetFileRequest.Builder
avoiding the need to create
one manually via GetFileRequest.builder()
getFileRequest
- A Consumer
that will call methods on GetFileInput.Builder
to create a request.RepositoryNameRequiredException
- A repository name is required but was not specified.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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 provided the correct name of the file, including
its 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 AWS CodeCommit. For more information about limits in
AWS CodeCommit, see AWS
CodeCommit User Guide.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetFolderResponse getFolder(GetFolderRequest getFolderRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, InvalidCommitException, CommitDoesNotExistException, PathRequiredException, InvalidPathException, FolderDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Returns the contents of a specified folder in a repository.
getFolderRequest
- RepositoryNameRequiredException
- A repository name is required but was not specified.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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 provide 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetFolderResponse getFolder(Consumer<GetFolderRequest.Builder> getFolderRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, InvalidCommitException, CommitDoesNotExistException, PathRequiredException, InvalidPathException, FolderDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Returns the contents of a specified folder in a repository.
This is a convenience which creates an instance of the GetFolderRequest.Builder
avoiding the need to
create one manually via GetFolderRequest.builder()
getFolderRequest
- A Consumer
that will call methods on GetFolderInput.Builder
to create a request.RepositoryNameRequiredException
- A repository name is required but was not specified.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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 provide 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetMergeConflictsResponse getMergeConflicts(GetMergeConflictsRequest getMergeConflictsRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, MergeOptionRequiredException, InvalidMergeOptionException, InvalidDestinationCommitSpecifierException, InvalidSourceCommitSpecifierException, CommitRequiredException, CommitDoesNotExistException, InvalidCommitException, TipsDivergenceExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Returns information about merge conflicts between the before and after commit IDs for a pull request in a repository.
getMergeConflictsRequest
- RepositoryNameRequiredException
- A repository name is required but was not specified.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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. The only valid value is FAST_FORWARD_MERGE.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.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.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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetMergeConflictsResponse getMergeConflicts(Consumer<GetMergeConflictsRequest.Builder> getMergeConflictsRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, MergeOptionRequiredException, InvalidMergeOptionException, InvalidDestinationCommitSpecifierException, InvalidSourceCommitSpecifierException, CommitRequiredException, CommitDoesNotExistException, InvalidCommitException, TipsDivergenceExceededException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Returns information about merge conflicts between the before and after commit IDs for a pull request in a repository.
This is a convenience which creates an instance of the GetMergeConflictsRequest.Builder
avoiding the need
to create one manually via GetMergeConflictsRequest.builder()
getMergeConflictsRequest
- A Consumer
that will call methods on GetMergeConflictsInput.Builder
to create a request.RepositoryNameRequiredException
- A repository name is required but was not specified.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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. The only valid value is FAST_FORWARD_MERGE.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.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.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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetPullRequestResponse getPullRequest(GetPullRequestRequest getPullRequestRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Gets information about a pull request in a specified repository.
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetPullRequestResponse getPullRequest(Consumer<GetPullRequestRequest.Builder> getPullRequestRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Gets information about a pull request in a specified repository.
This is a convenience which creates an instance of the GetPullRequestRequest.Builder
avoiding the need to
create one manually via GetPullRequestRequest.builder()
getPullRequestRequest
- A Consumer
that will call methods on GetPullRequestInput.Builder
to create a request.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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetRepositoryResponse getRepository(GetRepositoryRequest getRepositoryRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
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 web page could 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 web page.
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
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetRepositoryResponse getRepository(Consumer<GetRepositoryRequest.Builder> getRepositoryRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
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 web page could 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 web page.
This is a convenience which creates an instance of the GetRepositoryRequest.Builder
avoiding the need to
create one manually via GetRepositoryRequest.builder()
getRepositoryRequest
- A Consumer
that will call methods on GetRepositoryInput.Builder
to create a request.
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
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetRepositoryTriggersResponse getRepositoryTriggers(GetRepositoryTriggersRequest getRepositoryTriggersRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Gets information about triggers configured for a repository.
getRepositoryTriggersRequest
- Represents the input of a get repository triggers operation.RepositoryNameRequiredException
- A repository name is required but was not specified.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetRepositoryTriggersResponse getRepositoryTriggers(Consumer<GetRepositoryTriggersRequest.Builder> getRepositoryTriggersRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Gets information about triggers configured for a repository.
This is a convenience which creates an instance of the GetRepositoryTriggersRequest.Builder
avoiding the
need to create one manually via GetRepositoryTriggersRequest.builder()
getRepositoryTriggersRequest
- A Consumer
that will call methods on GetRepositoryTriggersInput.Builder
to create a
request. Represents the input of a get repository triggers operation.RepositoryNameRequiredException
- A repository name is required but was not specified.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListBranchesResponse listBranches(ListBranchesRequest listBranchesRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, InvalidContinuationTokenException, AwsServiceException, SdkClientException, CodeCommitException
Gets information about one or more branches in a repository.
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
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListBranchesResponse listBranches(Consumer<ListBranchesRequest.Builder> listBranchesRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, InvalidContinuationTokenException, AwsServiceException, SdkClientException, CodeCommitException
Gets information about one or more branches in a repository.
This is a convenience which creates an instance of the ListBranchesRequest.Builder
avoiding the need to
create one manually via ListBranchesRequest.builder()
listBranchesRequest
- A Consumer
that will call methods on ListBranchesInput.Builder
to create a request.
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
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListBranchesIterable listBranchesPaginator(ListBranchesRequest listBranchesRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, InvalidContinuationTokenException, AwsServiceException, SdkClientException, CodeCommitException
Gets information about one or more branches in a repository.
This is a variant of listBranches(software.amazon.awssdk.services.codecommit.model.ListBranchesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.codecommit.paginators.ListBranchesIterable responses = client.listBranchesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.codecommit.paginators.ListBranchesIterable responses = client.listBranchesPaginator(request); for (software.amazon.awssdk.services.codecommit.model.ListBranchesResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.codecommit.paginators.ListBranchesIterable responses = client.listBranchesPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listBranches(software.amazon.awssdk.services.codecommit.model.ListBranchesRequest)
operation.
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
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListBranchesIterable listBranchesPaginator(Consumer<ListBranchesRequest.Builder> listBranchesRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, InvalidContinuationTokenException, AwsServiceException, SdkClientException, CodeCommitException
Gets information about one or more branches in a repository.
This is a variant of listBranches(software.amazon.awssdk.services.codecommit.model.ListBranchesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.codecommit.paginators.ListBranchesIterable responses = client.listBranchesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.codecommit.paginators.ListBranchesIterable responses = client.listBranchesPaginator(request); for (software.amazon.awssdk.services.codecommit.model.ListBranchesResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.codecommit.paginators.ListBranchesIterable responses = client.listBranchesPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listBranches(software.amazon.awssdk.services.codecommit.model.ListBranchesRequest)
operation.
This is a convenience which creates an instance of the ListBranchesRequest.Builder
avoiding the need to
create one manually via ListBranchesRequest.builder()
listBranchesRequest
- A Consumer
that will call methods on ListBranchesInput.Builder
to create a request.
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
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListPullRequestsResponse listPullRequests(ListPullRequestsRequest listPullRequestsRequest) throws InvalidPullRequestStatusException, InvalidAuthorArnException, AuthorDoesNotExistException, RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
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.
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 AWS account.RepositoryNameRequiredException
- A repository name is required but was not specified.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListPullRequestsResponse listPullRequests(Consumer<ListPullRequestsRequest.Builder> listPullRequestsRequest) throws InvalidPullRequestStatusException, InvalidAuthorArnException, AuthorDoesNotExistException, RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
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.
This is a convenience which creates an instance of the ListPullRequestsRequest.Builder
avoiding the need
to create one manually via ListPullRequestsRequest.builder()
listPullRequestsRequest
- A Consumer
that will call methods on ListPullRequestsInput.Builder
to create a request.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 AWS account.RepositoryNameRequiredException
- A repository name is required but was not specified.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListPullRequestsIterable listPullRequestsPaginator(ListPullRequestsRequest listPullRequestsRequest) throws InvalidPullRequestStatusException, InvalidAuthorArnException, AuthorDoesNotExistException, RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
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.
This is a variant of
listPullRequests(software.amazon.awssdk.services.codecommit.model.ListPullRequestsRequest)
operation.
The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally
handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.codecommit.paginators.ListPullRequestsIterable responses = client.listPullRequestsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.codecommit.paginators.ListPullRequestsIterable responses = client .listPullRequestsPaginator(request); for (software.amazon.awssdk.services.codecommit.model.ListPullRequestsResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.codecommit.paginators.ListPullRequestsIterable responses = client.listPullRequestsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listPullRequests(software.amazon.awssdk.services.codecommit.model.ListPullRequestsRequest)
operation.
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 AWS account.RepositoryNameRequiredException
- A repository name is required but was not specified.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListPullRequestsIterable listPullRequestsPaginator(Consumer<ListPullRequestsRequest.Builder> listPullRequestsRequest) throws InvalidPullRequestStatusException, InvalidAuthorArnException, AuthorDoesNotExistException, RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, InvalidMaxResultsException, InvalidContinuationTokenException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
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.
This is a variant of
listPullRequests(software.amazon.awssdk.services.codecommit.model.ListPullRequestsRequest)
operation.
The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally
handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.codecommit.paginators.ListPullRequestsIterable responses = client.listPullRequestsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.codecommit.paginators.ListPullRequestsIterable responses = client .listPullRequestsPaginator(request); for (software.amazon.awssdk.services.codecommit.model.ListPullRequestsResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.codecommit.paginators.ListPullRequestsIterable responses = client.listPullRequestsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listPullRequests(software.amazon.awssdk.services.codecommit.model.ListPullRequestsRequest)
operation.
This is a convenience which creates an instance of the ListPullRequestsRequest.Builder
avoiding the need
to create one manually via ListPullRequestsRequest.builder()
listPullRequestsRequest
- A Consumer
that will call methods on ListPullRequestsInput.Builder
to create a request.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 AWS account.RepositoryNameRequiredException
- A repository name is required but was not specified.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListRepositoriesResponse listRepositories() throws InvalidSortByException, InvalidOrderException, InvalidContinuationTokenException, AwsServiceException, SdkClientException, CodeCommitException
Gets information about one or more repositories.
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
listRepositories(ListRepositoriesRequest)
,
AWS
API Documentationdefault ListRepositoriesResponse listRepositories(ListRepositoriesRequest listRepositoriesRequest) throws InvalidSortByException, InvalidOrderException, InvalidContinuationTokenException, AwsServiceException, SdkClientException, CodeCommitException
Gets information about one or more repositories.
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListRepositoriesResponse listRepositories(Consumer<ListRepositoriesRequest.Builder> listRepositoriesRequest) throws InvalidSortByException, InvalidOrderException, InvalidContinuationTokenException, AwsServiceException, SdkClientException, CodeCommitException
Gets information about one or more repositories.
This is a convenience which creates an instance of the ListRepositoriesRequest.Builder
avoiding the need
to create one manually via ListRepositoriesRequest.builder()
listRepositoriesRequest
- A Consumer
that will call methods on ListRepositoriesInput.Builder
to create a request.
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListRepositoriesIterable listRepositoriesPaginator() throws InvalidSortByException, InvalidOrderException, InvalidContinuationTokenException, AwsServiceException, SdkClientException, CodeCommitException
Gets information about one or more repositories.
This is a variant of
listRepositories(software.amazon.awssdk.services.codecommit.model.ListRepositoriesRequest)
operation.
The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally
handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.codecommit.paginators.ListRepositoriesIterable responses = client.listRepositoriesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.codecommit.paginators.ListRepositoriesIterable responses = client .listRepositoriesPaginator(request); for (software.amazon.awssdk.services.codecommit.model.ListRepositoriesResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.codecommit.paginators.ListRepositoriesIterable responses = client.listRepositoriesPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listRepositories(software.amazon.awssdk.services.codecommit.model.ListRepositoriesRequest)
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
listRepositoriesPaginator(ListRepositoriesRequest)
,
AWS
API Documentationdefault ListRepositoriesIterable listRepositoriesPaginator(ListRepositoriesRequest listRepositoriesRequest) throws InvalidSortByException, InvalidOrderException, InvalidContinuationTokenException, AwsServiceException, SdkClientException, CodeCommitException
Gets information about one or more repositories.
This is a variant of
listRepositories(software.amazon.awssdk.services.codecommit.model.ListRepositoriesRequest)
operation.
The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally
handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.codecommit.paginators.ListRepositoriesIterable responses = client.listRepositoriesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.codecommit.paginators.ListRepositoriesIterable responses = client .listRepositoriesPaginator(request); for (software.amazon.awssdk.services.codecommit.model.ListRepositoriesResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.codecommit.paginators.ListRepositoriesIterable responses = client.listRepositoriesPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listRepositories(software.amazon.awssdk.services.codecommit.model.ListRepositoriesRequest)
operation.
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListRepositoriesIterable listRepositoriesPaginator(Consumer<ListRepositoriesRequest.Builder> listRepositoriesRequest) throws InvalidSortByException, InvalidOrderException, InvalidContinuationTokenException, AwsServiceException, SdkClientException, CodeCommitException
Gets information about one or more repositories.
This is a variant of
listRepositories(software.amazon.awssdk.services.codecommit.model.ListRepositoriesRequest)
operation.
The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally
handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.codecommit.paginators.ListRepositoriesIterable responses = client.listRepositoriesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.codecommit.paginators.ListRepositoriesIterable responses = client .listRepositoriesPaginator(request); for (software.amazon.awssdk.services.codecommit.model.ListRepositoriesResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.codecommit.paginators.ListRepositoriesIterable responses = client.listRepositoriesPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listRepositories(software.amazon.awssdk.services.codecommit.model.ListRepositoriesRequest)
operation.
This is a convenience which creates an instance of the ListRepositoriesRequest.Builder
avoiding the need
to create one manually via ListRepositoriesRequest.builder()
listRepositoriesRequest
- A Consumer
that will call methods on ListRepositoriesInput.Builder
to create a request.
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default MergePullRequestByFastForwardResponse mergePullRequestByFastForward(MergePullRequestByFastForwardRequest mergePullRequestByFastForwardRequest) throws ManualMergeRequiredException, PullRequestAlreadyClosedException, PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, TipOfSourceReferenceIsDifferentException, ReferenceDoesNotExistException, InvalidCommitIdException, RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Closes a pull request and 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 option.
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.RepositoryNameRequiredException
- A repository name is required but was not specified.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default MergePullRequestByFastForwardResponse mergePullRequestByFastForward(Consumer<MergePullRequestByFastForwardRequest.Builder> mergePullRequestByFastForwardRequest) throws ManualMergeRequiredException, PullRequestAlreadyClosedException, PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, TipOfSourceReferenceIsDifferentException, ReferenceDoesNotExistException, InvalidCommitIdException, RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Closes a pull request and 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 option.
This is a convenience which creates an instance of the MergePullRequestByFastForwardRequest.Builder
avoiding the need to create one manually via MergePullRequestByFastForwardRequest.builder()
mergePullRequestByFastForwardRequest
- A Consumer
that will call methods on MergePullRequestByFastForwardInput.Builder
to create
a request.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.RepositoryNameRequiredException
- A repository name is required but was not specified.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default PostCommentForComparedCommitResponse postCommentForComparedCommit(PostCommentForComparedCommitRequest postCommentForComparedCommitRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, ClientRequestTokenRequiredException, InvalidClientRequestTokenException, IdempotencyParameterMismatchException, CommentContentRequiredException, CommentContentSizeLimitExceededException, InvalidFileLocationException, InvalidRelativeFileVersionEnumException, PathRequiredException, InvalidFilePositionException, CommitIdRequiredException, InvalidCommitIdException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, BeforeCommitIdAndAfterCommitIdAreSameException, CommitDoesNotExistException, InvalidPathException, PathDoesNotExistException, AwsServiceException, SdkClientException, CodeCommitException
Posts a comment on the comparison between two commits.
postCommentForComparedCommitRequest
- RepositoryNameRequiredException
- A repository name is required but was not specified.RepositoryDoesNotExistException
- The specified repository does not exist.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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 will return
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 re-used.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 1,000 characters.InvalidFileLocationException
- The location of the file is not valid. Make sure that you include the extension of the file as well as
the file name.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.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.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.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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default PostCommentForComparedCommitResponse postCommentForComparedCommit(Consumer<PostCommentForComparedCommitRequest.Builder> postCommentForComparedCommitRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, ClientRequestTokenRequiredException, InvalidClientRequestTokenException, IdempotencyParameterMismatchException, CommentContentRequiredException, CommentContentSizeLimitExceededException, InvalidFileLocationException, InvalidRelativeFileVersionEnumException, PathRequiredException, InvalidFilePositionException, CommitIdRequiredException, InvalidCommitIdException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, BeforeCommitIdAndAfterCommitIdAreSameException, CommitDoesNotExistException, InvalidPathException, PathDoesNotExistException, AwsServiceException, SdkClientException, CodeCommitException
Posts a comment on the comparison between two commits.
This is a convenience which creates an instance of the PostCommentForComparedCommitRequest.Builder
avoiding the need to create one manually via PostCommentForComparedCommitRequest.builder()
postCommentForComparedCommitRequest
- A Consumer
that will call methods on PostCommentForComparedCommitInput.Builder
to create a
request.RepositoryNameRequiredException
- A repository name is required but was not specified.RepositoryDoesNotExistException
- The specified repository does not exist.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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 will return
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 re-used.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 1,000 characters.InvalidFileLocationException
- The location of the file is not valid. Make sure that you include the extension of the file as well as
the file name.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.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.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.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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default PostCommentForPullRequestResponse postCommentForPullRequest(PostCommentForPullRequestRequest postCommentForPullRequestRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, RepositoryNotAssociatedWithPullRequestException, RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, ClientRequestTokenRequiredException, InvalidClientRequestTokenException, IdempotencyParameterMismatchException, CommentContentRequiredException, CommentContentSizeLimitExceededException, InvalidFileLocationException, InvalidRelativeFileVersionEnumException, PathRequiredException, InvalidFilePositionException, CommitIdRequiredException, InvalidCommitIdException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, CommitDoesNotExistException, InvalidPathException, PathDoesNotExistException, BeforeCommitIdAndAfterCommitIdAreSameException, AwsServiceException, SdkClientException, CodeCommitException
Posts a comment on a pull request.
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. Check to make sure you have
provided the correct repository name for the pull request.RepositoryNameRequiredException
- A repository name is required but was not specified.RepositoryDoesNotExistException
- The specified repository does not exist.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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 will return
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 re-used.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 1,000 characters.InvalidFileLocationException
- The location of the file is not valid. Make sure that you include the extension of the file as well as
the file name.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.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.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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default PostCommentForPullRequestResponse postCommentForPullRequest(Consumer<PostCommentForPullRequestRequest.Builder> postCommentForPullRequestRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, RepositoryNotAssociatedWithPullRequestException, RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, ClientRequestTokenRequiredException, InvalidClientRequestTokenException, IdempotencyParameterMismatchException, CommentContentRequiredException, CommentContentSizeLimitExceededException, InvalidFileLocationException, InvalidRelativeFileVersionEnumException, PathRequiredException, InvalidFilePositionException, CommitIdRequiredException, InvalidCommitIdException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, CommitDoesNotExistException, InvalidPathException, PathDoesNotExistException, BeforeCommitIdAndAfterCommitIdAreSameException, AwsServiceException, SdkClientException, CodeCommitException
Posts a comment on a pull request.
This is a convenience which creates an instance of the PostCommentForPullRequestRequest.Builder
avoiding
the need to create one manually via PostCommentForPullRequestRequest.builder()
postCommentForPullRequestRequest
- A Consumer
that will call methods on PostCommentForPullRequestInput.Builder
to create a
request.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. Check to make sure you have
provided the correct repository name for the pull request.RepositoryNameRequiredException
- A repository name is required but was not specified.RepositoryDoesNotExistException
- The specified repository does not exist.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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 will return
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 re-used.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 1,000 characters.InvalidFileLocationException
- The location of the file is not valid. Make sure that you include the extension of the file as well as
the file name.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.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.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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default PostCommentReplyResponse postCommentReply(PostCommentReplyRequest postCommentReplyRequest) throws ClientRequestTokenRequiredException, InvalidClientRequestTokenException, IdempotencyParameterMismatchException, CommentContentRequiredException, CommentContentSizeLimitExceededException, CommentDoesNotExistException, CommentIdRequiredException, InvalidCommentIdException, AwsServiceException, SdkClientException, CodeCommitException
Posts a comment in reply to an existing comment on a comparison between commits or a pull request.
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 will return
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 re-used.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 1,000 characters.CommentDoesNotExistException
- No comment exists with the provided ID. Verify that you have provided 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default PostCommentReplyResponse postCommentReply(Consumer<PostCommentReplyRequest.Builder> postCommentReplyRequest) throws ClientRequestTokenRequiredException, InvalidClientRequestTokenException, IdempotencyParameterMismatchException, CommentContentRequiredException, CommentContentSizeLimitExceededException, CommentDoesNotExistException, CommentIdRequiredException, InvalidCommentIdException, AwsServiceException, SdkClientException, CodeCommitException
Posts a comment in reply to an existing comment on a comparison between commits or a pull request.
This is a convenience which creates an instance of the PostCommentReplyRequest.Builder
avoiding the need
to create one manually via PostCommentReplyRequest.builder()
postCommentReplyRequest
- A Consumer
that will call methods on PostCommentReplyInput.Builder
to create a request.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 will return
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 re-used.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 1,000 characters.CommentDoesNotExistException
- No comment exists with the provided ID. Verify that you have provided 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default PutFileResponse putFile(PutFileRequest putFileRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, ParentCommitIdRequiredException, InvalidParentCommitIdException, ParentCommitDoesNotExistException, ParentCommitIdOutdatedException, FileContentRequiredException, FileContentSizeLimitExceededException, PathRequiredException, InvalidPathException, BranchNameRequiredException, InvalidBranchNameException, BranchDoesNotExistException, BranchNameIsTagNameException, InvalidFileModeException, NameLengthExceededException, InvalidEmailException, CommitMessageLengthExceededException, InvalidDeletionParameterException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, SameFileContentException, FileNameConflictsWithDirectoryNameException, DirectoryNameConflictsWithFileNameException, AwsServiceException, SdkClientException, CodeCommitException
Adds or updates a file in a branch in an AWS CodeCommit repository, and generates a commit for the addition in the specified branch.
putFileRequest
- RepositoryNameRequiredException
- A repository name is required but was not specified.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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 that can be added using PutFile
is 6 MB. For files larger than 6 MB but smaller than 2 GB, add them using a Git client.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. Type the name of a current 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 file names. File names,
including the path to the file, cannot exceed the character limit.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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default PutFileResponse putFile(Consumer<PutFileRequest.Builder> putFileRequest) throws RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryDoesNotExistException, ParentCommitIdRequiredException, InvalidParentCommitIdException, ParentCommitDoesNotExistException, ParentCommitIdOutdatedException, FileContentRequiredException, FileContentSizeLimitExceededException, PathRequiredException, InvalidPathException, BranchNameRequiredException, InvalidBranchNameException, BranchDoesNotExistException, BranchNameIsTagNameException, InvalidFileModeException, NameLengthExceededException, InvalidEmailException, CommitMessageLengthExceededException, InvalidDeletionParameterException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, SameFileContentException, FileNameConflictsWithDirectoryNameException, DirectoryNameConflictsWithFileNameException, AwsServiceException, SdkClientException, CodeCommitException
Adds or updates a file in a branch in an AWS CodeCommit repository, and generates a commit for the addition in the specified branch.
This is a convenience which creates an instance of the PutFileRequest.Builder
avoiding the need to create
one manually via PutFileRequest.builder()
putFileRequest
- A Consumer
that will call methods on PutFileInput.Builder
to create a request.RepositoryNameRequiredException
- A repository name is required but was not specified.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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 that can be added using PutFile
is 6 MB. For files larger than 6 MB but smaller than 2 GB, add them using a Git client.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. Type the name of a current 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 file names. File names,
including the path to the file, cannot exceed the character limit.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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default PutRepositoryTriggersResponse putRepositoryTriggers(PutRepositoryTriggersRequest putRepositoryTriggersRequest) throws RepositoryDoesNotExistException, RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryTriggersListRequiredException, MaximumRepositoryTriggersExceededException, InvalidRepositoryTriggerNameException, InvalidRepositoryTriggerDestinationArnException, InvalidRepositoryTriggerRegionException, InvalidRepositoryTriggerCustomDataException, MaximumBranchesExceededException, InvalidRepositoryTriggerBranchNameException, InvalidRepositoryTriggerEventsException, RepositoryTriggerNameRequiredException, RepositoryTriggerDestinationArnRequiredException, RepositoryTriggerBranchNameListRequiredException, RepositoryTriggerEventsListRequiredException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Replaces all triggers for a repository. This can be used to create or delete triggers.
putRepositoryTriggersRequest
- Represents the input ofa put repository triggers operation.RepositoryDoesNotExistException
- The specified repository does not exist.RepositoryNameRequiredException
- A repository name is required but was not specified.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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 region for the trigger target does not match the region for the repository. Triggers must be created
in the same 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default PutRepositoryTriggersResponse putRepositoryTriggers(Consumer<PutRepositoryTriggersRequest.Builder> putRepositoryTriggersRequest) throws RepositoryDoesNotExistException, RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryTriggersListRequiredException, MaximumRepositoryTriggersExceededException, InvalidRepositoryTriggerNameException, InvalidRepositoryTriggerDestinationArnException, InvalidRepositoryTriggerRegionException, InvalidRepositoryTriggerCustomDataException, MaximumBranchesExceededException, InvalidRepositoryTriggerBranchNameException, InvalidRepositoryTriggerEventsException, RepositoryTriggerNameRequiredException, RepositoryTriggerDestinationArnRequiredException, RepositoryTriggerBranchNameListRequiredException, RepositoryTriggerEventsListRequiredException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Replaces all triggers for a repository. This can be used to create or delete triggers.
This is a convenience which creates an instance of the PutRepositoryTriggersRequest.Builder
avoiding the
need to create one manually via PutRepositoryTriggersRequest.builder()
putRepositoryTriggersRequest
- A Consumer
that will call methods on PutRepositoryTriggersInput.Builder
to create a
request. Represents the input ofa put repository triggers operation.RepositoryDoesNotExistException
- The specified repository does not exist.RepositoryNameRequiredException
- A repository name is required but was not specified.InvalidRepositoryNameException
- At least one specified repository name is not valid. This exception only occurs 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 region for the trigger target does not match the region for the repository. Triggers must be created
in the same 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default TestRepositoryTriggersResponse testRepositoryTriggers(TestRepositoryTriggersRequest testRepositoryTriggersRequest) throws RepositoryDoesNotExistException, RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryTriggersListRequiredException, MaximumRepositoryTriggersExceededException, InvalidRepositoryTriggerNameException, InvalidRepositoryTriggerDestinationArnException, InvalidRepositoryTriggerRegionException, InvalidRepositoryTriggerCustomDataException, MaximumBranchesExceededException, InvalidRepositoryTriggerBranchNameException, InvalidRepositoryTriggerEventsException, RepositoryTriggerNameRequiredException, RepositoryTriggerDestinationArnRequiredException, RepositoryTriggerBranchNameListRequiredException, RepositoryTriggerEventsListRequiredException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Tests the functionality of repository triggers by sending information to the trigger target. If real data is available in the repository, the test will send data from the last commit. If no data is available, sample data will be generated.
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
- At least one specified repository name is not valid. This exception only occurs 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 region for the trigger target does not match the region for the repository. Triggers must be created
in the same 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default TestRepositoryTriggersResponse testRepositoryTriggers(Consumer<TestRepositoryTriggersRequest.Builder> testRepositoryTriggersRequest) throws RepositoryDoesNotExistException, RepositoryNameRequiredException, InvalidRepositoryNameException, RepositoryTriggersListRequiredException, MaximumRepositoryTriggersExceededException, InvalidRepositoryTriggerNameException, InvalidRepositoryTriggerDestinationArnException, InvalidRepositoryTriggerRegionException, InvalidRepositoryTriggerCustomDataException, MaximumBranchesExceededException, InvalidRepositoryTriggerBranchNameException, InvalidRepositoryTriggerEventsException, RepositoryTriggerNameRequiredException, RepositoryTriggerDestinationArnRequiredException, RepositoryTriggerBranchNameListRequiredException, RepositoryTriggerEventsListRequiredException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Tests the functionality of repository triggers by sending information to the trigger target. If real data is available in the repository, the test will send data from the last commit. If no data is available, sample data will be generated.
This is a convenience which creates an instance of the TestRepositoryTriggersRequest.Builder
avoiding the
need to create one manually via TestRepositoryTriggersRequest.builder()
testRepositoryTriggersRequest
- A Consumer
that will call methods on TestRepositoryTriggersInput.Builder
to create a
request. 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
- At least one specified repository name is not valid. This exception only occurs 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 region for the trigger target does not match the region for the repository. Triggers must be created
in the same 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default UpdateCommentResponse updateComment(UpdateCommentRequest updateCommentRequest) throws CommentContentRequiredException, CommentContentSizeLimitExceededException, CommentDoesNotExistException, CommentIdRequiredException, InvalidCommentIdException, CommentNotCreatedByCallerException, CommentDeletedException, AwsServiceException, SdkClientException, CodeCommitException
Replaces the contents of a comment.
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 1,000 characters.CommentDoesNotExistException
- No comment exists with the provided ID. Verify that you have provided 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default UpdateCommentResponse updateComment(Consumer<UpdateCommentRequest.Builder> updateCommentRequest) throws CommentContentRequiredException, CommentContentSizeLimitExceededException, CommentDoesNotExistException, CommentIdRequiredException, InvalidCommentIdException, CommentNotCreatedByCallerException, CommentDeletedException, AwsServiceException, SdkClientException, CodeCommitException
Replaces the contents of a comment.
This is a convenience which creates an instance of the UpdateCommentRequest.Builder
avoiding the need to
create one manually via UpdateCommentRequest.builder()
updateCommentRequest
- A Consumer
that will call methods on UpdateCommentInput.Builder
to create a request.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 1,000 characters.CommentDoesNotExistException
- No comment exists with the provided ID. Verify that you have provided 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default UpdateDefaultBranchResponse updateDefaultBranch(UpdateDefaultBranchRequest updateDefaultBranchRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, BranchNameRequiredException, InvalidBranchNameException, BranchDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
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.
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
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default UpdateDefaultBranchResponse updateDefaultBranch(Consumer<UpdateDefaultBranchRequest.Builder> updateDefaultBranchRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, BranchNameRequiredException, InvalidBranchNameException, BranchDoesNotExistException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
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.
This is a convenience which creates an instance of the UpdateDefaultBranchRequest.Builder
avoiding the
need to create one manually via UpdateDefaultBranchRequest.builder()
updateDefaultBranchRequest
- A Consumer
that will call methods on UpdateDefaultBranchInput.Builder
to create a request.
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
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default UpdatePullRequestDescriptionResponse updatePullRequestDescription(UpdatePullRequestDescriptionRequest updatePullRequestDescriptionRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, InvalidDescriptionException, PullRequestAlreadyClosedException, AwsServiceException, SdkClientException, CodeCommitException
Replaces the contents of the description of a pull request.
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 are limited to 1,000 characters in length.PullRequestAlreadyClosedException
- The pull request status cannot be updated because it is already closed.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default UpdatePullRequestDescriptionResponse updatePullRequestDescription(Consumer<UpdatePullRequestDescriptionRequest.Builder> updatePullRequestDescriptionRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, InvalidDescriptionException, PullRequestAlreadyClosedException, AwsServiceException, SdkClientException, CodeCommitException
Replaces the contents of the description of a pull request.
This is a convenience which creates an instance of the UpdatePullRequestDescriptionRequest.Builder
avoiding the need to create one manually via UpdatePullRequestDescriptionRequest.builder()
updatePullRequestDescriptionRequest
- A Consumer
that will call methods on UpdatePullRequestDescriptionInput.Builder
to create a
request.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 are limited to 1,000 characters in length.PullRequestAlreadyClosedException
- The pull request status cannot be updated because it is already closed.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default UpdatePullRequestStatusResponse updatePullRequestStatus(UpdatePullRequestStatusRequest updatePullRequestStatusRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, InvalidPullRequestStatusUpdateException, InvalidPullRequestStatusException, PullRequestStatusRequiredException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Updates the status of a pull request.
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default UpdatePullRequestStatusResponse updatePullRequestStatus(Consumer<UpdatePullRequestStatusRequest.Builder> updatePullRequestStatusRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, InvalidPullRequestStatusUpdateException, InvalidPullRequestStatusException, PullRequestStatusRequiredException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
Updates the status of a pull request.
This is a convenience which creates an instance of the UpdatePullRequestStatusRequest.Builder
avoiding
the need to create one manually via UpdatePullRequestStatusRequest.builder()
updatePullRequestStatusRequest
- A Consumer
that will call methods on UpdatePullRequestStatusInput.Builder
to create a
request.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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default UpdatePullRequestTitleResponse updatePullRequestTitle(UpdatePullRequestTitleRequest updatePullRequestTitleRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, TitleRequiredException, InvalidTitleException, PullRequestAlreadyClosedException, AwsServiceException, SdkClientException, CodeCommitException
Replaces the title of a pull request.
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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default UpdatePullRequestTitleResponse updatePullRequestTitle(Consumer<UpdatePullRequestTitleRequest.Builder> updatePullRequestTitleRequest) throws PullRequestDoesNotExistException, InvalidPullRequestIdException, PullRequestIdRequiredException, TitleRequiredException, InvalidTitleException, PullRequestAlreadyClosedException, AwsServiceException, SdkClientException, CodeCommitException
Replaces the title of a pull request.
This is a convenience which creates an instance of the UpdatePullRequestTitleRequest.Builder
avoiding the
need to create one manually via UpdatePullRequestTitleRequest.builder()
updatePullRequestTitleRequest
- A Consumer
that will call methods on UpdatePullRequestTitleInput.Builder
to create a
request.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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default UpdateRepositoryDescriptionResponse updateRepositoryDescription(UpdateRepositoryDescriptionRequest updateRepositoryDescriptionRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, InvalidRepositoryDescriptionException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
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 web page could 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 web page.
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
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default UpdateRepositoryDescriptionResponse updateRepositoryDescription(Consumer<UpdateRepositoryDescriptionRequest.Builder> updateRepositoryDescriptionRequest) throws RepositoryNameRequiredException, RepositoryDoesNotExistException, InvalidRepositoryNameException, InvalidRepositoryDescriptionException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, AwsServiceException, SdkClientException, CodeCommitException
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 web page could 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 web page.
This is a convenience which creates an instance of the UpdateRepositoryDescriptionRequest.Builder
avoiding the need to create one manually via UpdateRepositoryDescriptionRequest.builder()
updateRepositoryDescriptionRequest
- A Consumer
that will call methods on UpdateRepositoryDescriptionInput.Builder
to create a
request. 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
- At least one specified repository name is not valid. This exception only occurs 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default UpdateRepositoryNameResponse updateRepositoryName(UpdateRepositoryNameRequest updateRepositoryNameRequest) throws RepositoryDoesNotExistException, RepositoryNameExistsException, RepositoryNameRequiredException, InvalidRepositoryNameException, AwsServiceException, SdkClientException, CodeCommitException
Renames a repository. The repository name must be unique across the calling AWS account. In addition, repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. The suffix ".git" is prohibited. For a full description of the limits on repository names, see Limits in the AWS CodeCommit User Guide.
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
- At least one specified repository name is not valid. This exception only occurs 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.
SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default UpdateRepositoryNameResponse updateRepositoryName(Consumer<UpdateRepositoryNameRequest.Builder> updateRepositoryNameRequest) throws RepositoryDoesNotExistException, RepositoryNameExistsException, RepositoryNameRequiredException, InvalidRepositoryNameException, AwsServiceException, SdkClientException, CodeCommitException
Renames a repository. The repository name must be unique across the calling AWS account. In addition, repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. The suffix ".git" is prohibited. For a full description of the limits on repository names, see Limits in the AWS CodeCommit User Guide.
This is a convenience which creates an instance of the UpdateRepositoryNameRequest.Builder
avoiding the
need to create one manually via UpdateRepositoryNameRequest.builder()
updateRepositoryNameRequest
- A Consumer
that will call methods on UpdateRepositoryNameInput.Builder
to create a
request. 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
- At least one specified repository name is not valid. This exception only occurs 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.
SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeCommitException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
static ServiceMetadata serviceMetadata()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.