import { AccessLevelList } from '../shared/access-level' ; import { PolicyStatement , Operator } from '../shared' ; param sid export class Codecommit extends PolicyStatement { public servicePrefix = 'codecommit' ; param sid constructor ( sid ? ) { super ( sid ) ; } /**
     * Grants permission to associate an approval rule template with a repository
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_AssociateApprovalRuleTemplateWithRepository.html
     */ public toAssociateApprovalRuleTemplateWithRepository ( ) { return this . to ( 'AssociateApprovalRuleTemplateWithRepository' ) ; } /**
     * Grants permission to associate an approval rule template with multiple repositories in a single operation
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_BatchAssociateApprovalRuleTemplateWithRepositories.html
     */ public toBatchAssociateApprovalRuleTemplateWithRepositories ( ) { return this . to ( 'BatchAssociateApprovalRuleTemplateWithRepositories' ) ; } /**
     * Grants permission to get information about multiple merge conflicts when attempting to merge two commits using either the three-way merge or the squash merge option
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_BatchDescribeMergeConflicts.html
     */ public toBatchDescribeMergeConflicts ( ) { return this . to ( 'BatchDescribeMergeConflicts' ) ; } /**
     * Grants permission to remove the association between an approval rule template and multiple repositories in a single operation
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_BatchDisassociateApprovalRuleTemplateFromRepositories.html
     */ public toBatchDisassociateApprovalRuleTemplateFromRepositories ( ) { return this . to ( 'BatchDisassociateApprovalRuleTemplateFromRepositories' ) ; } /**
     * Grants permission to get return information about one or more commits in an AWS CodeCommit repository.
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_BatchGetCommits.html
     */ public toBatchGetCommits ( ) { return this . to ( 'BatchGetCommits' ) ; } /**
     * Grants permission to return information about one or more pull requests in an AWS CodeCommit repository
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-permissions-reference.html#aa-pr
     */ public toBatchGetPullRequests ( ) { return this . to ( 'BatchGetPullRequests' ) ; } /**
     * Grants permission to get information about multiple repositories
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_BatchGetRepositories.html
     */ public toBatchGetRepositories ( ) { return this . to ( 'BatchGetRepositories' ) ; } /**
     * Grants permission to cancel the uploading of an archive to a pipeline in AWS CodePipeline
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-permissions-reference.html#aa-acp
     */ public toCancelUploadArchive ( ) { return this . to ( 'CancelUploadArchive' ) ; } /**
     * Grants permission to create an approval rule template that will automatically create approval rules in pull requests that match the conditions defined in the template; does not grant permission to create approval rules for individual pull requests
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_CreateApprovalRuleTemplate.html
     */ public toCreateApprovalRuleTemplate ( ) { return this . to ( 'CreateApprovalRuleTemplate' ) ; } /**
     * Grants permission to create a branch in an AWS CodeCommit repository with this API; does not control Git create branch actions
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifReferences()
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_CreateBranch.html
     */ public toCreateBranch ( ) { return this . to ( 'CreateBranch' ) ; } /**
     * Grants permission to add, copy, move or update single or multiple files in a branch in an AWS CodeCommit repository, and generate a commit for the changes in the specified branch.
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifReferences()
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_CreateCommit.html
     */ public toCreateCommit ( ) { return this . to ( 'CreateCommit' ) ; } /**
     * Grants permission to create a pull request in the specified repository
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_CreatePullRequest.html
     */ public toCreatePullRequest ( ) { return this . to ( 'CreatePullRequest' ) ; } /**
     * Grants permission to create an approval rule specific to an individual pull request; does not grant permission to create approval rule templates
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_CreatePullRequestApprovalRule.html
     */ public toCreatePullRequestApprovalRule ( ) { return this . to ( 'CreatePullRequestApprovalRule' ) ; } /**
     * Grants permission to create an AWS CodeCommit repository
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifAwsRequestTag()
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_CreateRepository.html
     */ public toCreateRepository ( ) { return this . to ( 'CreateRepository' ) ; } /**
     * Grants permission to create an unreferenced commit that contains the result of merging two commits using either the three-way or the squash merge option; does not control Git merge actions
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifReferences()
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_CreateUnreferencedMergeCommit.html
     */ public toCreateUnreferencedMergeCommit ( ) { return this . to ( 'CreateUnreferencedMergeCommit' ) ; } /**
     * Grants permission to delete an approval rule template
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_DeleteApprovalRuleTemplate.html
     */ public toDeleteApprovalRuleTemplate ( ) { return this . to ( 'DeleteApprovalRuleTemplate' ) ; } /**
     * Grants permission to delete a branch in an AWS CodeCommit repository with this API; does not control Git delete branch actions
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifReferences()
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_DeleteBranch.html
     */ public toDeleteBranch ( ) { return this . to ( 'DeleteBranch' ) ; } /**
     * Grants permission to delete the content of a comment made on a change, file, or commit in a repository
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_DeleteCommentContent.html
     */ public toDeleteCommentContent ( ) { return this . to ( 'DeleteCommentContent' ) ; } /**
     * Grants permission to delete a specified file from a specified branch
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifReferences()
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_DeleteFile.html
     */ public toDeleteFile ( ) { return this . to ( 'DeleteFile' ) ; } /**
     * Grants permission to delete approval rule created for a pull request if the rule was not created by an approval rule template
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_DeletePullRequestApprovalRule.html
     */ public toDeletePullRequestApprovalRule ( ) { return this . to ( 'DeletePullRequestApprovalRule' ) ; } /**
     * Grants permission to delete an AWS CodeCommit repository
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_DeleteRepository.html
     */ public toDeleteRepository ( ) { return this . to ( 'DeleteRepository' ) ; } /**
     * Grants permission to get information about specific merge conflicts when attempting to merge two commits using either the three-way or the squash merge option
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_DescribeMergeConflicts.html
     */ public toDescribeMergeConflicts ( ) { return this . to ( 'DescribeMergeConflicts' ) ; } /**
     * Grants permission to return information about one or more pull request events
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_DescribePullRequestEvents.html
     */ public toDescribePullRequestEvents ( ) { return this . to ( 'DescribePullRequestEvents' ) ; } /**
     * Grants permission to remove the association between an approval rule template and a repository
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_DisassociateApprovalRuleTemplateFromRepository.html
     */ public toDisassociateApprovalRuleTemplateFromRepository ( ) { return this . to ( 'DisassociateApprovalRuleTemplateFromRepository' ) ; } /**
     * Grants permission to evaluate whether a pull request is mergable based on its current approval state and approval rule requirements
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_EvaluatePullRequestApprovalRules.html
     */ public toEvaluatePullRequestApprovalRules ( ) { return this . to ( 'EvaluatePullRequestApprovalRules' ) ; } /**
     * Grants permission to return information about an approval rule template
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_GetApprovalRuleTemplate.html
     */ public toGetApprovalRuleTemplate ( ) { return this . to ( 'GetApprovalRuleTemplate' ) ; } /**
     * Grants permission to view the encoded content of an individual file in an AWS CodeCommit repository from the AWS CodeCommit console
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_GetBlob.html
     */ public toGetBlob ( ) { return this . to ( 'GetBlob' ) ; } /**
     * Grants permission to get details about a branch in an AWS CodeCommit repository with this API; does not control Git branch actions
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_GetBranch.html
     */ public toGetBranch ( ) { return this . to ( 'GetBranch' ) ; } /**
     * Grants permission to get the content of a comment made on a change, file, or commit in a repository
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_GetComment.html
     */ public toGetComment ( ) { return this . to ( 'GetComment' ) ; } /**
     * Grants permission to get the reactions on a comment
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_GetCommentReactions.html
     */ public toGetCommentReactions ( ) { return this . to ( 'GetCommentReactions' ) ; } /**
     * Grants permission to get information about comments made on the comparison between two commits
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_GetCommentsForComparedCommit.html
     */ public toGetCommentsForComparedCommit ( ) { return this . to ( 'GetCommentsForComparedCommit' ) ; } /**
     * Grants permission to get comments made on a pull request
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_GetCommentsForPullRequest.html
     */ public toGetCommentsForPullRequest ( ) { return this . to ( 'GetCommentsForPullRequest' ) ; } /**
     * Grants permission to return information about a commit, including commit message and committer information, with this API; does not control Git log actions
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_GetCommit.html
     */ public toGetCommit ( ) { return this . to ( 'GetCommit' ) ; } /**
     * Grants permission to get information about the history of commits in a repository
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-permissions-reference.html#aa-code
     */ public toGetCommitHistory ( ) { return this . to ( 'GetCommitHistory' ) ; } /**
     * Grants permission to get information about the difference between commits in the context of a potential merge
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-permissions-reference.html#aa-pr
     */ public toGetCommitsFromMergeBase ( ) { return this . to ( 'GetCommitsFromMergeBase' ) ; } /**
     * Grants permission to view information about the differences between valid commit specifiers such as a branch, tag, HEAD, commit ID, or other fully qualified reference
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_GetDifferences.html
     */ public toGetDifferences ( ) { return this . to ( 'GetDifferences' ) ; } /**
     * Grants permission to return the base-64 encoded contents of a specified file and its metadata
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_GetFile.html
     */ public toGetFile ( ) { return this . to ( 'GetFile' ) ; } /**
     * Grants permission to return the contents of a specified folder in a repository
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_GetFolder.html
     */ public toGetFolder ( ) { return this . to ( 'GetFolder' ) ; } /**
     * Grants permission to get information about a merge commit created by one of the merge options for pull requests that creates merge commits. Not all merge options create merge commits. This permission does not control Git merge actions
     *
     * Access Level: Read
     *
     * Possible conditions:
     * - .ifReferences()
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_GetMergeCommit.html
     */ public toGetMergeCommit ( ) { return this . to ( 'GetMergeCommit' ) ; } /**
     * Grants permission to get information about merge conflicts between the before and after commit IDs for a pull request in a repository
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_GetMergeConflicts.html
     */ public toGetMergeConflicts ( ) { return this . to ( 'GetMergeConflicts' ) ; } /**
     * Grants permission to get information about merge options for pull requests that can be used to merge two commits; does not control Git merge actions
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_GetMergeOptions.html
     */ public toGetMergeOptions ( ) { return this . to ( 'GetMergeOptions' ) ; } /**
     * Grants permission to resolve blobs, trees, and commits to their identifier
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-permissions-reference.html#aa-code
     */ public toGetObjectIdentifier ( ) { return this . to ( 'GetObjectIdentifier' ) ; } /**
     * Grants permission to get information about a pull request in a specified repository
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_GetPullRequest.html
     */ public toGetPullRequest ( ) { return this . to ( 'GetPullRequest' ) ; } /**
     * Grants permission to retrieve the current approvals on an inputted pull request
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_GetPullRequestApprovalStates.html
     */ public toGetPullRequestApprovalStates ( ) { return this . to ( 'GetPullRequestApprovalStates' ) ; } /**
     * Grants permission to retrieve the current override state of a given pull request
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_GetPullRequestOverrideState.html
     */ public toGetPullRequestOverrideState ( ) { return this . to ( 'GetPullRequestOverrideState' ) ; } /**
     * Grants permission to get details about references in an AWS CodeCommit repository; does not control Git reference actions
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-permissions-reference.html#aa-code
     */ public toGetReferences ( ) { return this . to ( 'GetReferences' ) ; } /**
     * Grants permission to get information about an AWS CodeCommit repository
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_GetRepository.html
     */ public toGetRepository ( ) { return this . to ( 'GetRepository' ) ; } /**
     * Grants permission to get information about triggers configured for a repository
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_GetRepositoryTriggers.html
     */ public toGetRepositoryTriggers ( ) { return this . to ( 'GetRepositoryTriggers' ) ; } /**
     * Grants permission to view the contents of a specified tree in an AWS CodeCommit repository from the AWS CodeCommit console
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-permissions-reference.html#aa-code
     */ public toGetTree ( ) { return this . to ( 'GetTree' ) ; } /**
     * Grants permission to get status information about an archive upload to a pipeline in AWS CodePipeline
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-permissions-reference.html#aa-acp
     */ public toGetUploadArchiveStatus ( ) { return this . to ( 'GetUploadArchiveStatus' ) ; } /**
     * Grants permission to pull information from an AWS CodeCommit repository to a local repo
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-permissions-reference.html#aa-git
     */ public toGitPull ( ) { return this . to ( 'GitPull' ) ; } /**
     * Grants permission to push information from a local repo to an AWS CodeCommit repository
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifReferences()
     *
     * https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-permissions-reference.html#aa-git
     */ public toGitPush ( ) { return this . to ( 'GitPush' ) ; } /**
     * Grants permission to list all approval rule templates in an AWS Region for the AWS account
     *
     * Access Level: List
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_ListApprovalRuleTemplates.html
     */ public toListApprovalRuleTemplates ( ) { return this . to ( 'ListApprovalRuleTemplates' ) ; } /**
     * Grants permission to list approval rule templates that are associated with a repository
     *
     * Access Level: List
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_ListAssociatedApprovalRuleTemplatesForRepository.html
     */ public toListAssociatedApprovalRuleTemplatesForRepository ( ) { return this . to ( 'ListAssociatedApprovalRuleTemplatesForRepository' ) ; } /**
     * Grants permission to list branches for an AWS CodeCommit repository with this API; does not control Git branch actions
     *
     * Access Level: List
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_ListBranches.html
     */ public toListBranches ( ) { return this . to ( 'ListBranches' ) ; } /**
     * Grants permission to list pull requests for a specified repository
     *
     * Access Level: List
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_ListPullRequests.html
     */ public toListPullRequests ( ) { return this . to ( 'ListPullRequests' ) ; } /**
     * Grants permission to list information about AWS CodeCommit repositories in the current Region for your AWS account
     *
     * Access Level: List
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_ListRepositories.html
     */ public toListRepositories ( ) { return this . to ( 'ListRepositories' ) ; } /**
     * Grants permission to list repositories that are associated with an approval rule template
     *
     * Access Level: List
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_ListRepositoriesForApprovalRuleTemplate.html
     */ public toListRepositoriesForApprovalRuleTemplate ( ) { return this . to ( 'ListRepositoriesForApprovalRuleTemplate' ) ; } /**
     * Grants permission to list the resource attached to a CodeCommit resource ARN
     *
     * Access Level: List
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_ListTagsForResource.html
     */ public toListTagsForResource ( ) { return this . to ( 'ListTagsForResource' ) ; } /**
     * Grants permission to merge two commits into the specified destination branch using the fast-forward merge option
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifReferences()
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_MergeBranchesByFastForward.html
     */ public toMergeBranchesByFastForward ( ) { return this . to ( 'MergeBranchesByFastForward' ) ; } /**
     * Grants permission to merge two commits into the specified destination branch using the squash merge option
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifReferences()
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_MergeBranchesBySquash.html
     */ public toMergeBranchesBySquash ( ) { return this . to ( 'MergeBranchesBySquash' ) ; } /**
     * Grants permission to merge two commits into the specified destination branch using the three-way merge option
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifReferences()
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_MergeBranchesByThreeWay.html
     */ public toMergeBranchesByThreeWay ( ) { return this . to ( 'MergeBranchesByThreeWay' ) ; } /**
     * Grants permission to close a pull request and attempt to merge it into the specified destination branch for that pull request at the specified commit using the fast-forward merge option
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifReferences()
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_MergePullRequestByFastForward.html
     */ public toMergePullRequestByFastForward ( ) { return this . to ( 'MergePullRequestByFastForward' ) ; } /**
     * Grants permission to close a pull request and attempt to merge it into the specified destination branch for that pull request at the specified commit using the squash merge option
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifReferences()
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_MergePullRequestBySquash.html
     */ public toMergePullRequestBySquash ( ) { return this . to ( 'MergePullRequestBySquash' ) ; } /**
     * Grants permission to close a pull request and attempt to merge it into the specified destination branch for that pull request at the specified commit using the three-way merge option
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifReferences()
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_MergePullRequestByThreeWay.html
     */ public toMergePullRequestByThreeWay ( ) { return this . to ( 'MergePullRequestByThreeWay' ) ; } /**
     * Grants permission to override all approval rules for a pull request, including approval rules created by a template
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_OverridePullRequestApprovalRules.html
     */ public toOverridePullRequestApprovalRules ( ) { return this . to ( 'OverridePullRequestApprovalRules' ) ; } /**
     * Grants permission to post a comment on the comparison between two commits
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_PostCommentForComparedCommit.html
     */ public toPostCommentForComparedCommit ( ) { return this . to ( 'PostCommentForComparedCommit' ) ; } /**
     * Grants permission to post a comment on a pull request
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_PostCommentForPullRequest.html
     */ public toPostCommentForPullRequest ( ) { return this . to ( 'PostCommentForPullRequest' ) ; } /**
     * Grants permission to post a comment in reply to a comment on a comparison between commits or a pull request
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_PostCommentReply.html
     */ public toPostCommentReply ( ) { return this . to ( 'PostCommentReply' ) ; } /**
     * Grants permission to post a reaction on a comment
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_PutCommentReaction.html
     */ public toPutCommentReaction ( ) { return this . to ( 'PutCommentReaction' ) ; } /**
     * Grants permission to add or update a file in a branch in an AWS CodeCommit repository, and generate a commit for the addition in the specified branch
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifReferences()
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_PutFile.html
     */ public toPutFile ( ) { return this . to ( 'PutFile' ) ; } /**
     * Grants permission to create, update, or delete triggers for a repository
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_PutRepositoryTriggers.html
     */ public toPutRepositoryTriggers ( ) { return this . to ( 'PutRepositoryTriggers' ) ; } /**
     * Grants permission to attach resource tags to a CodeCommit resource ARN
     *
     * Access Level: Tagging
     *
     * Possible conditions:
     * - .ifAwsResourceTag()
     * - .ifAwsRequestTag()
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_TagResource.html
     */ public toTagResource ( ) { return this . to ( 'TagResource' ) ; } /**
     * Grants permission to test the functionality of repository triggers by sending information to the trigger target
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_TestRepositoryTriggers.html
     */ public toTestRepositoryTriggers ( ) { return this . to ( 'TestRepositoryTriggers' ) ; } /**
     * Grants permission to disassociate resource tags from a CodeCommit resource ARN
     *
     * Access Level: Tagging
     *
     * Possible conditions:
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_UntagResource.html
     */ public toUntagResource ( ) { return this . to ( 'UntagResource' ) ; } /**
     * Grants permission to update the content of approval rule templates; does not grant permission to update content of approval rules created specifically for pull requests
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_UpdateApprovalRuleTemplateContent.html
     */ public toUpdateApprovalRuleTemplateContent ( ) { return this . to ( 'UpdateApprovalRuleTemplateContent' ) ; } /**
     * Grants permission to update the description of approval rule templates
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_UpdateApprovalRuleTemplateDescription.html
     */ public toUpdateApprovalRuleTemplateDescription ( ) { return this . to ( 'UpdateApprovalRuleTemplateDescription' ) ; } /**
     * Grants permission to update the name of approval rule templates
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_UpdateApprovalRuleTemplateName.html
     */ public toUpdateApprovalRuleTemplateName ( ) { return this . to ( 'UpdateApprovalRuleTemplateName' ) ; } /**
     * Grants permission to update the contents of a comment if the identity matches the identity used to create the comment
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_UpdateComment.html
     */ public toUpdateComment ( ) { return this . to ( 'UpdateComment' ) ; } /**
     * Grants permission to change the default branch in an AWS CodeCommit repository
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_UpdateDefaultBranch.html
     */ public toUpdateDefaultBranch ( ) { return this . to ( 'UpdateDefaultBranch' ) ; } /**
     * Grants permission to update the content for approval rules created for a specific pull requests; does not grant permission to update approval rule content for rules created with an approval rule template
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_UpdatePullRequestApprovalRuleContent.html
     */ public toUpdatePullRequestApprovalRuleContent ( ) { return this . to ( 'UpdatePullRequestApprovalRuleContent' ) ; } /**
     * Grants permission to update the approval state for pull requests
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_UpdatePullRequestApprovalState.html
     */ public toUpdatePullRequestApprovalState ( ) { return this . to ( 'UpdatePullRequestApprovalState' ) ; } /**
     * Grants permission to update the description of a pull request
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_UpdatePullRequestDescription.html
     */ public toUpdatePullRequestDescription ( ) { return this . to ( 'UpdatePullRequestDescription' ) ; } /**
     * Grants permission to update the status of a pull request
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_UpdatePullRequestStatus.html
     */ public toUpdatePullRequestStatus ( ) { return this . to ( 'UpdatePullRequestStatus' ) ; } /**
     * Grants permission to update the title of a pull request
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_UpdatePullRequestTitle.html
     */ public toUpdatePullRequestTitle ( ) { return this . to ( 'UpdatePullRequestTitle' ) ; } /**
     * Grants permission to change the description of an AWS CodeCommit repository
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_UpdateRepositoryDescription.html
     */ public toUpdateRepositoryDescription ( ) { return this . to ( 'UpdateRepositoryDescription' ) ; } /**
     * Grants permission to change the name of an AWS CodeCommit repository
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/codecommit/latest/APIReference/API_UpdateRepositoryName.html
     */ public toUpdateRepositoryName ( ) { return this . to ( 'UpdateRepositoryName' ) ; } /**
     * Grants permission to the service role for AWS CodePipeline to upload repository changes into a pipeline
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-permissions-reference.html#aa-acp
     */ public toUploadArchive ( ) { return this . to ( 'UploadArchive' ) ; } protected accessLevelList : AccessLevelList = { Write : [ 'AssociateApprovalRuleTemplateWithRepository' , 'BatchAssociateApprovalRuleTemplateWithRepositories' , 'BatchDisassociateApprovalRuleTemplateFromRepositories' , 'CreateApprovalRuleTemplate' , 'CreateBranch' , 'CreateCommit' , 'CreatePullRequest' , 'CreatePullRequestApprovalRule' , 'CreateRepository' , 'CreateUnreferencedMergeCommit' , 'DeleteApprovalRuleTemplate' , 'DeleteBranch' , 'DeleteCommentContent' , 'DeleteFile' , 'DeletePullRequestApprovalRule' , 'DeleteRepository' , 'DisassociateApprovalRuleTemplateFromRepository' , 'GitPush' , 'MergeBranchesByFastForward' , 'MergeBranchesBySquash' , 'MergeBranchesByThreeWay' , 'MergePullRequestByFastForward' , 'MergePullRequestBySquash' , 'MergePullRequestByThreeWay' , 'OverridePullRequestApprovalRules' , 'PostCommentForComparedCommit' , 'PostCommentForPullRequest' , 'PostCommentReply' , 'PutCommentReaction' , 'PutFile' , 'PutRepositoryTriggers' , 'TestRepositoryTriggers' , 'UpdateApprovalRuleTemplateContent' , 'UpdateApprovalRuleTemplateDescription' , 'UpdateApprovalRuleTemplateName' , 'UpdateComment' , 'UpdateDefaultBranch' , 'UpdatePullRequestApprovalRuleContent' , 'UpdatePullRequestApprovalState' , 'UpdatePullRequestDescription' , 'UpdatePullRequestStatus' , 'UpdatePullRequestTitle' , 'UpdateRepositoryDescription' , 'UpdateRepositoryName' , 'UploadArchive' ] , Read : [ 'BatchDescribeMergeConflicts' , 'BatchGetCommits' , 'BatchGetPullRequests' , 'BatchGetRepositories' , 'CancelUploadArchive' , 'DescribeMergeConflicts' , 'DescribePullRequestEvents' , 'EvaluatePullRequestApprovalRules' , 'GetApprovalRuleTemplate' , 'GetBlob' , 'GetBranch' , 'GetComment' , 'GetCommentReactions' , 'GetCommentsForComparedCommit' , 'GetCommentsForPullRequest' , 'GetCommit' , 'GetCommitHistory' , 'GetCommitsFromMergeBase' , 'GetDifferences' , 'GetFile' , 'GetFolder' , 'GetMergeCommit' , 'GetMergeConflicts' , 'GetMergeOptions' , 'GetObjectIdentifier' , 'GetPullRequest' , 'GetPullRequestApprovalStates' , 'GetPullRequestOverrideState' , 'GetReferences' , 'GetRepository' , 'GetRepositoryTriggers' , 'GetTree' , 'GetUploadArchiveStatus' , 'GitPull' ] , List : [ 'ListApprovalRuleTemplates' , 'ListAssociatedApprovalRuleTemplatesForRepository' , 'ListBranches' , 'ListPullRequests' , 'ListRepositories' , 'ListRepositoriesForApprovalRuleTemplate' , 'ListTagsForResource' ] , Tagging : [ 'TagResource' , 'UntagResource' ] } ; param repositoryName param account param region param partition public onRepository ( repositoryName , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:codecommit:${ region || '*' }:${ account || '*' }:${ repositoryName }` ) ; } param value param operator public ifReferences ( value , operator ? ) { return this . if ( `References` , value , operator || 'StringLike' ) ; } }