libZSservicesZSamazonka-codecommitZSamazonka-codecommit
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CodeCommit.UpdatePullRequestApprovalRuleContent

Description

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.

Synopsis

Creating a Request

data UpdatePullRequestApprovalRuleContent Source #

Constructors

UpdatePullRequestApprovalRuleContent' 

Fields

  • existingRuleContentSha256 :: Maybe Text

    The SHA-256 hash signature for the content of the approval rule. You can retrieve this information by using GetPullRequest.

  • pullRequestId :: Text

    The system-generated ID of the pull request.

  • approvalRuleName :: Text

    The name of the approval rule you want to update.

  • newRuleContent' :: Text

    The updated content for the approval rule.

    When you update the content of the approval rule, you can specify approvers in an approval pool in one of two ways:

    • CodeCommitApprovers: This option only requires an AWS account and a resource. It can be used for both IAM users and federated access users whose name matches the provided resource name. This is a very powerful option that offers a great deal of flexibility. For example, if you specify the AWS account 123456789012 and Mary_Major, all of the following are counted as approvals coming from that user:

      • An IAM user in the account (arn:aws:iam::123456789012:user/Mary_Major)
      • A federated user identified in IAM as Mary_Major (arn:aws:sts::123456789012:federated-user/Mary_Major)

      This option does not recognize an active session of someone assuming the role of CodeCommitReview with a role session name of Mary_Major (arn:aws:sts::123456789012:assumed-role/CodeCommitReview/Mary_Major) unless you include a wildcard (*Mary_Major).

    • Fully qualified ARN: This option allows you to specify the fully qualified Amazon Resource Name (ARN) of the IAM user or role.

    For more information about IAM ARNs, wildcards, and formats, see IAM Identifiers in the IAM User Guide.

Instances

Instances details
Eq UpdatePullRequestApprovalRuleContent Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestApprovalRuleContent

Read UpdatePullRequestApprovalRuleContent Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestApprovalRuleContent

Show UpdatePullRequestApprovalRuleContent Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestApprovalRuleContent

Generic UpdatePullRequestApprovalRuleContent Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestApprovalRuleContent

NFData UpdatePullRequestApprovalRuleContent Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestApprovalRuleContent

Hashable UpdatePullRequestApprovalRuleContent Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestApprovalRuleContent

ToJSON UpdatePullRequestApprovalRuleContent Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestApprovalRuleContent

AWSRequest UpdatePullRequestApprovalRuleContent Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestApprovalRuleContent

ToHeaders UpdatePullRequestApprovalRuleContent Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestApprovalRuleContent

ToPath UpdatePullRequestApprovalRuleContent Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestApprovalRuleContent

ToQuery UpdatePullRequestApprovalRuleContent Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestApprovalRuleContent

type Rep UpdatePullRequestApprovalRuleContent Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestApprovalRuleContent

type Rep UpdatePullRequestApprovalRuleContent = D1 ('MetaData "UpdatePullRequestApprovalRuleContent" "Amazonka.CodeCommit.UpdatePullRequestApprovalRuleContent" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "UpdatePullRequestApprovalRuleContent'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "existingRuleContentSha256") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "pullRequestId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "approvalRuleName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "newRuleContent'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse UpdatePullRequestApprovalRuleContent Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestApprovalRuleContent

newUpdatePullRequestApprovalRuleContent Source #

Create a value of UpdatePullRequestApprovalRuleContent with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:existingRuleContentSha256:UpdatePullRequestApprovalRuleContent', updatePullRequestApprovalRuleContent_existingRuleContentSha256 - The SHA-256 hash signature for the content of the approval rule. You can retrieve this information by using GetPullRequest.

$sel:pullRequestId:UpdatePullRequestApprovalRuleContent', updatePullRequestApprovalRuleContent_pullRequestId - The system-generated ID of the pull request.

$sel:approvalRuleName:UpdatePullRequestApprovalRuleContent', updatePullRequestApprovalRuleContent_approvalRuleName - The name of the approval rule you want to update.

$sel:newRuleContent':UpdatePullRequestApprovalRuleContent', updatePullRequestApprovalRuleContent_newRuleContent - The updated content for the approval rule.

When you update the content of the approval rule, you can specify approvers in an approval pool in one of two ways:

  • CodeCommitApprovers: This option only requires an AWS account and a resource. It can be used for both IAM users and federated access users whose name matches the provided resource name. This is a very powerful option that offers a great deal of flexibility. For example, if you specify the AWS account 123456789012 and Mary_Major, all of the following are counted as approvals coming from that user:

    • An IAM user in the account (arn:aws:iam::123456789012:user/Mary_Major)
    • A federated user identified in IAM as Mary_Major (arn:aws:sts::123456789012:federated-user/Mary_Major)

    This option does not recognize an active session of someone assuming the role of CodeCommitReview with a role session name of Mary_Major (arn:aws:sts::123456789012:assumed-role/CodeCommitReview/Mary_Major) unless you include a wildcard (*Mary_Major).

  • Fully qualified ARN: This option allows you to specify the fully qualified Amazon Resource Name (ARN) of the IAM user or role.

For more information about IAM ARNs, wildcards, and formats, see IAM Identifiers in the IAM User Guide.

Request Lenses

updatePullRequestApprovalRuleContent_existingRuleContentSha256 :: Lens' UpdatePullRequestApprovalRuleContent (Maybe Text) Source #

The SHA-256 hash signature for the content of the approval rule. You can retrieve this information by using GetPullRequest.

updatePullRequestApprovalRuleContent_newRuleContent :: Lens' UpdatePullRequestApprovalRuleContent Text Source #

The updated content for the approval rule.

When you update the content of the approval rule, you can specify approvers in an approval pool in one of two ways:

  • CodeCommitApprovers: This option only requires an AWS account and a resource. It can be used for both IAM users and federated access users whose name matches the provided resource name. This is a very powerful option that offers a great deal of flexibility. For example, if you specify the AWS account 123456789012 and Mary_Major, all of the following are counted as approvals coming from that user:

    • An IAM user in the account (arn:aws:iam::123456789012:user/Mary_Major)
    • A federated user identified in IAM as Mary_Major (arn:aws:sts::123456789012:federated-user/Mary_Major)

    This option does not recognize an active session of someone assuming the role of CodeCommitReview with a role session name of Mary_Major (arn:aws:sts::123456789012:assumed-role/CodeCommitReview/Mary_Major) unless you include a wildcard (*Mary_Major).

  • Fully qualified ARN: This option allows you to specify the fully qualified Amazon Resource Name (ARN) of the IAM user or role.

For more information about IAM ARNs, wildcards, and formats, see IAM Identifiers in the IAM User Guide.

Destructuring the Response

data UpdatePullRequestApprovalRuleContentResponse Source #

Constructors

UpdatePullRequestApprovalRuleContentResponse' 

Fields

Instances

Instances details
Eq UpdatePullRequestApprovalRuleContentResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestApprovalRuleContent

Read UpdatePullRequestApprovalRuleContentResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestApprovalRuleContent

Show UpdatePullRequestApprovalRuleContentResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestApprovalRuleContent

Generic UpdatePullRequestApprovalRuleContentResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestApprovalRuleContent

NFData UpdatePullRequestApprovalRuleContentResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestApprovalRuleContent

type Rep UpdatePullRequestApprovalRuleContentResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestApprovalRuleContent

type Rep UpdatePullRequestApprovalRuleContentResponse = D1 ('MetaData "UpdatePullRequestApprovalRuleContentResponse" "Amazonka.CodeCommit.UpdatePullRequestApprovalRuleContent" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "UpdatePullRequestApprovalRuleContentResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "approvalRule") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ApprovalRule)))

Response Lenses