amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.DeleteLaunchTemplateVersions

Description

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

Creating a Request

data DeleteLaunchTemplateVersions Source #

See: newDeleteLaunchTemplateVersions smart constructor.

Constructors

DeleteLaunchTemplateVersions' 

Fields

  • dryRun :: Maybe Bool

    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.

  • launchTemplateId :: Maybe Text

    The ID of the launch template.

    You must specify either the LaunchTemplateId or the LaunchTemplateName, but not both.

  • launchTemplateName :: Maybe Text

    The name of the launch template.

    You must specify either the LaunchTemplateName or the LaunchTemplateId, but not both.

  • versions :: [Text]

    The version numbers of one or more launch template versions to delete.

Instances

Instances details
ToHeaders DeleteLaunchTemplateVersions Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplateVersions

ToPath DeleteLaunchTemplateVersions Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplateVersions

ToQuery DeleteLaunchTemplateVersions Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplateVersions

AWSRequest DeleteLaunchTemplateVersions Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplateVersions

Generic DeleteLaunchTemplateVersions Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplateVersions

Associated Types

type Rep DeleteLaunchTemplateVersions :: Type -> Type #

Read DeleteLaunchTemplateVersions Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplateVersions

Show DeleteLaunchTemplateVersions Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplateVersions

NFData DeleteLaunchTemplateVersions Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplateVersions

Eq DeleteLaunchTemplateVersions Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplateVersions

Hashable DeleteLaunchTemplateVersions Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplateVersions

type AWSResponse DeleteLaunchTemplateVersions Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplateVersions

type Rep DeleteLaunchTemplateVersions Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplateVersions

type Rep DeleteLaunchTemplateVersions = D1 ('MetaData "DeleteLaunchTemplateVersions" "Amazonka.EC2.DeleteLaunchTemplateVersions" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DeleteLaunchTemplateVersions'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "launchTemplateId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "launchTemplateName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "versions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text]))))

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 #

Constructors

DeleteLaunchTemplateVersionsResponse' 

Fields

Instances

Instances details
Generic DeleteLaunchTemplateVersionsResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplateVersions

Read DeleteLaunchTemplateVersionsResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplateVersions

Show DeleteLaunchTemplateVersionsResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplateVersions

NFData DeleteLaunchTemplateVersionsResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplateVersions

Eq DeleteLaunchTemplateVersionsResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplateVersions

type Rep DeleteLaunchTemplateVersionsResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplateVersions

type Rep DeleteLaunchTemplateVersionsResponse = D1 ('MetaData "DeleteLaunchTemplateVersionsResponse" "Amazonka.EC2.DeleteLaunchTemplateVersions" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DeleteLaunchTemplateVersionsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "successfullyDeletedLaunchTemplateVersions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [DeleteLaunchTemplateVersionsResponseSuccessItem])) :*: (S1 ('MetaSel ('Just "unsuccessfullyDeletedLaunchTemplateVersions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [DeleteLaunchTemplateVersionsResponseErrorItem])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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