{"note":"OpenAPI conversion -- returning structured metadata","name":"amazonaws-com-codecommit","description":"AWS CodeCommit","version":"2015-04-13","base_url":"","endpoints":79,"raw":"@lap v0.3\n# Machine-readable API spec. Each @endpoint block is one API call.\n@api AWS CodeCommit\n@version 2015-04-13\n@auth AWS SigV4\n@endpoints 79\n@hint download_for_search\n@toc root(79)\n\n@endpoint POST /\n@desc 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.\n@required {approvalRuleTemplateName: str, repositoryName: str}\n\n@endpoint POST /\n@desc Creates an association between an approval rule template and one or more specified repositories.\n@required {approvalRuleTemplateName: str, repositoryNames: [str]}\n@returns(200) {associatedRepositoryNames: [str], errors: [BatchAssociateApprovalRuleTemplateWithRepositoriesError]}\n\n@endpoint POST /\n@desc Returns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy.\n@required {repositoryName: str, destinationCommitSpecifier: str, sourceCommitSpecifier: str, mergeOption: str}\n@optional {maxMergeHunks: int, maxConflictFiles: int, filePaths: [str], conflictDetailLevel: str, conflictResolutionStrategy: str, nextToken: str}\n@returns(200) {conflicts: [Conflict], nextToken: str?, errors: [BatchDescribeMergeConflictsError]?, destinationCommitId: str, sourceCommitId: str, baseCommitId: str?}\n\n@endpoint POST /\n@desc Removes the association between an approval rule template and one or more specified repositories.\n@required {approvalRuleTemplateName: str, repositoryNames: [str]}\n@returns(200) {disassociatedRepositoryNames: [str], errors: [BatchDisassociateApprovalRuleTemplateFromRepositoriesError]}\n\n@endpoint POST /\n@desc Returns information about the contents of one or more commits in a repository.\n@required {commitIds: [str], repositoryName: str}\n@returns(200) {commits: [Commit]?, errors: [BatchGetCommitsError]?}\n\n@endpoint POST /\n@desc 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.\n@required {repositoryNames: [str]}\n@returns(200) {repositories: [RepositoryMetadata]?, repositoriesNotFound: [str]?, errors: [BatchGetRepositoriesError]?}\n\n@endpoint POST /\n@desc Creates a template for approval rules that can then be associated with one or more repositories in your Amazon Web Services account. When you associate a template with a repository, CodeCommit creates an approval rule that matches the conditions of the template for all pull requests that meet the conditions of the template. For more information, see AssociateApprovalRuleTemplateWithRepository.\n@required {approvalRuleTemplateName: str, approvalRuleTemplateContent: str}\n@optional {approvalRuleTemplateDescription: str}\n@returns(200) {approvalRuleTemplate: ApprovalRuleTemplate{approvalRuleTemplateId: str?, approvalRuleTemplateName: str?, approvalRuleTemplateDescription: str?, approvalRuleTemplateContent: str?, ruleContentSha256: str?, lastModifiedDate: str(timestamp)?, creationDate: str(timestamp)?, lastModifiedUser: str?}}\n\n@endpoint POST /\n@desc 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.\n@required {repositoryName: str, branchName: str, commitId: str}\n\n@endpoint POST /\n@desc Creates a commit for a repository on the tip of a specified branch.\n@required {repositoryName: str, branchName: str}\n@optional {parentCommitId: str, authorName: str, email: str, commitMessage: str, keepEmptyFolders: bool, putFiles: [PutFileEntry], deleteFiles: [DeleteFileEntry], setFileModes: [SetFileModeEntry]}\n@returns(200) {commitId: str?, treeId: str?, filesAdded: [FileMetadata]?, filesUpdated: [FileMetadata]?, filesDeleted: [FileMetadata]?}\n\n@endpoint POST /\n@desc Creates a pull request in the specified repository.\n@required {title: str, targets: [Target]}\n@optional {description: str, clientRequestToken: str}\n@returns(200) {pullRequest: PullRequest{pullRequestId: str?, title: str?, description: str?, lastActivityDate: str(timestamp)?, creationDate: str(timestamp)?, pullRequestStatus: str?, authorArn: str?, pullRequestTargets: [PullRequestTarget]?, clientRequestToken: str?, revisionId: str?, approvalRules: [ApprovalRule]?}}\n\n@endpoint POST /\n@desc Creates an approval rule for a pull request.\n@required {pullRequestId: str, approvalRuleName: str, approvalRuleContent: str}\n@returns(200) {approvalRule: ApprovalRule{approvalRuleId: str?, approvalRuleName: str?, approvalRuleContent: str?, ruleContentSha256: str?, lastModifiedDate: str(timestamp)?, creationDate: str(timestamp)?, lastModifiedUser: str?, originApprovalRuleTemplate: OriginApprovalRuleTemplate?{approvalRuleTemplateId: str?, approvalRuleTemplateName: str?}}}\n\n@endpoint POST /\n@desc Creates a new, empty repository.\n@required {repositoryName: str}\n@optional {repositoryDescription: str, tags: map<str,str>, kmsKeyId: str}\n@returns(200) {repositoryMetadata: RepositoryMetadata?{accountId: str?, repositoryId: str?, repositoryName: str?, repositoryDescription: str?, defaultBranch: str?, lastModifiedDate: str(timestamp)?, creationDate: str(timestamp)?, cloneUrlHttp: str?, cloneUrlSsh: str?, Arn: str?, kmsKeyId: str?}}\n\n@endpoint POST /\n@desc 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.\n@required {repositoryName: str, sourceCommitSpecifier: str, destinationCommitSpecifier: str, mergeOption: str}\n@optional {conflictDetailLevel: str, conflictResolutionStrategy: str, authorName: str, email: str, commitMessage: str, keepEmptyFolders: bool, conflictResolution: ConflictResolution}\n@returns(200) {commitId: str?, treeId: str?}\n\n@endpoint POST /\n@desc Deletes a specified approval rule template. Deleting a template does not remove approval rules on pull requests already created with the template.\n@required {approvalRuleTemplateName: str}\n@returns(200) {approvalRuleTemplateId: str}\n\n@endpoint POST /\n@desc Deletes a branch from a repository, unless that branch is the default branch for the repository.\n@required {repositoryName: str, branchName: str}\n@returns(200) {deletedBranch: BranchInfo?{branchName: str?, commitId: str?}}\n\n@endpoint POST /\n@desc Deletes the content of a comment made on a change, file, or commit in a repository.\n@required {commentId: str}\n@returns(200) {comment: Comment?{commentId: str?, content: str?, inReplyTo: str?, creationDate: str(timestamp)?, lastModifiedDate: str(timestamp)?, authorArn: str?, deleted: bool?, clientRequestToken: str?, callerReactions: [str]?, reactionCounts: map<str,int>?}}\n\n@endpoint POST /\n@desc 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.\n@required {repositoryName: str, branchName: str, filePath: str, parentCommitId: str}\n@optional {keepEmptyFolders: bool, commitMessage: str, name: str, email: str}\n@returns(200) {commitId: str, blobId: str, treeId: str, filePath: str}\n\n@endpoint POST /\n@desc 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.\n@required {pullRequestId: str, approvalRuleName: str}\n@returns(200) {approvalRuleId: str}\n\n@endpoint POST /\n@desc 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.\n@required {repositoryName: str}\n@returns(200) {repositoryId: str?}\n\n@endpoint POST /\n@desc 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.\n@required {repositoryName: str, destinationCommitSpecifier: str, sourceCommitSpecifier: str, mergeOption: str, filePath: str}\n@optional {maxMergeHunks: int, conflictDetailLevel: str, conflictResolutionStrategy: str, nextToken: str}\n@returns(200) {conflictMetadata: ConflictMetadata{filePath: str?, fileSizes: FileSizes?{source: int(i64)?, destination: int(i64)?, base: int(i64)?}, fileModes: FileModes?{source: str?, destination: str?, base: str?}, objectTypes: ObjectTypes?{source: str?, destination: str?, base: str?}, numberOfConflicts: int?, isBinaryFile: IsBinaryFile?{source: bool?, destination: bool?, base: bool?}, contentConflict: bool?, fileModeConflict: bool?, objectTypeConflict: bool?, mergeOperations: MergeOperations?{source: str?, destination: str?}}, mergeHunks: [MergeHunk], nextToken: str?, destinationCommitId: str, sourceCommitId: str, baseCommitId: str?}\n\n@endpoint POST /\n@desc Returns information about one or more pull request events.\n@required {pullRequestId: str}\n@optional {pullRequestEventType: str, actorArn: str, nextToken: str, maxResults: int}\n@returns(200) {pullRequestEvents: [PullRequestEvent], nextToken: str?}\n\n@endpoint POST /\n@desc 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.\n@required {approvalRuleTemplateName: str, repositoryName: str}\n\n@endpoint POST /\n@desc Evaluates whether a pull request has met all the conditions specified in its associated approval rules.\n@required {pullRequestId: str, revisionId: str}\n@returns(200) {evaluation: Evaluation{approved: bool?, overridden: bool?, approvalRulesSatisfied: [str]?, approvalRulesNotSatisfied: [str]?}}\n\n@endpoint POST /\n@desc Returns information about a specified approval rule template.\n@required {approvalRuleTemplateName: str}\n@returns(200) {approvalRuleTemplate: ApprovalRuleTemplate{approvalRuleTemplateId: str?, approvalRuleTemplateName: str?, approvalRuleTemplateDescription: str?, approvalRuleTemplateContent: str?, ruleContentSha256: str?, lastModifiedDate: str(timestamp)?, creationDate: str(timestamp)?, lastModifiedUser: str?}}\n\n@endpoint POST /\n@desc Returns the base-64 encoded content of an individual blob in a repository.\n@required {repositoryName: str, blobId: str}\n@returns(200) {content: bytes}\n\n@endpoint POST /\n@desc Returns information about a repository branch, including its name and the last commit ID.\n@optional {repositoryName: str, branchName: str}\n@returns(200) {branch: BranchInfo?{branchName: str?, commitId: str?}}\n\n@endpoint POST /\n@desc 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.\n@required {commentId: str}\n@returns(200) {comment: Comment?{commentId: str?, content: str?, inReplyTo: str?, creationDate: str(timestamp)?, lastModifiedDate: str(timestamp)?, authorArn: str?, deleted: bool?, clientRequestToken: str?, callerReactions: [str]?, reactionCounts: map<str,int>?}}\n\n@endpoint POST /\n@desc Returns information about reactions to a specified comment ID. Reactions from users who have been deleted will not be included in the count.\n@required {commentId: str}\n@optional {reactionUserArn: str, nextToken: str, maxResults: int}\n@returns(200) {reactionsForComment: [ReactionForComment], nextToken: str?}\n\n@endpoint POST /\n@desc 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.\n@required {repositoryName: str, afterCommitId: str}\n@optional {beforeCommitId: str, nextToken: str, maxResults: int}\n@returns(200) {commentsForComparedCommitData: [CommentsForComparedCommit]?, nextToken: str?}\n\n@endpoint POST /\n@desc 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.\n@required {pullRequestId: str}\n@optional {repositoryName: str, beforeCommitId: str, afterCommitId: str, nextToken: str, maxResults: int}\n@returns(200) {commentsForPullRequestData: [CommentsForPullRequest]?, nextToken: str?}\n\n@endpoint POST /\n@desc Returns information about a commit, including commit message and committer information.\n@required {repositoryName: str, commitId: str}\n@returns(200) {commit: Commit{commitId: str?, treeId: str?, parents: [str]?, message: str?, author: UserInfo?{name: str?, email: str?, date: str?}, committer: UserInfo?{name: str?, email: str?, date: str?}, additionalData: str?}}\n\n@endpoint POST /\n@desc 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.\n@required {repositoryName: str, afterCommitSpecifier: str}\n@optional {beforeCommitSpecifier: str, beforePath: str, afterPath: str, MaxResults: int, NextToken: str}\n@returns(200) {differences: [Difference]?, NextToken: str?}\n\n@endpoint POST /\n@desc Returns the base-64 encoded contents of a specified file and its metadata.\n@required {repositoryName: str, filePath: str}\n@optional {commitSpecifier: str}\n@returns(200) {commitId: str, blobId: str, filePath: str, fileMode: str, fileSize: int(i64), fileContent: bytes}\n\n@endpoint POST /\n@desc Returns the contents of a specified folder in a repository.\n@required {repositoryName: str, folderPath: str}\n@optional {commitSpecifier: str}\n@returns(200) {commitId: str, folderPath: str, treeId: str?, subFolders: [Folder]?, files: [File]?, symbolicLinks: [SymbolicLink]?, subModules: [SubModule]?}\n\n@endpoint POST /\n@desc Returns information about a specified merge commit.\n@required {repositoryName: str, sourceCommitSpecifier: str, destinationCommitSpecifier: str}\n@optional {conflictDetailLevel: str, conflictResolutionStrategy: str}\n@returns(200) {sourceCommitId: str?, destinationCommitId: str?, baseCommitId: str?, mergedCommitId: str?}\n\n@endpoint POST /\n@desc Returns information about merge conflicts between the before and after commit IDs for a pull request in a repository.\n@required {repositoryName: str, destinationCommitSpecifier: str, sourceCommitSpecifier: str, mergeOption: str}\n@optional {conflictDetailLevel: str, maxConflictFiles: int, conflictResolutionStrategy: str, nextToken: str}\n@returns(200) {mergeable: bool, destinationCommitId: str, sourceCommitId: str, baseCommitId: str?, conflictMetadataList: [ConflictMetadata], nextToken: str?}\n\n@endpoint POST /\n@desc 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.\n@required {repositoryName: str, sourceCommitSpecifier: str, destinationCommitSpecifier: str}\n@optional {conflictDetailLevel: str, conflictResolutionStrategy: str}\n@returns(200) {mergeOptions: [str], sourceCommitId: str, destinationCommitId: str, baseCommitId: str}\n\n@endpoint POST /\n@desc Gets information about a pull request in a specified repository.\n@required {pullRequestId: str}\n@returns(200) {pullRequest: PullRequest{pullRequestId: str?, title: str?, description: str?, lastActivityDate: str(timestamp)?, creationDate: str(timestamp)?, pullRequestStatus: str?, authorArn: str?, pullRequestTargets: [PullRequestTarget]?, clientRequestToken: str?, revisionId: str?, approvalRules: [ApprovalRule]?}}\n\n@endpoint POST /\n@desc 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.\n@required {pullRequestId: str, revisionId: str}\n@returns(200) {approvals: [Approval]?}\n\n@endpoint POST /\n@desc 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.\n@required {pullRequestId: str, revisionId: str}\n@returns(200) {overridden: bool?, overrider: str?}\n\n@endpoint POST /\n@desc 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.\n@required {repositoryName: str}\n@returns(200) {repositoryMetadata: RepositoryMetadata?{accountId: str?, repositoryId: str?, repositoryName: str?, repositoryDescription: str?, defaultBranch: str?, lastModifiedDate: str(timestamp)?, creationDate: str(timestamp)?, cloneUrlHttp: str?, cloneUrlSsh: str?, Arn: str?, kmsKeyId: str?}}\n\n@endpoint POST /\n@desc Gets information about triggers configured for a repository.\n@required {repositoryName: str}\n@returns(200) {configurationId: str?, triggers: [RepositoryTrigger]?}\n\n@endpoint POST /\n@desc Lists all approval rule templates in the specified Amazon Web Services Region in your Amazon Web Services account. If an Amazon Web Services Region is not specified, the Amazon Web Services Region where you are signed in is used.\n@optional {nextToken: str, maxResults: int}\n@returns(200) {approvalRuleTemplateNames: [str]?, nextToken: str?}\n\n@endpoint POST /\n@desc Lists all approval rule templates that are associated with a specified repository.\n@required {repositoryName: str}\n@optional {nextToken: str, maxResults: int}\n@returns(200) {approvalRuleTemplateNames: [str]?, nextToken: str?}\n\n@endpoint POST /\n@desc Gets information about one or more branches in a repository.\n@required {repositoryName: str}\n@optional {nextToken: str}\n@returns(200) {branches: [str]?, nextToken: str?}\n\n@endpoint POST /\n@desc Retrieves a list of commits and changes to a specified file.\n@required {repositoryName: str, filePath: str}\n@optional {commitSpecifier: str, maxResults: int, nextToken: str}\n@returns(200) {revisionDag: [FileVersion], nextToken: str?}\n\n@endpoint POST /\n@desc 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.\n@required {repositoryName: str}\n@optional {authorArn: str, pullRequestStatus: str, nextToken: str, maxResults: int}\n@returns(200) {pullRequestIds: [str], nextToken: str?}\n\n@endpoint POST /\n@desc Gets information about one or more repositories.\n@optional {nextToken: str, sortBy: str, order: str}\n@returns(200) {repositories: [RepositoryNameIdPair]?, nextToken: str?}\n\n@endpoint POST /\n@desc Lists all repositories associated with the specified approval rule template.\n@required {approvalRuleTemplateName: str}\n@optional {nextToken: str, maxResults: int}\n@returns(200) {repositoryNames: [str]?, nextToken: str?}\n\n@endpoint POST /\n@desc Gets information about Amazon Web Servicestags for a specified Amazon Resource Name (ARN) in CodeCommit. For a list of valid resources in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide.\n@required {resourceArn: str}\n@optional {nextToken: str}\n@returns(200) {tags: map<str,str>?, nextToken: str?}\n\n@endpoint POST /\n@desc Merges two branches using the fast-forward merge strategy.\n@required {repositoryName: str, sourceCommitSpecifier: str, destinationCommitSpecifier: str}\n@optional {targetBranch: str}\n@returns(200) {commitId: str?, treeId: str?}\n\n@endpoint POST /\n@desc Merges two branches using the squash merge strategy.\n@required {repositoryName: str, sourceCommitSpecifier: str, destinationCommitSpecifier: str}\n@optional {targetBranch: str, conflictDetailLevel: str, conflictResolutionStrategy: str, authorName: str, email: str, commitMessage: str, keepEmptyFolders: bool, conflictResolution: ConflictResolution}\n@returns(200) {commitId: str?, treeId: str?}\n\n@endpoint POST /\n@desc Merges two specified branches using the three-way merge strategy.\n@required {repositoryName: str, sourceCommitSpecifier: str, destinationCommitSpecifier: str}\n@optional {targetBranch: str, conflictDetailLevel: str, conflictResolutionStrategy: str, authorName: str, email: str, commitMessage: str, keepEmptyFolders: bool, conflictResolution: ConflictResolution}\n@returns(200) {commitId: str?, treeId: str?}\n\n@endpoint POST /\n@desc 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.\n@required {pullRequestId: str, repositoryName: str}\n@optional {sourceCommitId: str}\n@returns(200) {pullRequest: PullRequest?{pullRequestId: str?, title: str?, description: str?, lastActivityDate: str(timestamp)?, creationDate: str(timestamp)?, pullRequestStatus: str?, authorArn: str?, pullRequestTargets: [PullRequestTarget]?, clientRequestToken: str?, revisionId: str?, approvalRules: [ApprovalRule]?}}\n\n@endpoint POST /\n@desc 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.\n@required {pullRequestId: str, repositoryName: str}\n@optional {sourceCommitId: str, conflictDetailLevel: str, conflictResolutionStrategy: str, commitMessage: str, authorName: str, email: str, keepEmptyFolders: bool, conflictResolution: ConflictResolution}\n@returns(200) {pullRequest: PullRequest?{pullRequestId: str?, title: str?, description: str?, lastActivityDate: str(timestamp)?, creationDate: str(timestamp)?, pullRequestStatus: str?, authorArn: str?, pullRequestTargets: [PullRequestTarget]?, clientRequestToken: str?, revisionId: str?, approvalRules: [ApprovalRule]?}}\n\n@endpoint POST /\n@desc 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.\n@required {pullRequestId: str, repositoryName: str}\n@optional {sourceCommitId: str, conflictDetailLevel: str, conflictResolutionStrategy: str, commitMessage: str, authorName: str, email: str, keepEmptyFolders: bool, conflictResolution: ConflictResolution}\n@returns(200) {pullRequest: PullRequest?{pullRequestId: str?, title: str?, description: str?, lastActivityDate: str(timestamp)?, creationDate: str(timestamp)?, pullRequestStatus: str?, authorArn: str?, pullRequestTargets: [PullRequestTarget]?, clientRequestToken: str?, revisionId: str?, approvalRules: [ApprovalRule]?}}\n\n@endpoint POST /\n@desc Sets aside (overrides) all approval rule requirements for a specified pull request.\n@required {pullRequestId: str, revisionId: str, overrideStatus: str}\n\n@endpoint POST /\n@desc Posts a comment on the comparison between two commits.\n@required {repositoryName: str, afterCommitId: str, content: str}\n@optional {beforeCommitId: str, location: Location, clientRequestToken: str}\n@returns(200) {repositoryName: str?, beforeCommitId: str?, afterCommitId: str?, beforeBlobId: str?, afterBlobId: str?, location: Location?{filePath: str?, filePosition: int(i64)?, relativeFileVersion: str?}, comment: Comment?{commentId: str?, content: str?, inReplyTo: str?, creationDate: str(timestamp)?, lastModifiedDate: str(timestamp)?, authorArn: str?, deleted: bool?, clientRequestToken: str?, callerReactions: [str]?, reactionCounts: map<str,int>?}}\n\n@endpoint POST /\n@desc Posts a comment on a pull request.\n@required {pullRequestId: str, repositoryName: str, beforeCommitId: str, afterCommitId: str, content: str}\n@optional {location: Location, clientRequestToken: str}\n@returns(200) {repositoryName: str?, pullRequestId: str?, beforeCommitId: str?, afterCommitId: str?, beforeBlobId: str?, afterBlobId: str?, location: Location?{filePath: str?, filePosition: int(i64)?, relativeFileVersion: str?}, comment: Comment?{commentId: str?, content: str?, inReplyTo: str?, creationDate: str(timestamp)?, lastModifiedDate: str(timestamp)?, authorArn: str?, deleted: bool?, clientRequestToken: str?, callerReactions: [str]?, reactionCounts: map<str,int>?}}\n\n@endpoint POST /\n@desc Posts a comment in reply to an existing comment on a comparison between commits or a pull request.\n@required {inReplyTo: str, content: str}\n@optional {clientRequestToken: str}\n@returns(200) {comment: Comment?{commentId: str?, content: str?, inReplyTo: str?, creationDate: str(timestamp)?, lastModifiedDate: str(timestamp)?, authorArn: str?, deleted: bool?, clientRequestToken: str?, callerReactions: [str]?, reactionCounts: map<str,int>?}}\n\n@endpoint POST /\n@desc 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.\n@required {commentId: str, reactionValue: str}\n\n@endpoint POST /\n@desc Adds or updates a file in a branch in an CodeCommit repository, and generates a commit for the addition in the specified branch.\n@required {repositoryName: str, branchName: str, fileContent: bytes, filePath: str}\n@optional {fileMode: str, parentCommitId: str, commitMessage: str, name: str, email: str}\n@returns(200) {commitId: str, blobId: str, treeId: str}\n\n@endpoint POST /\n@desc Replaces all triggers for a repository. Used to create or delete triggers.\n@required {repositoryName: str, triggers: [RepositoryTrigger]}\n@returns(200) {configurationId: str?}\n\n@endpoint POST /\n@desc Adds or updates tags for a resource in CodeCommit. For a list of valid resources in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide.\n@required {resourceArn: str, tags: map<str,str>}\n\n@endpoint POST /\n@desc 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.\n@required {repositoryName: str, triggers: [RepositoryTrigger]}\n@returns(200) {successfulExecutions: [str]?, failedExecutions: [RepositoryTriggerExecutionFailure]?}\n\n@endpoint POST /\n@desc Removes tags for a resource in CodeCommit. For a list of valid resources in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide.\n@required {resourceArn: str, tagKeys: [str]}\n\n@endpoint POST /\n@desc 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.\n@required {approvalRuleTemplateName: str, newRuleContent: str}\n@optional {existingRuleContentSha256: str}\n@returns(200) {approvalRuleTemplate: ApprovalRuleTemplate{approvalRuleTemplateId: str?, approvalRuleTemplateName: str?, approvalRuleTemplateDescription: str?, approvalRuleTemplateContent: str?, ruleContentSha256: str?, lastModifiedDate: str(timestamp)?, creationDate: str(timestamp)?, lastModifiedUser: str?}}\n\n@endpoint POST /\n@desc Updates the description for a specified approval rule template.\n@required {approvalRuleTemplateName: str, approvalRuleTemplateDescription: str}\n@returns(200) {approvalRuleTemplate: ApprovalRuleTemplate{approvalRuleTemplateId: str?, approvalRuleTemplateName: str?, approvalRuleTemplateDescription: str?, approvalRuleTemplateContent: str?, ruleContentSha256: str?, lastModifiedDate: str(timestamp)?, creationDate: str(timestamp)?, lastModifiedUser: str?}}\n\n@endpoint POST /\n@desc Updates the name of a specified approval rule template.\n@required {oldApprovalRuleTemplateName: str, newApprovalRuleTemplateName: str}\n@returns(200) {approvalRuleTemplate: ApprovalRuleTemplate{approvalRuleTemplateId: str?, approvalRuleTemplateName: str?, approvalRuleTemplateDescription: str?, approvalRuleTemplateContent: str?, ruleContentSha256: str?, lastModifiedDate: str(timestamp)?, creationDate: str(timestamp)?, lastModifiedUser: str?}}\n\n@endpoint POST /\n@desc Replaces the contents of a comment.\n@required {commentId: str, content: str}\n@returns(200) {comment: Comment?{commentId: str?, content: str?, inReplyTo: str?, creationDate: str(timestamp)?, lastModifiedDate: str(timestamp)?, authorArn: str?, deleted: bool?, clientRequestToken: str?, callerReactions: [str]?, reactionCounts: map<str,int>?}}\n\n@endpoint POST /\n@desc 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.\n@required {repositoryName: str, defaultBranchName: str}\n\n@endpoint POST /\n@desc 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.\n@required {pullRequestId: str, approvalRuleName: str, newRuleContent: str}\n@optional {existingRuleContentSha256: str}\n@returns(200) {approvalRule: ApprovalRule{approvalRuleId: str?, approvalRuleName: str?, approvalRuleContent: str?, ruleContentSha256: str?, lastModifiedDate: str(timestamp)?, creationDate: str(timestamp)?, lastModifiedUser: str?, originApprovalRuleTemplate: OriginApprovalRuleTemplate?{approvalRuleTemplateId: str?, approvalRuleTemplateName: str?}}}\n\n@endpoint POST /\n@desc 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.\n@required {pullRequestId: str, revisionId: str, approvalState: str}\n\n@endpoint POST /\n@desc Replaces the contents of the description of a pull request.\n@required {pullRequestId: str, description: str}\n@returns(200) {pullRequest: PullRequest{pullRequestId: str?, title: str?, description: str?, lastActivityDate: str(timestamp)?, creationDate: str(timestamp)?, pullRequestStatus: str?, authorArn: str?, pullRequestTargets: [PullRequestTarget]?, clientRequestToken: str?, revisionId: str?, approvalRules: [ApprovalRule]?}}\n\n@endpoint POST /\n@desc Updates the status of a pull request.\n@required {pullRequestId: str, pullRequestStatus: str}\n@returns(200) {pullRequest: PullRequest{pullRequestId: str?, title: str?, description: str?, lastActivityDate: str(timestamp)?, creationDate: str(timestamp)?, pullRequestStatus: str?, authorArn: str?, pullRequestTargets: [PullRequestTarget]?, clientRequestToken: str?, revisionId: str?, approvalRules: [ApprovalRule]?}}\n\n@endpoint POST /\n@desc Replaces the title of a pull request.\n@required {pullRequestId: str, title: str}\n@returns(200) {pullRequest: PullRequest{pullRequestId: str?, title: str?, description: str?, lastActivityDate: str(timestamp)?, creationDate: str(timestamp)?, pullRequestStatus: str?, authorArn: str?, pullRequestTargets: [PullRequestTarget]?, clientRequestToken: str?, revisionId: str?, approvalRules: [ApprovalRule]?}}\n\n@endpoint POST /\n@desc 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.\n@required {repositoryName: str}\n@optional {repositoryDescription: str}\n\n@endpoint POST /\n@desc Updates the Key Management Service encryption key used to encrypt and decrypt a CodeCommit repository.\n@required {repositoryName: str, kmsKeyId: str}\n@returns(200) {repositoryId: str?, kmsKeyId: str?, originalKmsKeyId: str?}\n\n@endpoint POST /\n@desc Renames a repository. The repository name must be unique across the calling Amazon Web Services account. Repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. The suffix .git is prohibited. For more information about the limits on repository names, see Quotas in the CodeCommit User Guide.\n@required {oldName: str, newName: str}\n\n@end\n"}