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 template.
Synopsis
- data DeleteTemplate = DeleteTemplate' {}
- newDeleteTemplate :: Text -> Text -> DeleteTemplate
- deleteTemplate_versionNumber :: Lens' DeleteTemplate (Maybe Natural)
- deleteTemplate_awsAccountId :: Lens' DeleteTemplate Text
- deleteTemplate_templateId :: Lens' DeleteTemplate Text
- data DeleteTemplateResponse = DeleteTemplateResponse' {}
- newDeleteTemplateResponse :: Int -> DeleteTemplateResponse
- deleteTemplateResponse_requestId :: Lens' DeleteTemplateResponse (Maybe Text)
- deleteTemplateResponse_arn :: Lens' DeleteTemplateResponse (Maybe Text)
- deleteTemplateResponse_templateId :: Lens' DeleteTemplateResponse (Maybe Text)
- deleteTemplateResponse_status :: Lens' DeleteTemplateResponse Int
Creating a Request
data DeleteTemplate Source #
See: newDeleteTemplate
smart constructor.
DeleteTemplate' | |
|
Instances
Create a value of DeleteTemplate
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:versionNumber:DeleteTemplate'
, deleteTemplate_versionNumber
- Specifies the version of the template that you want to delete. If you
don't provide a version number, DeleteTemplate
deletes all versions
of the template.
$sel:awsAccountId:DeleteTemplate'
, deleteTemplate_awsAccountId
- The ID of the Amazon Web Services account that contains the template
that you're deleting.
$sel:templateId:DeleteTemplate'
, deleteTemplate_templateId
- An ID for the template you want to delete.
Request Lenses
deleteTemplate_versionNumber :: Lens' DeleteTemplate (Maybe Natural) Source #
Specifies the version of the template that you want to delete. If you
don't provide a version number, DeleteTemplate
deletes all versions
of the template.
deleteTemplate_awsAccountId :: Lens' DeleteTemplate Text Source #
The ID of the Amazon Web Services account that contains the template that you're deleting.
deleteTemplate_templateId :: Lens' DeleteTemplate Text Source #
An ID for the template you want to delete.
Destructuring the Response
data DeleteTemplateResponse Source #
See: newDeleteTemplateResponse
smart constructor.
Instances
newDeleteTemplateResponse Source #
Create a value of DeleteTemplateResponse
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:requestId:DeleteTemplateResponse'
, deleteTemplateResponse_requestId
- The Amazon Web Services request ID for this operation.
$sel:arn:DeleteTemplateResponse'
, deleteTemplateResponse_arn
- The Amazon Resource Name (ARN) of the resource.
$sel:templateId:DeleteTemplate'
, deleteTemplateResponse_templateId
- An ID for the template.
$sel:status:DeleteTemplateResponse'
, deleteTemplateResponse_status
- The HTTP status of the request.
Response Lenses
deleteTemplateResponse_requestId :: Lens' DeleteTemplateResponse (Maybe Text) Source #
The Amazon Web Services request ID for this operation.
deleteTemplateResponse_arn :: Lens' DeleteTemplateResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the resource.
deleteTemplateResponse_templateId :: Lens' DeleteTemplateResponse (Maybe Text) Source #
An ID for the template.
deleteTemplateResponse_status :: Lens' DeleteTemplateResponse Int Source #
The HTTP status of the request.