Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data UpdateApprovalRuleTemplateContent = UpdateApprovalRuleTemplateContent' {}
- newUpdateApprovalRuleTemplateContent :: Text -> Text -> UpdateApprovalRuleTemplateContent
- updateApprovalRuleTemplateContent_existingRuleContentSha256 :: Lens' UpdateApprovalRuleTemplateContent (Maybe Text)
- updateApprovalRuleTemplateContent_approvalRuleTemplateName :: Lens' UpdateApprovalRuleTemplateContent Text
- updateApprovalRuleTemplateContent_newRuleContent :: Lens' UpdateApprovalRuleTemplateContent Text
- data UpdateApprovalRuleTemplateContentResponse = UpdateApprovalRuleTemplateContentResponse' {}
- newUpdateApprovalRuleTemplateContentResponse :: Int -> ApprovalRuleTemplate -> UpdateApprovalRuleTemplateContentResponse
- updateApprovalRuleTemplateContentResponse_httpStatus :: Lens' UpdateApprovalRuleTemplateContentResponse Int
- updateApprovalRuleTemplateContentResponse_approvalRuleTemplate :: Lens' UpdateApprovalRuleTemplateContentResponse ApprovalRuleTemplate
Creating a Request
data UpdateApprovalRuleTemplateContent Source #
See: newUpdateApprovalRuleTemplateContent
smart constructor.
Constructors
UpdateApprovalRuleTemplateContent' | |
Fields
|
Instances
newUpdateApprovalRuleTemplateContent Source #
Arguments
:: Text | |
-> Text | |
-> UpdateApprovalRuleTemplateContent |
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.
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 #
See: newUpdateApprovalRuleTemplateContentResponse
smart constructor.
Constructors
UpdateApprovalRuleTemplateContentResponse' | |
Fields
|
Instances
newUpdateApprovalRuleTemplateContentResponse Source #
Arguments
:: Int | |
-> ApprovalRuleTemplate |
|
-> UpdateApprovalRuleTemplateContentResponse |
Create a value of UpdateApprovalRuleTemplateContentResponse
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:httpStatus:UpdateApprovalRuleTemplateContentResponse'
, updateApprovalRuleTemplateContentResponse_httpStatus
- The response's http status code.
$sel:approvalRuleTemplate:UpdateApprovalRuleTemplateContentResponse'
, updateApprovalRuleTemplateContentResponse_approvalRuleTemplate
- Undocumented member.
Response Lenses
updateApprovalRuleTemplateContentResponse_httpStatus :: Lens' UpdateApprovalRuleTemplateContentResponse Int Source #
The response's http status code.