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

Description

Retrieves the configuration data of the specified instance. You can use this data to create a launch template.

This action calls on other describe actions to get instance information. Depending on your instance configuration, you may need to allow the following actions in your IAM policy: DescribeSpotInstanceRequests, DescribeInstanceCreditSpecifications, DescribeVolumes, DescribeInstanceAttribute, and DescribeElasticGpus. Or, you can allow describe* depending on your instance requirements.

Synopsis

Creating a Request

data GetLaunchTemplateData Source #

See: newGetLaunchTemplateData smart constructor.

Constructors

GetLaunchTemplateData' 

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.

  • instanceId :: Text

    The ID of the instance.

Instances

Instances details
ToHeaders GetLaunchTemplateData Source # 
Instance details

Defined in Amazonka.EC2.GetLaunchTemplateData

ToPath GetLaunchTemplateData Source # 
Instance details

Defined in Amazonka.EC2.GetLaunchTemplateData

ToQuery GetLaunchTemplateData Source # 
Instance details

Defined in Amazonka.EC2.GetLaunchTemplateData

AWSRequest GetLaunchTemplateData Source # 
Instance details

Defined in Amazonka.EC2.GetLaunchTemplateData

Associated Types

type AWSResponse GetLaunchTemplateData #

Generic GetLaunchTemplateData Source # 
Instance details

Defined in Amazonka.EC2.GetLaunchTemplateData

Associated Types

type Rep GetLaunchTemplateData :: Type -> Type #

Read GetLaunchTemplateData Source # 
Instance details

Defined in Amazonka.EC2.GetLaunchTemplateData

Show GetLaunchTemplateData Source # 
Instance details

Defined in Amazonka.EC2.GetLaunchTemplateData

NFData GetLaunchTemplateData Source # 
Instance details

Defined in Amazonka.EC2.GetLaunchTemplateData

Methods

rnf :: GetLaunchTemplateData -> () #

Eq GetLaunchTemplateData Source # 
Instance details

Defined in Amazonka.EC2.GetLaunchTemplateData

Hashable GetLaunchTemplateData Source # 
Instance details

Defined in Amazonka.EC2.GetLaunchTemplateData

type AWSResponse GetLaunchTemplateData Source # 
Instance details

Defined in Amazonka.EC2.GetLaunchTemplateData

type Rep GetLaunchTemplateData Source # 
Instance details

Defined in Amazonka.EC2.GetLaunchTemplateData

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

newGetLaunchTemplateData Source #

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

GetLaunchTemplateData, getLaunchTemplateData_instanceId - The ID of the instance.

Request Lenses

getLaunchTemplateData_dryRun :: Lens' GetLaunchTemplateData (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.

Destructuring the Response

data GetLaunchTemplateDataResponse Source #

See: newGetLaunchTemplateDataResponse smart constructor.

Constructors

GetLaunchTemplateDataResponse' 

Fields

Instances

Instances details
Generic GetLaunchTemplateDataResponse Source # 
Instance details

Defined in Amazonka.EC2.GetLaunchTemplateData

Associated Types

type Rep GetLaunchTemplateDataResponse :: Type -> Type #

Read GetLaunchTemplateDataResponse Source # 
Instance details

Defined in Amazonka.EC2.GetLaunchTemplateData

Show GetLaunchTemplateDataResponse Source # 
Instance details

Defined in Amazonka.EC2.GetLaunchTemplateData

NFData GetLaunchTemplateDataResponse Source # 
Instance details

Defined in Amazonka.EC2.GetLaunchTemplateData

Eq GetLaunchTemplateDataResponse Source # 
Instance details

Defined in Amazonka.EC2.GetLaunchTemplateData

type Rep GetLaunchTemplateDataResponse Source # 
Instance details

Defined in Amazonka.EC2.GetLaunchTemplateData

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

newGetLaunchTemplateDataResponse Source #

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

GetLaunchTemplateDataResponse, getLaunchTemplateDataResponse_launchTemplateData - The instance data.

$sel:httpStatus:GetLaunchTemplateDataResponse', getLaunchTemplateDataResponse_httpStatus - The response's http status code.

Response Lenses