Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Deletes a specified approval rule template. Deleting a template does not remove approval rules on pull requests already created with the template.
Synopsis
- data DeleteApprovalRuleTemplate = DeleteApprovalRuleTemplate' {}
- newDeleteApprovalRuleTemplate :: Text -> DeleteApprovalRuleTemplate
- deleteApprovalRuleTemplate_approvalRuleTemplateName :: Lens' DeleteApprovalRuleTemplate Text
- data DeleteApprovalRuleTemplateResponse = DeleteApprovalRuleTemplateResponse' {}
- newDeleteApprovalRuleTemplateResponse :: Int -> Text -> DeleteApprovalRuleTemplateResponse
- deleteApprovalRuleTemplateResponse_httpStatus :: Lens' DeleteApprovalRuleTemplateResponse Int
- deleteApprovalRuleTemplateResponse_approvalRuleTemplateId :: Lens' DeleteApprovalRuleTemplateResponse Text
Creating a Request
data DeleteApprovalRuleTemplate Source #
See: newDeleteApprovalRuleTemplate
smart constructor.
DeleteApprovalRuleTemplate' | |
|
Instances
newDeleteApprovalRuleTemplate Source #
Create a value of DeleteApprovalRuleTemplate
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:approvalRuleTemplateName:DeleteApprovalRuleTemplate'
, deleteApprovalRuleTemplate_approvalRuleTemplateName
- The name of the approval rule template to delete.
Request Lenses
deleteApprovalRuleTemplate_approvalRuleTemplateName :: Lens' DeleteApprovalRuleTemplate Text Source #
The name of the approval rule template to delete.
Destructuring the Response
data DeleteApprovalRuleTemplateResponse Source #
See: newDeleteApprovalRuleTemplateResponse
smart constructor.
DeleteApprovalRuleTemplateResponse' | |
|
Instances
Eq DeleteApprovalRuleTemplateResponse Source # | |
Read DeleteApprovalRuleTemplateResponse Source # | |
Show DeleteApprovalRuleTemplateResponse Source # | |
Generic DeleteApprovalRuleTemplateResponse Source # | |
NFData DeleteApprovalRuleTemplateResponse Source # | |
Defined in Amazonka.CodeCommit.DeleteApprovalRuleTemplate rnf :: DeleteApprovalRuleTemplateResponse -> () # | |
type Rep DeleteApprovalRuleTemplateResponse Source # | |
Defined in Amazonka.CodeCommit.DeleteApprovalRuleTemplate type Rep DeleteApprovalRuleTemplateResponse = D1 ('MetaData "DeleteApprovalRuleTemplateResponse" "Amazonka.CodeCommit.DeleteApprovalRuleTemplate" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "DeleteApprovalRuleTemplateResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "approvalRuleTemplateId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) |
newDeleteApprovalRuleTemplateResponse Source #
:: Int | |
-> Text |
|
-> DeleteApprovalRuleTemplateResponse |
Create a value of DeleteApprovalRuleTemplateResponse
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:DeleteApprovalRuleTemplateResponse'
, deleteApprovalRuleTemplateResponse_httpStatus
- The response's http status code.
$sel:approvalRuleTemplateId:DeleteApprovalRuleTemplateResponse'
, deleteApprovalRuleTemplateResponse_approvalRuleTemplateId
- The system-generated ID of the deleted approval rule template. If the
template has been previously deleted, the only response is a 200 OK.
Response Lenses
deleteApprovalRuleTemplateResponse_httpStatus :: Lens' DeleteApprovalRuleTemplateResponse Int Source #
The response's http status code.
deleteApprovalRuleTemplateResponse_approvalRuleTemplateId :: Lens' DeleteApprovalRuleTemplateResponse Text Source #
The system-generated ID of the deleted approval rule template. If the template has been previously deleted, the only response is a 200 OK.