codecommit

package module
v0.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2020 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceAPIVersion = "2015-04-13"
View Source
const ServiceID = "CodeCommit"

Variables

This section is empty.

Functions

func AddResolveEndpointMiddleware

func AddResolveEndpointMiddleware(stack *middleware.Stack, options ResolveEndpointMiddlewareOptions)

func NewDefaultEndpointResolver

func NewDefaultEndpointResolver() *internalendpoints.Resolver

NewDefaultEndpointResolver constructs a new service endpoint resolver

func RemoveResolveEndpointMiddleware

func RemoveResolveEndpointMiddleware(stack *middleware.Stack) error

Types

type AssociateApprovalRuleTemplateWithRepositoryInput

type AssociateApprovalRuleTemplateWithRepositoryInput struct {
	// The name of the repository that you want to associate with the template.
	RepositoryName *string
	// The name for the approval rule template.
	ApprovalRuleTemplateName *string
}

type AssociateApprovalRuleTemplateWithRepositoryOutput

type AssociateApprovalRuleTemplateWithRepositoryOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type BatchAssociateApprovalRuleTemplateWithRepositoriesInput

type BatchAssociateApprovalRuleTemplateWithRepositoriesInput struct {
	// The name of the template you want to associate with one or more repositories.
	ApprovalRuleTemplateName *string
	// The names of the repositories you want to associate with the template. The
	// length constraint limit is for each string in the array. The array itself can be
	// empty.
	RepositoryNames []*string
}

type BatchAssociateApprovalRuleTemplateWithRepositoriesOutput

type BatchAssociateApprovalRuleTemplateWithRepositoriesOutput struct {
	// A list of any errors that might have occurred while attempting to create the
	// association between the template and the repositories.
	Errors []*types.BatchAssociateApprovalRuleTemplateWithRepositoriesError
	// A list of names of the repositories that have been associated with the template.
	AssociatedRepositoryNames []*string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type BatchDescribeMergeConflictsInput

type BatchDescribeMergeConflictsInput struct {
	// The branch, tag, HEAD, or other fully qualified reference used to identify a
	// commit (for example, a branch name or a full commit ID).
	DestinationCommitSpecifier *string
	// The maximum number of merge hunks to include in the output.
	MaxMergeHunks *int32
	// The branch, tag, HEAD, or other fully qualified reference used to identify a
	// commit (for example, a branch name or a full commit ID).
	SourceCommitSpecifier *string
	// The level of conflict detail to use. If unspecified, the default FILE_LEVEL is
	// used, which returns a not-mergeable result if the same file has differences in
	// both branches. If LINE_LEVEL is specified, a conflict is considered not
	// mergeable if the same file in both branches has differences on the same line.
	ConflictDetailLevel types.ConflictDetailLevelTypeEnum
	// An enumeration token that, when provided in a request, returns the next batch of
	// the results.
	NextToken *string
	// The merge option or strategy you want to use to merge the code.
	MergeOption types.MergeOptionTypeEnum
	// The name of the repository that contains the merge conflicts you want to review.
	RepositoryName *string
	// Specifies which branch to use when resolving conflicts, or whether to attempt
	// automatically merging two versions of a file. The default is NONE, which
	// requires any conflicts to be resolved manually before the merge operation is
	// successful.
	ConflictResolutionStrategy types.ConflictResolutionStrategyTypeEnum
	// The maximum number of files to include in the output.
	MaxConflictFiles *int32
	// The path of the target files used to describe the conflicts. If not specified,
	// the default is all conflict files.
	FilePaths []*string
}

type BatchDescribeMergeConflictsOutput

type BatchDescribeMergeConflictsOutput struct {
	// The commit ID of the merge base.
	BaseCommitId *string
	// A list of conflicts for each file, including the conflict metadata and the hunks
	// of the differences between the files.
	Conflicts []*types.Conflict
	// The commit ID of the source commit specifier that was used in the merge
	// evaluation.
	SourceCommitId *string
	// An enumeration token that can be used in a request to return the next batch of
	// the results.
	NextToken *string
	// A list of any errors returned while describing the merge conflicts for each
	// file.
	Errors []*types.BatchDescribeMergeConflictsError
	// The commit ID of the destination commit specifier that was used in the merge
	// evaluation.
	DestinationCommitId *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type BatchDisassociateApprovalRuleTemplateFromRepositoriesInput

type BatchDisassociateApprovalRuleTemplateFromRepositoriesInput struct {
	// The repository names that you want to disassociate from the approval rule
	// template. The length constraint limit is for each string in the array. The array
	// itself can be empty.
	RepositoryNames []*string
	// The name of the template that you want to disassociate from one or more
	// repositories.
	ApprovalRuleTemplateName *string
}

type BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput

type BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput struct {
	// A list of repository names that have had their association with the template
	// removed.
	DisassociatedRepositoryNames []*string
	// A list of any errors that might have occurred while attempting to remove the
	// association between the template and the repositories.
	Errors []*types.BatchDisassociateApprovalRuleTemplateFromRepositoriesError

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type BatchGetCommitsInput

type BatchGetCommitsInput struct {
	// The name of the repository that contains the commits.
	RepositoryName *string
	// The full commit IDs of the commits to get information about. You must supply the
	// full SHA IDs of each commit. You cannot use shortened SHA IDs.
	CommitIds []*string
}

type BatchGetCommitsOutput

type BatchGetCommitsOutput struct {
	// An array of commit data type objects, each of which contains information about a
	// specified commit.
	Commits []*types.Commit
	// Returns any commit IDs for which information could not be found. For example, if
	// one of the commit IDs was a shortened SHA ID or that commit was not found in the
	// specified repository, the ID returns an error object with more information.
	Errors []*types.BatchGetCommitsError

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type BatchGetRepositoriesInput

type BatchGetRepositoriesInput struct {
	// The names of the repositories to get information about. The length constraint
	// limit is for each string in the array. The array itself can be empty.
	RepositoryNames []*string
}

Represents the input of a batch get repositories operation.

type BatchGetRepositoriesOutput

type BatchGetRepositoriesOutput struct {
	// Returns a list of repository names for which information could not be found.
	RepositoriesNotFound []*string
	// A list of repositories returned by the batch get repositories operation.
	Repositories []*types.RepositoryMetadata

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

Represents the output of a batch get repositories operation.

type Client

type Client struct {
	// contains filtered or unexported fields
}

AWS CodeCommit This is the AWS CodeCommit API Reference. This reference provides descriptions of the operations and data types for AWS CodeCommit API along with usage examples. You can use the AWS CodeCommit API to work with the following objects: <p>Repositories, by calling the following:</p> <ul> <li> <p> <a>BatchGetRepositories</a>, which returns information about one or more repositories associated with your AWS account.</p> </li> <li> <p> <a>CreateRepository</a>, which creates an AWS CodeCommit repository.</p> </li> <li> <p> <a>DeleteRepository</a>, which deletes an AWS CodeCommit repository.</p> </li> <li> <p> <a>GetRepository</a>, which returns information about a specified repository.</p> </li> <li> <p> <a>ListRepositories</a>, which lists all AWS CodeCommit repositories associated with your AWS account.</p> </li> <li> <p> <a>UpdateRepositoryDescription</a>, which sets or updates the description of the repository.</p> </li> <li> <p> <a>UpdateRepositoryName</a>, which changes the name of the repository. If you change the name of a repository, no other users of that repository can access it until you send them the new HTTPS or SSH URL to use.</p> </li> </ul> <p>Branches, by calling the following:</p> <ul> <li> <p> <a>CreateBranch</a>, which creates a branch in a specified repository.</p> </li> <li> <p> <a>DeleteBranch</a>, which deletes the specified branch in a repository unless it is the default branch.</p> </li> <li> <p> <a>GetBranch</a>, which returns information about a specified branch.</p> </li> <li> <p> <a>ListBranches</a>, which lists all branches for a specified repository.</p> </li> <li> <p> <a>UpdateDefaultBranch</a>, which changes the default branch for a repository.</p> </li> </ul> <p>Files, by calling the following:</p> <ul> <li> <p> <a>DeleteFile</a>, which deletes the content of a specified file from a specified branch.</p> </li> <li> <p> <a>GetBlob</a>, which returns the base-64 encoded content of an individual Git blob object in a repository.</p> </li> <li> <p> <a>GetFile</a>, which returns the base-64 encoded content of a specified file.</p> </li> <li> <p> <a>GetFolder</a>, which returns the contents of a specified folder or directory.</p> </li> <li> <p> <a>PutFile</a>, which adds or modifies a single file in a specified repository and branch.</p> </li> </ul> <p>Commits, by calling the following:</p> <ul> <li> <p> <a>BatchGetCommits</a>, which returns information about one or more commits in a repository.</p> </li> <li> <p> <a>CreateCommit</a>, which creates a commit for changes to a repository.</p> </li> <li> <p> <a>GetCommit</a>, which returns information about a commit, including commit messages and author and committer information.</p> </li> <li> <p> <a>GetDifferences</a>, which returns information about the differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID, or other fully qualified reference).</p> </li> </ul> <p>Merges, by calling the following:</p> <ul> <li> <p> <a>BatchDescribeMergeConflicts</a>, which returns information about conflicts in a merge between commits in a repository.</p> </li> <li> <p> <a>CreateUnreferencedMergeCommit</a>, which creates an unreferenced commit between two branches or commits for the purpose of comparing them and identifying any potential conflicts.</p> </li> <li> <p> <a>DescribeMergeConflicts</a>, which returns information about merge conflicts between the base, source, and destination versions of a file in a potential merge.</p> </li> <li> <p> <a>GetMergeCommit</a>, which returns information about the merge between a source and destination commit. </p> </li> <li> <p> <a>GetMergeConflicts</a>, which returns information about merge conflicts between the source and destination branch in a pull request.</p> </li> <li> <p> <a>GetMergeOptions</a>, which returns information about the available merge options between two branches or commit specifiers.</p> </li> <li> <p> <a>MergeBranchesByFastForward</a>, which merges two branches using the fast-forward merge option.</p> </li> <li> <p> <a>MergeBranchesBySquash</a>, which merges two branches using the squash merge option.</p> </li> <li> <p> <a>MergeBranchesByThreeWay</a>, which merges two branches using the three-way merge option.</p> </li> </ul> <p>Pull requests, by calling the following:</p> <ul> <li> <p> <a>CreatePullRequest</a>, which creates a pull request in a specified repository.</p> </li> <li> <p> <a>CreatePullRequestApprovalRule</a>, which creates an approval rule for a specified pull request.</p> </li> <li> <p> <a>DeletePullRequestApprovalRule</a>, which deletes an approval rule for a specified pull request.</p> </li> <li> <p> <a>DescribePullRequestEvents</a>, which returns information about one or more pull request events.</p> </li> <li> <p> <a>EvaluatePullRequestApprovalRules</a>, which evaluates whether a pull request has met all the conditions specified in its associated approval rules.</p> </li> <li> <p> <a>GetCommentsForPullRequest</a>, which returns information about comments on a specified pull request.</p> </li> <li> <p> <a>GetPullRequest</a>, which returns information about a specified pull request.</p> </li> <li> <p> <a>GetPullRequestApprovalStates</a>, which returns information about the approval states for a specified pull request.</p> </li> <li> <p> <a>GetPullRequestOverrideState</a>, which returns information about whether approval rules have been set aside (overriden) for a pull request, and if so, the Amazon Resource Name (ARN) of the user or identity that overrode the rules and their requirements for the pull request.</p> </li> <li> <p> <a>ListPullRequests</a>, which lists all pull requests for a repository.</p> </li> <li> <p> <a>MergePullRequestByFastForward</a>, which merges the source destination branch of a pull request into the specified destination branch for that pull request using the fast-forward merge option.</p> </li> <li> <p> <a>MergePullRequestBySquash</a>, which merges the source destination branch of a pull request into the specified destination branch for that pull request using the squash merge option.</p> </li> <li> <p> <a>MergePullRequestByThreeWay</a>. which merges the source destination branch of a pull request into the specified destination branch for that pull request using the three-way merge option.</p> </li> <li> <p> <a>OverridePullRequestApprovalRules</a>, which sets aside all approval rule requirements for a pull request.</p> </li> <li> <p> <a>PostCommentForPullRequest</a>, which posts a comment to a pull request at the specified line, file, or request.</p> </li> <li> <p> <a>UpdatePullRequestApprovalRuleContent</a>, which updates the structure of an approval rule for a pull request.</p> </li> <li> <p> <a>UpdatePullRequestApprovalState</a>, which updates the state of an approval on a pull request.</p> </li> <li> <p> <a>UpdatePullRequestDescription</a>, which updates the description of a pull request.</p> </li> <li> <p> <a>UpdatePullRequestStatus</a>, which updates the status of a pull request.</p> </li> <li> <p> <a>UpdatePullRequestTitle</a>, which updates the title of a pull request.</p> </li> </ul> <p>Approval rule templates, by calling the following:</p> <ul> <li> <p> <a>AssociateApprovalRuleTemplateWithRepository</a>, which associates a template with a specified repository. After the template is associated with a repository, AWS CodeCommit creates approval rules that match the template conditions on every pull request created in the specified repository.</p> </li> <li> <p> <a>BatchAssociateApprovalRuleTemplateWithRepositories</a>, which associates a template with one or more specified repositories. After the template is associated with a repository, AWS CodeCommit creates approval rules that match the template conditions on every pull request created in the specified repositories.</p> </li> <li> <p> <a>BatchDisassociateApprovalRuleTemplateFromRepositories</a>, which removes the association between a template and specified repositories so that approval rules based on the template are not automatically created when pull requests are created in those repositories.</p> </li> <li> <p> <a>CreateApprovalRuleTemplate</a>, which creates a template for approval rules that can then be associated with one or more repositories in your AWS account.</p> </li> <li> <p> <a>DeleteApprovalRuleTemplate</a>, which deletes the specified template. It does not remove approval rules on pull requests already created with the template.</p> </li> <li> <p> <a>DisassociateApprovalRuleTemplateFromRepository</a>, which removes the association between a template and a repository so that approval rules based on the template are not automatically created when pull requests are created in the specified repository.</p> </li> <li> <p> <a>GetApprovalRuleTemplate</a>, which returns information about an approval rule template.</p> </li> <li> <p> <a>ListApprovalRuleTemplates</a>, which lists all approval rule templates in the AWS Region in your AWS account.</p> </li> <li> <p> <a>ListAssociatedApprovalRuleTemplatesForRepository</a>, which lists all approval rule templates that are associated with a specified repository.</p> </li> <li> <p> <a>ListRepositoriesForApprovalRuleTemplate</a>, which lists all repositories associated with the specified approval rule template.</p> </li> <li> <p> <a>UpdateApprovalRuleTemplateDescription</a>, which updates the description of an approval rule template.</p> </li> <li> <p> <a>UpdateApprovalRuleTemplateName</a>, which updates the name of an approval rule template.</p> </li> <li> <p> <a>UpdateApprovalRuleTemplateContent</a>, which updates the content of an approval rule template.</p> </li> </ul> <p>Comments in a repository, by calling the following:</p> <ul> <li> <p> <a>DeleteCommentContent</a>, which deletes the content of a comment on a commit in a repository.</p> </li> <li> <p> <a>GetComment</a>, which returns information about a comment on a commit.</p> </li> <li> <p> <a>GetCommentReactions</a>, which returns information about emoji reactions to comments.</p> </li> <li> <p> <a>GetCommentsForComparedCommit</a>, which returns information about comments on the comparison between two commit specifiers in a repository.</p> </li> <li> <p> <a>PostCommentForComparedCommit</a>, which creates a comment on the comparison between two commit specifiers in a repository.</p> </li> <li> <p> <a>PostCommentReply</a>, which creates a reply to a comment.</p> </li> <li> <p> <a>PutCommentReaction</a>, which creates or updates an emoji reaction to a comment.</p> </li> <li> <p> <a>UpdateComment</a>, which updates the content of a comment on a commit in a repository.</p> </li> </ul> <p>Tags used to tag resources in AWS CodeCommit (not Git tags), by calling the following:</p> <ul> <li> <p> <a>ListTagsForResource</a>, which gets information about AWS tags for a specified Amazon Resource Name (ARN) in AWS CodeCommit.</p> </li> <li> <p> <a>TagResource</a>, which adds or updates tags for a resource in AWS CodeCommit.</p> </li> <li> <p> <a>UntagResource</a>, which removes tags for a resource in AWS CodeCommit.</p> </li> </ul> <p>Triggers, by calling the following:</p> <ul> <li> <p> <a>GetRepositoryTriggers</a>, which returns information about triggers configured for a repository.</p> </li> <li> <p> <a>PutRepositoryTriggers</a>, which replaces all triggers for a repository and can be used to create or delete triggers.</p> </li> <li> <p> <a>TestRepositoryTriggers</a>, which tests the functionality of a repository trigger by sending data to the trigger target.</p> </li> </ul> <p>For information about how to use AWS CodeCommit, see the <a href="https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html">AWS CodeCommit User Guide</a>.</p>

func New

func New(options Options, optFns ...func(*Options)) *Client

New returns an initialized Client based on the functional options. Provide additional functional options to further configure the behavior of the client, such as changing the client's endpoint or adding custom middleware behavior.

func NewFromConfig

func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client

NewFromConfig returns a new client from the provided config.

func (*Client) AssociateApprovalRuleTemplateWithRepository

func (c *Client) AssociateApprovalRuleTemplateWithRepository(ctx context.Context, params *AssociateApprovalRuleTemplateWithRepositoryInput, optFns ...func(*Options)) (*AssociateApprovalRuleTemplateWithRepositoryOutput, error)

Creates an association between an approval rule template and a specified repository. Then, the next time a pull request is created in the repository where the destination reference (if specified) matches the destination reference (branch) for the pull request, an approval rule that matches the template conditions is automatically created for that pull request. If no destination references are specified in the template, an approval rule that matches the template contents is created for all pull requests in that repository.

func (*Client) BatchAssociateApprovalRuleTemplateWithRepositories

func (c *Client) BatchAssociateApprovalRuleTemplateWithRepositories(ctx context.Context, params *BatchAssociateApprovalRuleTemplateWithRepositoriesInput, optFns ...func(*Options)) (*BatchAssociateApprovalRuleTemplateWithRepositoriesOutput, error)

Creates an association between an approval rule template and one or more specified repositories.

func (*Client) BatchDescribeMergeConflicts

func (c *Client) BatchDescribeMergeConflicts(ctx context.Context, params *BatchDescribeMergeConflictsInput, optFns ...func(*Options)) (*BatchDescribeMergeConflictsOutput, error)

Returns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy.

func (*Client) BatchDisassociateApprovalRuleTemplateFromRepositories

func (c *Client) BatchDisassociateApprovalRuleTemplateFromRepositories(ctx context.Context, params *BatchDisassociateApprovalRuleTemplateFromRepositoriesInput, optFns ...func(*Options)) (*BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput, error)

Removes the association between an approval rule template and one or more specified repositories.

func (*Client) BatchGetCommits

func (c *Client) BatchGetCommits(ctx context.Context, params *BatchGetCommitsInput, optFns ...func(*Options)) (*BatchGetCommitsOutput, error)

Returns information about the contents of one or more commits in a repository.

func (*Client) BatchGetRepositories

func (c *Client) BatchGetRepositories(ctx context.Context, params *BatchGetRepositoriesInput, optFns ...func(*Options)) (*BatchGetRepositoriesOutput, error)

Returns information about one or more repositories. The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a webpage.

func (*Client) CreateApprovalRuleTemplate

func (c *Client) CreateApprovalRuleTemplate(ctx context.Context, params *CreateApprovalRuleTemplateInput, optFns ...func(*Options)) (*CreateApprovalRuleTemplateOutput, error)

Creates a template for approval rules that can then be associated with one or more repositories in your AWS account. When you associate a template with a repository, AWS CodeCommit creates an approval rule that matches the conditions of the template for all pull requests that meet the conditions of the template. For more information, see AssociateApprovalRuleTemplateWithRepository ().

func (*Client) CreateBranch

func (c *Client) CreateBranch(ctx context.Context, params *CreateBranchInput, optFns ...func(*Options)) (*CreateBranchOutput, error)

Creates a branch in a repository and points the branch to a commit. Calling the create branch operation does not set a repository's default branch. To do this, call the update default branch operation.

func (*Client) CreateCommit

func (c *Client) CreateCommit(ctx context.Context, params *CreateCommitInput, optFns ...func(*Options)) (*CreateCommitOutput, error)

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

func (*Client) CreatePullRequest

func (c *Client) CreatePullRequest(ctx context.Context, params *CreatePullRequestInput, optFns ...func(*Options)) (*CreatePullRequestOutput, error)

Creates a pull request in the specified repository.

func (*Client) CreatePullRequestApprovalRule

func (c *Client) CreatePullRequestApprovalRule(ctx context.Context, params *CreatePullRequestApprovalRuleInput, optFns ...func(*Options)) (*CreatePullRequestApprovalRuleOutput, error)

Creates an approval rule for a pull request.

func (*Client) CreateRepository

func (c *Client) CreateRepository(ctx context.Context, params *CreateRepositoryInput, optFns ...func(*Options)) (*CreateRepositoryOutput, error)

Creates a new, empty repository.

func (*Client) CreateUnreferencedMergeCommit

func (c *Client) CreateUnreferencedMergeCommit(ctx context.Context, params *CreateUnreferencedMergeCommitInput, optFns ...func(*Options)) (*CreateUnreferencedMergeCommitOutput, error)

Creates an unreferenced commit that represents the result of merging two branches using a specified merge strategy. This can help you determine the outcome of a potential merge. This API cannot be used with the fast-forward merge strategy because that strategy does not create a merge commit. This unreferenced merge commit can only be accessed using the GetCommit API or through git commands such as git fetch. To retrieve this commit, you must specify its commit ID or otherwise reference it.

func (*Client) DeleteApprovalRuleTemplate

func (c *Client) DeleteApprovalRuleTemplate(ctx context.Context, params *DeleteApprovalRuleTemplateInput, optFns ...func(*Options)) (*DeleteApprovalRuleTemplateOutput, error)

Deletes a specified approval rule template. Deleting a template does not remove approval rules on pull requests already created with the template.

func (*Client) DeleteBranch

func (c *Client) DeleteBranch(ctx context.Context, params *DeleteBranchInput, optFns ...func(*Options)) (*DeleteBranchOutput, error)

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

func (*Client) DeleteCommentContent

func (c *Client) DeleteCommentContent(ctx context.Context, params *DeleteCommentContentInput, optFns ...func(*Options)) (*DeleteCommentContentOutput, error)

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

func (*Client) DeleteFile

func (c *Client) DeleteFile(ctx context.Context, params *DeleteFileInput, optFns ...func(*Options)) (*DeleteFileOutput, error)

Deletes a specified file from a specified branch. A commit is created on the branch that contains the revision. The file still exists in the commits earlier to the commit that contains the deletion.

func (*Client) DeletePullRequestApprovalRule

func (c *Client) DeletePullRequestApprovalRule(ctx context.Context, params *DeletePullRequestApprovalRuleInput, optFns ...func(*Options)) (*DeletePullRequestApprovalRuleOutput, error)

Deletes an approval rule from a specified pull request. Approval rules can be deleted from a pull request only if the pull request is open, and if the approval rule was created specifically for a pull request and not generated from an approval rule template associated with the repository where the pull request was created. You cannot delete an approval rule from a merged or closed pull request.

func (*Client) DeleteRepository

func (c *Client) DeleteRepository(ctx context.Context, params *DeleteRepositoryInput, optFns ...func(*Options)) (*DeleteRepositoryOutput, error)

Deletes a repository. If a specified repository was already deleted, a null repository ID is returned. Deleting a repository also deletes all associated objects and metadata. After a repository is deleted, all future push calls to the deleted repository fail.

func (*Client) DescribeMergeConflicts

func (c *Client) DescribeMergeConflicts(ctx context.Context, params *DescribeMergeConflictsInput, optFns ...func(*Options)) (*DescribeMergeConflictsOutput, error)

Returns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy. If the merge option for the attempted merge is specified as FAST_FORWARD_MERGE, an exception is thrown.

func (*Client) DescribePullRequestEvents

func (c *Client) DescribePullRequestEvents(ctx context.Context, params *DescribePullRequestEventsInput, optFns ...func(*Options)) (*DescribePullRequestEventsOutput, error)

Returns information about one or more pull request events.

func (*Client) DisassociateApprovalRuleTemplateFromRepository

func (c *Client) DisassociateApprovalRuleTemplateFromRepository(ctx context.Context, params *DisassociateApprovalRuleTemplateFromRepositoryInput, optFns ...func(*Options)) (*DisassociateApprovalRuleTemplateFromRepositoryOutput, error)

Removes the association between a template and a repository so that approval rules based on the template are not automatically created when pull requests are created in the specified repository. This does not delete any approval rules previously created for pull requests through the template association.

func (*Client) EvaluatePullRequestApprovalRules

func (c *Client) EvaluatePullRequestApprovalRules(ctx context.Context, params *EvaluatePullRequestApprovalRulesInput, optFns ...func(*Options)) (*EvaluatePullRequestApprovalRulesOutput, error)

Evaluates whether a pull request has met all the conditions specified in its associated approval rules.

func (*Client) GetApprovalRuleTemplate

func (c *Client) GetApprovalRuleTemplate(ctx context.Context, params *GetApprovalRuleTemplateInput, optFns ...func(*Options)) (*GetApprovalRuleTemplateOutput, error)

Returns information about a specified approval rule template.

func (*Client) GetBlob

func (c *Client) GetBlob(ctx context.Context, params *GetBlobInput, optFns ...func(*Options)) (*GetBlobOutput, error)

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

func (*Client) GetBranch

func (c *Client) GetBranch(ctx context.Context, params *GetBranchInput, optFns ...func(*Options)) (*GetBranchOutput, error)

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

func (*Client) GetComment

func (c *Client) GetComment(ctx context.Context, params *GetCommentInput, optFns ...func(*Options)) (*GetCommentOutput, error)

Returns the content of a comment made on a change, file, or commit in a repository. Reaction counts might include numbers from user identities who were deleted after the reaction was made. For a count of reactions from active identities, use GetCommentReactions.

func (*Client) GetCommentReactions

func (c *Client) GetCommentReactions(ctx context.Context, params *GetCommentReactionsInput, optFns ...func(*Options)) (*GetCommentReactionsOutput, error)

Returns information about reactions to a specified comment ID. Reactions from users who have been deleted will not be included in the count.

func (*Client) GetCommentsForComparedCommit

func (c *Client) GetCommentsForComparedCommit(ctx context.Context, params *GetCommentsForComparedCommitInput, optFns ...func(*Options)) (*GetCommentsForComparedCommitOutput, error)

Returns information about comments made on the comparison between two commits. Reaction counts might include numbers from user identities who were deleted after the reaction was made. For a count of reactions from active identities, use GetCommentReactions.

func (*Client) GetCommentsForPullRequest

func (c *Client) GetCommentsForPullRequest(ctx context.Context, params *GetCommentsForPullRequestInput, optFns ...func(*Options)) (*GetCommentsForPullRequestOutput, error)

Returns comments made on a pull request. Reaction counts might include numbers from user identities who were deleted after the reaction was made. For a count of reactions from active identities, use GetCommentReactions.

func (*Client) GetCommit

func (c *Client) GetCommit(ctx context.Context, params *GetCommitInput, optFns ...func(*Options)) (*GetCommitOutput, error)

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

func (*Client) GetDifferences

func (c *Client) GetDifferences(ctx context.Context, params *GetDifferencesInput, optFns ...func(*Options)) (*GetDifferencesOutput, error)

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.

func (*Client) GetFile

func (c *Client) GetFile(ctx context.Context, params *GetFileInput, optFns ...func(*Options)) (*GetFileOutput, error)

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

func (*Client) GetFolder

func (c *Client) GetFolder(ctx context.Context, params *GetFolderInput, optFns ...func(*Options)) (*GetFolderOutput, error)

Returns the contents of a specified folder in a repository.

func (*Client) GetMergeCommit

func (c *Client) GetMergeCommit(ctx context.Context, params *GetMergeCommitInput, optFns ...func(*Options)) (*GetMergeCommitOutput, error)

Returns information about a specified merge commit.

func (*Client) GetMergeConflicts

func (c *Client) GetMergeConflicts(ctx context.Context, params *GetMergeConflictsInput, optFns ...func(*Options)) (*GetMergeConflictsOutput, error)

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

func (*Client) GetMergeOptions

func (c *Client) GetMergeOptions(ctx context.Context, params *GetMergeOptionsInput, optFns ...func(*Options)) (*GetMergeOptionsOutput, error)

Returns information about the merge options available for merging two specified branches. For details about why a merge option is not available, use GetMergeConflicts or DescribeMergeConflicts.

func (*Client) GetPullRequest

func (c *Client) GetPullRequest(ctx context.Context, params *GetPullRequestInput, optFns ...func(*Options)) (*GetPullRequestOutput, error)

Gets information about a pull request in a specified repository.

func (*Client) GetPullRequestApprovalStates

func (c *Client) GetPullRequestApprovalStates(ctx context.Context, params *GetPullRequestApprovalStatesInput, optFns ...func(*Options)) (*GetPullRequestApprovalStatesOutput, error)

Gets information about the approval states for a specified pull request. Approval states only apply to pull requests that have one or more approval rules applied to them.

func (*Client) GetPullRequestOverrideState

func (c *Client) GetPullRequestOverrideState(ctx context.Context, params *GetPullRequestOverrideStateInput, optFns ...func(*Options)) (*GetPullRequestOverrideStateOutput, error)

Returns information about whether approval rules have been set aside (overridden) for a pull request, and if so, the Amazon Resource Name (ARN) of the user or identity that overrode the rules and their requirements for the pull request.

func (*Client) GetRepository

func (c *Client) GetRepository(ctx context.Context, params *GetRepositoryInput, optFns ...func(*Options)) (*GetRepositoryOutput, error)

Returns information about a repository. <note> <p>The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a webpage.</p> </note>

func (*Client) GetRepositoryTriggers

func (c *Client) GetRepositoryTriggers(ctx context.Context, params *GetRepositoryTriggersInput, optFns ...func(*Options)) (*GetRepositoryTriggersOutput, error)

Gets information about triggers configured for a repository.

func (*Client) ListApprovalRuleTemplates

func (c *Client) ListApprovalRuleTemplates(ctx context.Context, params *ListApprovalRuleTemplatesInput, optFns ...func(*Options)) (*ListApprovalRuleTemplatesOutput, error)

Lists all approval rule templates in the specified AWS Region in your AWS account. If an AWS Region is not specified, the AWS Region where you are signed in is used.

func (*Client) ListAssociatedApprovalRuleTemplatesForRepository

func (c *Client) ListAssociatedApprovalRuleTemplatesForRepository(ctx context.Context, params *ListAssociatedApprovalRuleTemplatesForRepositoryInput, optFns ...func(*Options)) (*ListAssociatedApprovalRuleTemplatesForRepositoryOutput, error)

Lists all approval rule templates that are associated with a specified repository.

func (*Client) ListBranches

func (c *Client) ListBranches(ctx context.Context, params *ListBranchesInput, optFns ...func(*Options)) (*ListBranchesOutput, error)

Gets information about one or more branches in a repository.

func (*Client) ListPullRequests

func (c *Client) ListPullRequests(ctx context.Context, params *ListPullRequestsInput, optFns ...func(*Options)) (*ListPullRequestsOutput, error)

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.

func (*Client) ListRepositories

func (c *Client) ListRepositories(ctx context.Context, params *ListRepositoriesInput, optFns ...func(*Options)) (*ListRepositoriesOutput, error)

Gets information about one or more repositories.

func (*Client) ListRepositoriesForApprovalRuleTemplate

func (c *Client) ListRepositoriesForApprovalRuleTemplate(ctx context.Context, params *ListRepositoriesForApprovalRuleTemplateInput, optFns ...func(*Options)) (*ListRepositoriesForApprovalRuleTemplateOutput, error)

Lists all repositories associated with the specified approval rule template.

func (*Client) ListTagsForResource

func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error)

Gets information about AWS tags for a specified Amazon Resource Name (ARN) in AWS CodeCommit. For a list of valid resources in AWS CodeCommit, see CodeCommit Resources and Operations (https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats) in the AWS CodeCommit User Guide.

func (*Client) MergeBranchesByFastForward

func (c *Client) MergeBranchesByFastForward(ctx context.Context, params *MergeBranchesByFastForwardInput, optFns ...func(*Options)) (*MergeBranchesByFastForwardOutput, error)

Merges two branches using the fast-forward merge strategy.

func (*Client) MergeBranchesBySquash

func (c *Client) MergeBranchesBySquash(ctx context.Context, params *MergeBranchesBySquashInput, optFns ...func(*Options)) (*MergeBranchesBySquashOutput, error)

Merges two branches using the squash merge strategy.

func (*Client) MergeBranchesByThreeWay

func (c *Client) MergeBranchesByThreeWay(ctx context.Context, params *MergeBranchesByThreeWayInput, optFns ...func(*Options)) (*MergeBranchesByThreeWayOutput, error)

Merges two specified branches using the three-way merge strategy.

func (*Client) MergePullRequestByFastForward

func (c *Client) MergePullRequestByFastForward(ctx context.Context, params *MergePullRequestByFastForwardInput, optFns ...func(*Options)) (*MergePullRequestByFastForwardOutput, error)

Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the fast-forward merge strategy. If the merge is successful, it closes the pull request.

func (*Client) MergePullRequestBySquash

func (c *Client) MergePullRequestBySquash(ctx context.Context, params *MergePullRequestBySquashInput, optFns ...func(*Options)) (*MergePullRequestBySquashOutput, error)

Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the squash merge strategy. If the merge is successful, it closes the pull request.

func (*Client) MergePullRequestByThreeWay

func (c *Client) MergePullRequestByThreeWay(ctx context.Context, params *MergePullRequestByThreeWayInput, optFns ...func(*Options)) (*MergePullRequestByThreeWayOutput, error)

Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the three-way merge strategy. If the merge is successful, it closes the pull request.

func (*Client) OverridePullRequestApprovalRules

func (c *Client) OverridePullRequestApprovalRules(ctx context.Context, params *OverridePullRequestApprovalRulesInput, optFns ...func(*Options)) (*OverridePullRequestApprovalRulesOutput, error)

Sets aside (overrides) all approval rule requirements for a specified pull request.

func (*Client) PostCommentForComparedCommit

func (c *Client) PostCommentForComparedCommit(ctx context.Context, params *PostCommentForComparedCommitInput, optFns ...func(*Options)) (*PostCommentForComparedCommitOutput, error)

Posts a comment on the comparison between two commits.

func (*Client) PostCommentForPullRequest

func (c *Client) PostCommentForPullRequest(ctx context.Context, params *PostCommentForPullRequestInput, optFns ...func(*Options)) (*PostCommentForPullRequestOutput, error)

Posts a comment on a pull request.

func (*Client) PostCommentReply

func (c *Client) PostCommentReply(ctx context.Context, params *PostCommentReplyInput, optFns ...func(*Options)) (*PostCommentReplyOutput, error)

Posts a comment in reply to an existing comment on a comparison between commits or a pull request.

func (*Client) PutCommentReaction

func (c *Client) PutCommentReaction(ctx context.Context, params *PutCommentReactionInput, optFns ...func(*Options)) (*PutCommentReactionOutput, error)

Adds or updates a reaction to a specified comment for the user whose identity is used to make the request. You can only add or update a reaction for yourself. You cannot add, modify, or delete a reaction for another user.

func (*Client) PutFile

func (c *Client) PutFile(ctx context.Context, params *PutFileInput, optFns ...func(*Options)) (*PutFileOutput, error)

Adds or updates a file in a branch in an AWS CodeCommit repository, and generates a commit for the addition in the specified branch.

func (*Client) PutRepositoryTriggers

func (c *Client) PutRepositoryTriggers(ctx context.Context, params *PutRepositoryTriggersInput, optFns ...func(*Options)) (*PutRepositoryTriggersOutput, error)

Replaces all triggers for a repository. Used to create or delete triggers.

func (*Client) TagResource

func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)

Adds or updates tags for a resource in AWS CodeCommit. For a list of valid resources in AWS CodeCommit, see CodeCommit Resources and Operations (https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats) in the AWS CodeCommit User Guide.

func (*Client) TestRepositoryTriggers

func (c *Client) TestRepositoryTriggers(ctx context.Context, params *TestRepositoryTriggersInput, optFns ...func(*Options)) (*TestRepositoryTriggersOutput, error)

Tests the functionality of repository triggers by sending information to the trigger target. If real data is available in the repository, the test sends data from the last commit. If no data is available, sample data is generated.

func (*Client) UntagResource

func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)

Removes tags for a resource in AWS CodeCommit. For a list of valid resources in AWS CodeCommit, see CodeCommit Resources and Operations (https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats) in the AWS CodeCommit User Guide.

func (*Client) UpdateApprovalRuleTemplateContent

func (c *Client) UpdateApprovalRuleTemplateContent(ctx context.Context, params *UpdateApprovalRuleTemplateContentInput, optFns ...func(*Options)) (*UpdateApprovalRuleTemplateContentOutput, error)

Updates the content of an approval rule template. You can change the number of required approvals, the membership of the approval rule, and whether an approval pool is defined.

func (*Client) UpdateApprovalRuleTemplateDescription

func (c *Client) UpdateApprovalRuleTemplateDescription(ctx context.Context, params *UpdateApprovalRuleTemplateDescriptionInput, optFns ...func(*Options)) (*UpdateApprovalRuleTemplateDescriptionOutput, error)

Updates the description for a specified approval rule template.

func (*Client) UpdateApprovalRuleTemplateName

func (c *Client) UpdateApprovalRuleTemplateName(ctx context.Context, params *UpdateApprovalRuleTemplateNameInput, optFns ...func(*Options)) (*UpdateApprovalRuleTemplateNameOutput, error)

Updates the name of a specified approval rule template.

func (*Client) UpdateComment

func (c *Client) UpdateComment(ctx context.Context, params *UpdateCommentInput, optFns ...func(*Options)) (*UpdateCommentOutput, error)

Replaces the contents of a comment.

func (*Client) UpdateDefaultBranch

func (c *Client) UpdateDefaultBranch(ctx context.Context, params *UpdateDefaultBranchInput, optFns ...func(*Options)) (*UpdateDefaultBranchOutput, error)

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.

func (*Client) UpdatePullRequestApprovalRuleContent

func (c *Client) UpdatePullRequestApprovalRuleContent(ctx context.Context, params *UpdatePullRequestApprovalRuleContentInput, optFns ...func(*Options)) (*UpdatePullRequestApprovalRuleContentOutput, error)

Updates the structure of an approval rule created specifically for a pull request. For example, you can change the number of required approvers and the approval pool for approvers.

func (*Client) UpdatePullRequestApprovalState

func (c *Client) UpdatePullRequestApprovalState(ctx context.Context, params *UpdatePullRequestApprovalStateInput, optFns ...func(*Options)) (*UpdatePullRequestApprovalStateOutput, error)

Updates the state of a user's approval on a pull request. The user is derived from the signed-in account when the request is made.

func (*Client) UpdatePullRequestDescription

func (c *Client) UpdatePullRequestDescription(ctx context.Context, params *UpdatePullRequestDescriptionInput, optFns ...func(*Options)) (*UpdatePullRequestDescriptionOutput, error)

Replaces the contents of the description of a pull request.

func (*Client) UpdatePullRequestStatus

func (c *Client) UpdatePullRequestStatus(ctx context.Context, params *UpdatePullRequestStatusInput, optFns ...func(*Options)) (*UpdatePullRequestStatusOutput, error)

Updates the status of a pull request.

func (*Client) UpdatePullRequestTitle

func (c *Client) UpdatePullRequestTitle(ctx context.Context, params *UpdatePullRequestTitleInput, optFns ...func(*Options)) (*UpdatePullRequestTitleOutput, error)

Replaces the title of a pull request.

func (*Client) UpdateRepositoryDescription

func (c *Client) UpdateRepositoryDescription(ctx context.Context, params *UpdateRepositoryDescriptionInput, optFns ...func(*Options)) (*UpdateRepositoryDescriptionOutput, error)

Sets or changes the comment or description for a repository. The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a webpage.

func (*Client) UpdateRepositoryName

func (c *Client) UpdateRepositoryName(ctx context.Context, params *UpdateRepositoryNameInput, optFns ...func(*Options)) (*UpdateRepositoryNameOutput, error)

Renames a repository. The repository name must be unique across the calling AWS account. Repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. The suffix .git is prohibited. For more information about the limits on repository names, see Limits (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html) in the AWS CodeCommit User Guide.

type CreateApprovalRuleTemplateInput

type CreateApprovalRuleTemplateInput struct {
	// The name of the approval rule template. Provide descriptive names, because this
	// name is applied to the approval rules created automatically in associated
	// repositories.
	ApprovalRuleTemplateName *string
	// The description of the approval rule template. Consider providing a description
	// that explains what this template does and when it might be appropriate to
	// associate it with repositories.
	ApprovalRuleTemplateDescription *string
	// The content of the approval rule that is created on pull requests in associated
	// repositories. If you specify one or more destination references (branches),
	// approval rules are created in an associated repository only if their destination
	// references (branches) match those specified in the template. When you create the
	// content of the approval rule template, you can specify approvers in an approval
	// pool in one of two ways:
	//
	//     * CodeCommitApprovers: This option only requires
	// an AWS account and a resource. It can be used for both IAM users and federated
	// access users whose name matches the provided resource name. This is a very
	// powerful option that offers a great deal of flexibility. For example, if you
	// specify the AWS account 123456789012 and Mary_Major, all of the following are
	// counted as approvals coming from that user:
	//
	//         * An IAM user in the
	// account (arn:aws:iam::123456789012:user/Mary_Major)
	//
	//         * A federated user
	// identified in IAM as Mary_Major
	// (arn:aws:sts::123456789012:federated-user/Mary_Major)
	//
	//     This option does not
	// recognize an active session of someone assuming the role of CodeCommitReview
	// with a role session name of Mary_Major
	// (arn:aws:sts::123456789012:assumed-role/CodeCommitReview/Mary_Major) unless you
	// include a wildcard (*Mary_Major).
	//
	//     * Fully qualified ARN: This option allows
	// you to specify the fully qualified Amazon Resource Name (ARN) of the IAM user or
	// role.
	//
	// For more information about IAM ARNs, wildcards, and formats, see IAM
	// Identifiers
	// (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html) in
	// the IAM User Guide.  </note>
	ApprovalRuleTemplateContent *string
}

type CreateApprovalRuleTemplateOutput

type CreateApprovalRuleTemplateOutput struct {
	// The content and structure of the created approval rule template.
	ApprovalRuleTemplate *types.ApprovalRuleTemplate

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type CreateBranchInput

type CreateBranchInput struct {
	// The ID of the commit to point the new branch to.
	CommitId *string
	// The name of the new branch to create.
	BranchName *string
	// The name of the repository in which you want to create the new branch.
	RepositoryName *string
}

Represents the input of a create branch operation.

type CreateBranchOutput

type CreateBranchOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type CreateCommitInput

type CreateCommitInput struct {
	// The commit message you want to include in the commit. Commit messages are
	// limited to 256 KB. If no message is specified, a default message is used.
	CommitMessage *string
	// The ID of the commit that is the parent of the commit you create. Not required
	// if this is an empty repository.
	ParentCommitId *string
	// The files to add or update in this commit.
	PutFiles []*types.PutFileEntry
	// The name of the branch where you create the commit.
	BranchName *string
	// The email address of the person who created the commit.
	Email *string
	// The file modes to update for files in this commit.
	SetFileModes []*types.SetFileModeEntry
	// The name of the repository where you create the commit.
	RepositoryName *string
	// The name of the author who created the commit. This information is used as both
	// the author and committer for the commit.
	AuthorName *string
	// The files to delete in this commit. These files still exist in earlier commits.
	DeleteFiles []*types.DeleteFileEntry
	// If the commit contains deletions, whether to keep a folder or folder structure
	// if the changes leave the folders empty. If true, a ..gitkeep file is created for
	// empty folders. The default is false.
	KeepEmptyFolders *bool
}

type CreateCommitOutput

type CreateCommitOutput struct {
	// The files added as part of the committed file changes.
	FilesAdded []*types.FileMetadata
	// The files updated as part of the commited file changes.
	FilesUpdated []*types.FileMetadata
	// The files deleted as part of the committed file changes.
	FilesDeleted []*types.FileMetadata
	// The full commit ID of the commit that contains your committed file changes.
	CommitId *string
	// The full SHA-1 pointer of the tree information for the commit that contains the
	// commited file changes.
	TreeId *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type CreatePullRequestApprovalRuleInput

type CreatePullRequestApprovalRuleInput struct {
	// The system-generated ID of the pull request for which you want to create the
	// approval rule.
	PullRequestId *string
	// The content of the approval rule, including the number of approvals needed and
	// the structure of an approval pool defined for approvals, if any. For more
	// information about approval pools, see the AWS CodeCommit User Guide. When you
	// create the content of the approval rule, you can specify approvers in an
	// approval pool in one of two ways:
	//
	//     * CodeCommitApprovers: This option only
	// requires an AWS account and a resource. It can be used for both IAM users and
	// federated access users whose name matches the provided resource name. This is a
	// very powerful option that offers a great deal of flexibility. For example, if
	// you specify the AWS account 123456789012 and Mary_Major, all of the following
	// would be counted as approvals coming from that user:
	//
	//         * An IAM user in
	// the account (arn:aws:iam::123456789012:user/Mary_Major)
	//
	//         * A federated
	// user identified in IAM as Mary_Major
	// (arn:aws:sts::123456789012:federated-user/Mary_Major)
	//
	//     This option does not
	// recognize an active session of someone assuming the role of CodeCommitReview
	// with a role session name of Mary_Major
	// (arn:aws:sts::123456789012:assumed-role/CodeCommitReview/Mary_Major) unless you
	// include a wildcard (*Mary_Major).
	//
	//     * Fully qualified ARN: This option allows
	// you to specify the fully qualified Amazon Resource Name (ARN) of the IAM user or
	// role.
	//
	// For more information about IAM ARNs, wildcards, and formats, see IAM
	// Identifiers
	// (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html) in
	// the IAM User Guide.  </note>
	ApprovalRuleContent *string
	// The name for the approval rule.
	ApprovalRuleName *string
}

type CreatePullRequestApprovalRuleOutput

type CreatePullRequestApprovalRuleOutput struct {
	// Information about the created approval rule.
	ApprovalRule *types.ApprovalRule

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type CreatePullRequestInput

type CreatePullRequestInput struct {
	// The title of the pull request. This title is used to identify the pull request
	// to other users in the repository.
	Title *string
	// A unique, client-generated idempotency token that, when provided in a request,
	// ensures the request cannot be repeated with a changed parameter. If a request is
	// received with the same parameters and a token is included, the request returns
	// information about the initial request that used that token. The AWS SDKs
	// prepopulate client request tokens. If you are using an AWS SDK, an idempotency
	// token is created for you.
	ClientRequestToken *string
	// A description of the pull request.
	Description *string
	// The targets for the pull request, including the source of the code to be
	// reviewed (the source branch) and the destination where the creator of the pull
	// request intends the code to be merged after the pull request is closed (the
	// destination branch).
	Targets []*types.Target
}

type CreatePullRequestOutput

type CreatePullRequestOutput struct {
	// Information about the newly created pull request.
	PullRequest *types.PullRequest

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type CreateRepositoryInput

type CreateRepositoryInput struct {
	// A comment or description about the new repository. The description field for a
	// repository accepts all HTML characters and all valid Unicode characters.
	// Applications that do not HTML-encode the description and display it in a webpage
	// can expose users to potentially malicious code. Make sure that you HTML-encode
	// the description field in any application that uses this API to display the
	// repository description on a webpage.
	RepositoryDescription *string
	// The name of the new repository to be created. The repository name must be unique
	// across the calling AWS account. Repository names are limited to 100
	// alphanumeric, dash, and underscore characters, and cannot include certain
	// characters. For more information about the limits on repository names, see
	// Limits (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html) in
	// the AWS CodeCommit User Guide. The suffix .git is prohibited.
	RepositoryName *string
	// One or more tag key-value pairs to use when tagging this repository.
	Tags map[string]*string
}

Represents the input of a create repository operation.

type CreateRepositoryOutput

type CreateRepositoryOutput struct {
	// Information about the newly created repository.
	RepositoryMetadata *types.RepositoryMetadata

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

Represents the output of a create repository operation.

type CreateUnreferencedMergeCommitInput

type CreateUnreferencedMergeCommitInput struct {
	// The name of the repository where you want to create the unreferenced merge
	// commit.
	RepositoryName *string
	// The commit message for the unreferenced commit.
	CommitMessage *string
	// The merge option or strategy you want to use to merge the code.
	MergeOption types.MergeOptionTypeEnum
	// The branch, tag, HEAD, or other fully qualified reference used to identify a
	// commit (for example, a branch name or a full commit ID).
	DestinationCommitSpecifier *string
	// The email address for the person who created the unreferenced commit.
	Email *string
	// If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when
	// resolving conflicts during a merge.
	ConflictResolution *types.ConflictResolution
	// The name of the author who created the unreferenced commit. This information is
	// used as both the author and committer for the commit.
	AuthorName *string
	// Specifies which branch to use when resolving conflicts, or whether to attempt
	// automatically merging two versions of a file. The default is NONE, which
	// requires any conflicts to be resolved manually before the merge operation is
	// successful.
	ConflictResolutionStrategy types.ConflictResolutionStrategyTypeEnum
	// The level of conflict detail to use. If unspecified, the default FILE_LEVEL is
	// used, which returns a not-mergeable result if the same file has differences in
	// both branches. If LINE_LEVEL is specified, a conflict is considered not
	// mergeable if the same file in both branches has differences on the same line.
	ConflictDetailLevel types.ConflictDetailLevelTypeEnum
	// The branch, tag, HEAD, or other fully qualified reference used to identify a
	// commit (for example, a branch name or a full commit ID).
	SourceCommitSpecifier *string
	// If the commit contains deletions, whether to keep a folder or folder structure
	// if the changes leave the folders empty. If this is specified as true, a .gitkeep
	// file is created for empty folders. The default is false.
	KeepEmptyFolders *bool
}

type CreateUnreferencedMergeCommitOutput

type CreateUnreferencedMergeCommitOutput struct {
	// The full commit ID of the commit that contains your merge results.
	CommitId *string
	// The full SHA-1 pointer of the tree information for the commit that contains the
	// merge results.
	TreeId *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type DeleteApprovalRuleTemplateInput

type DeleteApprovalRuleTemplateInput struct {
	// The name of the approval rule template to delete.
	ApprovalRuleTemplateName *string
}

type DeleteApprovalRuleTemplateOutput

type DeleteApprovalRuleTemplateOutput struct {
	// The system-generated ID of the deleted approval rule template. If the template
	// has been previously deleted, the only response is a 200 OK.
	ApprovalRuleTemplateId *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type DeleteBranchInput

type DeleteBranchInput struct {
	// The name of the repository that contains the branch to be deleted.
	RepositoryName *string
	// The name of the branch to delete.
	BranchName *string
}

Represents the input of a delete branch operation.

type DeleteBranchOutput

type DeleteBranchOutput struct {
	// Information about the branch deleted by the operation, including the branch name
	// and the commit ID that was the tip of the branch.
	DeletedBranch *types.BranchInfo

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

Represents the output of a delete branch operation.

type DeleteCommentContentInput

type DeleteCommentContentInput struct {
	// The unique, system-generated ID of the comment. To get this ID, use
	// GetCommentsForComparedCommit () or GetCommentsForPullRequest ().
	CommentId *string
}

type DeleteCommentContentOutput

type DeleteCommentContentOutput struct {
	// Information about the comment you just deleted.
	Comment *types.Comment

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type DeleteFileInput

type DeleteFileInput struct {
	// The email address for the commit that deletes the file. If no email address is
	// specified, the email address is left blank.
	Email *string
	// The fully qualified path to the file that to be deleted, including the full name
	// and extension of that file. For example, /examples/file.md is a fully qualified
	// path to a file named file.md in a folder named examples.
	FilePath *string
	// The name of the repository that contains the file to delete.
	RepositoryName *string
	// The commit message you want to include as part of deleting the file. Commit
	// messages are limited to 256 KB. If no message is specified, a default message is
	// used.
	CommitMessage *string
	// The name of the author of the commit that deletes the file. If no name is
	// specified, the user's ARN is used as the author name and committer name.
	Name *string
	// The name of the branch where the commit that deletes the file is made.
	BranchName *string
	// The ID of the commit that is the tip of the branch where you want to create the
	// commit that deletes the file. This must be the HEAD commit for the branch. The
	// commit that deletes the file is created from this commit ID.
	ParentCommitId *string
	// If a file is the only object in the folder or directory, specifies whether to
	// delete the folder or directory that contains the file. By default, empty folders
	// are deleted. This includes empty folders that are part of the directory
	// structure. For example, if the path to a file is dir1/dir2/dir3/dir4, and dir2
	// and dir3 are empty, deleting the last file in dir4 also deletes the empty
	// folders dir4, dir3, and dir2.
	KeepEmptyFolders *bool
}

type DeleteFileOutput

type DeleteFileOutput struct {
	// The blob ID removed from the tree as part of deleting the file.
	BlobId *string
	// The full commit ID of the commit that contains the change that deletes the file.
	CommitId *string
	// The fully qualified path to the file to be deleted, including the full name and
	// extension of that file.
	FilePath *string
	// The full SHA-1 pointer of the tree information for the commit that contains the
	// delete file change.
	TreeId *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type DeletePullRequestApprovalRuleInput

type DeletePullRequestApprovalRuleInput struct {
	// The system-generated ID of the pull request that contains the approval rule you
	// want to delete.
	PullRequestId *string
	// The name of the approval rule you want to delete.
	ApprovalRuleName *string
}

type DeletePullRequestApprovalRuleOutput

type DeletePullRequestApprovalRuleOutput struct {
	// The ID of the deleted approval rule. If the approval rule was deleted in an
	// earlier API call, the response is 200 OK without content.
	ApprovalRuleId *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type DeleteRepositoryInput

type DeleteRepositoryInput struct {
	// The name of the repository to delete.
	RepositoryName *string
}

Represents the input of a delete repository operation.

type DeleteRepositoryOutput

type DeleteRepositoryOutput struct {
	// The ID of the repository that was deleted.
	RepositoryId *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

Represents the output of a delete repository operation.

type DescribeMergeConflictsInput

type DescribeMergeConflictsInput struct {
	// The merge option or strategy you want to use to merge the code.
	MergeOption types.MergeOptionTypeEnum
	// The name of the repository where you want to get information about a merge
	// conflict.
	RepositoryName *string
	// The path of the target files used to describe the conflicts.
	FilePath *string
	// The branch, tag, HEAD, or other fully qualified reference used to identify a
	// commit (for example, a branch name or a full commit ID).
	DestinationCommitSpecifier *string
	// The level of conflict detail to use. If unspecified, the default FILE_LEVEL is
	// used, which returns a not-mergeable result if the same file has differences in
	// both branches. If LINE_LEVEL is specified, a conflict is considered not
	// mergeable if the same file in both branches has differences on the same line.
	ConflictDetailLevel types.ConflictDetailLevelTypeEnum
	// The branch, tag, HEAD, or other fully qualified reference used to identify a
	// commit (for example, a branch name or a full commit ID).
	SourceCommitSpecifier *string
	// The maximum number of merge hunks to include in the output.
	MaxMergeHunks *int32
	// Specifies which branch to use when resolving conflicts, or whether to attempt
	// automatically merging two versions of a file. The default is NONE, which
	// requires any conflicts to be resolved manually before the merge operation is
	// successful.
	ConflictResolutionStrategy types.ConflictResolutionStrategyTypeEnum
	// An enumeration token that, when provided in a request, returns the next batch of
	// the results.
	NextToken *string
}

type DescribeMergeConflictsOutput

type DescribeMergeConflictsOutput struct {
	// The commit ID of the destination commit specifier that was used in the merge
	// evaluation.
	DestinationCommitId *string
	// The commit ID of the source commit specifier that was used in the merge
	// evaluation.
	SourceCommitId *string
	// The commit ID of the merge base.
	BaseCommitId *string
	// Contains metadata about the conflicts found in the merge.
	ConflictMetadata *types.ConflictMetadata
	// An enumeration token that can be used in a request to return the next batch of
	// the results.
	NextToken *string
	// A list of merge hunks of the differences between the files or lines.
	MergeHunks []*types.MergeHunk

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type DescribePullRequestEventsInput

type DescribePullRequestEventsInput struct {
	// An enumeration token that, when provided in a request, returns the next batch of
	// the results.
	NextToken *string
	// The Amazon Resource Name (ARN) of the user whose actions resulted in the event.
	// Examples include updating the pull request with more commits or changing the
	// status of a pull request.
	ActorArn *string
	// Optional. The pull request event type about which you want to return
	// information.
	PullRequestEventType types.PullRequestEventType
	// A non-zero, non-negative integer used to limit the number of returned results.
	// The default is 100 events, which is also the maximum number of events that can
	// be returned in a result.
	MaxResults *int32
	// The system-generated ID of the pull request. To get this ID, use
	// ListPullRequests ().
	PullRequestId *string
}

type DescribePullRequestEventsOutput

type DescribePullRequestEventsOutput struct {
	// Information about the pull request events.
	PullRequestEvents []*types.PullRequestEvent
	// An enumeration token that can be used in a request to return the next batch of
	// the results.
	NextToken *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type DisassociateApprovalRuleTemplateFromRepositoryInput

type DisassociateApprovalRuleTemplateFromRepositoryInput struct {
	// The name of the approval rule template to disassociate from a specified
	// repository.
	ApprovalRuleTemplateName *string
	// The name of the repository you want to disassociate from the template.
	RepositoryName *string
}

type DisassociateApprovalRuleTemplateFromRepositoryOutput

type DisassociateApprovalRuleTemplateFromRepositoryOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type EndpointResolver

type EndpointResolver interface {
	ResolveEndpoint(region string, options ResolverOptions) (aws.Endpoint, error)
}

EndpointResolver interface for resolving service endpoints.

func WithEndpointResolver

func WithEndpointResolver(awsResolver aws.EndpointResolver, fallbackResolver EndpointResolver) EndpointResolver

WithEndpointResolver returns an EndpointResolver that first delegates endpoint resolution to the awsResolver. If awsResolver returns aws.EndpointNotFoundError error, the resolver will use the the provided fallbackResolver for resolution. awsResolver and fallbackResolver must not be nil

type EndpointResolverFunc

type EndpointResolverFunc func(region string, options ResolverOptions) (aws.Endpoint, error)

EndpointResolverFunc is a helper utility that wraps a function so it satisfies the EndpointResolver interface. This is useful when you want to add additional endpoint resolving logic, or stub out specific endpoints with custom values.

func (EndpointResolverFunc) ResolveEndpoint

func (fn EndpointResolverFunc) ResolveEndpoint(region string, options ResolverOptions) (endpoint aws.Endpoint, err error)

type EvaluatePullRequestApprovalRulesInput

type EvaluatePullRequestApprovalRulesInput struct {
	// The system-generated ID for the pull request revision. To retrieve the most
	// recent revision ID for a pull request, use GetPullRequest ().
	RevisionId *string
	// The system-generated ID of the pull request you want to evaluate.
	PullRequestId *string
}

type EvaluatePullRequestApprovalRulesOutput

type EvaluatePullRequestApprovalRulesOutput struct {
	// The result of the evaluation, including the names of the rules whose conditions
	// have been met (if any), the names of the rules whose conditions have not been
	// met (if any), whether the pull request is in the approved state, and whether the
	// pull request approval rule has been set aside by an override.
	Evaluation *types.Evaluation

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type GetApprovalRuleTemplateInput

type GetApprovalRuleTemplateInput struct {
	// The name of the approval rule template for which you want to get information.
	ApprovalRuleTemplateName *string
}

type GetApprovalRuleTemplateOutput

type GetApprovalRuleTemplateOutput struct {
	// The content and structure of the approval rule template.
	ApprovalRuleTemplate *types.ApprovalRuleTemplate

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type GetBlobInput

type GetBlobInput struct {
	// The ID of the blob, which is its SHA-1 pointer.
	BlobId *string
	// The name of the repository that contains the blob.
	RepositoryName *string
}

Represents the input of a get blob operation.

type GetBlobOutput

type GetBlobOutput struct {
	// The content of the blob, usually a file.
	Content []byte

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

Represents the output of a get blob operation.

type GetBranchInput

type GetBranchInput struct {
	// The name of the repository that contains the branch for which you want to
	// retrieve information.
	RepositoryName *string
	// The name of the branch for which you want to retrieve information.
	BranchName *string
}

Represents the input of a get branch operation.

type GetBranchOutput

type GetBranchOutput struct {
	// The name of the branch.
	Branch *types.BranchInfo

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

Represents the output of a get branch operation.

type GetCommentInput

type GetCommentInput struct {
	// The unique, system-generated ID of the comment. To get this ID, use
	// GetCommentsForComparedCommit () or GetCommentsForPullRequest ().
	CommentId *string
}

type GetCommentOutput

type GetCommentOutput struct {
	// The contents of the comment.
	Comment *types.Comment

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type GetCommentReactionsInput

type GetCommentReactionsInput struct {
	// The ID of the comment for which you want to get reactions information.
	CommentId *string
	// Optional. The Amazon Resource Name (ARN) of the user or identity for which you
	// want to get reaction information.
	ReactionUserArn *string
	// A non-zero, non-negative integer used to limit the number of returned results.
	// The default is the same as the allowed maximum, 1,000.
	MaxResults *int32
	// An enumeration token that, when provided in a request, returns the next batch of
	// the results.
	NextToken *string
}

type GetCommentReactionsOutput

type GetCommentReactionsOutput struct {
	// An array of reactions to the specified comment.
	ReactionsForComment []*types.ReactionForComment
	// An enumeration token that can be used in a request to return the next batch of
	// the results.
	NextToken *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type GetCommentsForComparedCommitInput

type GetCommentsForComparedCommitInput struct {
	// To establish the directionality of the comparison, the full commit ID of the
	// before commit.
	BeforeCommitId *string
	// An enumeration token that when provided in a request, returns the next batch of
	// the results.
	NextToken *string
	// A non-zero, non-negative integer used to limit the number of returned results.
	// The default is 100 comments, but you can configure up to 500.
	MaxResults *int32
	// To establish the directionality of the comparison, the full commit ID of the
	// after commit.
	AfterCommitId *string
	// The name of the repository where you want to compare commits.
	RepositoryName *string
}

type GetCommentsForComparedCommitOutput

type GetCommentsForComparedCommitOutput struct {
	// A list of comment objects on the compared commit.
	CommentsForComparedCommitData []*types.CommentsForComparedCommit
	// An enumeration token that can be used in a request to return the next batch of
	// the results.
	NextToken *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type GetCommentsForPullRequestInput

type GetCommentsForPullRequestInput struct {
	// The full commit ID of the commit in the destination branch that was the tip of
	// the branch at the time the pull request was created.
	BeforeCommitId *string
	// The full commit ID of the commit in the source branch that was the tip of the
	// branch at the time the comment was made.
	AfterCommitId *string
	// An enumeration token that, when provided in a request, returns the next batch of
	// the results.
	NextToken *string
	// A non-zero, non-negative integer used to limit the number of returned results.
	// The default is 100 comments. You can return up to 500 comments with a single
	// request.
	MaxResults *int32
	// The system-generated ID of the pull request. To get this ID, use
	// ListPullRequests ().
	PullRequestId *string
	// The name of the repository that contains the pull request.
	RepositoryName *string
}

type GetCommentsForPullRequestOutput

type GetCommentsForPullRequestOutput struct {
	// An array of comment objects on the pull request.
	CommentsForPullRequestData []*types.CommentsForPullRequest
	// An enumeration token that can be used in a request to return the next batch of
	// the results.
	NextToken *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type GetCommitInput

type GetCommitInput struct {
	// The name of the repository to which the commit was made.
	RepositoryName *string
	// The commit ID. Commit IDs are the full SHA ID of the commit.
	CommitId *string
}

Represents the input of a get commit operation.

type GetCommitOutput

type GetCommitOutput struct {
	// A commit data type object that contains information about the specified commit.
	Commit *types.Commit

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

Represents the output of a get commit operation.

type GetDifferencesInput

type GetDifferencesInput struct {
	// An enumeration token that, when provided in a request, returns the next batch of
	// the results.
	NextToken *string
	// The branch, tag, HEAD, or other fully qualified reference used to identify a
	// commit (for example, the full commit ID). Optional. If not specified, all
	// changes before the afterCommitSpecifier value are shown. If you do not use
	// beforeCommitSpecifier in your request, consider limiting the results with
	// maxResults.
	BeforeCommitSpecifier *string
	// The file path in which to check for differences. Limits the results to this
	// path. Can also be used to specify the previous name of a directory or folder. If
	// beforePath and afterPath are not specified, differences are shown for all paths.
	BeforePath *string
	// The name of the repository where you want to get differences.
	RepositoryName *string
	// A non-zero, non-negative integer used to limit the number of returned results.
	MaxResults *int32
	// The branch, tag, HEAD, or other fully qualified reference used to identify a
	// commit.
	AfterCommitSpecifier *string
	// The file path in which to check differences. Limits the results to this path.
	// Can also be used to specify the changed name of a directory or folder, if it has
	// changed. If not specified, differences are shown for all paths.
	AfterPath *string
}

type GetDifferencesOutput

type GetDifferencesOutput struct {
	// An enumeration token that can be used in a request to return the next batch of
	// the results.
	NextToken *string
	// A data type object that contains information about the differences, including
	// whether the difference is added, modified, or deleted (A, D, M).
	Differences []*types.Difference

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type GetFileInput

type GetFileInput struct {
	// The name of the repository that contains the file.
	RepositoryName *string
	// The fully quaified reference that identifies the commit that contains the file.
	// For example, you can specify a full commit ID, a tag, a branch name, or a
	// reference such as refs/heads/master. If none is provided, the head commit is
	// used.
	CommitSpecifier *string
	// The fully qualified path to the file, including the full name and extension of
	// the file. For example, /examples/file.md is the fully qualified path to a file
	// named file.md in a folder named examples.
	FilePath *string
}

type GetFileOutput

type GetFileOutput struct {
	// The full commit ID of the commit that contains the content returned by GetFile.
	CommitId *string
	// The blob ID of the object that represents the file content.
	BlobId *string
	// The base-64 encoded binary data object that represents the content of the file.
	FileContent []byte
	// The extrapolated file mode permissions of the blob. Valid values include strings
	// such as EXECUTABLE and not numeric values. The file mode permissions returned by
	// this API are not the standard file mode permission values, such as 100644, but
	// rather extrapolated values. See the supported return values.
	FileMode types.FileModeTypeEnum
	// The fully qualified path to the specified file. Returns the name and extension
	// of the file.
	FilePath *string
	// The size of the contents of the file, in bytes.
	FileSize *int64

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type GetFolderInput

type GetFolderInput struct {
	// The fully qualified path to the folder whose contents are returned, including
	// the folder name. For example, /examples is a fully-qualified path to a folder
	// named examples that was created off of the root directory (/) of a repository.
	FolderPath *string
	// The name of the repository.
	RepositoryName *string
	// A fully qualified reference used to identify a commit that contains the version
	// of the folder's content to return. A fully qualified reference can be a commit
	// ID, branch name, tag, or reference such as HEAD. If no specifier is provided,
	// the folder content is returned as it exists in the HEAD commit.
	CommitSpecifier *string
}

type GetFolderOutput

type GetFolderOutput struct {
	// The full SHA-1 pointer of the tree information for the commit that contains the
	// folder.
	TreeId *string
	// The fully qualified path of the folder whose contents are returned.
	FolderPath *string
	// The list of files in the specified folder, if any.
	Files []*types.File
	// The full commit ID used as a reference for the returned version of the folder
	// content.
	CommitId *string
	// The list of submodules in the specified folder, if any.
	SubModules []*types.SubModule
	// The list of symbolic links to other files and folders in the specified folder,
	// if any.
	SymbolicLinks []*types.SymbolicLink
	// The list of folders that exist under the specified folder, if any.
	SubFolders []*types.Folder

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type GetMergeCommitInput

type GetMergeCommitInput struct {
	// Specifies which branch to use when resolving conflicts, or whether to attempt
	// automatically merging two versions of a file. The default is NONE, which
	// requires any conflicts to be resolved manually before the merge operation is
	// successful.
	ConflictResolutionStrategy types.ConflictResolutionStrategyTypeEnum
	// The level of conflict detail to use. If unspecified, the default FILE_LEVEL is
	// used, which returns a not-mergeable result if the same file has differences in
	// both branches. If LINE_LEVEL is specified, a conflict is considered not
	// mergeable if the same file in both branches has differences on the same line.
	ConflictDetailLevel types.ConflictDetailLevelTypeEnum
	// The branch, tag, HEAD, or other fully qualified reference used to identify a
	// commit (for example, a branch name or a full commit ID).
	SourceCommitSpecifier *string
	// The branch, tag, HEAD, or other fully qualified reference used to identify a
	// commit (for example, a branch name or a full commit ID).
	DestinationCommitSpecifier *string
	// The name of the repository that contains the merge commit about which you want
	// to get information.
	RepositoryName *string
}

type GetMergeCommitOutput

type GetMergeCommitOutput struct {
	// The commit ID for the merge commit created when the source branch was merged
	// into the destination branch. If the fast-forward merge strategy was used, there
	// is no merge commit.
	MergedCommitId *string
	// The commit ID of the destination commit specifier that was used in the merge
	// evaluation.
	DestinationCommitId *string
	// The commit ID of the merge base.
	BaseCommitId *string
	// The commit ID of the source commit specifier that was used in the merge
	// evaluation.
	SourceCommitId *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type GetMergeConflictsInput

type GetMergeConflictsInput struct {
	// An enumeration token that, when provided in a request, returns the next batch of
	// the results.
	NextToken *string
	// The level of conflict detail to use. If unspecified, the default FILE_LEVEL is
	// used, which returns a not-mergeable result if the same file has differences in
	// both branches. If LINE_LEVEL is specified, a conflict is considered not
	// mergeable if the same file in both branches has differences on the same line.
	ConflictDetailLevel types.ConflictDetailLevelTypeEnum
	// The branch, tag, HEAD, or other fully qualified reference used to identify a
	// commit (for example, a branch name or a full commit ID).
	DestinationCommitSpecifier *string
	// The branch, tag, HEAD, or other fully qualified reference used to identify a
	// commit (for example, a branch name or a full commit ID).
	SourceCommitSpecifier *string
	// The maximum number of files to include in the output.
	MaxConflictFiles *int32
	// Specifies which branch to use when resolving conflicts, or whether to attempt
	// automatically merging two versions of a file. The default is NONE, which
	// requires any conflicts to be resolved manually before the merge operation is
	// successful.
	ConflictResolutionStrategy types.ConflictResolutionStrategyTypeEnum
	// The merge option or strategy you want to use to merge the code.
	MergeOption types.MergeOptionTypeEnum
	// The name of the repository where the pull request was created.
	RepositoryName *string
}

type GetMergeConflictsOutput

type GetMergeConflictsOutput struct {
	// The commit ID of the destination commit specifier that was used in the merge
	// evaluation.
	DestinationCommitId *string
	// The commit ID of the source commit specifier that was used in the merge
	// evaluation.
	SourceCommitId *string
	// A Boolean value that indicates whether the code is mergeable by the specified
	// merge option.
	Mergeable *bool
	// The commit ID of the merge base.
	BaseCommitId *string
	// An enumeration token that can be used in a request to return the next batch of
	// the results.
	NextToken *string
	// A list of metadata for any conflicting files. If the specified merge strategy is
	// FAST_FORWARD_MERGE, this list is always empty.
	ConflictMetadataList []*types.ConflictMetadata

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type GetMergeOptionsInput

type GetMergeOptionsInput struct {
	// The branch, tag, HEAD, or other fully qualified reference used to identify a
	// commit (for example, a branch name or a full commit ID).
	DestinationCommitSpecifier *string
	// The name of the repository that contains the commits about which you want to get
	// merge options.
	RepositoryName *string
	// The level of conflict detail to use. If unspecified, the default FILE_LEVEL is
	// used, which returns a not-mergeable result if the same file has differences in
	// both branches. If LINE_LEVEL is specified, a conflict is considered not
	// mergeable if the same file in both branches has differences on the same line.
	ConflictDetailLevel types.ConflictDetailLevelTypeEnum
	// The branch, tag, HEAD, or other fully qualified reference used to identify a
	// commit (for example, a branch name or a full commit ID).
	SourceCommitSpecifier *string
	// Specifies which branch to use when resolving conflicts, or whether to attempt
	// automatically merging two versions of a file. The default is NONE, which
	// requires any conflicts to be resolved manually before the merge operation is
	// successful.
	ConflictResolutionStrategy types.ConflictResolutionStrategyTypeEnum
}

type GetMergeOptionsOutput

type GetMergeOptionsOutput struct {
	// The merge option or strategy used to merge the code.
	MergeOptions []types.MergeOptionTypeEnum
	// The commit ID of the merge base.
	BaseCommitId *string
	// The commit ID of the source commit specifier that was used in the merge
	// evaluation.
	SourceCommitId *string
	// The commit ID of the destination commit specifier that was used in the merge
	// evaluation.
	DestinationCommitId *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type GetPullRequestApprovalStatesInput

type GetPullRequestApprovalStatesInput struct {
	// The system-generated ID for the pull request revision.
	RevisionId *string
	// The system-generated ID for the pull request.
	PullRequestId *string
}

type GetPullRequestApprovalStatesOutput

type GetPullRequestApprovalStatesOutput struct {
	// Information about users who have approved the pull request.
	Approvals []*types.Approval

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type GetPullRequestInput

type GetPullRequestInput struct {
	// The system-generated ID of the pull request. To get this ID, use
	// ListPullRequests ().
	PullRequestId *string
}

type GetPullRequestOutput

type GetPullRequestOutput struct {
	// Information about the specified pull request.
	PullRequest *types.PullRequest

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type GetPullRequestOverrideStateInput

type GetPullRequestOverrideStateInput struct {
	// The ID of the pull request for which you want to get information about whether
	// approval rules have been set aside (overridden).
	PullRequestId *string
	// The system-generated ID of the revision for the pull request. To retrieve the
	// most recent revision ID, use GetPullRequest ().
	RevisionId *string
}

type GetPullRequestOverrideStateOutput

type GetPullRequestOverrideStateOutput struct {
	// The Amazon Resource Name (ARN) of the user or identity that overrode the rules
	// and their requirements for the pull request.
	Overrider *string
	// A Boolean value that indicates whether a pull request has had its rules set
	// aside (TRUE) or whether all approval rules still apply (FALSE).
	Overridden *bool

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type GetRepositoryInput

type GetRepositoryInput struct {
	// The name of the repository to get information about.
	RepositoryName *string
}

Represents the input of a get repository operation.

type GetRepositoryOutput

type GetRepositoryOutput struct {
	// Information about the repository.
	RepositoryMetadata *types.RepositoryMetadata

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

Represents the output of a get repository operation.

type GetRepositoryTriggersInput

type GetRepositoryTriggersInput struct {
	// The name of the repository for which the trigger is configured.
	RepositoryName *string
}

Represents the input of a get repository triggers operation.

type GetRepositoryTriggersOutput

type GetRepositoryTriggersOutput struct {
	// The system-generated unique ID for the trigger.
	ConfigurationId *string
	// The JSON block of configuration information for each trigger.
	Triggers []*types.RepositoryTrigger

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

Represents the output of a get repository triggers operation.

type HTTPClient

type HTTPClient interface {
	Do(*http.Request) (*http.Response, error)
}

type HTTPSignerV4

type HTTPSignerV4 interface {
	SignHTTP(ctx context.Context, credentials aws.Credentials, r *http.Request, payloadHash string, service string, region string, signingTime time.Time) error
}

type IdempotencyTokenProvider

type IdempotencyTokenProvider interface {
	GetIdempotencyToken() (string, error)
}

IdempotencyTokenProvider interface for providing idempotency token

type ListApprovalRuleTemplatesInput

type ListApprovalRuleTemplatesInput struct {
	// A non-zero, non-negative integer used to limit the number of returned results.
	MaxResults *int32
	// An enumeration token that, when provided in a request, returns the next batch of
	// the results.
	NextToken *string
}

type ListApprovalRuleTemplatesOutput

type ListApprovalRuleTemplatesOutput struct {
	// An enumeration token that allows the operation to batch the next results of the
	// operation.
	NextToken *string
	// The names of all the approval rule templates found in the AWS Region for your
	// AWS account.
	ApprovalRuleTemplateNames []*string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type ListAssociatedApprovalRuleTemplatesForRepositoryInput

type ListAssociatedApprovalRuleTemplatesForRepositoryInput struct {
	// A non-zero, non-negative integer used to limit the number of returned results.
	MaxResults *int32
	// An enumeration token that, when provided in a request, returns the next batch of
	// the results.
	NextToken *string
	// The name of the repository for which you want to list all associated approval
	// rule templates.
	RepositoryName *string
}

type ListAssociatedApprovalRuleTemplatesForRepositoryOutput

type ListAssociatedApprovalRuleTemplatesForRepositoryOutput struct {
	// The names of all approval rule templates associated with the repository.
	ApprovalRuleTemplateNames []*string
	// An enumeration token that allows the operation to batch the next results of the
	// operation.
	NextToken *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type ListBranchesInput

type ListBranchesInput struct {
	// An enumeration token that allows the operation to batch the results.
	NextToken *string
	// The name of the repository that contains the branches.
	RepositoryName *string
}

Represents the input of a list branches operation.

type ListBranchesOutput

type ListBranchesOutput struct {
	// An enumeration token that returns the batch of the results.
	NextToken *string
	// The list of branch names.
	Branches []*string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

Represents the output of a list branches operation.

type ListPullRequestsInput

type ListPullRequestsInput struct {
	// The name of the repository for which you want to list pull requests.
	RepositoryName *string
	// Optional. The Amazon Resource Name (ARN) of the user who created the pull
	// request. If used, this filters the results to pull requests created by that
	// user.
	AuthorArn *string
	// An enumeration token that, when provided in a request, returns the next batch of
	// the results.
	NextToken *string
	// A non-zero, non-negative integer used to limit the number of returned results.
	MaxResults *int32
	// Optional. The status of the pull request. If used, this refines the results to
	// the pull requests that match the specified status.
	PullRequestStatus types.PullRequestStatusEnum
}

type ListPullRequestsOutput

type ListPullRequestsOutput struct {
	// The system-generated IDs of the pull requests.
	PullRequestIds []*string
	// An enumeration token that allows the operation to batch the next results of the
	// operation.
	NextToken *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type ListRepositoriesForApprovalRuleTemplateInput

type ListRepositoriesForApprovalRuleTemplateInput struct {
	// A non-zero, non-negative integer used to limit the number of returned results.
	MaxResults *int32
	// An enumeration token that, when provided in a request, returns the next batch of
	// the results.
	NextToken *string
	// The name of the approval rule template for which you want to list repositories
	// that are associated with that template.
	ApprovalRuleTemplateName *string
}

type ListRepositoriesForApprovalRuleTemplateOutput

type ListRepositoriesForApprovalRuleTemplateOutput struct {
	// An enumeration token that allows the operation to batch the next results of the
	// operation.
	NextToken *string
	// A list of repository names that are associated with the specified approval rule
	// template.
	RepositoryNames []*string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type ListRepositoriesInput

type ListRepositoriesInput struct {
	// The criteria used to sort the results of a list repositories operation.
	SortBy types.SortByEnum
	// The order in which to sort the results of a list repositories operation.
	Order types.OrderEnum
	// An enumeration token that allows the operation to batch the results of the
	// operation. Batch sizes are 1,000 for list repository operations. When the client
	// sends the token back to AWS CodeCommit, another page of 1,000 records is
	// retrieved.
	NextToken *string
}

Represents the input of a list repositories operation.

type ListRepositoriesOutput

type ListRepositoriesOutput struct {
	// Lists the repositories called by the list repositories operation.
	Repositories []*types.RepositoryNameIdPair
	// An enumeration token that allows the operation to batch the results of the
	// operation. Batch sizes are 1,000 for list repository operations. When the client
	// sends the token back to AWS CodeCommit, another page of 1,000 records is
	// retrieved.
	NextToken *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

Represents the output of a list repositories operation.

type ListTagsForResourceInput

type ListTagsForResourceInput struct {
	// An enumeration token that, when provided in a request, returns the next batch of
	// the results.
	NextToken *string
	// The Amazon Resource Name (ARN) of the resource for which you want to get
	// information about tags, if any.
	ResourceArn *string
}

type ListTagsForResourceOutput

type ListTagsForResourceOutput struct {
	// An enumeration token that allows the operation to batch the next results of the
	// operation.
	NextToken *string
	// A list of tag key and value pairs associated with the specified resource.
	Tags map[string]*string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type MergeBranchesByFastForwardInput

type MergeBranchesByFastForwardInput struct {
	// The branch, tag, HEAD, or other fully qualified reference used to identify a
	// commit (for example, a branch name or a full commit ID).
	DestinationCommitSpecifier *string
	// The branch, tag, HEAD, or other fully qualified reference used to identify a
	// commit (for example, a branch name or a full commit ID).
	SourceCommitSpecifier *string
	// The branch where the merge is applied.
	TargetBranch *string
	// The name of the repository where you want to merge two branches.
	RepositoryName *string
}

type MergeBranchesByFastForwardOutput

type MergeBranchesByFastForwardOutput struct {
	// The commit ID of the merge in the destination or target branch.
	CommitId *string
	// The tree ID of the merge in the destination or target branch.
	TreeId *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type MergeBranchesBySquashInput

type MergeBranchesBySquashInput struct {
	// If the commit contains deletions, whether to keep a folder or folder structure
	// if the changes leave the folders empty. If this is specified as true, a .gitkeep
	// file is created for empty folders. The default is false.
	KeepEmptyFolders *bool
	// The branch, tag, HEAD, or other fully qualified reference used to identify a
	// commit (for example, a branch name or a full commit ID).
	SourceCommitSpecifier *string
	// The branch, tag, HEAD, or other fully qualified reference used to identify a
	// commit (for example, a branch name or a full commit ID).
	DestinationCommitSpecifier *string
	// The name of the repository where you want to merge two branches.
	RepositoryName *string
	// If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when
	// resolving conflicts during a merge.
	ConflictResolution *types.ConflictResolution
	// The email address of the person merging the branches. This information is used
	// in the commit information for the merge.
	Email *string
	// The level of conflict detail to use. If unspecified, the default FILE_LEVEL is
	// used, which returns a not-mergeable result if the same file has differences in
	// both branches. If LINE_LEVEL is specified, a conflict is considered not
	// mergeable if the same file in both branches has differences on the same line.
	ConflictDetailLevel types.ConflictDetailLevelTypeEnum
	// The name of the author who created the commit. This information is used as both
	// the author and committer for the commit.
	AuthorName *string
	// Specifies which branch to use when resolving conflicts, or whether to attempt
	// automatically merging two versions of a file. The default is NONE, which
	// requires any conflicts to be resolved manually before the merge operation is
	// successful.
	ConflictResolutionStrategy types.ConflictResolutionStrategyTypeEnum
	// The branch where the merge is applied.
	TargetBranch *string
	// The commit message for the merge.
	CommitMessage *string
}

type MergeBranchesBySquashOutput

type MergeBranchesBySquashOutput struct {
	// The tree ID of the merge in the destination or target branch.
	TreeId *string
	// The commit ID of the merge in the destination or target branch.
	CommitId *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type MergeBranchesByThreeWayInput

type MergeBranchesByThreeWayInput struct {
	// The branch, tag, HEAD, or other fully qualified reference used to identify a
	// commit (for example, a branch name or a full commit ID).
	SourceCommitSpecifier *string
	// The name of the repository where you want to merge two branches.
	RepositoryName *string
	// If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when
	// resolving conflicts during a merge.
	ConflictResolution *types.ConflictResolution
	// Specifies which branch to use when resolving conflicts, or whether to attempt
	// automatically merging two versions of a file. The default is NONE, which
	// requires any conflicts to be resolved manually before the merge operation is
	// successful.
	ConflictResolutionStrategy types.ConflictResolutionStrategyTypeEnum
	// If the commit contains deletions, whether to keep a folder or folder structure
	// if the changes leave the folders empty. If true, a .gitkeep file is created for
	// empty folders. The default is false.
	KeepEmptyFolders *bool
	// The email address of the person merging the branches. This information is used
	// in the commit information for the merge.
	Email *string
	// The level of conflict detail to use. If unspecified, the default FILE_LEVEL is
	// used, which returns a not-mergeable result if the same file has differences in
	// both branches. If LINE_LEVEL is specified, a conflict is considered not
	// mergeable if the same file in both branches has differences on the same line.
	ConflictDetailLevel types.ConflictDetailLevelTypeEnum
	// The branch, tag, HEAD, or other fully qualified reference used to identify a
	// commit (for example, a branch name or a full commit ID).
	DestinationCommitSpecifier *string
	// The branch where the merge is applied.
	TargetBranch *string
	// The name of the author who created the commit. This information is used as both
	// the author and committer for the commit.
	AuthorName *string
	// The commit message to include in the commit information for the merge.
	CommitMessage *string
}

type MergeBranchesByThreeWayOutput

type MergeBranchesByThreeWayOutput struct {
	// The tree ID of the merge in the destination or target branch.
	TreeId *string
	// The commit ID of the merge in the destination or target branch.
	CommitId *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type MergePullRequestByFastForwardInput

type MergePullRequestByFastForwardInput struct {
	// The name of the repository where the pull request was created.
	RepositoryName *string
	// The system-generated ID of the pull request. To get this ID, use
	// ListPullRequests ().
	PullRequestId *string
	// The full commit ID of the original or updated commit in the pull request source
	// branch. Pass this value if you want an exception thrown if the current commit ID
	// of the tip of the source branch does not match this commit ID.
	SourceCommitId *string
}

type MergePullRequestByFastForwardOutput

type MergePullRequestByFastForwardOutput struct {
	// Information about the specified pull request, including the merge.
	PullRequest *types.PullRequest

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type MergePullRequestBySquashInput

type MergePullRequestBySquashInput struct {
	// The full commit ID of the original or updated commit in the pull request source
	// branch. Pass this value if you want an exception thrown if the current commit ID
	// of the tip of the source branch does not match this commit ID.
	SourceCommitId *string
	// The level of conflict detail to use. If unspecified, the default FILE_LEVEL is
	// used, which returns a not-mergeable result if the same file has differences in
	// both branches. If LINE_LEVEL is specified, a conflict is considered not
	// mergeable if the same file in both branches has differences on the same line.
	ConflictDetailLevel types.ConflictDetailLevelTypeEnum
	// The email address of the person merging the branches. This information is used
	// in the commit information for the merge.
	Email *string
	// The name of the author who created the commit. This information is used as both
	// the author and committer for the commit.
	AuthorName *string
	// The commit message to include in the commit information for the merge.
	CommitMessage *string
	// Specifies which branch to use when resolving conflicts, or whether to attempt
	// automatically merging two versions of a file. The default is NONE, which
	// requires any conflicts to be resolved manually before the merge operation is
	// successful.
	ConflictResolutionStrategy types.ConflictResolutionStrategyTypeEnum
	// If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when
	// resolving conflicts during a merge.
	ConflictResolution *types.ConflictResolution
	// The name of the repository where the pull request was created.
	RepositoryName *string
	// The system-generated ID of the pull request. To get this ID, use
	// ListPullRequests ().
	PullRequestId *string
	// If the commit contains deletions, whether to keep a folder or folder structure
	// if the changes leave the folders empty. If true, a .gitkeep file is created for
	// empty folders. The default is false.
	KeepEmptyFolders *bool
}

type MergePullRequestBySquashOutput

type MergePullRequestBySquashOutput struct {
	// Returns information about a pull request.
	PullRequest *types.PullRequest

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type MergePullRequestByThreeWayInput

type MergePullRequestByThreeWayInput struct {
	// Specifies which branch to use when resolving conflicts, or whether to attempt
	// automatically merging two versions of a file. The default is NONE, which
	// requires any conflicts to be resolved manually before the merge operation is
	// successful.
	ConflictResolutionStrategy types.ConflictResolutionStrategyTypeEnum
	// The level of conflict detail to use. If unspecified, the default FILE_LEVEL is
	// used, which returns a not-mergeable result if the same file has differences in
	// both branches. If LINE_LEVEL is specified, a conflict is considered not
	// mergeable if the same file in both branches has differences on the same line.
	ConflictDetailLevel types.ConflictDetailLevelTypeEnum
	// If the commit contains deletions, whether to keep a folder or folder structure
	// if the changes leave the folders empty. If true, a .gitkeep file is created for
	// empty folders. The default is false.
	KeepEmptyFolders *bool
	// The email address of the person merging the branches. This information is used
	// in the commit information for the merge.
	Email *string
	// The name of the repository where the pull request was created.
	RepositoryName *string
	// The system-generated ID of the pull request. To get this ID, use
	// ListPullRequests ().
	PullRequestId *string
	// If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when
	// resolving conflicts during a merge.
	ConflictResolution *types.ConflictResolution
	// The full commit ID of the original or updated commit in the pull request source
	// branch. Pass this value if you want an exception thrown if the current commit ID
	// of the tip of the source branch does not match this commit ID.
	SourceCommitId *string
	// The name of the author who created the commit. This information is used as both
	// the author and committer for the commit.
	AuthorName *string
	// The commit message to include in the commit information for the merge.
	CommitMessage *string
}

type MergePullRequestByThreeWayOutput

type MergePullRequestByThreeWayOutput struct {
	// Returns information about a pull request.
	PullRequest *types.PullRequest

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type Options

type Options struct {
	// Set of options to modify how an operation is invoked. These apply to all
	// operations invoked for this client. Use functional options on operation call to
	// modify this list for per operation behavior.
	APIOptions []func(*middleware.Stack) error

	// The credentials object to use when signing requests.
	Credentials aws.CredentialsProvider

	// The endpoint options to be used when attempting to resolve an endpoint.
	EndpointOptions ResolverOptions

	// The service endpoint resolver.
	EndpointResolver EndpointResolver

	// Signature Version 4 (SigV4) Signer
	HTTPSignerV4 HTTPSignerV4

	// Provides idempotency tokens values that will be automatically populated into
	// idempotent API operations.
	IdempotencyTokenProvider IdempotencyTokenProvider

	// The region to send requests to. (Required)
	Region string

	// Retryer guides how HTTP requests should be retried in case of recoverable
	// failures. When nil the API client will use a default retryer.
	Retryer retry.Retryer

	// The HTTP client to invoke API calls with. Defaults to client's default HTTP
	// implementation if nil.
	HTTPClient HTTPClient
}

func (Options) Copy

func (o Options) Copy() Options

Copy creates a clone where the APIOptions list is deep copied.

func (Options) GetCredentials

func (o Options) GetCredentials() aws.CredentialsProvider

func (Options) GetEndpointOptions

func (o Options) GetEndpointOptions() ResolverOptions

func (Options) GetEndpointResolver

func (o Options) GetEndpointResolver() EndpointResolver

func (Options) GetHTTPSignerV4

func (o Options) GetHTTPSignerV4() HTTPSignerV4

func (Options) GetIdempotencyTokenProvider

func (o Options) GetIdempotencyTokenProvider() IdempotencyTokenProvider

func (Options) GetRegion

func (o Options) GetRegion() string

func (Options) GetRetryer

func (o Options) GetRetryer() retry.Retryer

type OverridePullRequestApprovalRulesInput

type OverridePullRequestApprovalRulesInput struct {
	// The system-generated ID of the most recent revision of the pull request. You
	// cannot override approval rules for anything but the most recent revision of a
	// pull request. To get the revision ID, use GetPullRequest.
	RevisionId *string
	// The system-generated ID of the pull request for which you want to override all
	// approval rule requirements. To get this information, use GetPullRequest ().
	PullRequestId *string
	// Whether you want to set aside approval rule requirements for the pull request
	// (OVERRIDE) or revoke a previous override and apply approval rule requirements
	// (REVOKE). REVOKE status is not stored.
	OverrideStatus types.OverrideStatus
}

type OverridePullRequestApprovalRulesOutput

type OverridePullRequestApprovalRulesOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type PostCommentForComparedCommitInput

type PostCommentForComparedCommitInput struct {
	// The content of the comment you want to make.
	Content *string
	// A unique, client-generated idempotency token that, when provided in a request,
	// ensures the request cannot be repeated with a changed parameter. If a request is
	// received with the same parameters and a token is included, the request returns
	// information about the initial request that used that token.
	ClientRequestToken *string
	// The name of the repository where you want to post a comment on the comparison
	// between commits.
	RepositoryName *string
	// To establish the directionality of the comparison, the full commit ID of the
	// before commit. Required for commenting on any commit unless that commit is the
	// initial commit.
	BeforeCommitId *string
	// The location of the comparison where you want to comment.
	Location *types.Location
	// To establish the directionality of the comparison, the full commit ID of the
	// after commit.
	AfterCommitId *string
}

type PostCommentForComparedCommitOutput

type PostCommentForComparedCommitOutput struct {
	// The location of the comment in the comparison between the two commits.
	Location *types.Location
	// In the directionality you established, the blob ID of the after blob.
	AfterBlobId *string
	// In the directionality you established, the full commit ID of the before commit.
	BeforeCommitId *string
	// The name of the repository where you posted a comment on the comparison between
	// commits.
	RepositoryName *string
	// The content of the comment you posted.
	Comment *types.Comment
	// In the directionality you established, the full commit ID of the after commit.
	AfterCommitId *string
	// In the directionality you established, the blob ID of the before blob.
	BeforeBlobId *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type PostCommentForPullRequestInput

type PostCommentForPullRequestInput struct {
	// The full commit ID of the commit in the destination branch that was the tip of
	// the branch at the time the pull request was created.
	BeforeCommitId *string
	// The content of your comment on the change.
	Content *string
	// The name of the repository where you want to post a comment on a pull request.
	RepositoryName *string
	// The system-generated ID of the pull request. To get this ID, use
	// ListPullRequests ().
	PullRequestId *string
	// The location of the change where you want to post your comment. If no location
	// is provided, the comment is posted as a general comment on the pull request
	// difference between the before commit ID and the after commit ID.
	Location *types.Location
	// The full commit ID of the commit in the source branch that is the current tip of
	// the branch for the pull request when you post the comment.
	AfterCommitId *string
	// A unique, client-generated idempotency token that, when provided in a request,
	// ensures the request cannot be repeated with a changed parameter. If a request is
	// received with the same parameters and a token is included, the request returns
	// information about the initial request that used that token.
	ClientRequestToken *string
}

type PostCommentForPullRequestOutput

type PostCommentForPullRequestOutput struct {
	// The full commit ID of the commit in the source branch used to create the pull
	// request, or in the case of an updated pull request, the full commit ID of the
	// commit used to update the pull request.
	BeforeCommitId *string
	// The system-generated ID of the pull request.
	PullRequestId *string
	// The name of the repository where you posted a comment on a pull request.
	RepositoryName *string
	// The full commit ID of the commit in the destination branch where the pull
	// request is merged.
	AfterCommitId *string
	// In the directionality of the pull request, the blob ID of the before blob.
	BeforeBlobId *string
	// In the directionality of the pull request, the blob ID of the after blob.
	AfterBlobId *string
	// The content of the comment you posted.
	Comment *types.Comment
	// The location of the change where you posted your comment.
	Location *types.Location

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type PostCommentReplyInput

type PostCommentReplyInput struct {
	// The contents of your reply to a comment.
	Content *string
	// A unique, client-generated idempotency token that, when provided in a request,
	// ensures the request cannot be repeated with a changed parameter. If a request is
	// received with the same parameters and a token is included, the request returns
	// information about the initial request that used that token.
	ClientRequestToken *string
	// The system-generated ID of the comment to which you want to reply. To get this
	// ID, use GetCommentsForComparedCommit () or GetCommentsForPullRequest ().
	InReplyTo *string
}

type PostCommentReplyOutput

type PostCommentReplyOutput struct {
	// Information about the reply to a comment.
	Comment *types.Comment

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type PutCommentReactionInput

type PutCommentReactionInput struct {
	// The ID of the comment to which you want to add or update a reaction.
	CommentId *string
	// The emoji reaction you want to add or update. To remove a reaction, provide a
	// value of blank or null. You can also provide the value of none. For information
	// about emoji reaction values supported in AWS CodeCommit, see the AWS CodeCommit
	// User Guide
	// (https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-commit-comment.html#emoji-reaction-table).
	ReactionValue *string
}

type PutCommentReactionOutput

type PutCommentReactionOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type PutFileInput

type PutFileInput struct {
	// The full commit ID of the head commit in the branch where you want to add or
	// update the file. If this is an empty repository, no commit ID is required. If
	// this is not an empty repository, a commit ID is required. The commit ID must
	// match the ID of the head commit at the time of the operation. Otherwise, an
	// error occurs, and the file is not added or updated.
	ParentCommitId *string
	// The name of the branch where you want to add or update the file. If this is an
	// empty repository, this branch is created.
	BranchName *string
	// The content of the file, in binary object format.
	FileContent []byte
	// The file mode permissions of the blob. Valid file mode permissions are listed
	// here.
	FileMode types.FileModeTypeEnum
	// An email address for the person adding or updating the file.
	Email *string
	// The name of the file you want to add or update, including the relative path to
	// the file in the repository. If the path does not currently exist in the
	// repository, the path is created as part of adding the file.
	FilePath *string
	// The name of the repository where you want to add or update the file.
	RepositoryName *string
	// The name of the person adding or updating the file. Although it is optional, a
	// name makes the commit history for your repository more useful.
	Name *string
	// A message about why this file was added or updated. Although it is optional, a
	// message makes the commit history for your repository more useful.
	CommitMessage *string
}

type PutFileOutput

type PutFileOutput struct {
	// The ID of the blob, which is its SHA-1 pointer.
	BlobId *string
	// The full SHA-1 pointer of the tree information for the commit that contains this
	// file change.
	TreeId *string
	// The full SHA ID of the commit that contains this file change.
	CommitId *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type PutRepositoryTriggersInput

type PutRepositoryTriggersInput struct {
	// The JSON block of configuration information for each trigger.
	Triggers []*types.RepositoryTrigger
	// The name of the repository where you want to create or update the trigger.
	RepositoryName *string
}

Represents the input of a put repository triggers operation.

type PutRepositoryTriggersOutput

type PutRepositoryTriggersOutput struct {
	// The system-generated unique ID for the create or update operation.
	ConfigurationId *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

Represents the output of a put repository triggers operation.

type ResolveEndpoint

type ResolveEndpoint struct {
	Resolver EndpointResolver
	Options  ResolverOptions
}

func (*ResolveEndpoint) HandleSerialize

func (*ResolveEndpoint) ID

func (*ResolveEndpoint) ID() string

type ResolveEndpointMiddlewareOptions

type ResolveEndpointMiddlewareOptions interface {
	GetEndpointResolver() EndpointResolver
	GetEndpointOptions() ResolverOptions
}

type ResolverOptions

type ResolverOptions = internalendpoints.Options

ResolverOptions is the service endpoint resolver options

type TagResourceInput

type TagResourceInput struct {
	// The key-value pair to use when tagging this repository.
	Tags map[string]*string
	// The Amazon Resource Name (ARN) of the resource to which you want to add or
	// update tags.
	ResourceArn *string
}

type TagResourceOutput

type TagResourceOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type TestRepositoryTriggersInput

type TestRepositoryTriggersInput struct {
	// The name of the repository in which to test the triggers.
	RepositoryName *string
	// The list of triggers to test.
	Triggers []*types.RepositoryTrigger
}

Represents the input of a test repository triggers operation.

type TestRepositoryTriggersOutput

type TestRepositoryTriggersOutput struct {
	// The list of triggers that were successfully tested. This list provides the names
	// of the triggers that were successfully tested, separated by commas.
	SuccessfulExecutions []*string
	// The list of triggers that were not tested. This list provides the names of the
	// triggers that could not be tested, separated by commas.
	FailedExecutions []*types.RepositoryTriggerExecutionFailure

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

Represents the output of a test repository triggers operation.

type UntagResourceInput

type UntagResourceInput struct {
	// The Amazon Resource Name (ARN) of the resource to which you want to remove tags.
	ResourceArn *string
	// The tag key for each tag that you want to remove from the resource.
	TagKeys []*string
}

type UntagResourceOutput

type UntagResourceOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type UpdateApprovalRuleTemplateContentInput

type UpdateApprovalRuleTemplateContentInput struct {
	// The content that replaces the existing content of the rule. Content statements
	// must be complete. You cannot provide only the changes.
	NewRuleContent *string
	// The name of the approval rule template where you want to update the content of
	// the rule.
	ApprovalRuleTemplateName *string
	// The SHA-256 hash signature for the content of the approval rule. You can
	// retrieve this information by using GetPullRequest ().
	ExistingRuleContentSha256 *string
}

type UpdateApprovalRuleTemplateContentOutput

type UpdateApprovalRuleTemplateContentOutput struct {
	// Returns information about an approval rule template.
	ApprovalRuleTemplate *types.ApprovalRuleTemplate

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type UpdateApprovalRuleTemplateDescriptionInput

type UpdateApprovalRuleTemplateDescriptionInput struct {
	// The name of the template for which you want to update the description.
	ApprovalRuleTemplateName *string
	// The updated description of the approval rule template.
	ApprovalRuleTemplateDescription *string
}

type UpdateApprovalRuleTemplateDescriptionOutput

type UpdateApprovalRuleTemplateDescriptionOutput struct {
	// The structure and content of the updated approval rule template.
	ApprovalRuleTemplate *types.ApprovalRuleTemplate

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type UpdateApprovalRuleTemplateNameInput

type UpdateApprovalRuleTemplateNameInput struct {
	// The new name you want to apply to the approval rule template.
	NewApprovalRuleTemplateName *string
	// The current name of the approval rule template.
	OldApprovalRuleTemplateName *string
}

type UpdateApprovalRuleTemplateNameOutput

type UpdateApprovalRuleTemplateNameOutput struct {
	// The structure and content of the updated approval rule template.
	ApprovalRuleTemplate *types.ApprovalRuleTemplate

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type UpdateCommentInput

type UpdateCommentInput struct {
	// The updated content to replace the existing content of the comment.
	Content *string
	// The system-generated ID of the comment you want to update. To get this ID, use
	// GetCommentsForComparedCommit () or GetCommentsForPullRequest ().
	CommentId *string
}

type UpdateCommentOutput

type UpdateCommentOutput struct {
	// Information about the updated comment.
	Comment *types.Comment

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type UpdateDefaultBranchInput

type UpdateDefaultBranchInput struct {
	// The name of the repository to set or change the default branch for.
	RepositoryName *string
	// The name of the branch to set as the default.
	DefaultBranchName *string
}

Represents the input of an update default branch operation.

type UpdateDefaultBranchOutput

type UpdateDefaultBranchOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type UpdatePullRequestApprovalRuleContentInput

type UpdatePullRequestApprovalRuleContentInput struct {
	// The updated content for the approval rule. When you update the content of the
	// approval rule, you can specify approvers in an approval pool in one of two
	// ways:
	//
	//     * CodeCommitApprovers: This option only requires an AWS account and a
	// resource. It can be used for both IAM users and federated access users whose
	// name matches the provided resource name. This is a very powerful option that
	// offers a great deal of flexibility. For example, if you specify the AWS account
	// 123456789012 and Mary_Major, all of the following are counted as approvals
	// coming from that user:
	//
	//         * An IAM user in the account
	// (arn:aws:iam::123456789012:user/Mary_Major)
	//
	//         * A federated user
	// identified in IAM as Mary_Major
	// (arn:aws:sts::123456789012:federated-user/Mary_Major)
	//
	//     This option does not
	// recognize an active session of someone assuming the role of CodeCommitReview
	// with a role session name of Mary_Major
	// (arn:aws:sts::123456789012:assumed-role/CodeCommitReview/Mary_Major) unless you
	// include a wildcard (*Mary_Major).
	//
	//     * Fully qualified ARN: This option allows
	// you to specify the fully qualified Amazon Resource Name (ARN) of the IAM user or
	// role.
	//
	// For more information about IAM ARNs, wildcards, and formats, see IAM
	// Identifiers
	// (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html) in
	// the IAM User Guide.  </note>
	NewRuleContent *string
	// The name of the approval rule you want to update.
	ApprovalRuleName *string
	// The SHA-256 hash signature for the content of the approval rule. You can
	// retrieve this information by using GetPullRequest ().
	ExistingRuleContentSha256 *string
	// The system-generated ID of the pull request.
	PullRequestId *string
}

type UpdatePullRequestApprovalRuleContentOutput

type UpdatePullRequestApprovalRuleContentOutput struct {
	// Information about the updated approval rule.
	ApprovalRule *types.ApprovalRule

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type UpdatePullRequestApprovalStateInput

type UpdatePullRequestApprovalStateInput struct {
	// The system-generated ID of the revision.
	RevisionId *string
	// The approval state to associate with the user on the pull request.
	ApprovalState types.ApprovalState
	// The system-generated ID of the pull request.
	PullRequestId *string
}

type UpdatePullRequestApprovalStateOutput

type UpdatePullRequestApprovalStateOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type UpdatePullRequestDescriptionInput

type UpdatePullRequestDescriptionInput struct {
	// The updated content of the description for the pull request. This content
	// replaces the existing description.
	Description *string
	// The system-generated ID of the pull request. To get this ID, use
	// ListPullRequests ().
	PullRequestId *string
}

type UpdatePullRequestDescriptionOutput

type UpdatePullRequestDescriptionOutput struct {
	// Information about the updated pull request.
	PullRequest *types.PullRequest

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type UpdatePullRequestStatusInput

type UpdatePullRequestStatusInput struct {
	// The system-generated ID of the pull request. To get this ID, use
	// ListPullRequests ().
	PullRequestId *string
	// The status of the pull request. The only valid operations are to update the
	// status from OPEN to OPEN, OPEN to CLOSED or from CLOSED to CLOSED.
	PullRequestStatus types.PullRequestStatusEnum
}

type UpdatePullRequestStatusOutput

type UpdatePullRequestStatusOutput struct {
	// Information about the pull request.
	PullRequest *types.PullRequest

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type UpdatePullRequestTitleInput

type UpdatePullRequestTitleInput struct {
	// The system-generated ID of the pull request. To get this ID, use
	// ListPullRequests ().
	PullRequestId *string
	// The updated title of the pull request. This replaces the existing title.
	Title *string
}

type UpdatePullRequestTitleOutput

type UpdatePullRequestTitleOutput struct {
	// Information about the updated pull request.
	PullRequest *types.PullRequest

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type UpdateRepositoryDescriptionInput

type UpdateRepositoryDescriptionInput struct {
	// The name of the repository to set or change the comment or description for.
	RepositoryName *string
	// The new comment or description for the specified repository. Repository
	// descriptions are limited to 1,000 characters.
	RepositoryDescription *string
}

Represents the input of an update repository description operation.

type UpdateRepositoryDescriptionOutput

type UpdateRepositoryDescriptionOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type UpdateRepositoryNameInput

type UpdateRepositoryNameInput struct {
	// The new name for the repository.
	NewName *string
	// The current name of the repository.
	OldName *string
}

Represents the input of an update repository description operation.

type UpdateRepositoryNameOutput

type UpdateRepositoryNameOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

Source Files

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL