CodeCommit
public struct CodeCommit
Client object for interacting with AWS CodeCommit service.
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: Repositories, by calling the following: BatchGetRepositories, which returns information about one or more repositories associated with your AWS account. CreateRepository, which creates an AWS CodeCommit repository. DeleteRepository, which deletes an AWS CodeCommit repository. GetRepository, which returns information about a specified repository. ListRepositories, which lists all AWS CodeCommit repositories associated with your AWS account. UpdateRepositoryDescription, which sets or updates the description of the repository. UpdateRepositoryName, which changes the name of the repository. If you change the name of a repository, no other users of that repository can access it until you send them the new HTTPS or SSH URL to use. Branches, by calling the following: CreateBranch, which creates a branch in a specified repository. DeleteBranch, which deletes the specified branch in a repository unless it is the default branch. GetBranch, which returns information about a specified branch. ListBranches, which lists all branches for a specified repository. UpdateDefaultBranch, which changes the default branch for a repository. Files, by calling the following: DeleteFile, which deletes the content of a specified file from a specified branch. GetBlob, which returns the base-64 encoded content of an individual Git blob object in a repository. GetFile, which returns the base-64 encoded content of a specified file. GetFolder, which returns the contents of a specified folder or directory. PutFile, which adds or modifies a single file in a specified repository and branch. Commits, by calling the following: BatchGetCommits, which returns information about one or more commits in a repository. CreateCommit, which creates a commit for changes to a repository. GetCommit, which returns information about a commit, including commit messages and author and committer information. GetDifferences, which returns information about the differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID, or other fully qualified reference). Merges, by calling the following: BatchDescribeMergeConflicts, which returns information about conflicts in a merge between commits in a repository. CreateUnreferencedMergeCommit, which creates an unreferenced commit between two branches or commits for the purpose of comparing them and identifying any potential conflicts. DescribeMergeConflicts, which returns information about merge conflicts between the base, source, and destination versions of a file in a potential merge. GetMergeCommit, which returns information about the merge between a source and destination commit. GetMergeConflicts, which returns information about merge conflicts between the source and destination branch in a pull request. GetMergeOptions, which returns information about the available merge options between two branches or commit specifiers. MergeBranchesByFastForward, which merges two branches using the fast-forward merge option. MergeBranchesBySquash, which merges two branches using the squash merge option. MergeBranchesByThreeWay, which merges two branches using the three-way merge option. Pull requests, by calling the following: CreatePullRequest, which creates a pull request in a specified repository. CreatePullRequestApprovalRule, which creates an approval rule for a specified pull request. DeletePullRequestApprovalRule, which deletes an approval rule for a specified pull request. DescribePullRequestEvents, which returns information about one or more pull request events. EvaluatePullRequestApprovalRules, which evaluates whether a pull request has met all the conditions specified in its associated approval rules. GetCommentsForPullRequest, which returns information about comments on a specified pull request. GetPullRequest, which returns information about a specified pull request. GetPullRequestApprovalStates, which returns information about the approval states for a specified pull request. GetPullRequestOverrideState, which returns information about whether approval rules have been set aside (overriden) for a pull request, and if so, the Amazon Resource Name (ARN) of the user or identity that overrode the rules and their requirements for the pull request. ListPullRequests, which lists all pull requests for a repository. MergePullRequestByFastForward, which merges the source destination branch of a pull request into the specified destination branch for that pull request using the fast-forward merge option. MergePullRequestBySquash, which merges the source destination branch of a pull request into the specified destination branch for that pull request using the squash merge option. MergePullRequestByThreeWay. which merges the source destination branch of a pull request into the specified destination branch for that pull request using the three-way merge option. OverridePullRequestApprovalRules, which sets aside all approval rule requirements for a pull request. PostCommentForPullRequest, which posts a comment to a pull request at the specified line, file, or request. UpdatePullRequestApprovalRuleContent, which updates the structure of an approval rule for a pull request. UpdatePullRequestApprovalState, which updates the state of an approval on a pull request. UpdatePullRequestDescription, which updates the description of a pull request. UpdatePullRequestStatus, which updates the status of a pull request. UpdatePullRequestTitle, which updates the title of a pull request. Approval rule templates, by calling the following: AssociateApprovalRuleTemplateWithRepository, which associates a template with a specified repository. After the template is associated with a repository, AWS CodeCommit creates approval rules that match the template conditions on every pull request created in the specified repository. BatchAssociateApprovalRuleTemplateWithRepositories, which associates a template with one or more specified repositories. After the template is associated with a repository, AWS CodeCommit creates approval rules that match the template conditions on every pull request created in the specified repositories. BatchDisassociateApprovalRuleTemplateFromRepositories, which removes the association between a template and specified repositories so that approval rules based on the template are not automatically created when pull requests are created in those repositories. CreateApprovalRuleTemplate, which creates a template for approval rules that can then be associated with one or more repositories in your AWS account. DeleteApprovalRuleTemplate, which deletes the specified template. It does not remove approval rules on pull requests already created with the template. DisassociateApprovalRuleTemplateFromRepository, which removes the association between a template and a repository so that approval rules based on the template are not automatically created when pull requests are created in the specified repository. GetApprovalRuleTemplate, which returns information about an approval rule template. ListApprovalRuleTemplates, which lists all approval rule templates in the AWS Region in your AWS account. ListAssociatedApprovalRuleTemplatesForRepository, which lists all approval rule templates that are associated with a specified repository. ListRepositoriesForApprovalRuleTemplate, which lists all repositories associated with the specified approval rule template. UpdateApprovalRuleTemplateDescription, which updates the description of an approval rule template. UpdateApprovalRuleTemplateName, which updates the name of an approval rule template. UpdateApprovalRuleTemplateContent, which updates the content of an approval rule template. Comments in a repository, by calling the following: DeleteCommentContent, which deletes the content of a comment on a commit in a repository. GetComment, which returns information about a comment on a commit. GetCommentReactions, which returns information about emoji reactions to comments. GetCommentsForComparedCommit, which returns information about comments on the comparison between two commit specifiers in a repository. PostCommentForComparedCommit, which creates a comment on the comparison between two commit specifiers in a repository. PostCommentReply, which creates a reply to a comment. PutCommentReaction, which creates or updates an emoji reaction to a comment. UpdateComment, which updates the content of a comment on a commit in a repository. Tags used to tag resources in AWS CodeCommit (not Git tags), by calling the following: ListTagsForResource, which gets information about AWS tags for a specified Amazon Resource Name (ARN) in AWS CodeCommit. TagResource, which adds or updates tags for a resource in AWS CodeCommit. UntagResource, which removes tags for a resource in AWS CodeCommit. Triggers, by calling the following: GetRepositoryTriggers, which returns information about triggers configured for a repository. PutRepositoryTriggers, which replaces all triggers for a repository and can be used to create or delete triggers. TestRepositoryTriggers, which tests the functionality of a repository trigger by sending data to the trigger target. For information about how to use AWS CodeCommit, see the AWS CodeCommit User Guide.
-
Undocumented
Declaration
Swift
public let client: AWSClient
-
Initialize the CodeCommit client
Declaration
Swift
public init(accessKeyId: String? = nil, secretAccessKey: String? = nil, sessionToken: String? = nil, region: AWSSDKSwiftCore.Region? = nil, endpoint: String? = nil, middlewares: [AWSServiceMiddleware] = [], eventLoopGroupProvider: AWSClient.EventLoopGroupProvider = .useAWSClientShared)
Parameters
accessKeyId
Public access key provided by AWS
secretAccessKey
Private access key provided by AWS
sessionToken
Token provided by STS.AssumeRole() which allows access to another AWS account
region
Region of server you want to communicate with
endpoint
Custom endpoint URL to use instead of standard AWS servers
middlewares
Array of middlewares to apply to requests and responses
eventLoopGroupProvider
EventLoopGroup to use. Use
useAWSClientShared
if the client shall manage its own EventLoopGroup.
-
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.
Declaration
Swift
@discardableResult public func associateApprovalRuleTemplateWithRepository(_ input: AssociateApprovalRuleTemplateWithRepositoryInput) -> EventLoopFuture<Void>
-
Creates an association between an approval rule template and one or more specified repositories.
Declaration
Swift
public func batchAssociateApprovalRuleTemplateWithRepositories(_ input: BatchAssociateApprovalRuleTemplateWithRepositoriesInput) -> EventLoopFuture<BatchAssociateApprovalRuleTemplateWithRepositoriesOutput>
-
Returns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy.
Declaration
Swift
public func batchDescribeMergeConflicts(_ input: BatchDescribeMergeConflictsInput) -> EventLoopFuture<BatchDescribeMergeConflictsOutput>
-
Removes the association between an approval rule template and one or more specified repositories.
Declaration
Swift
public func batchDisassociateApprovalRuleTemplateFromRepositories(_ input: BatchDisassociateApprovalRuleTemplateFromRepositoriesInput) -> EventLoopFuture<BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput>
-
Returns information about the contents of one or more commits in a repository.
Declaration
Swift
public func batchGetCommits(_ input: BatchGetCommitsInput) -> EventLoopFuture<BatchGetCommitsOutput>
-
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.
Declaration
Swift
public func batchGetRepositories(_ input: BatchGetRepositoriesInput) -> EventLoopFuture<BatchGetRepositoriesOutput>
-
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.
Declaration
Swift
public func createApprovalRuleTemplate(_ input: CreateApprovalRuleTemplateInput) -> EventLoopFuture<CreateApprovalRuleTemplateOutput>
-
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.
Declaration
Swift
@discardableResult public func createBranch(_ input: CreateBranchInput) -> EventLoopFuture<Void>
-
Creates a commit for a repository on the tip of a specified branch.
Declaration
Swift
public func createCommit(_ input: CreateCommitInput) -> EventLoopFuture<CreateCommitOutput>
-
Creates a pull request in the specified repository.
Declaration
Swift
public func createPullRequest(_ input: CreatePullRequestInput) -> EventLoopFuture<CreatePullRequestOutput>
-
Creates an approval rule for a pull request.
Declaration
Swift
public func createPullRequestApprovalRule(_ input: CreatePullRequestApprovalRuleInput) -> EventLoopFuture<CreatePullRequestApprovalRuleOutput>
-
Creates a new, empty repository.
Declaration
Swift
public func createRepository(_ input: CreateRepositoryInput) -> EventLoopFuture<CreateRepositoryOutput>
-
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.
Declaration
Swift
public func createUnreferencedMergeCommit(_ input: CreateUnreferencedMergeCommitInput) -> EventLoopFuture<CreateUnreferencedMergeCommitOutput>
-
Deletes a specified approval rule template. Deleting a template does not remove approval rules on pull requests already created with the template.
Declaration
Swift
public func deleteApprovalRuleTemplate(_ input: DeleteApprovalRuleTemplateInput) -> EventLoopFuture<DeleteApprovalRuleTemplateOutput>
-
Deletes a branch from a repository, unless that branch is the default branch for the repository.
Declaration
Swift
public func deleteBranch(_ input: DeleteBranchInput) -> EventLoopFuture<DeleteBranchOutput>
-
Deletes the content of a comment made on a change, file, or commit in a repository.
Declaration
Swift
public func deleteCommentContent(_ input: DeleteCommentContentInput) -> EventLoopFuture<DeleteCommentContentOutput>
-
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.
Declaration
Swift
public func deleteFile(_ input: DeleteFileInput) -> EventLoopFuture<DeleteFileOutput>
-
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.
Declaration
Swift
public func deletePullRequestApprovalRule(_ input: DeletePullRequestApprovalRuleInput) -> EventLoopFuture<DeletePullRequestApprovalRuleOutput>
-
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.
Declaration
Swift
public func deleteRepository(_ input: DeleteRepositoryInput) -> EventLoopFuture<DeleteRepositoryOutput>
-
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.
Declaration
Swift
public func describeMergeConflicts(_ input: DescribeMergeConflictsInput) -> EventLoopFuture<DescribeMergeConflictsOutput>
-
Returns information about one or more pull request events.
Declaration
Swift
public func describePullRequestEvents(_ input: DescribePullRequestEventsInput) -> EventLoopFuture<DescribePullRequestEventsOutput>
-
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.
Declaration
Swift
@discardableResult public func disassociateApprovalRuleTemplateFromRepository(_ input: DisassociateApprovalRuleTemplateFromRepositoryInput) -> EventLoopFuture<Void>
-
Evaluates whether a pull request has met all the conditions specified in its associated approval rules.
Declaration
Swift
public func evaluatePullRequestApprovalRules(_ input: EvaluatePullRequestApprovalRulesInput) -> EventLoopFuture<EvaluatePullRequestApprovalRulesOutput>
-
Returns information about a specified approval rule template.
Declaration
Swift
public func getApprovalRuleTemplate(_ input: GetApprovalRuleTemplateInput) -> EventLoopFuture<GetApprovalRuleTemplateOutput>
-
Returns the base-64 encoded content of an individual blob in a repository.
Declaration
Swift
public func getBlob(_ input: GetBlobInput) -> EventLoopFuture<GetBlobOutput>
-
Returns information about a repository branch, including its name and the last commit ID.
Declaration
Swift
public func getBranch(_ input: GetBranchInput) -> EventLoopFuture<GetBranchOutput>
-
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.
Declaration
Swift
public func getComment(_ input: GetCommentInput) -> EventLoopFuture<GetCommentOutput>
-
Returns information about reactions to a specified comment ID. Reactions from users who have been deleted will not be included in the count.
Declaration
Swift
public func getCommentReactions(_ input: GetCommentReactionsInput) -> EventLoopFuture<GetCommentReactionsOutput>
-
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.
Declaration
Swift
public func getCommentsForComparedCommit(_ input: GetCommentsForComparedCommitInput) -> EventLoopFuture<GetCommentsForComparedCommitOutput>
-
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.
Declaration
Swift
public func getCommentsForPullRequest(_ input: GetCommentsForPullRequestInput) -> EventLoopFuture<GetCommentsForPullRequestOutput>
-
Returns information about a commit, including commit message and committer information.
Declaration
Swift
public func getCommit(_ input: GetCommitInput) -> EventLoopFuture<GetCommitOutput>
-
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.
Declaration
Swift
public func getDifferences(_ input: GetDifferencesInput) -> EventLoopFuture<GetDifferencesOutput>
-
Returns the base-64 encoded contents of a specified file and its metadata.
Declaration
Swift
public func getFile(_ input: GetFileInput) -> EventLoopFuture<GetFileOutput>
-
Returns the contents of a specified folder in a repository.
Declaration
Swift
public func getFolder(_ input: GetFolderInput) -> EventLoopFuture<GetFolderOutput>
-
Returns information about a specified merge commit.
Declaration
Swift
public func getMergeCommit(_ input: GetMergeCommitInput) -> EventLoopFuture<GetMergeCommitOutput>
-
Returns information about merge conflicts between the before and after commit IDs for a pull request in a repository.
Declaration
Swift
public func getMergeConflicts(_ input: GetMergeConflictsInput) -> EventLoopFuture<GetMergeConflictsOutput>
-
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.
Declaration
Swift
public func getMergeOptions(_ input: GetMergeOptionsInput) -> EventLoopFuture<GetMergeOptionsOutput>
-
Gets information about a pull request in a specified repository.
Declaration
Swift
public func getPullRequest(_ input: GetPullRequestInput) -> EventLoopFuture<GetPullRequestOutput>
-
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.
Declaration
Swift
public func getPullRequestApprovalStates(_ input: GetPullRequestApprovalStatesInput) -> EventLoopFuture<GetPullRequestApprovalStatesOutput>
-
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.
Declaration
Swift
public func getPullRequestOverrideState(_ input: GetPullRequestOverrideStateInput) -> EventLoopFuture<GetPullRequestOverrideStateOutput>
-
Returns information about a repository. The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a webpage.
Declaration
Swift
public func getRepository(_ input: GetRepositoryInput) -> EventLoopFuture<GetRepositoryOutput>
-
Gets information about triggers configured for a repository.
Declaration
Swift
public func getRepositoryTriggers(_ input: GetRepositoryTriggersInput) -> EventLoopFuture<GetRepositoryTriggersOutput>
-
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.
Declaration
Swift
public func listApprovalRuleTemplates(_ input: ListApprovalRuleTemplatesInput) -> EventLoopFuture<ListApprovalRuleTemplatesOutput>
-
Lists all approval rule templates that are associated with a specified repository.
Declaration
Swift
public func listAssociatedApprovalRuleTemplatesForRepository(_ input: ListAssociatedApprovalRuleTemplatesForRepositoryInput) -> EventLoopFuture<ListAssociatedApprovalRuleTemplatesForRepositoryOutput>
-
Gets information about one or more branches in a repository.
Declaration
Swift
public func listBranches(_ input: ListBranchesInput) -> EventLoopFuture<ListBranchesOutput>
-
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.
Declaration
Swift
public func listPullRequests(_ input: ListPullRequestsInput) -> EventLoopFuture<ListPullRequestsOutput>
-
Gets information about one or more repositories.
Declaration
Swift
public func listRepositories(_ input: ListRepositoriesInput) -> EventLoopFuture<ListRepositoriesOutput>
-
Lists all repositories associated with the specified approval rule template.
Declaration
Swift
public func listRepositoriesForApprovalRuleTemplate(_ input: ListRepositoriesForApprovalRuleTemplateInput) -> EventLoopFuture<ListRepositoriesForApprovalRuleTemplateOutput>
-
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 in the AWS CodeCommit User Guide.
Declaration
Swift
public func listTagsForResource(_ input: ListTagsForResourceInput) -> EventLoopFuture<ListTagsForResourceOutput>
-
Merges two branches using the fast-forward merge strategy.
Declaration
Swift
public func mergeBranchesByFastForward(_ input: MergeBranchesByFastForwardInput) -> EventLoopFuture<MergeBranchesByFastForwardOutput>
-
Merges two branches using the squash merge strategy.
Declaration
Swift
public func mergeBranchesBySquash(_ input: MergeBranchesBySquashInput) -> EventLoopFuture<MergeBranchesBySquashOutput>
-
Merges two specified branches using the three-way merge strategy.
Declaration
Swift
public func mergeBranchesByThreeWay(_ input: MergeBranchesByThreeWayInput) -> EventLoopFuture<MergeBranchesByThreeWayOutput>
-
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.
Declaration
Swift
public func mergePullRequestByFastForward(_ input: MergePullRequestByFastForwardInput) -> EventLoopFuture<MergePullRequestByFastForwardOutput>
-
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.
Declaration
Swift
public func mergePullRequestBySquash(_ input: MergePullRequestBySquashInput) -> EventLoopFuture<MergePullRequestBySquashOutput>
-
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.
Declaration
Swift
public func mergePullRequestByThreeWay(_ input: MergePullRequestByThreeWayInput) -> EventLoopFuture<MergePullRequestByThreeWayOutput>
-
Sets aside (overrides) all approval rule requirements for a specified pull request.
Declaration
Swift
@discardableResult public func overridePullRequestApprovalRules(_ input: OverridePullRequestApprovalRulesInput) -> EventLoopFuture<Void>
-
Posts a comment on the comparison between two commits.
Declaration
Swift
public func postCommentForComparedCommit(_ input: PostCommentForComparedCommitInput) -> EventLoopFuture<PostCommentForComparedCommitOutput>
-
Posts a comment on a pull request.
Declaration
Swift
public func postCommentForPullRequest(_ input: PostCommentForPullRequestInput) -> EventLoopFuture<PostCommentForPullRequestOutput>
-
Posts a comment in reply to an existing comment on a comparison between commits or a pull request.
Declaration
Swift
public func postCommentReply(_ input: PostCommentReplyInput) -> EventLoopFuture<PostCommentReplyOutput>
-
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.
Declaration
Swift
@discardableResult public func putCommentReaction(_ input: PutCommentReactionInput) -> EventLoopFuture<Void>
-
Adds or updates a file in a branch in an AWS CodeCommit repository, and generates a commit for the addition in the specified branch.
Declaration
Swift
public func putFile(_ input: PutFileInput) -> EventLoopFuture<PutFileOutput>
-
Replaces all triggers for a repository. Used to create or delete triggers.
Declaration
Swift
public func putRepositoryTriggers(_ input: PutRepositoryTriggersInput) -> EventLoopFuture<PutRepositoryTriggersOutput>
-
Adds or updates tags for a resource in AWS CodeCommit. For a list of valid resources in AWS CodeCommit, see CodeCommit Resources and Operations in the AWS CodeCommit User Guide.
Declaration
Swift
@discardableResult public func tagResource(_ input: TagResourceInput) -> EventLoopFuture<Void>
-
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.
Declaration
Swift
public func testRepositoryTriggers(_ input: TestRepositoryTriggersInput) -> EventLoopFuture<TestRepositoryTriggersOutput>
-
Removes tags for a resource in AWS CodeCommit. For a list of valid resources in AWS CodeCommit, see CodeCommit Resources and Operations in the AWS CodeCommit User Guide.
Declaration
Swift
@discardableResult public func untagResource(_ input: UntagResourceInput) -> EventLoopFuture<Void>
-
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.
Declaration
Swift
public func updateApprovalRuleTemplateContent(_ input: UpdateApprovalRuleTemplateContentInput) -> EventLoopFuture<UpdateApprovalRuleTemplateContentOutput>
-
Updates the description for a specified approval rule template.
Declaration
Swift
public func updateApprovalRuleTemplateDescription(_ input: UpdateApprovalRuleTemplateDescriptionInput) -> EventLoopFuture<UpdateApprovalRuleTemplateDescriptionOutput>
-
Updates the name of a specified approval rule template.
Declaration
Swift
public func updateApprovalRuleTemplateName(_ input: UpdateApprovalRuleTemplateNameInput) -> EventLoopFuture<UpdateApprovalRuleTemplateNameOutput>
-
Replaces the contents of a comment.
Declaration
Swift
public func updateComment(_ input: UpdateCommentInput) -> EventLoopFuture<UpdateCommentOutput>
-
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.
Declaration
Swift
@discardableResult public func updateDefaultBranch(_ input: UpdateDefaultBranchInput) -> EventLoopFuture<Void>
-
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.
Declaration
Swift
public func updatePullRequestApprovalRuleContent(_ input: UpdatePullRequestApprovalRuleContentInput) -> EventLoopFuture<UpdatePullRequestApprovalRuleContentOutput>
-
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.
Declaration
Swift
@discardableResult public func updatePullRequestApprovalState(_ input: UpdatePullRequestApprovalStateInput) -> EventLoopFuture<Void>
-
Replaces the contents of the description of a pull request.
Declaration
Swift
public func updatePullRequestDescription(_ input: UpdatePullRequestDescriptionInput) -> EventLoopFuture<UpdatePullRequestDescriptionOutput>
-
Updates the status of a pull request.
Declaration
Swift
public func updatePullRequestStatus(_ input: UpdatePullRequestStatusInput) -> EventLoopFuture<UpdatePullRequestStatusOutput>
-
Replaces the title of a pull request.
Declaration
Swift
public func updatePullRequestTitle(_ input: UpdatePullRequestTitleInput) -> EventLoopFuture<UpdatePullRequestTitleOutput>
-
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.
Declaration
Swift
@discardableResult public func updateRepositoryDescription(_ input: UpdateRepositoryDescriptionInput) -> EventLoopFuture<Void>
-
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 in the AWS CodeCommit User Guide.
Declaration
Swift
@discardableResult public func updateRepositoryName(_ input: UpdateRepositoryNameInput) -> EventLoopFuture<Void>
-
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.
Declaration
Swift
public func describeMergeConflictsPaginator(_ input: DescribeMergeConflictsInput, onPage: @escaping (DescribeMergeConflictsOutput, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Returns information about one or more pull request events.
Declaration
Swift
public func describePullRequestEventsPaginator(_ input: DescribePullRequestEventsInput, onPage: @escaping (DescribePullRequestEventsOutput, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Returns information about reactions to a specified comment ID. Reactions from users who have been deleted will not be included in the count.
Declaration
Swift
public func getCommentReactionsPaginator(_ input: GetCommentReactionsInput, onPage: @escaping (GetCommentReactionsOutput, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
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.
Declaration
Swift
public func getCommentsForComparedCommitPaginator(_ input: GetCommentsForComparedCommitInput, onPage: @escaping (GetCommentsForComparedCommitOutput, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
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.
Declaration
Swift
public func getCommentsForPullRequestPaginator(_ input: GetCommentsForPullRequestInput, onPage: @escaping (GetCommentsForPullRequestOutput, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
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.
Declaration
Swift
public func getDifferencesPaginator(_ input: GetDifferencesInput, onPage: @escaping (GetDifferencesOutput, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Returns information about merge conflicts between the before and after commit IDs for a pull request in a repository.
Declaration
Swift
public func getMergeConflictsPaginator(_ input: GetMergeConflictsInput, onPage: @escaping (GetMergeConflictsOutput, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
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.
Declaration
Swift
public func listApprovalRuleTemplatesPaginator(_ input: ListApprovalRuleTemplatesInput, onPage: @escaping (ListApprovalRuleTemplatesOutput, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Lists all approval rule templates that are associated with a specified repository.
Declaration
Swift
public func listAssociatedApprovalRuleTemplatesForRepositoryPaginator(_ input: ListAssociatedApprovalRuleTemplatesForRepositoryInput, onPage: @escaping (ListAssociatedApprovalRuleTemplatesForRepositoryOutput, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Gets information about one or more branches in a repository.
Declaration
Swift
public func listBranchesPaginator(_ input: ListBranchesInput, onPage: @escaping (ListBranchesOutput, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
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.
Declaration
Swift
public func listPullRequestsPaginator(_ input: ListPullRequestsInput, onPage: @escaping (ListPullRequestsOutput, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Gets information about one or more repositories.
Declaration
Swift
public func listRepositoriesPaginator(_ input: ListRepositoriesInput, onPage: @escaping (ListRepositoriesOutput, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Lists all repositories associated with the specified approval rule template.
Declaration
Swift
public func listRepositoriesForApprovalRuleTemplatePaginator(_ input: ListRepositoriesForApprovalRuleTemplateInput, onPage: @escaping (ListRepositoriesForApprovalRuleTemplateOutput, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Undocumented
See moreDeclaration
Swift
public struct DescribeMergeConflictsInput : AWSShape
extension CodeCommit.DescribeMergeConflictsInput: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct DescribePullRequestEventsInput : AWSShape
extension CodeCommit.DescribePullRequestEventsInput: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct GetCommentReactionsInput : AWSShape
extension CodeCommit.GetCommentReactionsInput: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct GetCommentsForComparedCommitInput : AWSShape
extension CodeCommit.GetCommentsForComparedCommitInput: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct GetCommentsForPullRequestInput : AWSShape
extension CodeCommit.GetCommentsForPullRequestInput: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct GetDifferencesInput : AWSShape
extension CodeCommit.GetDifferencesInput: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct GetMergeConflictsInput : AWSShape
extension CodeCommit.GetMergeConflictsInput: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct ListApprovalRuleTemplatesInput : AWSShape
extension CodeCommit.ListApprovalRuleTemplatesInput: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct ListAssociatedApprovalRuleTemplatesForRepositoryInput : AWSShape
extension CodeCommit.ListAssociatedApprovalRuleTemplatesForRepositoryInput: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct ListBranchesInput : AWSShape
extension CodeCommit.ListBranchesInput: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct ListPullRequestsInput : AWSShape
extension CodeCommit.ListPullRequestsInput: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct ListRepositoriesInput : AWSShape
extension CodeCommit.ListRepositoriesInput: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct ListRepositoriesForApprovalRuleTemplateInput : AWSShape
extension CodeCommit.ListRepositoriesForApprovalRuleTemplateInput: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public enum ApprovalState : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum ChangeTypeEnum : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum ConflictDetailLevelTypeEnum : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum ConflictResolutionStrategyTypeEnum : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum FileModeTypeEnum : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum MergeOptionTypeEnum : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum ObjectTypeEnum : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum OrderEnum : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum OverrideStatus : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum PullRequestEventType : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum PullRequestStatusEnum : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum RelativeFileVersionEnum : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum ReplacementTypeEnum : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum RepositoryTriggerEventEnum : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum SortByEnum : String, CustomStringConvertible, Codable