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.UpdateApprovalRuleTemplateContent

Description

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.

Synopsis

Creating a Request

data UpdateApprovalRuleTemplateContent Source #

See: newUpdateApprovalRuleTemplateContent smart constructor.

Constructors

UpdateApprovalRuleTemplateContent' 

Fields

  • existingRuleContentSha256 :: Maybe Text

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

  • approvalRuleTemplateName :: Text

    The name of the approval rule template where you want to update the content of the rule.

  • newRuleContent' :: Text

    The content that replaces the existing content of the rule. Content statements must be complete. You cannot provide only the changes.

Instances

Instances details
Eq UpdateApprovalRuleTemplateContent Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateApprovalRuleTemplateContent

Read UpdateApprovalRuleTemplateContent Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateApprovalRuleTemplateContent

Show UpdateApprovalRuleTemplateContent Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateApprovalRuleTemplateContent

Generic UpdateApprovalRuleTemplateContent Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateApprovalRuleTemplateContent

Associated Types

type Rep UpdateApprovalRuleTemplateContent :: Type -> Type #

NFData UpdateApprovalRuleTemplateContent Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateApprovalRuleTemplateContent

Hashable UpdateApprovalRuleTemplateContent Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateApprovalRuleTemplateContent

ToJSON UpdateApprovalRuleTemplateContent Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateApprovalRuleTemplateContent

AWSRequest UpdateApprovalRuleTemplateContent Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateApprovalRuleTemplateContent

ToHeaders UpdateApprovalRuleTemplateContent Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateApprovalRuleTemplateContent

ToPath UpdateApprovalRuleTemplateContent Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateApprovalRuleTemplateContent

ToQuery UpdateApprovalRuleTemplateContent Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateApprovalRuleTemplateContent

type Rep UpdateApprovalRuleTemplateContent Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateApprovalRuleTemplateContent

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

Defined in Amazonka.CodeCommit.UpdateApprovalRuleTemplateContent

newUpdateApprovalRuleTemplateContent Source #

Create a value of UpdateApprovalRuleTemplateContent 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:UpdateApprovalRuleTemplateContent', updateApprovalRuleTemplateContent_existingRuleContentSha256 - The SHA-256 hash signature for the content of the approval rule. You can retrieve this information by using GetPullRequest.

$sel:approvalRuleTemplateName:UpdateApprovalRuleTemplateContent', updateApprovalRuleTemplateContent_approvalRuleTemplateName - The name of the approval rule template where you want to update the content of the rule.

$sel:newRuleContent':UpdateApprovalRuleTemplateContent', updateApprovalRuleTemplateContent_newRuleContent - The content that replaces the existing content of the rule. Content statements must be complete. You cannot provide only the changes.

Request Lenses

updateApprovalRuleTemplateContent_existingRuleContentSha256 :: Lens' UpdateApprovalRuleTemplateContent (Maybe Text) Source #

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

updateApprovalRuleTemplateContent_approvalRuleTemplateName :: Lens' UpdateApprovalRuleTemplateContent Text Source #

The name of the approval rule template where you want to update the content of the rule.

updateApprovalRuleTemplateContent_newRuleContent :: Lens' UpdateApprovalRuleTemplateContent Text Source #

The content that replaces the existing content of the rule. Content statements must be complete. You cannot provide only the changes.

Destructuring the Response

data UpdateApprovalRuleTemplateContentResponse Source #

Instances

Instances details
Eq UpdateApprovalRuleTemplateContentResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateApprovalRuleTemplateContent

Read UpdateApprovalRuleTemplateContentResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateApprovalRuleTemplateContent

Show UpdateApprovalRuleTemplateContentResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateApprovalRuleTemplateContent

Generic UpdateApprovalRuleTemplateContentResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateApprovalRuleTemplateContent

NFData UpdateApprovalRuleTemplateContentResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateApprovalRuleTemplateContent

type Rep UpdateApprovalRuleTemplateContentResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateApprovalRuleTemplateContent

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

Response Lenses