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 one or more versions of a launch template. You cannot delete the default version of a launch template; you must first assign a different version as the default. If the default version is the only version for the launch template, you must delete the entire launch template using DeleteLaunchTemplate
.
Synopsis
- deleteLaunchTemplateVersions :: DeleteLaunchTemplateVersions
- data DeleteLaunchTemplateVersions
- dltvLaunchTemplateName :: Lens' DeleteLaunchTemplateVersions (Maybe Text)
- dltvLaunchTemplateId :: Lens' DeleteLaunchTemplateVersions (Maybe Text)
- dltvDryRun :: Lens' DeleteLaunchTemplateVersions (Maybe Bool)
- dltvVersions :: Lens' DeleteLaunchTemplateVersions [Text]
- deleteLaunchTemplateVersionsResponse :: Int -> DeleteLaunchTemplateVersionsResponse
- data DeleteLaunchTemplateVersionsResponse
- dltvsrsSuccessfullyDeletedLaunchTemplateVersions :: Lens' DeleteLaunchTemplateVersionsResponse [DeleteLaunchTemplateVersionsResponseSuccessItem]
- dltvsrsUnsuccessfullyDeletedLaunchTemplateVersions :: Lens' DeleteLaunchTemplateVersionsResponse [DeleteLaunchTemplateVersionsResponseErrorItem]
- dltvsrsResponseStatus :: Lens' DeleteLaunchTemplateVersionsResponse Int
Creating a Request
deleteLaunchTemplateVersions :: DeleteLaunchTemplateVersions Source #
Creates a value of DeleteLaunchTemplateVersions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dltvLaunchTemplateName
- The name of the launch template. You must specify either the launch template ID or launch template name in the request.dltvLaunchTemplateId
- The ID of the launch template. You must specify either the launch template ID or launch template name in the request.dltvDryRun
- 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
.dltvVersions
- The version numbers of one or more launch template versions to delete.
data DeleteLaunchTemplateVersions Source #
See: deleteLaunchTemplateVersions
smart constructor.
Instances
Request Lenses
dltvLaunchTemplateName :: Lens' DeleteLaunchTemplateVersions (Maybe Text) Source #
The name of the launch template. You must specify either the launch template ID or launch template name in the request.
dltvLaunchTemplateId :: Lens' DeleteLaunchTemplateVersions (Maybe Text) Source #
The ID of the launch template. You must specify either the launch template ID or launch template name in the request.
dltvDryRun :: Lens' DeleteLaunchTemplateVersions (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
.
dltvVersions :: Lens' DeleteLaunchTemplateVersions [Text] Source #
The version numbers of one or more launch template versions to delete.
Destructuring the Response
deleteLaunchTemplateVersionsResponse Source #
Creates a value of DeleteLaunchTemplateVersionsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dltvsrsSuccessfullyDeletedLaunchTemplateVersions
- Information about the launch template versions that were successfully deleted.dltvsrsUnsuccessfullyDeletedLaunchTemplateVersions
- Information about the launch template versions that could not be deleted.dltvsrsResponseStatus
- -- | The response status code.
data DeleteLaunchTemplateVersionsResponse Source #
See: deleteLaunchTemplateVersionsResponse
smart constructor.
Instances
Response Lenses
dltvsrsSuccessfullyDeletedLaunchTemplateVersions :: Lens' DeleteLaunchTemplateVersionsResponse [DeleteLaunchTemplateVersionsResponseSuccessItem] Source #
Information about the launch template versions that were successfully deleted.
dltvsrsUnsuccessfullyDeletedLaunchTemplateVersions :: Lens' DeleteLaunchTemplateVersionsResponse [DeleteLaunchTemplateVersionsResponseErrorItem] Source #
Information about the launch template versions that could not be deleted.
dltvsrsResponseStatus :: Lens' DeleteLaunchTemplateVersionsResponse Int Source #
- - | The response status code.