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

Description

Creates a new version of a launch template. You can specify an existing version of launch template from which to base the new version.

Launch template versions are numbered in the order in which they are created. You cannot specify, change, or replace the numbering of launch template versions.

Launch templates are immutable; after you create a launch template, you can't modify it. Instead, you can create a new version of the launch template that includes any changes you require.

For more information, see Modify a launch template (manage launch template versions) in the Amazon Elastic Compute Cloud User Guide.

Synopsis

Creating a Request

data CreateLaunchTemplateVersion Source #

See: newCreateLaunchTemplateVersion smart constructor.

Constructors

CreateLaunchTemplateVersion' 

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.

  • 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 the LaunchTemplateName or the LaunchTemplateId, but not both.

  • sourceVersion :: Maybe Text

    The version number of the launch template version on which to base the new version. The new version inherits the same launch parameters as the source version, except for parameters that you specify in LaunchTemplateData. Snapshots applied to the block device mapping are ignored when creating a new version unless they are explicitly included.

  • versionDescription :: Maybe Text

    A description for the version of the launch template.

  • launchTemplateData :: Sensitive RequestLaunchTemplateData

    The information for the launch template.

Instances

Instances details
ToHeaders CreateLaunchTemplateVersion Source # 
Instance details

Defined in Amazonka.EC2.CreateLaunchTemplateVersion

ToPath CreateLaunchTemplateVersion Source # 
Instance details

Defined in Amazonka.EC2.CreateLaunchTemplateVersion

ToQuery CreateLaunchTemplateVersion Source # 
Instance details

Defined in Amazonka.EC2.CreateLaunchTemplateVersion

AWSRequest CreateLaunchTemplateVersion Source # 
Instance details

Defined in Amazonka.EC2.CreateLaunchTemplateVersion

Generic CreateLaunchTemplateVersion Source # 
Instance details

Defined in Amazonka.EC2.CreateLaunchTemplateVersion

Associated Types

type Rep CreateLaunchTemplateVersion :: Type -> Type #

Show CreateLaunchTemplateVersion Source # 
Instance details

Defined in Amazonka.EC2.CreateLaunchTemplateVersion

NFData CreateLaunchTemplateVersion Source # 
Instance details

Defined in Amazonka.EC2.CreateLaunchTemplateVersion

Eq CreateLaunchTemplateVersion Source # 
Instance details

Defined in Amazonka.EC2.CreateLaunchTemplateVersion

Hashable CreateLaunchTemplateVersion Source # 
Instance details

Defined in Amazonka.EC2.CreateLaunchTemplateVersion

type AWSResponse CreateLaunchTemplateVersion Source # 
Instance details

Defined in Amazonka.EC2.CreateLaunchTemplateVersion

type Rep CreateLaunchTemplateVersion Source # 
Instance details

Defined in Amazonka.EC2.CreateLaunchTemplateVersion

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

newCreateLaunchTemplateVersion Source #

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

CreateLaunchTemplateVersion, createLaunchTemplateVersion_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.

$sel:dryRun:CreateLaunchTemplateVersion', createLaunchTemplateVersion_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.

CreateLaunchTemplateVersion, createLaunchTemplateVersion_launchTemplateId - The ID of the launch template.

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

CreateLaunchTemplateVersion, createLaunchTemplateVersion_launchTemplateName - The name of the launch template.

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

$sel:sourceVersion:CreateLaunchTemplateVersion', createLaunchTemplateVersion_sourceVersion - The version number of the launch template version on which to base the new version. The new version inherits the same launch parameters as the source version, except for parameters that you specify in LaunchTemplateData. Snapshots applied to the block device mapping are ignored when creating a new version unless they are explicitly included.

CreateLaunchTemplateVersion, createLaunchTemplateVersion_versionDescription - A description for the version of the launch template.

CreateLaunchTemplateVersion, createLaunchTemplateVersion_launchTemplateData - The information for the launch template.

Request Lenses

createLaunchTemplateVersion_clientToken :: Lens' CreateLaunchTemplateVersion (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.

createLaunchTemplateVersion_dryRun :: Lens' CreateLaunchTemplateVersion (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.

createLaunchTemplateVersion_launchTemplateId :: Lens' CreateLaunchTemplateVersion (Maybe Text) Source #

The ID of the launch template.

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

createLaunchTemplateVersion_launchTemplateName :: Lens' CreateLaunchTemplateVersion (Maybe Text) Source #

The name of the launch template.

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

createLaunchTemplateVersion_sourceVersion :: Lens' CreateLaunchTemplateVersion (Maybe Text) Source #

The version number of the launch template version on which to base the new version. The new version inherits the same launch parameters as the source version, except for parameters that you specify in LaunchTemplateData. Snapshots applied to the block device mapping are ignored when creating a new version unless they are explicitly included.

createLaunchTemplateVersion_versionDescription :: Lens' CreateLaunchTemplateVersion (Maybe Text) Source #

A description for the version of the launch template.

Destructuring the Response

data CreateLaunchTemplateVersionResponse Source #

Constructors

CreateLaunchTemplateVersionResponse' 

Fields

Instances

Instances details
Generic CreateLaunchTemplateVersionResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateLaunchTemplateVersion

Read CreateLaunchTemplateVersionResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateLaunchTemplateVersion

Show CreateLaunchTemplateVersionResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateLaunchTemplateVersion

NFData CreateLaunchTemplateVersionResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateLaunchTemplateVersion

Eq CreateLaunchTemplateVersionResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateLaunchTemplateVersion

type Rep CreateLaunchTemplateVersionResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateLaunchTemplateVersion

type Rep CreateLaunchTemplateVersionResponse = D1 ('MetaData "CreateLaunchTemplateVersionResponse" "Amazonka.EC2.CreateLaunchTemplateVersion" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "CreateLaunchTemplateVersionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "launchTemplateVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LaunchTemplateVersion)) :*: (S1 ('MetaSel ('Just "warning") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ValidationWarning)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newCreateLaunchTemplateVersionResponse Source #

Create a value of CreateLaunchTemplateVersionResponse 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:launchTemplateVersion:CreateLaunchTemplateVersionResponse', createLaunchTemplateVersionResponse_launchTemplateVersion - Information about the launch template version.

$sel:warning:CreateLaunchTemplateVersionResponse', createLaunchTemplateVersionResponse_warning - If the new version of the launch template contains parameters or parameter combinations that are not valid, an error code and an error message are returned for each issue that's found.

$sel:httpStatus:CreateLaunchTemplateVersionResponse', createLaunchTemplateVersionResponse_httpStatus - The response's http status code.

Response Lenses

createLaunchTemplateVersionResponse_warning :: Lens' CreateLaunchTemplateVersionResponse (Maybe ValidationWarning) Source #

If the new version of the launch template contains parameters or parameter combinations that are not valid, an error code and an error message are returned for each issue that's found.