AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

CodeCommit

import "github.com/aws/aws-sdk-go/service/codecommit"

type CodeCommit struct { *client.Client }

CodeCommit provides the API operation methods for making requests to AWS CodeCommit. See this package's package overview docs for details on the service.

CodeCommit methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

Client

Type: *client.Client

Method

BatchGetRepositories

func (c *CodeCommit) BatchGetRepositories(input *BatchGetRepositoriesInput) (*BatchGetRepositoriesOutput, error)

BatchGetRepositories API operation for AWS CodeCommit.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation BatchGetRepositories for usage and error information.

Returned Error Codes:

  • ErrCodeRepositoryNamesRequiredException "RepositoryNamesRequiredException" A repository names object is required but was not specified.

  • ErrCodeMaximumRepositoryNamesExceededException "MaximumRepositoryNamesExceededException" The maximum number of allowed repository names was exceeded. Currently, this number is 25.

  • ErrCodeInvalidRepositoryNameException "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.
  • ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" An encryption integrity check failed.

  • ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" An encryption key could not be accessed.

  • ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" The encryption key is disabled.

  • ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" No encryption key was found.

  • ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" The encryption key is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchGetRepositories

BatchGetRepositoriesRequest

func (c *CodeCommit) BatchGetRepositoriesRequest(input *BatchGetRepositoriesInput) (req *request.Request, output *BatchGetRepositoriesOutput)

BatchGetRepositoriesRequest generates a "aws/request.Request" representing the client's request for the BatchGetRepositories operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See BatchGetRepositories for more information on using the BatchGetRepositories API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the BatchGetRepositoriesRequest method. req, resp := client.BatchGetRepositoriesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchGetRepositories

BatchGetRepositoriesWithContext

func (c *CodeCommit) BatchGetRepositoriesWithContext(ctx aws.Context, input *BatchGetRepositoriesInput, opts ...request.Option) (*BatchGetRepositoriesOutput, error)

BatchGetRepositoriesWithContext is the same as BatchGetRepositories with the addition of the ability to pass a context and additional request options.

See BatchGetRepositories for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateBranch

func (c *CodeCommit) CreateBranch(input *CreateBranchInput) (*CreateBranchOutput, error)

CreateBranch API operation for AWS CodeCommit.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation CreateBranch for usage and error information.

Returned Error Codes:

  • ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" A repository name is required but was not specified.

  • ErrCodeInvalidRepositoryNameException "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.
  • ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" The specified repository does not exist.

  • ErrCodeBranchNameRequiredException "BranchNameRequiredException" A branch name is required but was not specified.

  • ErrCodeBranchNameExistsException "BranchNameExistsException" The specified branch name already exists.

  • ErrCodeInvalidBranchNameException "InvalidBranchNameException" The specified reference name is not valid.

  • ErrCodeCommitIdRequiredException "CommitIdRequiredException" A commit ID was not specified.

  • ErrCodeCommitDoesNotExistException "CommitDoesNotExistException" The specified commit does not exist or no commit was specified, and the specified repository has no default branch.

  • ErrCodeInvalidCommitIdException "InvalidCommitIdException" The specified commit ID is not valid.

  • ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" An encryption integrity check failed.

  • ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" An encryption key could not be accessed.

  • ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" The encryption key is disabled.

  • ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" No encryption key was found.

  • ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" The encryption key is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateBranch

CreateBranchRequest

func (c *CodeCommit) CreateBranchRequest(input *CreateBranchInput) (req *request.Request, output *CreateBranchOutput)

CreateBranchRequest generates a "aws/request.Request" representing the client's request for the CreateBranch operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateBranch for more information on using the CreateBranch API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateBranchRequest method. req, resp := client.CreateBranchRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateBranch

CreateBranchWithContext

func (c *CodeCommit) CreateBranchWithContext(ctx aws.Context, input *CreateBranchInput, opts ...request.Option) (*CreateBranchOutput, error)

CreateBranchWithContext is the same as CreateBranch with the addition of the ability to pass a context and additional request options.

See CreateBranch for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateCommit

func (c *CodeCommit) CreateCommit(input *CreateCommitInput) (*CreateCommitOutput, error)

CreateCommit API operation for AWS CodeCommit.

Creates a commit for a repository on the tip of a specified branch.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation CreateCommit for usage and error information.

Returned Error Codes:

  • ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" A repository name is required but was not specified.

  • ErrCodeInvalidRepositoryNameException "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.
  • ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" The specified repository does not exist.

  • ErrCodeParentCommitIdRequiredException "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).

  • ErrCodeInvalidParentCommitIdException "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.

  • ErrCodeParentCommitDoesNotExistException "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.

  • ErrCodeParentCommitIdOutdatedException "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.

  • ErrCodeBranchNameRequiredException "BranchNameRequiredException" A branch name is required but was not specified.

  • ErrCodeInvalidBranchNameException "InvalidBranchNameException" The specified reference name is not valid.

  • ErrCodeBranchDoesNotExistException "BranchDoesNotExistException" The specified branch does not exist.

  • ErrCodeBranchNameIsTagNameException "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.

  • ErrCodeFileEntryRequiredException "FileEntryRequiredException" The commit cannot be created because no files have been specified as added, updated, or changed (PutFile or DeleteFile) for the commit.

  • ErrCodeMaximumFileEntriesExceededException "MaximumFileEntriesExceededException" The number of specified files to change as part of this commit exceeds the maximum number of files that can be changed in a single commit. Consider using a Git client for these changes.

  • ErrCodePutFileEntryConflictException "PutFileEntryConflictException" The commit cannot be created because one or more files specified in the commit reference both a file and a folder.

  • ErrCodeSourceFileOrContentRequiredException "SourceFileOrContentRequiredException" The commit cannot be created because no source files or file content have been specified for the commit.

  • ErrCodeFileContentAndSourceFileSpecifiedException "FileContentAndSourceFileSpecifiedException" The commit cannot be created because both a source file and file content have been specified for the same file. You cannot provide both. Either specify a source file, or provide the file content directly.

  • ErrCodePathRequiredException "PathRequiredException" The folderPath for a location cannot be null.

  • ErrCodeInvalidPathException "InvalidPathException" The specified path is not valid.

  • ErrCodeSamePathRequestException "SamePathRequestException" The commit cannot be created because one or more changes in this commit duplicate actions in the same file path. For example, you cannot make the same delete request to the same file in the same file path twice, or make a delete request and a move request to the same file as part of the same commit.

  • ErrCodeFileDoesNotExistException "FileDoesNotExistException" The specified file does not exist. Verify that you have provided the correct name of the file, including its full path and extension.

  • ErrCodeFileContentSizeLimitExceededException "FileContentSizeLimitExceededException" The file cannot be added because it is too large. The maximum file size that can be added using PutFile is 6 MB, and the combined file content change size is 7 MB. Consider making these changes using a Git client.

  • ErrCodeFolderContentSizeLimitExceededException "FolderContentSizeLimitExceededException" The commit cannot be created because at least one of the overall changes in the commit result in a folder contents exceeding the limit of 6 MB. Either reduce the number and size of your changes, or split the changes across multiple folders.

  • ErrCodeInvalidDeletionParameterException "InvalidDeletionParameterException" The specified deletion parameter is not valid.

  • ErrCodeRestrictedSourceFileException "RestrictedSourceFileException" The commit cannot be created because one of the changes specifies copying or moving a .gitkeep file.

  • ErrCodeFileModeRequiredException "FileModeRequiredException" The commit cannot be created because a file mode is required to update mode permissions for an existing file, but no file mode has been specified.

  • ErrCodeInvalidFileModeException "InvalidFileModeException" The specified file mode permission is not valid. For a list of valid file mode permissions, see PutFile.

  • ErrCodeNameLengthExceededException "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.

  • ErrCodeInvalidEmailException "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.

  • ErrCodeCommitMessageLengthExceededException "CommitMessageLengthExceededException" The commit message is too long. Provide a shorter string.

  • ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" An encryption integrity check failed.

  • ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" An encryption key could not be accessed.

  • ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" The encryption key is disabled.

  • ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" No encryption key was found.

  • ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" The encryption key is not available.

  • ErrCodeNoChangeException "NoChangeException" The commit cannot be created because no changes will be made to the repository as a result of this commit. A commit must contain at least one change.

  • ErrCodeFileNameConflictsWithDirectoryNameException "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.

  • ErrCodeDirectoryNameConflictsWithFileNameException "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.

  • ErrCodeFilePathConflictsWithSubmodulePathException "FilePathConflictsWithSubmodulePathException" The commit cannot be created because a specified file path points to a submodule. Verify that the destination files have valid file paths that do not point to a submodule.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateCommit

CreateCommitRequest

func (c *CodeCommit) CreateCommitRequest(input *CreateCommitInput) (req *request.Request, output *CreateCommitOutput)

CreateCommitRequest generates a "aws/request.Request" representing the client's request for the CreateCommit operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateCommit for more information on using the CreateCommit API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateCommitRequest method. req, resp := client.CreateCommitRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateCommit

CreateCommitWithContext

func (c *CodeCommit) CreateCommitWithContext(ctx aws.Context, input *CreateCommitInput, opts ...request.Option) (*CreateCommitOutput, error)

CreateCommitWithContext is the same as CreateCommit with the addition of the ability to pass a context and additional request options.

See CreateCommit for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreatePullRequest

func (c *CodeCommit) CreatePullRequest(input *CreatePullRequestInput) (*CreatePullRequestOutput, error)

CreatePullRequest API operation for AWS CodeCommit.

Creates a pull request in the specified repository.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation CreatePullRequest for usage and error information.

Returned Error Codes:

  • ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" A repository name is required but was not specified.

  • ErrCodeInvalidRepositoryNameException "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.
  • ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" The specified repository does not exist.

  • ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" An encryption integrity check failed.

  • ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" An encryption key could not be accessed.

  • ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" The encryption key is disabled.

  • ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" No encryption key was found.

  • ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" The encryption key is not available.

  • ErrCodeClientRequestTokenRequiredException "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.

  • ErrCodeInvalidClientRequestTokenException "InvalidClientRequestTokenException" The client request token is not valid.

  • ErrCodeIdempotencyParameterMismatchException "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.

  • ErrCodeReferenceNameRequiredException "ReferenceNameRequiredException" A reference name is required, but none was provided.

  • ErrCodeInvalidReferenceNameException "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 (https://git-scm.com/book/en/v2/Git-Internals-Git-References) or consult your Git documentation.

  • ErrCodeReferenceDoesNotExistException "ReferenceDoesNotExistException" The specified reference does not exist. You must provide a full commit ID.

  • ErrCodeReferenceTypeNotSupportedException "ReferenceTypeNotSupportedException" The specified reference is not a supported type.

  • ErrCodeTitleRequiredException "TitleRequiredException" A pull request title is required. It cannot be empty or null.

  • ErrCodeInvalidTitleException "InvalidTitleException" The title of the pull request is not valid. Pull request titles cannot exceed 100 characters in length.

  • ErrCodeInvalidDescriptionException "InvalidDescriptionException" The pull request description is not valid. Descriptions are limited to 1,000 characters in length.

  • ErrCodeTargetsRequiredException "TargetsRequiredException" An array of target objects is required. It cannot be empty or null.

  • ErrCodeInvalidTargetsException "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.

  • ErrCodeTargetRequiredException "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.

  • ErrCodeInvalidTargetException "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.

  • ErrCodeMultipleRepositoriesInPullRequestException "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.

  • ErrCodeMaximumOpenPullRequestsExceededException "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.

  • ErrCodeSourceAndDestinationAreSameException "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.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreatePullRequest

CreatePullRequestRequest

func (c *CodeCommit) CreatePullRequestRequest(input *CreatePullRequestInput) (req *request.Request, output *CreatePullRequestOutput)

CreatePullRequestRequest generates a "aws/request.Request" representing the client's request for the CreatePullRequest operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreatePullRequest for more information on using the CreatePullRequest API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreatePullRequestRequest method. req, resp := client.CreatePullRequestRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreatePullRequest

CreatePullRequestWithContext

func (c *CodeCommit) CreatePullRequestWithContext(ctx aws.Context, input *CreatePullRequestInput, opts ...request.Option) (*CreatePullRequestOutput, error)

CreatePullRequestWithContext is the same as CreatePullRequest with the addition of the ability to pass a context and additional request options.

See CreatePullRequest for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateRepository

func (c *CodeCommit) CreateRepository(input *CreateRepositoryInput) (*CreateRepositoryOutput, error)

CreateRepository API operation for AWS CodeCommit.

Creates a new, empty repository.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation CreateRepository for usage and error information.

Returned Error Codes:

  • ErrCodeRepositoryNameExistsException "RepositoryNameExistsException" The specified repository name already exists.

  • ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" A repository name is required but was not specified.

  • ErrCodeInvalidRepositoryNameException "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.
  • ErrCodeInvalidRepositoryDescriptionException "InvalidRepositoryDescriptionException" The specified repository description is not valid.

  • ErrCodeRepositoryLimitExceededException "RepositoryLimitExceededException" A repository resource limit was exceeded.

  • ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" An encryption integrity check failed.

  • ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" An encryption key could not be accessed.

  • ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" The encryption key is disabled.

  • ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" No encryption key was found.

  • ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" The encryption key is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateRepository

CreateRepositoryRequest

func (c *CodeCommit) CreateRepositoryRequest(input *CreateRepositoryInput) (req *request.Request, output *CreateRepositoryOutput)

CreateRepositoryRequest generates a "aws/request.Request" representing the client's request for the CreateRepository operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateRepository for more information on using the CreateRepository API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateRepositoryRequest method. req, resp := client.CreateRepositoryRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateRepository

CreateRepositoryWithContext

func (c *CodeCommit) CreateRepositoryWithContext(ctx aws.Context, input *CreateRepositoryInput, opts ...request.Option) (*CreateRepositoryOutput, error)

CreateRepositoryWithContext is the same as CreateRepository with the addition of the ability to pass a context and additional request options.

See CreateRepository for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteBranch

func (c *CodeCommit) DeleteBranch(input *DeleteBranchInput) (*DeleteBranchOutput, error)

DeleteBranch API operation for AWS CodeCommit.

Deletes a branch from a repository, unless that branch is the default branch for the repository.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation DeleteBranch for usage and error information.

Returned Error Codes:

  • ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" A repository name is required but was not specified.

  • ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" The specified repository does not exist.

  • ErrCodeInvalidRepositoryNameException "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.
  • ErrCodeBranchNameRequiredException "BranchNameRequiredException" A branch name is required but was not specified.

  • ErrCodeInvalidBranchNameException "InvalidBranchNameException" The specified reference name is not valid.

  • ErrCodeDefaultBranchCannotBeDeletedException "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.

  • ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" An encryption integrity check failed.

  • ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" An encryption key could not be accessed.

  • ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" The encryption key is disabled.

  • ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" No encryption key was found.

  • ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" The encryption key is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteBranch

DeleteBranchRequest

func (c *CodeCommit) DeleteBranchRequest(input *DeleteBranchInput) (req *request.Request, output *DeleteBranchOutput)

DeleteBranchRequest generates a "aws/request.Request" representing the client's request for the DeleteBranch operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteBranch for more information on using the DeleteBranch API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteBranchRequest method. req, resp := client.DeleteBranchRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteBranch

DeleteBranchWithContext

func (c *CodeCommit) DeleteBranchWithContext(ctx aws.Context, input *DeleteBranchInput, opts ...request.Option) (*DeleteBranchOutput, error)

DeleteBranchWithContext is the same as DeleteBranch with the addition of the ability to pass a context and additional request options.

See DeleteBranch for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteCommentContent

func (c *CodeCommit) DeleteCommentContent(input *DeleteCommentContentInput) (*DeleteCommentContentOutput, error)

DeleteCommentContent API operation for AWS CodeCommit.

Deletes the content of a comment made on a change, file, or commit in a repository.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation DeleteCommentContent for usage and error information.

Returned Error Codes:

  • ErrCodeCommentDoesNotExistException "CommentDoesNotExistException" No comment exists with the provided ID. Verify that you have provided the correct ID, and then try again.

  • ErrCodeCommentIdRequiredException "CommentIdRequiredException" The comment ID is missing or null. A comment ID is required.

  • ErrCodeInvalidCommentIdException "InvalidCommentIdException" The comment ID is not in a valid format. Make sure that you have provided the full comment ID.

  • ErrCodeCommentDeletedException "CommentDeletedException" This comment has already been deleted. You cannot edit or delete a deleted comment.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteCommentContent

DeleteCommentContentRequest

func (c *CodeCommit) DeleteCommentContentRequest(input *DeleteCommentContentInput) (req *request.Request, output *DeleteCommentContentOutput)

DeleteCommentContentRequest generates a "aws/request.Request" representing the client's request for the DeleteCommentContent operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteCommentContent for more information on using the DeleteCommentContent API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteCommentContentRequest method. req, resp := client.DeleteCommentContentRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteCommentContent

DeleteCommentContentWithContext

func (c *CodeCommit) DeleteCommentContentWithContext(ctx aws.Context, input *DeleteCommentContentInput, opts ...request.Option) (*DeleteCommentContentOutput, error)

DeleteCommentContentWithContext is the same as DeleteCommentContent with the addition of the ability to pass a context and additional request options.

See DeleteCommentContent for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteFile

func (c *CodeCommit) DeleteFile(input *DeleteFileInput) (*DeleteFileOutput, error)

DeleteFile API operation for AWS CodeCommit.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation DeleteFile for usage and error information.

Returned Error Codes:

  • ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" A repository name is required but was not specified.

  • ErrCodeInvalidRepositoryNameException "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.
  • ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" The specified repository does not exist.

  • ErrCodeParentCommitIdRequiredException "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).

  • ErrCodeInvalidParentCommitIdException "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.

  • ErrCodeParentCommitDoesNotExistException "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.

  • ErrCodeParentCommitIdOutdatedException "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.

  • ErrCodePathRequiredException "PathRequiredException" The folderPath for a location cannot be null.

  • ErrCodeInvalidPathException "InvalidPathException" The specified path is not valid.

  • ErrCodeFileDoesNotExistException "FileDoesNotExistException" The specified file does not exist. Verify that you have provided the correct name of the file, including its full path and extension.

  • ErrCodeBranchNameRequiredException "BranchNameRequiredException" A branch name is required but was not specified.

  • ErrCodeInvalidBranchNameException "InvalidBranchNameException" The specified reference name is not valid.

  • ErrCodeBranchDoesNotExistException "BranchDoesNotExistException" The specified branch does not exist.

  • ErrCodeBranchNameIsTagNameException "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.

  • ErrCodeNameLengthExceededException "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.

  • ErrCodeInvalidEmailException "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.

  • ErrCodeCommitMessageLengthExceededException "CommitMessageLengthExceededException" The commit message is too long. Provide a shorter string.

  • ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" An encryption integrity check failed.

  • ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" An encryption key could not be accessed.

  • ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" The encryption key is disabled.

  • ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" No encryption key was found.

  • ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" The encryption key is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteFile

DeleteFileRequest

func (c *CodeCommit) DeleteFileRequest(input *DeleteFileInput) (req *request.Request, output *DeleteFileOutput)

DeleteFileRequest generates a "aws/request.Request" representing the client's request for the DeleteFile operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteFile for more information on using the DeleteFile API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteFileRequest method. req, resp := client.DeleteFileRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteFile

DeleteFileWithContext

func (c *CodeCommit) DeleteFileWithContext(ctx aws.Context, input *DeleteFileInput, opts ...request.Option) (*DeleteFileOutput, error)

DeleteFileWithContext is the same as DeleteFile with the addition of the ability to pass a context and additional request options.

See DeleteFile for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteRepository

func (c *CodeCommit) DeleteRepository(input *DeleteRepositoryInput) (*DeleteRepositoryOutput, error)

DeleteRepository API operation for AWS CodeCommit.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation DeleteRepository for usage and error information.

Returned Error Codes:

  • ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" A repository name is required but was not specified.

  • ErrCodeInvalidRepositoryNameException "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.
  • ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" An encryption integrity check failed.

  • ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" An encryption key could not be accessed.

  • ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" The encryption key is disabled.

  • ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" No encryption key was found.

  • ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" The encryption key is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteRepository

DeleteRepositoryRequest

func (c *CodeCommit) DeleteRepositoryRequest(input *DeleteRepositoryInput) (req *request.Request, output *DeleteRepositoryOutput)

DeleteRepositoryRequest generates a "aws/request.Request" representing the client's request for the DeleteRepository operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteRepository for more information on using the DeleteRepository API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteRepositoryRequest method. req, resp := client.DeleteRepositoryRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteRepository

DeleteRepositoryWithContext

func (c *CodeCommit) DeleteRepositoryWithContext(ctx aws.Context, input *DeleteRepositoryInput, opts ...request.Option) (*DeleteRepositoryOutput, error)

DeleteRepositoryWithContext is the same as DeleteRepository with the addition of the ability to pass a context and additional request options.

See DeleteRepository for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribePullRequestEvents

func (c *CodeCommit) DescribePullRequestEvents(input *DescribePullRequestEventsInput) (*DescribePullRequestEventsOutput, error)

DescribePullRequestEvents API operation for AWS CodeCommit.

Returns information about one or more pull request events.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation DescribePullRequestEvents for usage and error information.

Returned Error Codes:

  • ErrCodePullRequestDoesNotExistException "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.

  • ErrCodeInvalidPullRequestIdException "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.

  • ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException" A pull request ID is required, but none was provided.

  • ErrCodeInvalidPullRequestEventTypeException "InvalidPullRequestEventTypeException" The pull request event type is not valid.

  • ErrCodeInvalidActorArnException "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.

  • ErrCodeActorDoesNotExistException "ActorDoesNotExistException" The specified Amazon Resource Name (ARN) does not exist in the AWS account.

  • ErrCodeInvalidMaxResultsException "InvalidMaxResultsException" The specified number of maximum results is not valid.

  • ErrCodeInvalidContinuationTokenException "InvalidContinuationTokenException" The specified continuation token is not valid.

  • ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" An encryption integrity check failed.

  • ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" An encryption key could not be accessed.

  • ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" The encryption key is disabled.

  • ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" No encryption key was found.

  • ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" The encryption key is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DescribePullRequestEvents

DescribePullRequestEventsPages

func (c *CodeCommit) DescribePullRequestEventsPages(input *DescribePullRequestEventsInput, fn func(*DescribePullRequestEventsOutput, bool) bool) error

DescribePullRequestEventsPages iterates over the pages of a DescribePullRequestEvents operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribePullRequestEvents method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribePullRequestEvents operation. pageNum := 0 err := client.DescribePullRequestEventsPages(params, func(page *DescribePullRequestEventsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

DescribePullRequestEventsPagesWithContext

func (c *CodeCommit) DescribePullRequestEventsPagesWithContext(ctx aws.Context, input *DescribePullRequestEventsInput, fn func(*DescribePullRequestEventsOutput, bool) bool, opts ...request.Option) error

DescribePullRequestEventsPagesWithContext same as DescribePullRequestEventsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribePullRequestEventsRequest

func (c *CodeCommit) DescribePullRequestEventsRequest(input *DescribePullRequestEventsInput) (req *request.Request, output *DescribePullRequestEventsOutput)

DescribePullRequestEventsRequest generates a "aws/request.Request" representing the client's request for the DescribePullRequestEvents operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribePullRequestEvents for more information on using the DescribePullRequestEvents API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribePullRequestEventsRequest method. req, resp := client.DescribePullRequestEventsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DescribePullRequestEvents

DescribePullRequestEventsWithContext

func (c *CodeCommit) DescribePullRequestEventsWithContext(ctx aws.Context, input *DescribePullRequestEventsInput, opts ...request.Option) (*DescribePullRequestEventsOutput, error)

DescribePullRequestEventsWithContext is the same as DescribePullRequestEvents with the addition of the ability to pass a context and additional request options.

See DescribePullRequestEvents for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetBlob

func (c *CodeCommit) GetBlob(input *GetBlobInput) (*GetBlobOutput, error)

GetBlob API operation for AWS CodeCommit.

Returns the base-64 encoded content of an individual blob within a repository.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation GetBlob for usage and error information.

Returned Error Codes:

  • ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" A repository name is required but was not specified.

  • ErrCodeInvalidRepositoryNameException "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.
  • ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" The specified repository does not exist.

  • ErrCodeBlobIdRequiredException "BlobIdRequiredException" A blob ID is required but was not specified.

  • ErrCodeInvalidBlobIdException "InvalidBlobIdException" The specified blob is not valid.

  • ErrCodeBlobIdDoesNotExistException "BlobIdDoesNotExistException" The specified blob does not exist.

  • ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" An encryption integrity check failed.

  • ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" An encryption key could not be accessed.

  • ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" The encryption key is disabled.

  • ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" No encryption key was found.

  • ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" The encryption key is not available.

  • ErrCodeFileTooLargeException "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

(http://docs.aws.amazon.com/codecommit/latest/userguide/limits.html).

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetBlob

GetBlobRequest

func (c *CodeCommit) GetBlobRequest(input *GetBlobInput) (req *request.Request, output *GetBlobOutput)

GetBlobRequest generates a "aws/request.Request" representing the client's request for the GetBlob operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetBlob for more information on using the GetBlob API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetBlobRequest method. req, resp := client.GetBlobRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetBlob

GetBlobWithContext

func (c *CodeCommit) GetBlobWithContext(ctx aws.Context, input *GetBlobInput, opts ...request.Option) (*GetBlobOutput, error)

GetBlobWithContext is the same as GetBlob with the addition of the ability to pass a context and additional request options.

See GetBlob for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetBranch

func (c *CodeCommit) GetBranch(input *GetBranchInput) (*GetBranchOutput, error)

GetBranch API operation for AWS CodeCommit.

Returns information about a repository branch, including its name and the last commit ID.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation GetBranch for usage and error information.

Returned Error Codes:

  • ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" A repository name is required but was not specified.

  • ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" The specified repository does not exist.

  • ErrCodeInvalidRepositoryNameException "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.
  • ErrCodeBranchNameRequiredException "BranchNameRequiredException" A branch name is required but was not specified.

  • ErrCodeInvalidBranchNameException "InvalidBranchNameException" The specified reference name is not valid.

  • ErrCodeBranchDoesNotExistException "BranchDoesNotExistException" The specified branch does not exist.

  • ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" An encryption integrity check failed.

  • ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" An encryption key could not be accessed.

  • ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" The encryption key is disabled.

  • ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" No encryption key was found.

  • ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" The encryption key is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetBranch

GetBranchRequest

func (c *CodeCommit) GetBranchRequest(input *GetBranchInput) (req *request.Request, output *GetBranchOutput)

GetBranchRequest generates a "aws/request.Request" representing the client's request for the GetBranch operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetBranch for more information on using the GetBranch API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetBranchRequest method. req, resp := client.GetBranchRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetBranch

GetBranchWithContext

func (c *CodeCommit) GetBranchWithContext(ctx aws.Context, input *GetBranchInput, opts ...request.Option) (*GetBranchOutput, error)

GetBranchWithContext is the same as GetBranch with the addition of the ability to pass a context and additional request options.

See GetBranch for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetComment

func (c *CodeCommit) GetComment(input *GetCommentInput) (*GetCommentOutput, error)

GetComment API operation for AWS CodeCommit.

Returns the content of a comment made on a change, file, or commit in a repository.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation GetComment for usage and error information.

Returned Error Codes:

  • ErrCodeCommentDoesNotExistException "CommentDoesNotExistException" No comment exists with the provided ID. Verify that you have provided the correct ID, and then try again.

  • ErrCodeCommentIdRequiredException "CommentIdRequiredException" The comment ID is missing or null. A comment ID is required.

  • ErrCodeInvalidCommentIdException "InvalidCommentIdException" The comment ID is not in a valid format. Make sure that you have provided the full comment ID.

  • ErrCodeCommentDeletedException "CommentDeletedException" This comment has already been deleted. You cannot edit or delete a deleted comment.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetComment

GetCommentRequest

func (c *CodeCommit) GetCommentRequest(input *GetCommentInput) (req *request.Request, output *GetCommentOutput)

GetCommentRequest generates a "aws/request.Request" representing the client's request for the GetComment operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetComment for more information on using the GetComment API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetCommentRequest method. req, resp := client.GetCommentRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetComment

GetCommentWithContext

func (c *CodeCommit) GetCommentWithContext(ctx aws.Context, input *GetCommentInput, opts ...request.Option) (*GetCommentOutput, error)

GetCommentWithContext is the same as GetComment with the addition of the ability to pass a context and additional request options.

See GetComment for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetCommentsForComparedCommit

func (c *CodeCommit) GetCommentsForComparedCommit(input *GetCommentsForComparedCommitInput) (*GetCommentsForComparedCommitOutput, error)

GetCommentsForComparedCommit API operation for AWS CodeCommit.

Returns information about comments made on the comparison between two commits.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation GetCommentsForComparedCommit for usage and error information.

Returned Error Codes:

  • ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" A repository name is required but was not specified.

  • ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" The specified repository does not exist.

  • ErrCodeInvalidRepositoryNameException "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.
  • ErrCodeCommitIdRequiredException "CommitIdRequiredException" A commit ID was not specified.

  • ErrCodeInvalidCommitIdException "InvalidCommitIdException" The specified commit ID is not valid.

  • ErrCodeCommitDoesNotExistException "CommitDoesNotExistException" The specified commit does not exist or no commit was specified, and the specified repository has no default branch.

  • ErrCodeInvalidMaxResultsException "InvalidMaxResultsException" The specified number of maximum results is not valid.

  • ErrCodeInvalidContinuationTokenException "InvalidContinuationTokenException" The specified continuation token is not valid.

  • ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" An encryption integrity check failed.

  • ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" An encryption key could not be accessed.

  • ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" The encryption key is disabled.

  • ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" No encryption key was found.

  • ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" The encryption key is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommentsForComparedCommit

GetCommentsForComparedCommitPages

func (c *CodeCommit) GetCommentsForComparedCommitPages(input *GetCommentsForComparedCommitInput, fn func(*GetCommentsForComparedCommitOutput, bool) bool) error

GetCommentsForComparedCommitPages iterates over the pages of a GetCommentsForComparedCommit operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See GetCommentsForComparedCommit method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a GetCommentsForComparedCommit operation. pageNum := 0 err := client.GetCommentsForComparedCommitPages(params, func(page *GetCommentsForComparedCommitOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

GetCommentsForComparedCommitPagesWithContext

func (c *CodeCommit) GetCommentsForComparedCommitPagesWithContext(ctx aws.Context, input *GetCommentsForComparedCommitInput, fn func(*GetCommentsForComparedCommitOutput, bool) bool, opts ...request.Option) error

GetCommentsForComparedCommitPagesWithContext same as GetCommentsForComparedCommitPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetCommentsForComparedCommitRequest

func (c *CodeCommit) GetCommentsForComparedCommitRequest(input *GetCommentsForComparedCommitInput) (req *request.Request, output *GetCommentsForComparedCommitOutput)

GetCommentsForComparedCommitRequest generates a "aws/request.Request" representing the client's request for the GetCommentsForComparedCommit operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetCommentsForComparedCommit for more information on using the GetCommentsForComparedCommit API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetCommentsForComparedCommitRequest method. req, resp := client.GetCommentsForComparedCommitRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommentsForComparedCommit

GetCommentsForComparedCommitWithContext

func (c *CodeCommit) GetCommentsForComparedCommitWithContext(ctx aws.Context, input *GetCommentsForComparedCommitInput, opts ...request.Option) (*GetCommentsForComparedCommitOutput, error)

GetCommentsForComparedCommitWithContext is the same as GetCommentsForComparedCommit with the addition of the ability to pass a context and additional request options.

See GetCommentsForComparedCommit for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetCommentsForPullRequest

func (c *CodeCommit) GetCommentsForPullRequest(input *GetCommentsForPullRequestInput) (*GetCommentsForPullRequestOutput, error)

GetCommentsForPullRequest API operation for AWS CodeCommit.

Returns comments made on a pull request.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation GetCommentsForPullRequest for usage and error information.

Returned Error Codes:

  • ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException" A pull request ID is required, but none was provided.

  • ErrCodePullRequestDoesNotExistException "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.

  • ErrCodeInvalidPullRequestIdException "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.

  • ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" A repository name is required but was not specified.

  • ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" The specified repository does not exist.

  • ErrCodeInvalidRepositoryNameException "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.
  • ErrCodeCommitIdRequiredException "CommitIdRequiredException" A commit ID was not specified.

  • ErrCodeInvalidCommitIdException "InvalidCommitIdException" The specified commit ID is not valid.

  • ErrCodeCommitDoesNotExistException "CommitDoesNotExistException" The specified commit does not exist or no commit was specified, and the specified repository has no default branch.

  • ErrCodeInvalidMaxResultsException "InvalidMaxResultsException" The specified number of maximum results is not valid.

  • ErrCodeInvalidContinuationTokenException "InvalidContinuationTokenException" The specified continuation token is not valid.

  • ErrCodeRepositoryNotAssociatedWithPullRequestException "RepositoryNotAssociatedWithPullRequestException" The repository does not contain any pull requests with that pull request ID. Use GetPullRequest to verify the correct repository name for the pull request ID.

  • ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" An encryption integrity check failed.

  • ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" An encryption key could not be accessed.

  • ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" The encryption key is disabled.

  • ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" No encryption key was found.

  • ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" The encryption key is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommentsForPullRequest

GetCommentsForPullRequestPages

func (c *CodeCommit) GetCommentsForPullRequestPages(input *GetCommentsForPullRequestInput, fn func(*GetCommentsForPullRequestOutput, bool) bool) error

GetCommentsForPullRequestPages iterates over the pages of a GetCommentsForPullRequest operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See GetCommentsForPullRequest method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a GetCommentsForPullRequest operation. pageNum := 0 err := client.GetCommentsForPullRequestPages(params, func(page *GetCommentsForPullRequestOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

GetCommentsForPullRequestPagesWithContext

func (c *CodeCommit) GetCommentsForPullRequestPagesWithContext(ctx aws.Context, input *GetCommentsForPullRequestInput, fn func(*GetCommentsForPullRequestOutput, bool) bool, opts ...request.Option) error

GetCommentsForPullRequestPagesWithContext same as GetCommentsForPullRequestPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetCommentsForPullRequestRequest

func (c *CodeCommit) GetCommentsForPullRequestRequest(input *GetCommentsForPullRequestInput) (req *request.Request, output *GetCommentsForPullRequestOutput)

GetCommentsForPullRequestRequest generates a "aws/request.Request" representing the client's request for the GetCommentsForPullRequest operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetCommentsForPullRequest for more information on using the GetCommentsForPullRequest API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetCommentsForPullRequestRequest method. req, resp := client.GetCommentsForPullRequestRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommentsForPullRequest

GetCommentsForPullRequestWithContext

func (c *CodeCommit) GetCommentsForPullRequestWithContext(ctx aws.Context, input *GetCommentsForPullRequestInput, opts ...request.Option) (*GetCommentsForPullRequestOutput, error)

GetCommentsForPullRequestWithContext is the same as GetCommentsForPullRequest with the addition of the ability to pass a context and additional request options.

See GetCommentsForPullRequest for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetCommit

func (c *CodeCommit) GetCommit(input *GetCommitInput) (*GetCommitOutput, error)

GetCommit API operation for AWS CodeCommit.

Returns information about a commit, including commit message and committer information.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation GetCommit for usage and error information.

Returned Error Codes:

  • ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" A repository name is required but was not specified.

  • ErrCodeInvalidRepositoryNameException "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.
  • ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" The specified repository does not exist.

  • ErrCodeCommitIdRequiredException "CommitIdRequiredException" A commit ID was not specified.

  • ErrCodeInvalidCommitIdException "InvalidCommitIdException" The specified commit ID is not valid.

  • ErrCodeCommitIdDoesNotExistException "CommitIdDoesNotExistException" The specified commit ID does not exist.

  • ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" An encryption integrity check failed.

  • ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" An encryption key could not be accessed.

  • ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" The encryption key is disabled.

  • ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" No encryption key was found.

  • ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" The encryption key is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommit

GetCommitRequest

func (c *CodeCommit) GetCommitRequest(input *GetCommitInput) (req *request.Request, output *GetCommitOutput)

GetCommitRequest generates a "aws/request.Request" representing the client's request for the GetCommit operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetCommit for more information on using the GetCommit API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetCommitRequest method. req, resp := client.GetCommitRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommit

GetCommitWithContext

func (c *CodeCommit) GetCommitWithContext(ctx aws.Context, input *GetCommitInput, opts ...request.Option) (*GetCommitOutput, error)

GetCommitWithContext is the same as GetCommit with the addition of the ability to pass a context and additional request options.

See GetCommit for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetDifferences

func (c *CodeCommit) GetDifferences(input *GetDifferencesInput) (*GetDifferencesOutput, error)

GetDifferences API operation for AWS CodeCommit.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation GetDifferences for usage and error information.

Returned Error Codes:

  • ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" A repository name is required but was not specified.

  • ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" The specified repository does not exist.

  • ErrCodeInvalidRepositoryNameException "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.
  • ErrCodeInvalidContinuationTokenException "InvalidContinuationTokenException" The specified continuation token is not valid.

  • ErrCodeInvalidMaxResultsException "InvalidMaxResultsException" The specified number of maximum results is not valid.

  • ErrCodeInvalidCommitIdException "InvalidCommitIdException" The specified commit ID is not valid.

  • ErrCodeCommitRequiredException "CommitRequiredException" A commit was not specified.

  • ErrCodeInvalidCommitException "InvalidCommitException" The specified commit is not valid.

  • ErrCodeCommitDoesNotExistException "CommitDoesNotExistException" The specified commit does not exist or no commit was specified, and the specified repository has no default branch.

  • ErrCodeInvalidPathException "InvalidPathException" The specified path is not valid.

  • ErrCodePathDoesNotExistException "PathDoesNotExistException" The specified path does not exist.

  • ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" An encryption integrity check failed.

  • ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" An encryption key could not be accessed.

  • ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" The encryption key is disabled.

  • ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" No encryption key was found.

  • ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" The encryption key is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetDifferences

GetDifferencesPages

func (c *CodeCommit) GetDifferencesPages(input *GetDifferencesInput, fn func(*GetDifferencesOutput, bool) bool) error

GetDifferencesPages iterates over the pages of a GetDifferences operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See GetDifferences method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a GetDifferences operation. pageNum := 0 err := client.GetDifferencesPages(params, func(page *GetDifferencesOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

GetDifferencesPagesWithContext

func (c *CodeCommit) GetDifferencesPagesWithContext(ctx aws.Context, input *GetDifferencesInput, fn func(*GetDifferencesOutput, bool) bool, opts ...request.Option) error

GetDifferencesPagesWithContext same as GetDifferencesPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetDifferencesRequest

func (c *CodeCommit) GetDifferencesRequest(input *GetDifferencesInput) (req *request.Request, output *GetDifferencesOutput)

GetDifferencesRequest generates a "aws/request.Request" representing the client's request for the GetDifferences operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetDifferences for more information on using the GetDifferences API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetDifferencesRequest method. req, resp := client.GetDifferencesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetDifferences

GetDifferencesWithContext

func (c *CodeCommit) GetDifferencesWithContext(ctx aws.Context, input *GetDifferencesInput, opts ...request.Option) (*GetDifferencesOutput, error)

GetDifferencesWithContext is the same as GetDifferences with the addition of the ability to pass a context and additional request options.

See GetDifferences for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetFile

func (c *CodeCommit) GetFile(input *GetFileInput) (*GetFileOutput, error)

GetFile API operation for AWS CodeCommit.

Returns the base-64 encoded contents of a specified file and its metadata.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation GetFile for usage and error information.

Returned Error Codes:

  • ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" A repository name is required but was not specified.

  • ErrCodeInvalidRepositoryNameException "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.
  • ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" The specified repository does not exist.

  • ErrCodeInvalidCommitException "InvalidCommitException" The specified commit is not valid.

  • ErrCodeCommitDoesNotExistException "CommitDoesNotExistException" The specified commit does not exist or no commit was specified, and the specified repository has no default branch.

  • ErrCodePathRequiredException "PathRequiredException" The folderPath for a location cannot be null.

  • ErrCodeInvalidPathException "InvalidPathException" The specified path is not valid.

  • ErrCodeFileDoesNotExistException "FileDoesNotExistException" The specified file does not exist. Verify that you have provided the correct name of the file, including its full path and extension.

  • ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" An encryption integrity check failed.

  • ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" An encryption key could not be accessed.

  • ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" The encryption key is disabled.

  • ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" No encryption key was found.

  • ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" The encryption key is not available.

  • ErrCodeFileTooLargeException "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

(http://docs.aws.amazon.com/codecommit/latest/userguide/limits.html).

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetFile

GetFileRequest

func (c *CodeCommit) GetFileRequest(input *GetFileInput) (req *request.Request, output *GetFileOutput)

GetFileRequest generates a "aws/request.Request" representing the client's request for the GetFile operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetFile for more information on using the GetFile API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetFileRequest method. req, resp := client.GetFileRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetFile

GetFileWithContext

func (c *CodeCommit) GetFileWithContext(ctx aws.Context, input *GetFileInput, opts ...request.Option) (*GetFileOutput, error)

GetFileWithContext is the same as GetFile with the addition of the ability to pass a context and additional request options.

See GetFile for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetFolder

func (c *CodeCommit) GetFolder(input *GetFolderInput) (*GetFolderOutput, error)

GetFolder API operation for AWS CodeCommit.

Returns the contents of a specified folder in a repository.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation GetFolder for usage and error information.

Returned Error Codes:

  • ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" A repository name is required but was not specified.

  • ErrCodeInvalidRepositoryNameException "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.
  • ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" The specified repository does not exist.

  • ErrCodeInvalidCommitException "InvalidCommitException" The specified commit is not valid.

  • ErrCodeCommitDoesNotExistException "CommitDoesNotExistException" The specified commit does not exist or no commit was specified, and the specified repository has no default branch.

  • ErrCodePathRequiredException "PathRequiredException" The folderPath for a location cannot be null.

  • ErrCodeInvalidPathException "InvalidPathException" The specified path is not valid.

  • ErrCodeFolderDoesNotExistException "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.

  • ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" An encryption integrity check failed.

  • ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" An encryption key could not be accessed.

  • ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" The encryption key is disabled.

  • ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" No encryption key was found.

  • ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" The encryption key is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetFolder

GetFolderRequest

func (c *CodeCommit) GetFolderRequest(input *GetFolderInput) (req *request.Request, output *GetFolderOutput)

GetFolderRequest generates a "aws/request.Request" representing the client's request for the GetFolder operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetFolder for more information on using the GetFolder API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetFolderRequest method. req, resp := client.GetFolderRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetFolder

GetFolderWithContext

func (c *CodeCommit) GetFolderWithContext(ctx aws.Context, input *GetFolderInput, opts ...request.Option) (*GetFolderOutput, error)

GetFolderWithContext is the same as GetFolder with the addition of the ability to pass a context and additional request options.

See GetFolder for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetMergeConflicts

func (c *CodeCommit) GetMergeConflicts(input *GetMergeConflictsInput) (*GetMergeConflictsOutput, error)

GetMergeConflicts API operation for AWS CodeCommit.

Returns information about merge conflicts between the before and after commit IDs for a pull request in a repository.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation GetMergeConflicts for usage and error information.

Returned Error Codes:

  • ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" A repository name is required but was not specified.

  • ErrCodeInvalidRepositoryNameException "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.
  • ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" The specified repository does not exist.

  • ErrCodeMergeOptionRequiredException "MergeOptionRequiredException" A merge option or stategy is required, and none was provided.

  • ErrCodeInvalidMergeOptionException "InvalidMergeOptionException" The specified merge option is not valid. The only valid value is FAST_FORWARD_MERGE.

  • ErrCodeInvalidDestinationCommitSpecifierException "InvalidDestinationCommitSpecifierException" The destination commit specifier is not valid. You must provide a valid branch name, tag, or full commit ID.

  • ErrCodeInvalidSourceCommitSpecifierException "InvalidSourceCommitSpecifierException" The source commit specifier is not valid. You must provide a valid branch name, tag, or full commit ID.

  • ErrCodeCommitRequiredException "CommitRequiredException" A commit was not specified.

  • ErrCodeCommitDoesNotExistException "CommitDoesNotExistException" The specified commit does not exist or no commit was specified, and the specified repository has no default branch.

  • ErrCodeInvalidCommitException "InvalidCommitException" The specified commit is not valid.

  • ErrCodeTipsDivergenceExceededException "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.

  • ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" An encryption integrity check failed.

  • ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" An encryption key could not be accessed.

  • ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" The encryption key is disabled.

  • ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" No encryption key was found.

  • ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" The encryption key is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetMergeConflicts

GetMergeConflictsRequest

func (c *CodeCommit) GetMergeConflictsRequest(input *GetMergeConflictsInput) (req *request.Request, output *GetMergeConflictsOutput)

GetMergeConflictsRequest generates a "aws/request.Request" representing the client's request for the GetMergeConflicts operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetMergeConflicts for more information on using the GetMergeConflicts API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetMergeConflictsRequest method. req, resp := client.GetMergeConflictsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetMergeConflicts

GetMergeConflictsWithContext

func (c *CodeCommit) GetMergeConflictsWithContext(ctx aws.Context, input *GetMergeConflictsInput, opts ...request.Option) (*GetMergeConflictsOutput, error)

GetMergeConflictsWithContext is the same as GetMergeConflicts with the addition of the ability to pass a context and additional request options.

See GetMergeConflicts for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetPullRequest

func (c *CodeCommit) GetPullRequest(input *GetPullRequestInput) (*GetPullRequestOutput, error)

GetPullRequest API operation for AWS CodeCommit.

Gets information about a pull request in a specified repository.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation GetPullRequest for usage and error information.

Returned Error Codes:

  • ErrCodePullRequestDoesNotExistException "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.

  • ErrCodeInvalidPullRequestIdException "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.

  • ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException" A pull request ID is required, but none was provided.

  • ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" An encryption integrity check failed.

  • ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" An encryption key could not be accessed.

  • ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" The encryption key is disabled.

  • ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" No encryption key was found.

  • ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" The encryption key is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetPullRequest

GetPullRequestRequest

func (c *CodeCommit) GetPullRequestRequest(input *GetPullRequestInput) (req *request.Request, output *GetPullRequestOutput)

GetPullRequestRequest generates a "aws/request.Request" representing the client's request for the GetPullRequest operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetPullRequest for more information on using the GetPullRequest API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetPullRequestRequest method. req, resp := client.GetPullRequestRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetPullRequest

GetPullRequestWithContext

func (c *CodeCommit) GetPullRequestWithContext(ctx aws.Context, input *GetPullRequestInput, opts ...request.Option) (*GetPullRequestOutput, error)

GetPullRequestWithContext is the same as GetPullRequest with the addition of the ability to pass a context and additional request options.

See GetPullRequest for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetRepository

func (c *CodeCommit) GetRepository(input *GetRepositoryInput) (*GetRepositoryOutput, error)

GetRepository API operation for AWS CodeCommit.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation GetRepository for usage and error information.

Returned Error Codes:

  • ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" A repository name is required but was not specified.

  • ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" The specified repository does not exist.

  • ErrCodeInvalidRepositoryNameException "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.
  • ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" An encryption integrity check failed.

  • ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" An encryption key could not be accessed.

  • ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" The encryption key is disabled.

  • ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" No encryption key was found.

  • ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" The encryption key is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetRepository

GetRepositoryRequest

func (c *CodeCommit) GetRepositoryRequest(input *GetRepositoryInput) (req *request.Request, output *GetRepositoryOutput)

GetRepositoryRequest generates a "aws/request.Request" representing the client's request for the GetRepository operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetRepository for more information on using the GetRepository API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetRepositoryRequest method. req, resp := client.GetRepositoryRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetRepository

GetRepositoryTriggers

func (c *CodeCommit) GetRepositoryTriggers(input *GetRepositoryTriggersInput) (*GetRepositoryTriggersOutput, error)

GetRepositoryTriggers API operation for AWS CodeCommit.

Gets information about triggers configured for a repository.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation GetRepositoryTriggers for usage and error information.

Returned Error Codes:

  • ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" A repository name is required but was not specified.

  • ErrCodeInvalidRepositoryNameException "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.
  • ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" The specified repository does not exist.

  • ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" An encryption integrity check failed.

  • ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" An encryption key could not be accessed.

  • ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" The encryption key is disabled.

  • ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" No encryption key was found.

  • ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" The encryption key is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetRepositoryTriggers

GetRepositoryTriggersRequest

func (c *CodeCommit) GetRepositoryTriggersRequest(input *GetRepositoryTriggersInput) (req *request.Request, output *GetRepositoryTriggersOutput)

GetRepositoryTriggersRequest generates a "aws/request.Request" representing the client's request for the GetRepositoryTriggers operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetRepositoryTriggers for more information on using the GetRepositoryTriggers API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetRepositoryTriggersRequest method. req, resp := client.GetRepositoryTriggersRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetRepositoryTriggers

GetRepositoryTriggersWithContext

func (c *CodeCommit) GetRepositoryTriggersWithContext(ctx aws.Context, input *GetRepositoryTriggersInput, opts ...request.Option) (*GetRepositoryTriggersOutput, error)

GetRepositoryTriggersWithContext is the same as GetRepositoryTriggers with the addition of the ability to pass a context and additional request options.

See GetRepositoryTriggers for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetRepositoryWithContext

func (c *CodeCommit) GetRepositoryWithContext(ctx aws.Context, input *GetRepositoryInput, opts ...request.Option) (*GetRepositoryOutput, error)

GetRepositoryWithContext is the same as GetRepository with the addition of the ability to pass a context and additional request options.

See GetRepository for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListBranches

func (c *CodeCommit) ListBranches(input *ListBranchesInput) (*ListBranchesOutput, error)

ListBranches API operation for AWS CodeCommit.

Gets information about one or more branches in a repository.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation ListBranches for usage and error information.

Returned Error Codes:

  • ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" A repository name is required but was not specified.

  • ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" The specified repository does not exist.

  • ErrCodeInvalidRepositoryNameException "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.
  • ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" An encryption integrity check failed.

  • ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" An encryption key could not be accessed.

  • ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" The encryption key is disabled.

  • ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" No encryption key was found.

  • ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" The encryption key is not available.

  • ErrCodeInvalidContinuationTokenException "InvalidContinuationTokenException" The specified continuation token is not valid.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListBranches

ListBranchesPages

func (c *CodeCommit) ListBranchesPages(input *ListBranchesInput, fn func(*ListBranchesOutput, bool) bool) error

ListBranchesPages iterates over the pages of a ListBranches operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListBranches method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListBranches operation. pageNum := 0 err := client.ListBranchesPages(params, func(page *ListBranchesOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

ListBranchesPagesWithContext

func (c *CodeCommit) ListBranchesPagesWithContext(ctx aws.Context, input *ListBranchesInput, fn func(*ListBranchesOutput, bool) bool, opts ...request.Option) error

ListBranchesPagesWithContext same as ListBranchesPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListBranchesRequest

func (c *CodeCommit) ListBranchesRequest(input *ListBranchesInput) (req *request.Request, output *ListBranchesOutput)

ListBranchesRequest generates a "aws/request.Request" representing the client's request for the ListBranches operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListBranches for more information on using the ListBranches API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListBranchesRequest method. req, resp := client.ListBranchesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListBranches

ListBranchesWithContext

func (c *CodeCommit) ListBranchesWithContext(ctx aws.Context, input *ListBranchesInput, opts ...request.Option) (*ListBranchesOutput, error)

ListBranchesWithContext is the same as ListBranches with the addition of the ability to pass a context and additional request options.

See ListBranches for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListPullRequests

func (c *CodeCommit) ListPullRequests(input *ListPullRequestsInput) (*ListPullRequestsOutput, error)

ListPullRequests API operation for AWS CodeCommit.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation ListPullRequests for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidPullRequestStatusException "InvalidPullRequestStatusException" The pull request status is not valid. The only valid values are OPEN and CLOSED.

  • ErrCodeInvalidAuthorArnException "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.

  • ErrCodeAuthorDoesNotExistException "AuthorDoesNotExistException" The specified Amazon Resource Name (ARN) does not exist in the AWS account.

  • ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" A repository name is required but was not specified.

  • ErrCodeInvalidRepositoryNameException "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.
  • ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" The specified repository does not exist.

  • ErrCodeInvalidMaxResultsException "InvalidMaxResultsException" The specified number of maximum results is not valid.

  • ErrCodeInvalidContinuationTokenException "InvalidContinuationTokenException" The specified continuation token is not valid.

  • ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" An encryption integrity check failed.

  • ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" An encryption key could not be accessed.

  • ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" The encryption key is disabled.

  • ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" No encryption key was found.

  • ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" The encryption key is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListPullRequests

ListPullRequestsPages

func (c *CodeCommit) ListPullRequestsPages(input *ListPullRequestsInput, fn func(*ListPullRequestsOutput, bool) bool) error

ListPullRequestsPages iterates over the pages of a ListPullRequests operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListPullRequests method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListPullRequests operation. pageNum := 0 err := client.ListPullRequestsPages(params, func(page *ListPullRequestsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

ListPullRequestsPagesWithContext

func (c *CodeCommit) ListPullRequestsPagesWithContext(ctx aws.Context, input *ListPullRequestsInput, fn func(*ListPullRequestsOutput, bool) bool, opts ...request.Option) error

ListPullRequestsPagesWithContext same as ListPullRequestsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListPullRequestsRequest

func (c *CodeCommit) ListPullRequestsRequest(input *ListPullRequestsInput) (req *request.Request, output *ListPullRequestsOutput)

ListPullRequestsRequest generates a "aws/request.Request" representing the client's request for the ListPullRequests operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListPullRequests for more information on using the ListPullRequests API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListPullRequestsRequest method. req, resp := client.ListPullRequestsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListPullRequests

ListPullRequestsWithContext

func (c *CodeCommit) ListPullRequestsWithContext(ctx aws.Context, input *ListPullRequestsInput, opts ...request.Option) (*ListPullRequestsOutput, error)

ListPullRequestsWithContext is the same as ListPullRequests with the addition of the ability to pass a context and additional request options.

See ListPullRequests for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListRepositories

func (c *CodeCommit) ListRepositories(input *ListRepositoriesInput) (*ListRepositoriesOutput, error)

ListRepositories API operation for AWS CodeCommit.

Gets information about one or more repositories.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation ListRepositories for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidSortByException "InvalidSortByException" The specified sort by value is not valid.

  • ErrCodeInvalidOrderException "InvalidOrderException" The specified sort order is not valid.

  • ErrCodeInvalidContinuationTokenException "InvalidContinuationTokenException" The specified continuation token is not valid.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListRepositories

ListRepositoriesPages

func (c *CodeCommit) ListRepositoriesPages(input *ListRepositoriesInput, fn func(*ListRepositoriesOutput, bool) bool) error

ListRepositoriesPages iterates over the pages of a ListRepositories operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListRepositories method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListRepositories operation. pageNum := 0 err := client.ListRepositoriesPages(params, func(page *ListRepositoriesOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

ListRepositoriesPagesWithContext

func (c *CodeCommit) ListRepositoriesPagesWithContext(ctx aws.Context, input *ListRepositoriesInput, fn func(*ListRepositoriesOutput, bool) bool, opts ...request.Option) error

ListRepositoriesPagesWithContext same as ListRepositoriesPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListRepositoriesRequest

func (c *CodeCommit) ListRepositoriesRequest(input *ListRepositoriesInput) (req *request.Request, output *ListRepositoriesOutput)

ListRepositoriesRequest generates a "aws/request.Request" representing the client's request for the ListRepositories operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListRepositories for more information on using the ListRepositories API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListRepositoriesRequest method. req, resp := client.ListRepositoriesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListRepositories

ListRepositoriesWithContext

func (c *CodeCommit) ListRepositoriesWithContext(ctx aws.Context, input *ListRepositoriesInput, opts ...request.Option) (*ListRepositoriesOutput, error)

ListRepositoriesWithContext is the same as ListRepositories with the addition of the ability to pass a context and additional request options.

See ListRepositories for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

MergePullRequestByFastForward

func (c *CodeCommit) MergePullRequestByFastForward(input *MergePullRequestByFastForwardInput) (*MergePullRequestByFastForwardOutput, error)

MergePullRequestByFastForward API operation for AWS CodeCommit.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation MergePullRequestByFastForward for usage and error information.

Returned Error Codes:

  • ErrCodeManualMergeRequiredException "ManualMergeRequiredException" The pull request cannot be merged automatically into the destination branch. You must manually merge the branches and resolve any conflicts.

  • ErrCodePullRequestAlreadyClosedException "PullRequestAlreadyClosedException" The pull request status cannot be updated because it is already closed.

  • ErrCodePullRequestDoesNotExistException "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.

  • ErrCodeInvalidPullRequestIdException "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.

  • ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException" A pull request ID is required, but none was provided.

  • ErrCodeTipOfSourceReferenceIsDifferentException "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.

  • ErrCodeReferenceDoesNotExistException "ReferenceDoesNotExistException" The specified reference does not exist. You must provide a full commit ID.

  • ErrCodeInvalidCommitIdException "InvalidCommitIdException" The specified commit ID is not valid.

  • ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" A repository name is required but was not specified.

  • ErrCodeInvalidRepositoryNameException "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.
  • ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" The specified repository does not exist.

  • ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" An encryption integrity check failed.

  • ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" An encryption key could not be accessed.

  • ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" The encryption key is disabled.

  • ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" No encryption key was found.

  • ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" The encryption key is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergePullRequestByFastForward

MergePullRequestByFastForwardRequest

func (c *CodeCommit) MergePullRequestByFastForwardRequest(input *MergePullRequestByFastForwardInput) (req *request.Request, output *MergePullRequestByFastForwardOutput)

MergePullRequestByFastForwardRequest generates a "aws/request.Request" representing the client's request for the MergePullRequestByFastForward operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See MergePullRequestByFastForward for more information on using the MergePullRequestByFastForward API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the MergePullRequestByFastForwardRequest method. req, resp := client.MergePullRequestByFastForwardRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergePullRequestByFastForward

MergePullRequestByFastForwardWithContext

func (c *CodeCommit) MergePullRequestByFastForwardWithContext(ctx aws.Context, input *MergePullRequestByFastForwardInput, opts ...request.Option) (*MergePullRequestByFastForwardOutput, error)

MergePullRequestByFastForwardWithContext is the same as MergePullRequestByFastForward with the addition of the ability to pass a context and additional request options.

See MergePullRequestByFastForward for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

PostCommentForComparedCommit

func (c *CodeCommit) PostCommentForComparedCommit(input *PostCommentForComparedCommitInput) (*PostCommentForComparedCommitOutput, error)

PostCommentForComparedCommit API operation for AWS CodeCommit.

Posts a comment on the comparison between two commits.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation PostCommentForComparedCommit for usage and error information.

Returned Error Codes:

  • ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" A repository name is required but was not specified.

  • ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" The specified repository does not exist.

  • ErrCodeInvalidRepositoryNameException "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.
  • ErrCodeClientRequestTokenRequiredException "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.

  • ErrCodeInvalidClientRequestTokenException "InvalidClientRequestTokenException" The client request token is not valid.

  • ErrCodeIdempotencyParameterMismatchException "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.

  • ErrCodeCommentContentRequiredException "CommentContentRequiredException" The comment is empty. You must provide some content for a comment. The content cannot be null.

  • ErrCodeCommentContentSizeLimitExceededException "CommentContentSizeLimitExceededException" The comment is too large. Comments are limited to 1,000 characters.

  • ErrCodeInvalidFileLocationException "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.

  • ErrCodeInvalidRelativeFileVersionEnumException "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.

  • ErrCodePathRequiredException "PathRequiredException" The folderPath for a location cannot be null.

  • ErrCodeInvalidFilePositionException "InvalidFilePositionException" The position is not valid. Make sure that the line number exists in the version of the file you want to comment on.

  • ErrCodeCommitIdRequiredException "CommitIdRequiredException" A commit ID was not specified.

  • ErrCodeInvalidCommitIdException "InvalidCommitIdException" The specified commit ID is not valid.

  • ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" An encryption integrity check failed.

  • ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" An encryption key could not be accessed.

  • ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" The encryption key is disabled.

  • ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" No encryption key was found.

  • ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" The encryption key is not available.

  • ErrCodeBeforeCommitIdAndAfterCommitIdAreSameException "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.

  • ErrCodeCommitDoesNotExistException "CommitDoesNotExistException" The specified commit does not exist or no commit was specified, and the specified repository has no default branch.

  • ErrCodeInvalidPathException "InvalidPathException" The specified path is not valid.

  • ErrCodePathDoesNotExistException "PathDoesNotExistException" The specified path does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentForComparedCommit

PostCommentForComparedCommitRequest

func (c *CodeCommit) PostCommentForComparedCommitRequest(input *PostCommentForComparedCommitInput) (req *request.Request, output *PostCommentForComparedCommitOutput)

PostCommentForComparedCommitRequest generates a "aws/request.Request" representing the client's request for the PostCommentForComparedCommit operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See PostCommentForComparedCommit for more information on using the PostCommentForComparedCommit API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the PostCommentForComparedCommitRequest method. req, resp := client.PostCommentForComparedCommitRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentForComparedCommit

PostCommentForComparedCommitWithContext

func (c *CodeCommit) PostCommentForComparedCommitWithContext(ctx aws.Context, input *PostCommentForComparedCommitInput, opts ...request.Option) (*PostCommentForComparedCommitOutput, error)

PostCommentForComparedCommitWithContext is the same as PostCommentForComparedCommit with the addition of the ability to pass a context and additional request options.

See PostCommentForComparedCommit for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

PostCommentForPullRequest

func (c *CodeCommit) PostCommentForPullRequest(input *PostCommentForPullRequestInput) (*PostCommentForPullRequestOutput, error)

PostCommentForPullRequest API operation for AWS CodeCommit.

Posts a comment on a pull request.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation PostCommentForPullRequest for usage and error information.

Returned Error Codes:

  • ErrCodePullRequestDoesNotExistException "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.

  • ErrCodeInvalidPullRequestIdException "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.

  • ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException" A pull request ID is required, but none was provided.

  • ErrCodeRepositoryNotAssociatedWithPullRequestException "RepositoryNotAssociatedWithPullRequestException" The repository does not contain any pull requests with that pull request ID. Use GetPullRequest to verify the correct repository name for the pull request ID.

  • ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" A repository name is required but was not specified.

  • ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" The specified repository does not exist.

  • ErrCodeInvalidRepositoryNameException "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.
  • ErrCodeClientRequestTokenRequiredException "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.

  • ErrCodeInvalidClientRequestTokenException "InvalidClientRequestTokenException" The client request token is not valid.

  • ErrCodeIdempotencyParameterMismatchException "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.

  • ErrCodeCommentContentRequiredException "CommentContentRequiredException" The comment is empty. You must provide some content for a comment. The content cannot be null.

  • ErrCodeCommentContentSizeLimitExceededException "CommentContentSizeLimitExceededException" The comment is too large. Comments are limited to 1,000 characters.

  • ErrCodeInvalidFileLocationException "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.

  • ErrCodeInvalidRelativeFileVersionEnumException "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.

  • ErrCodePathRequiredException "PathRequiredException" The folderPath for a location cannot be null.

  • ErrCodeInvalidFilePositionException "InvalidFilePositionException" The position is not valid. Make sure that the line number exists in the version of the file you want to comment on.

  • ErrCodeCommitIdRequiredException "CommitIdRequiredException" A commit ID was not specified.

  • ErrCodeInvalidCommitIdException "InvalidCommitIdException" The specified commit ID is not valid.

  • ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" An encryption integrity check failed.

  • ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" An encryption key could not be accessed.

  • ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" The encryption key is disabled.

  • ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" No encryption key was found.

  • ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" The encryption key is not available.

  • ErrCodeCommitDoesNotExistException "CommitDoesNotExistException" The specified commit does not exist or no commit was specified, and the specified repository has no default branch.

  • ErrCodeInvalidPathException "InvalidPathException" The specified path is not valid.

  • ErrCodePathDoesNotExistException "PathDoesNotExistException" The specified path does not exist.

  • ErrCodePathRequiredException "PathRequiredException" The folderPath for a location cannot be null.

  • ErrCodeBeforeCommitIdAndAfterCommitIdAreSameException "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.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentForPullRequest

PostCommentForPullRequestRequest

func (c *CodeCommit) PostCommentForPullRequestRequest(input *PostCommentForPullRequestInput) (req *request.Request, output *PostCommentForPullRequestOutput)

PostCommentForPullRequestRequest generates a "aws/request.Request" representing the client's request for the PostCommentForPullRequest operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See PostCommentForPullRequest for more information on using the PostCommentForPullRequest API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the PostCommentForPullRequestRequest method. req, resp := client.PostCommentForPullRequestRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentForPullRequest

PostCommentForPullRequestWithContext

func (c *CodeCommit) PostCommentForPullRequestWithContext(ctx aws.Context, input *PostCommentForPullRequestInput, opts ...request.Option) (*PostCommentForPullRequestOutput, error)

PostCommentForPullRequestWithContext is the same as PostCommentForPullRequest with the addition of the ability to pass a context and additional request options.

See PostCommentForPullRequest for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

PostCommentReply

func (c *CodeCommit) PostCommentReply(input *PostCommentReplyInput) (*PostCommentReplyOutput, error)

PostCommentReply API operation for AWS CodeCommit.

Posts a comment in reply to an existing comment on a comparison between commits or a pull request.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation PostCommentReply for usage and error information.

Returned Error Codes:

  • ErrCodeClientRequestTokenRequiredException "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.

  • ErrCodeInvalidClientRequestTokenException "InvalidClientRequestTokenException" The client request token is not valid.

  • ErrCodeIdempotencyParameterMismatchException "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.

  • ErrCodeCommentContentRequiredException "CommentContentRequiredException" The comment is empty. You must provide some content for a comment. The content cannot be null.

  • ErrCodeCommentContentSizeLimitExceededException "CommentContentSizeLimitExceededException" The comment is too large. Comments are limited to 1,000 characters.

  • ErrCodeCommentDoesNotExistException "CommentDoesNotExistException" No comment exists with the provided ID. Verify that you have provided the correct ID, and then try again.

  • ErrCodeCommentIdRequiredException "CommentIdRequiredException" The comment ID is missing or null. A comment ID is required.

  • ErrCodeInvalidCommentIdException "InvalidCommentIdException" The comment ID is not in a valid format. Make sure that you have provided the full comment ID.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentReply

PostCommentReplyRequest

func (c *CodeCommit) PostCommentReplyRequest(input *PostCommentReplyInput) (req *request.Request, output *PostCommentReplyOutput)

PostCommentReplyRequest generates a "aws/request.Request" representing the client's request for the PostCommentReply operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See PostCommentReply for more information on using the PostCommentReply API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the PostCommentReplyRequest method. req, resp := client.PostCommentReplyRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentReply

PostCommentReplyWithContext

func (c *CodeCommit) PostCommentReplyWithContext(ctx aws.Context, input *PostCommentReplyInput, opts ...request.Option) (*PostCommentReplyOutput, error)

PostCommentReplyWithContext is the same as PostCommentReply with the addition of the ability to pass a context and additional request options.

See PostCommentReply for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

PutFile

func (c *CodeCommit) PutFile(input *PutFileInput) (*PutFileOutput, error)

PutFile API operation for AWS CodeCommit.

Adds or updates a file in a branch in an AWS CodeCommit repository, and generates a commit for the addition in the specified branch.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation PutFile for usage and error information.

Returned Error Codes:

  • ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" A repository name is required but was not specified.

  • ErrCodeInvalidRepositoryNameException "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.
  • ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" The specified repository does not exist.

  • ErrCodeParentCommitIdRequiredException "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).

  • ErrCodeInvalidParentCommitIdException "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.

  • ErrCodeParentCommitDoesNotExistException "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.

  • ErrCodeParentCommitIdOutdatedException "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.

  • ErrCodeFileContentRequiredException "FileContentRequiredException" The file cannot be added because it is empty. Empty files cannot be added to the repository with this API.

  • ErrCodeFileContentSizeLimitExceededException "FileContentSizeLimitExceededException" The file cannot be added because it is too large. The maximum file size that can be added using PutFile is 6 MB, and the combined file content change size is 7 MB. Consider making these changes using a Git client.

  • ErrCodeFolderContentSizeLimitExceededException "FolderContentSizeLimitExceededException" The commit cannot be created because at least one of the overall changes in the commit result in a folder contents exceeding the limit of 6 MB. Either reduce the number and size of your changes, or split the changes across multiple folders.

  • ErrCodePathRequiredException "PathRequiredException" The folderPath for a location cannot be null.

  • ErrCodeInvalidPathException "InvalidPathException" The specified path is not valid.

  • ErrCodeBranchNameRequiredException "BranchNameRequiredException" A branch name is required but was not specified.

  • ErrCodeInvalidBranchNameException "InvalidBranchNameException" The specified reference name is not valid.

  • ErrCodeBranchDoesNotExistException "BranchDoesNotExistException" The specified branch does not exist.

  • ErrCodeBranchNameIsTagNameException "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.

  • ErrCodeInvalidFileModeException "InvalidFileModeException" The specified file mode permission is not valid. For a list of valid file mode permissions, see PutFile.

  • ErrCodeNameLengthExceededException "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.

  • ErrCodeInvalidEmailException "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.

  • ErrCodeCommitMessageLengthExceededException "CommitMessageLengthExceededException" The commit message is too long. Provide a shorter string.

  • ErrCodeInvalidDeletionParameterException "InvalidDeletionParameterException" The specified deletion parameter is not valid.

  • ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" An encryption integrity check failed.

  • ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" An encryption key could not be accessed.

  • ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" The encryption key is disabled.

  • ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" No encryption key was found.

  • ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" The encryption key is not available.

  • ErrCodeSameFileContentException "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.

  • ErrCodeFileNameConflictsWithDirectoryNameException "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.

  • ErrCodeDirectoryNameConflictsWithFileNameException "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.

  • ErrCodeFilePathConflictsWithSubmodulePathException "FilePathConflictsWithSubmodulePathException" The commit cannot be created because a specified file path points to a submodule. Verify that the destination files have valid file paths that do not point to a submodule.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PutFile

PutFileRequest

func (c *CodeCommit) PutFileRequest(input *PutFileInput) (req *request.Request, output *PutFileOutput)

PutFileRequest generates a "aws/request.Request" representing the client's request for the PutFile operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See PutFile for more information on using the PutFile API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the PutFileRequest method. req, resp := client.PutFileRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PutFile

PutFileWithContext

func (c *CodeCommit) PutFileWithContext(ctx aws.Context, input *PutFileInput, opts ...request.Option) (*PutFileOutput, error)

PutFileWithContext is the same as PutFile with the addition of the ability to pass a context and additional request options.

See PutFile for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

PutRepositoryTriggers

func (c *CodeCommit) PutRepositoryTriggers(input *PutRepositoryTriggersInput) (*PutRepositoryTriggersOutput, error)

PutRepositoryTriggers API operation for AWS CodeCommit.

Replaces all triggers for a repository. This can be used to create or delete triggers.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation PutRepositoryTriggers for usage and error information.

Returned Error Codes:

  • ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" The specified repository does not exist.

  • ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" A repository name is required but was not specified.

  • ErrCodeInvalidRepositoryNameException "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.
  • ErrCodeRepositoryTriggersListRequiredException "RepositoryTriggersListRequiredException" The list of triggers for the repository is required but was not specified.

  • ErrCodeMaximumRepositoryTriggersExceededException "MaximumRepositoryTriggersExceededException" The number of triggers allowed for the repository was exceeded.

  • ErrCodeInvalidRepositoryTriggerNameException "InvalidRepositoryTriggerNameException" The name of the trigger is not valid.

  • ErrCodeInvalidRepositoryTriggerDestinationArnException "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.

  • ErrCodeInvalidRepositoryTriggerRegionException "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.

  • ErrCodeInvalidRepositoryTriggerCustomDataException "InvalidRepositoryTriggerCustomDataException" The custom data provided for the trigger is not valid.

  • ErrCodeMaximumBranchesExceededException "MaximumBranchesExceededException" The number of branches for the trigger was exceeded.

  • ErrCodeInvalidRepositoryTriggerBranchNameException "InvalidRepositoryTriggerBranchNameException" One or more branch names specified for the trigger is not valid.

  • ErrCodeInvalidRepositoryTriggerEventsException "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.

  • ErrCodeRepositoryTriggerNameRequiredException "RepositoryTriggerNameRequiredException" A name for the trigger is required but was not specified.

  • ErrCodeRepositoryTriggerDestinationArnRequiredException "RepositoryTriggerDestinationArnRequiredException" A destination ARN for the target service for the trigger is required but was not specified.

  • ErrCodeRepositoryTriggerBranchNameListRequiredException "RepositoryTriggerBranchNameListRequiredException" At least one branch name is required but was not specified in the trigger configuration.

  • ErrCodeRepositoryTriggerEventsListRequiredException "RepositoryTriggerEventsListRequiredException" At least one event for the trigger is required but was not specified.

  • ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" An encryption integrity check failed.

  • ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" An encryption key could not be accessed.

  • ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" The encryption key is disabled.

  • ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" No encryption key was found.

  • ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" The encryption key is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PutRepositoryTriggers

PutRepositoryTriggersRequest

func (c *CodeCommit) PutRepositoryTriggersRequest(input *PutRepositoryTriggersInput) (req *request.Request, output *PutRepositoryTriggersOutput)

PutRepositoryTriggersRequest generates a "aws/request.Request" representing the client's request for the PutRepositoryTriggers operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See PutRepositoryTriggers for more information on using the PutRepositoryTriggers API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the PutRepositoryTriggersRequest method. req, resp := client.PutRepositoryTriggersRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PutRepositoryTriggers

PutRepositoryTriggersWithContext

func (c *CodeCommit) PutRepositoryTriggersWithContext(ctx aws.Context, input *PutRepositoryTriggersInput, opts ...request.Option) (*PutRepositoryTriggersOutput, error)

PutRepositoryTriggersWithContext is the same as PutRepositoryTriggers with the addition of the ability to pass a context and additional request options.

See PutRepositoryTriggers for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

TestRepositoryTriggers

func (c *CodeCommit) TestRepositoryTriggers(input *TestRepositoryTriggersInput) (*TestRepositoryTriggersOutput, error)

TestRepositoryTriggers API operation for AWS CodeCommit.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation TestRepositoryTriggers for usage and error information.

Returned Error Codes:

  • ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" The specified repository does not exist.

  • ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" A repository name is required but was not specified.

  • ErrCodeInvalidRepositoryNameException "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.
  • ErrCodeRepositoryTriggersListRequiredException "RepositoryTriggersListRequiredException" The list of triggers for the repository is required but was not specified.

  • ErrCodeMaximumRepositoryTriggersExceededException "MaximumRepositoryTriggersExceededException" The number of triggers allowed for the repository was exceeded.

  • ErrCodeInvalidRepositoryTriggerNameException "InvalidRepositoryTriggerNameException" The name of the trigger is not valid.

  • ErrCodeInvalidRepositoryTriggerDestinationArnException "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.

  • ErrCodeInvalidRepositoryTriggerRegionException "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.

  • ErrCodeInvalidRepositoryTriggerCustomDataException "InvalidRepositoryTriggerCustomDataException" The custom data provided for the trigger is not valid.

  • ErrCodeMaximumBranchesExceededException "MaximumBranchesExceededException" The number of branches for the trigger was exceeded.

  • ErrCodeInvalidRepositoryTriggerBranchNameException "InvalidRepositoryTriggerBranchNameException" One or more branch names specified for the trigger is not valid.

  • ErrCodeInvalidRepositoryTriggerEventsException "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.

  • ErrCodeRepositoryTriggerNameRequiredException "RepositoryTriggerNameRequiredException" A name for the trigger is required but was not specified.

  • ErrCodeRepositoryTriggerDestinationArnRequiredException "RepositoryTriggerDestinationArnRequiredException" A destination ARN for the target service for the trigger is required but was not specified.

  • ErrCodeRepositoryTriggerBranchNameListRequiredException "RepositoryTriggerBranchNameListRequiredException" At least one branch name is required but was not specified in the trigger configuration.

  • ErrCodeRepositoryTriggerEventsListRequiredException "RepositoryTriggerEventsListRequiredException" At least one event for the trigger is required but was not specified.

  • ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" An encryption integrity check failed.

  • ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" An encryption key could not be accessed.

  • ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" The encryption key is disabled.

  • ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" No encryption key was found.

  • ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" The encryption key is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/TestRepositoryTriggers

TestRepositoryTriggersRequest

func (c *CodeCommit) TestRepositoryTriggersRequest(input *TestRepositoryTriggersInput) (req *request.Request, output *TestRepositoryTriggersOutput)

TestRepositoryTriggersRequest generates a "aws/request.Request" representing the client's request for the TestRepositoryTriggers operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See TestRepositoryTriggers for more information on using the TestRepositoryTriggers API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the TestRepositoryTriggersRequest method. req, resp := client.TestRepositoryTriggersRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/TestRepositoryTriggers

TestRepositoryTriggersWithContext

func (c *CodeCommit) TestRepositoryTriggersWithContext(ctx aws.Context, input *TestRepositoryTriggersInput, opts ...request.Option) (*TestRepositoryTriggersOutput, error)

TestRepositoryTriggersWithContext is the same as TestRepositoryTriggers with the addition of the ability to pass a context and additional request options.

See TestRepositoryTriggers for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdateComment

func (c *CodeCommit) UpdateComment(input *UpdateCommentInput) (*UpdateCommentOutput, error)

UpdateComment API operation for AWS CodeCommit.

Replaces the contents of a comment.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation UpdateComment for usage and error information.

Returned Error Codes:

  • ErrCodeCommentContentRequiredException "CommentContentRequiredException" The comment is empty. You must provide some content for a comment. The content cannot be null.

  • ErrCodeCommentContentSizeLimitExceededException "CommentContentSizeLimitExceededException" The comment is too large. Comments are limited to 1,000 characters.

  • ErrCodeCommentDoesNotExistException "CommentDoesNotExistException" No comment exists with the provided ID. Verify that you have provided the correct ID, and then try again.

  • ErrCodeCommentIdRequiredException "CommentIdRequiredException" The comment ID is missing or null. A comment ID is required.

  • ErrCodeInvalidCommentIdException "InvalidCommentIdException" The comment ID is not in a valid format. Make sure that you have provided the full comment ID.

  • ErrCodeCommentNotCreatedByCallerException "CommentNotCreatedByCallerException" You cannot modify or delete this comment. Only comment authors can modify or delete their comments.

  • ErrCodeCommentDeletedException "CommentDeletedException" This comment has already been deleted. You cannot edit or delete a deleted comment.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateComment

UpdateCommentRequest

func (c *CodeCommit) UpdateCommentRequest(input *UpdateCommentInput) (req *request.Request, output *UpdateCommentOutput)

UpdateCommentRequest generates a "aws/request.Request" representing the client's request for the UpdateComment operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateComment for more information on using the UpdateComment API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateCommentRequest method. req, resp := client.UpdateCommentRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateComment

UpdateCommentWithContext

func (c *CodeCommit) UpdateCommentWithContext(ctx aws.Context, input *UpdateCommentInput, opts ...request.Option) (*UpdateCommentOutput, error)

UpdateCommentWithContext is the same as UpdateComment with the addition of the ability to pass a context and additional request options.

See UpdateComment for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdateDefaultBranch

func (c *CodeCommit) UpdateDefaultBranch(input *UpdateDefaultBranchInput) (*UpdateDefaultBranchOutput, error)

UpdateDefaultBranch API operation for AWS CodeCommit.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation UpdateDefaultBranch for usage and error information.

Returned Error Codes:

  • ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" A repository name is required but was not specified.

  • ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" The specified repository does not exist.

  • ErrCodeInvalidRepositoryNameException "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.
  • ErrCodeBranchNameRequiredException "BranchNameRequiredException" A branch name is required but was not specified.

  • ErrCodeInvalidBranchNameException "InvalidBranchNameException" The specified reference name is not valid.

  • ErrCodeBranchDoesNotExistException "BranchDoesNotExistException" The specified branch does not exist.

  • ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" An encryption integrity check failed.

  • ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" An encryption key could not be accessed.

  • ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" The encryption key is disabled.

  • ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" No encryption key was found.

  • ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" The encryption key is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateDefaultBranch

UpdateDefaultBranchRequest

func (c *CodeCommit) UpdateDefaultBranchRequest(input *UpdateDefaultBranchInput) (req *request.Request, output *UpdateDefaultBranchOutput)

UpdateDefaultBranchRequest generates a "aws/request.Request" representing the client's request for the UpdateDefaultBranch operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateDefaultBranch for more information on using the UpdateDefaultBranch API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateDefaultBranchRequest method. req, resp := client.UpdateDefaultBranchRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateDefaultBranch

UpdateDefaultBranchWithContext

func (c *CodeCommit) UpdateDefaultBranchWithContext(ctx aws.Context, input *UpdateDefaultBranchInput, opts ...request.Option) (*UpdateDefaultBranchOutput, error)

UpdateDefaultBranchWithContext is the same as UpdateDefaultBranch with the addition of the ability to pass a context and additional request options.

See UpdateDefaultBranch for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdatePullRequestDescription

func (c *CodeCommit) UpdatePullRequestDescription(input *UpdatePullRequestDescriptionInput) (*UpdatePullRequestDescriptionOutput, error)

UpdatePullRequestDescription API operation for AWS CodeCommit.

Replaces the contents of the description of a pull request.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation UpdatePullRequestDescription for usage and error information.

Returned Error Codes:

  • ErrCodePullRequestDoesNotExistException "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.

  • ErrCodeInvalidPullRequestIdException "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.

  • ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException" A pull request ID is required, but none was provided.

  • ErrCodeInvalidDescriptionException "InvalidDescriptionException" The pull request description is not valid. Descriptions are limited to 1,000 characters in length.

  • ErrCodePullRequestAlreadyClosedException "PullRequestAlreadyClosedException" The pull request status cannot be updated because it is already closed.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestDescription

UpdatePullRequestDescriptionRequest

func (c *CodeCommit) UpdatePullRequestDescriptionRequest(input *UpdatePullRequestDescriptionInput) (req *request.Request, output *UpdatePullRequestDescriptionOutput)

UpdatePullRequestDescriptionRequest generates a "aws/request.Request" representing the client's request for the UpdatePullRequestDescription operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdatePullRequestDescription for more information on using the UpdatePullRequestDescription API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdatePullRequestDescriptionRequest method. req, resp := client.UpdatePullRequestDescriptionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestDescription

UpdatePullRequestDescriptionWithContext

func (c *CodeCommit) UpdatePullRequestDescriptionWithContext(ctx aws.Context, input *UpdatePullRequestDescriptionInput, opts ...request.Option) (*UpdatePullRequestDescriptionOutput, error)

UpdatePullRequestDescriptionWithContext is the same as UpdatePullRequestDescription with the addition of the ability to pass a context and additional request options.

See UpdatePullRequestDescription for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdatePullRequestStatus

func (c *CodeCommit) UpdatePullRequestStatus(input *UpdatePullRequestStatusInput) (*UpdatePullRequestStatusOutput, error)

UpdatePullRequestStatus API operation for AWS CodeCommit.

Updates the status of a pull request.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation UpdatePullRequestStatus for usage and error information.

Returned Error Codes:

  • ErrCodePullRequestDoesNotExistException "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.

  • ErrCodeInvalidPullRequestIdException "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.

  • ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException" A pull request ID is required, but none was provided.

  • ErrCodeInvalidPullRequestStatusUpdateException "InvalidPullRequestStatusUpdateException" The pull request status update is not valid. The only valid update is from OPEN to CLOSED.

  • ErrCodeInvalidPullRequestStatusException "InvalidPullRequestStatusException" The pull request status is not valid. The only valid values are OPEN and CLOSED.

  • ErrCodePullRequestStatusRequiredException "PullRequestStatusRequiredException" A pull request status is required, but none was provided.

  • ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" An encryption integrity check failed.

  • ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" An encryption key could not be accessed.

  • ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" The encryption key is disabled.

  • ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" No encryption key was found.

  • ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" The encryption key is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestStatus

UpdatePullRequestStatusRequest

func (c *CodeCommit) UpdatePullRequestStatusRequest(input *UpdatePullRequestStatusInput) (req *request.Request, output *UpdatePullRequestStatusOutput)

UpdatePullRequestStatusRequest generates a "aws/request.Request" representing the client's request for the UpdatePullRequestStatus operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdatePullRequestStatus for more information on using the UpdatePullRequestStatus API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdatePullRequestStatusRequest method. req, resp := client.UpdatePullRequestStatusRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestStatus

UpdatePullRequestStatusWithContext

func (c *CodeCommit) UpdatePullRequestStatusWithContext(ctx aws.Context, input *UpdatePullRequestStatusInput, opts ...request.Option) (*UpdatePullRequestStatusOutput, error)

UpdatePullRequestStatusWithContext is the same as UpdatePullRequestStatus with the addition of the ability to pass a context and additional request options.

See UpdatePullRequestStatus for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdatePullRequestTitle

func (c *CodeCommit) UpdatePullRequestTitle(input *UpdatePullRequestTitleInput) (*UpdatePullRequestTitleOutput, error)

UpdatePullRequestTitle API operation for AWS CodeCommit.

Replaces the title of a pull request.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation UpdatePullRequestTitle for usage and error information.

Returned Error Codes:

  • ErrCodePullRequestDoesNotExistException "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.

  • ErrCodeInvalidPullRequestIdException "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.

  • ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException" A pull request ID is required, but none was provided.

  • ErrCodeTitleRequiredException "TitleRequiredException" A pull request title is required. It cannot be empty or null.

  • ErrCodeInvalidTitleException "InvalidTitleException" The title of the pull request is not valid. Pull request titles cannot exceed 100 characters in length.

  • ErrCodePullRequestAlreadyClosedException "PullRequestAlreadyClosedException" The pull request status cannot be updated because it is already closed.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestTitle

UpdatePullRequestTitleRequest

func (c *CodeCommit) UpdatePullRequestTitleRequest(input *UpdatePullRequestTitleInput) (req *request.Request, output *UpdatePullRequestTitleOutput)

UpdatePullRequestTitleRequest generates a "aws/request.Request" representing the client's request for the UpdatePullRequestTitle operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdatePullRequestTitle for more information on using the UpdatePullRequestTitle API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdatePullRequestTitleRequest method. req, resp := client.UpdatePullRequestTitleRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestTitle

UpdatePullRequestTitleWithContext

func (c *CodeCommit) UpdatePullRequestTitleWithContext(ctx aws.Context, input *UpdatePullRequestTitleInput, opts ...request.Option) (*UpdatePullRequestTitleOutput, error)

UpdatePullRequestTitleWithContext is the same as UpdatePullRequestTitle with the addition of the ability to pass a context and additional request options.

See UpdatePullRequestTitle for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdateRepositoryDescription

func (c *CodeCommit) UpdateRepositoryDescription(input *UpdateRepositoryDescriptionInput) (*UpdateRepositoryDescriptionOutput, error)

UpdateRepositoryDescription API operation for AWS CodeCommit.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation UpdateRepositoryDescription for usage and error information.

Returned Error Codes:

  • ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" A repository name is required but was not specified.

  • ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" The specified repository does not exist.

  • ErrCodeInvalidRepositoryNameException "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.
  • ErrCodeInvalidRepositoryDescriptionException "InvalidRepositoryDescriptionException" The specified repository description is not valid.

  • ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" An encryption integrity check failed.

  • ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" An encryption key could not be accessed.

  • ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" The encryption key is disabled.

  • ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" No encryption key was found.

  • ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" The encryption key is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateRepositoryDescription

UpdateRepositoryDescriptionRequest

func (c *CodeCommit) UpdateRepositoryDescriptionRequest(input *UpdateRepositoryDescriptionInput) (req *request.Request, output *UpdateRepositoryDescriptionOutput)

UpdateRepositoryDescriptionRequest generates a "aws/request.Request" representing the client's request for the UpdateRepositoryDescription operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateRepositoryDescription for more information on using the UpdateRepositoryDescription API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateRepositoryDescriptionRequest method. req, resp := client.UpdateRepositoryDescriptionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateRepositoryDescription

UpdateRepositoryDescriptionWithContext

func (c *CodeCommit) UpdateRepositoryDescriptionWithContext(ctx aws.Context, input *UpdateRepositoryDescriptionInput, opts ...request.Option) (*UpdateRepositoryDescriptionOutput, error)

UpdateRepositoryDescriptionWithContext is the same as UpdateRepositoryDescription with the addition of the ability to pass a context and additional request options.

See UpdateRepositoryDescription for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdateRepositoryName

func (c *CodeCommit) UpdateRepositoryName(input *UpdateRepositoryNameInput) (*UpdateRepositoryNameOutput, error)

UpdateRepositoryName API operation for AWS CodeCommit.

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 (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html) in the AWS CodeCommit User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeCommit's API operation UpdateRepositoryName for usage and error information.

Returned Error Codes:

  • ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" The specified repository does not exist.

  • ErrCodeRepositoryNameExistsException "RepositoryNameExistsException" The specified repository name already exists.

  • ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" A repository name is required but was not specified.

  • ErrCodeInvalidRepositoryNameException "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.

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateRepositoryName

UpdateRepositoryNameRequest

func (c *CodeCommit) UpdateRepositoryNameRequest(input *UpdateRepositoryNameInput) (req *request.Request, output *UpdateRepositoryNameOutput)

UpdateRepositoryNameRequest generates a "aws/request.Request" representing the client's request for the UpdateRepositoryName operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateRepositoryName for more information on using the UpdateRepositoryName API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateRepositoryNameRequest method. req, resp := client.UpdateRepositoryNameRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateRepositoryName

UpdateRepositoryNameWithContext

func (c *CodeCommit) UpdateRepositoryNameWithContext(ctx aws.Context, input *UpdateRepositoryNameInput, opts ...request.Option) (*UpdateRepositoryNameOutput, error)

UpdateRepositoryNameWithContext is the same as UpdateRepositoryName with the addition of the ability to pass a context and additional request options.

See UpdateRepositoryName for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

On this page: