get_launch_template_data¶
Operation¶
get_launch_template_data
async
¶
get_launch_template_data(input: GetLaunchTemplateDataInput, plugins: list[Plugin] | None = None) -> GetLaunchTemplateDataOutput
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, and
DescribeInstanceAttribute. Or, you can allow describe* depending on
your instance requirements.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
GetLaunchTemplateDataInput
|
An instance of |
required |
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
Returns:
| Type | Description |
|---|---|
GetLaunchTemplateDataOutput
|
An instance of |
Input¶
GetLaunchTemplateDataInput
dataclass
¶
Bases: _SerdeShape
Dataclass for GetLaunchTemplateDataInput structure.
Attributes¶
dry_run
class-attribute
instance-attribute
¶
dry_run: bool | None = ...
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.
Output¶
GetLaunchTemplateDataOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for GetLaunchTemplateDataOutput structure.
Attributes¶
launch_template_data
class-attribute
instance-attribute
¶
The instance data.
response_metadata
class-attribute
instance-attribute
¶
Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.