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.DeleteLaunchTemplate

Description

Deletes a launch template. Deleting a launch template deletes all of its versions.

Synopsis

Creating a Request

data DeleteLaunchTemplate Source #

See: newDeleteLaunchTemplate smart constructor.

Constructors

DeleteLaunchTemplate' 

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.

Instances

Instances details
ToHeaders DeleteLaunchTemplate Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplate

ToPath DeleteLaunchTemplate Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplate

ToQuery DeleteLaunchTemplate Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplate

AWSRequest DeleteLaunchTemplate Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplate

Associated Types

type AWSResponse DeleteLaunchTemplate #

Generic DeleteLaunchTemplate Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplate

Associated Types

type Rep DeleteLaunchTemplate :: Type -> Type #

Read DeleteLaunchTemplate Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplate

Show DeleteLaunchTemplate Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplate

NFData DeleteLaunchTemplate Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplate

Methods

rnf :: DeleteLaunchTemplate -> () #

Eq DeleteLaunchTemplate Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplate

Hashable DeleteLaunchTemplate Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplate

type AWSResponse DeleteLaunchTemplate Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplate

type Rep DeleteLaunchTemplate Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplate

type Rep DeleteLaunchTemplate = D1 ('MetaData "DeleteLaunchTemplate" "Amazonka.EC2.DeleteLaunchTemplate" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DeleteLaunchTemplate'" '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)))))

newDeleteLaunchTemplate :: DeleteLaunchTemplate Source #

Create a value of DeleteLaunchTemplate 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:DeleteLaunchTemplate', deleteLaunchTemplate_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.

DeleteLaunchTemplate, deleteLaunchTemplate_launchTemplateId - The ID of the launch template.

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

DeleteLaunchTemplate, deleteLaunchTemplate_launchTemplateName - The name of the launch template.

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

Request Lenses

deleteLaunchTemplate_dryRun :: 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.

deleteLaunchTemplate_launchTemplateId :: Lens' DeleteLaunchTemplate (Maybe Text) Source #

The ID of the launch template.

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

deleteLaunchTemplate_launchTemplateName :: Lens' DeleteLaunchTemplate (Maybe Text) Source #

The name of the launch template.

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

Destructuring the Response

data DeleteLaunchTemplateResponse Source #

See: newDeleteLaunchTemplateResponse smart constructor.

Constructors

DeleteLaunchTemplateResponse' 

Fields

Instances

Instances details
Generic DeleteLaunchTemplateResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplate

Associated Types

type Rep DeleteLaunchTemplateResponse :: Type -> Type #

Read DeleteLaunchTemplateResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplate

Show DeleteLaunchTemplateResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplate

NFData DeleteLaunchTemplateResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplate

Eq DeleteLaunchTemplateResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplate

type Rep DeleteLaunchTemplateResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteLaunchTemplate

type Rep DeleteLaunchTemplateResponse = D1 ('MetaData "DeleteLaunchTemplateResponse" "Amazonka.EC2.DeleteLaunchTemplate" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DeleteLaunchTemplateResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "launchTemplate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LaunchTemplate)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDeleteLaunchTemplateResponse Source #

Create a value of DeleteLaunchTemplateResponse 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:

DeleteLaunchTemplateResponse, deleteLaunchTemplateResponse_launchTemplate - Information about the launch template.

$sel:httpStatus:DeleteLaunchTemplateResponse', deleteLaunchTemplateResponse_httpStatus - The response's http status code.

Response Lenses