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

Description

Modifies a launch template. You can specify which version of the launch template to set as the default version. When launching an instance, the default version applies when a launch template version is not specified.

Synopsis

Creating a Request

data ModifyLaunchTemplate Source #

See: newModifyLaunchTemplate smart constructor.

Constructors

ModifyLaunchTemplate' 

Fields

  • clientToken :: Maybe Text

    Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.

    Constraint: Maximum 128 ASCII characters.

  • defaultVersion :: Maybe Text

    The version number of the launch template to set as the default version.

  • 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 ModifyLaunchTemplate Source # 
Instance details

Defined in Amazonka.EC2.ModifyLaunchTemplate

ToPath ModifyLaunchTemplate Source # 
Instance details

Defined in Amazonka.EC2.ModifyLaunchTemplate

ToQuery ModifyLaunchTemplate Source # 
Instance details

Defined in Amazonka.EC2.ModifyLaunchTemplate

AWSRequest ModifyLaunchTemplate Source # 
Instance details

Defined in Amazonka.EC2.ModifyLaunchTemplate

Associated Types

type AWSResponse ModifyLaunchTemplate #

Generic ModifyLaunchTemplate Source # 
Instance details

Defined in Amazonka.EC2.ModifyLaunchTemplate

Associated Types

type Rep ModifyLaunchTemplate :: Type -> Type #

Read ModifyLaunchTemplate Source # 
Instance details

Defined in Amazonka.EC2.ModifyLaunchTemplate

Show ModifyLaunchTemplate Source # 
Instance details

Defined in Amazonka.EC2.ModifyLaunchTemplate

NFData ModifyLaunchTemplate Source # 
Instance details

Defined in Amazonka.EC2.ModifyLaunchTemplate

Methods

rnf :: ModifyLaunchTemplate -> () #

Eq ModifyLaunchTemplate Source # 
Instance details

Defined in Amazonka.EC2.ModifyLaunchTemplate

Hashable ModifyLaunchTemplate Source # 
Instance details

Defined in Amazonka.EC2.ModifyLaunchTemplate

type AWSResponse ModifyLaunchTemplate Source # 
Instance details

Defined in Amazonka.EC2.ModifyLaunchTemplate

type Rep ModifyLaunchTemplate Source # 
Instance details

Defined in Amazonka.EC2.ModifyLaunchTemplate

type Rep ModifyLaunchTemplate = D1 ('MetaData "ModifyLaunchTemplate" "Amazonka.EC2.ModifyLaunchTemplate" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ModifyLaunchTemplate'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "defaultVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (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))))))

newModifyLaunchTemplate :: ModifyLaunchTemplate Source #

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

ModifyLaunchTemplate, modifyLaunchTemplate_clientToken - Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.

Constraint: Maximum 128 ASCII characters.

ModifyLaunchTemplate, modifyLaunchTemplate_defaultVersion - The version number of the launch template to set as the default version.

$sel:dryRun:ModifyLaunchTemplate', modifyLaunchTemplate_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.

ModifyLaunchTemplate, modifyLaunchTemplate_launchTemplateId - The ID of the launch template.

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

ModifyLaunchTemplate, modifyLaunchTemplate_launchTemplateName - The name of the launch template.

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

Request Lenses

modifyLaunchTemplate_clientToken :: Lens' ModifyLaunchTemplate (Maybe Text) Source #

Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.

Constraint: Maximum 128 ASCII characters.

modifyLaunchTemplate_defaultVersion :: Lens' ModifyLaunchTemplate (Maybe Text) Source #

The version number of the launch template to set as the default version.

modifyLaunchTemplate_dryRun :: Lens' ModifyLaunchTemplate (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.

modifyLaunchTemplate_launchTemplateId :: Lens' ModifyLaunchTemplate (Maybe Text) Source #

The ID of the launch template.

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

modifyLaunchTemplate_launchTemplateName :: Lens' ModifyLaunchTemplate (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 ModifyLaunchTemplateResponse Source #

See: newModifyLaunchTemplateResponse smart constructor.

Constructors

ModifyLaunchTemplateResponse' 

Fields

Instances

Instances details
Generic ModifyLaunchTemplateResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyLaunchTemplate

Associated Types

type Rep ModifyLaunchTemplateResponse :: Type -> Type #

Read ModifyLaunchTemplateResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyLaunchTemplate

Show ModifyLaunchTemplateResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyLaunchTemplate

NFData ModifyLaunchTemplateResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyLaunchTemplate

Eq ModifyLaunchTemplateResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyLaunchTemplate

type Rep ModifyLaunchTemplateResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyLaunchTemplate

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

newModifyLaunchTemplateResponse Source #

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

ModifyLaunchTemplateResponse, modifyLaunchTemplateResponse_launchTemplate - Information about the launch template.

$sel:httpStatus:ModifyLaunchTemplateResponse', modifyLaunchTemplateResponse_httpStatus - The response's http status code.

Response Lenses