Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Deletes a launch template. Deleting a launch template deletes all of its versions.
- deleteLaunchTemplate :: DeleteLaunchTemplate
- data DeleteLaunchTemplate
- dltLaunchTemplateName :: Lens' DeleteLaunchTemplate (Maybe Text)
- dltLaunchTemplateId :: Lens' DeleteLaunchTemplate (Maybe Text)
- dltDryRun :: Lens' DeleteLaunchTemplate (Maybe Bool)
- deleteLaunchTemplateResponse :: Int -> DeleteLaunchTemplateResponse
- data DeleteLaunchTemplateResponse
- dltrsLaunchTemplate :: Lens' DeleteLaunchTemplateResponse (Maybe LaunchTemplate)
- dltrsResponseStatus :: Lens' DeleteLaunchTemplateResponse Int
Creating a Request
deleteLaunchTemplate :: DeleteLaunchTemplate Source #
Creates a value of DeleteLaunchTemplate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dltLaunchTemplateName
- The name of the launch template. You must specify either the launch template ID or launch template name in the request.dltLaunchTemplateId
- The ID of the launch template. You must specify either the launch template ID or launch template name in the request.dltDryRun
- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.
data DeleteLaunchTemplate Source #
See: deleteLaunchTemplate
smart constructor.
Request Lenses
dltLaunchTemplateName :: Lens' DeleteLaunchTemplate (Maybe Text) Source #
The name of the launch template. You must specify either the launch template ID or launch template name in the request.
dltLaunchTemplateId :: Lens' DeleteLaunchTemplate (Maybe Text) Source #
The ID of the launch template. You must specify either the launch template ID or launch template name in the request.
dltDryRun :: Lens' DeleteLaunchTemplate (Maybe Bool) Source #
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
Destructuring the Response
deleteLaunchTemplateResponse Source #
Creates a value of DeleteLaunchTemplateResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dltrsLaunchTemplate
- Information about the launch template.dltrsResponseStatus
- -- | The response status code.
data DeleteLaunchTemplateResponse Source #
See: deleteLaunchTemplateResponse
smart constructor.
Response Lenses
dltrsLaunchTemplate :: Lens' DeleteLaunchTemplateResponse (Maybe LaunchTemplate) Source #
Information about the launch template.
dltrsResponseStatus :: Lens' DeleteLaunchTemplateResponse Int Source #
- - | The response status code.