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 |
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
- data DeleteLaunchTemplateVersions = DeleteLaunchTemplateVersions' {}
- newDeleteLaunchTemplateVersions :: DeleteLaunchTemplateVersions
- deleteLaunchTemplateVersions_dryRun :: Lens' DeleteLaunchTemplateVersions (Maybe Bool)
- deleteLaunchTemplateVersions_launchTemplateId :: Lens' DeleteLaunchTemplateVersions (Maybe Text)
- deleteLaunchTemplateVersions_launchTemplateName :: Lens' DeleteLaunchTemplateVersions (Maybe Text)
- deleteLaunchTemplateVersions_versions :: Lens' DeleteLaunchTemplateVersions [Text]
- data DeleteLaunchTemplateVersionsResponse = DeleteLaunchTemplateVersionsResponse' {}
- newDeleteLaunchTemplateVersionsResponse :: Int -> DeleteLaunchTemplateVersionsResponse
- deleteLaunchTemplateVersionsResponse_successfullyDeletedLaunchTemplateVersions :: Lens' DeleteLaunchTemplateVersionsResponse (Maybe [DeleteLaunchTemplateVersionsResponseSuccessItem])
- deleteLaunchTemplateVersionsResponse_unsuccessfullyDeletedLaunchTemplateVersions :: Lens' DeleteLaunchTemplateVersionsResponse (Maybe [DeleteLaunchTemplateVersionsResponseErrorItem])
- deleteLaunchTemplateVersionsResponse_httpStatus :: Lens' DeleteLaunchTemplateVersionsResponse Int
Creating a Request
data DeleteLaunchTemplateVersions Source #
See: newDeleteLaunchTemplateVersions
smart constructor.
DeleteLaunchTemplateVersions' | |
|
Instances
newDeleteLaunchTemplateVersions :: DeleteLaunchTemplateVersions Source #
Create a value of DeleteLaunchTemplateVersions
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:dryRun:DeleteLaunchTemplateVersions'
, deleteLaunchTemplateVersions_dryRun
- 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
.
DeleteLaunchTemplateVersions
, deleteLaunchTemplateVersions_launchTemplateId
- The ID of the launch template.
You must specify either the LaunchTemplateId
or the
LaunchTemplateName
, but not both.
DeleteLaunchTemplateVersions
, deleteLaunchTemplateVersions_launchTemplateName
- The name of the launch template.
You must specify either the LaunchTemplateName
or the
LaunchTemplateId
, but not both.
$sel:versions:DeleteLaunchTemplateVersions'
, deleteLaunchTemplateVersions_versions
- The version numbers of one or more launch template versions to delete.
Request Lenses
deleteLaunchTemplateVersions_dryRun :: 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
.
deleteLaunchTemplateVersions_launchTemplateId :: Lens' DeleteLaunchTemplateVersions (Maybe Text) Source #
The ID of the launch template.
You must specify either the LaunchTemplateId
or the
LaunchTemplateName
, but not both.
deleteLaunchTemplateVersions_launchTemplateName :: Lens' DeleteLaunchTemplateVersions (Maybe Text) Source #
The name of the launch template.
You must specify either the LaunchTemplateName
or the
LaunchTemplateId
, but not both.
deleteLaunchTemplateVersions_versions :: Lens' DeleteLaunchTemplateVersions [Text] Source #
The version numbers of one or more launch template versions to delete.
Destructuring the Response
data DeleteLaunchTemplateVersionsResponse Source #
See: newDeleteLaunchTemplateVersionsResponse
smart constructor.
DeleteLaunchTemplateVersionsResponse' | |
|
Instances
newDeleteLaunchTemplateVersionsResponse Source #
Create a value of DeleteLaunchTemplateVersionsResponse
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:successfullyDeletedLaunchTemplateVersions:DeleteLaunchTemplateVersionsResponse'
, deleteLaunchTemplateVersionsResponse_successfullyDeletedLaunchTemplateVersions
- Information about the launch template versions that were successfully
deleted.
$sel:unsuccessfullyDeletedLaunchTemplateVersions:DeleteLaunchTemplateVersionsResponse'
, deleteLaunchTemplateVersionsResponse_unsuccessfullyDeletedLaunchTemplateVersions
- Information about the launch template versions that could not be
deleted.
$sel:httpStatus:DeleteLaunchTemplateVersionsResponse'
, deleteLaunchTemplateVersionsResponse_httpStatus
- The response's http status code.
Response Lenses
deleteLaunchTemplateVersionsResponse_successfullyDeletedLaunchTemplateVersions :: Lens' DeleteLaunchTemplateVersionsResponse (Maybe [DeleteLaunchTemplateVersionsResponseSuccessItem]) Source #
Information about the launch template versions that were successfully deleted.
deleteLaunchTemplateVersionsResponse_unsuccessfullyDeletedLaunchTemplateVersions :: Lens' DeleteLaunchTemplateVersionsResponse (Maybe [DeleteLaunchTemplateVersionsResponseErrorItem]) Source #
Information about the launch template versions that could not be deleted.
deleteLaunchTemplateVersionsResponse_httpStatus :: Lens' DeleteLaunchTemplateVersionsResponse Int Source #
The response's http status code.