Skip to content

EC2  >  Operations  >  describe_launch_templates

describe_launch_templates

Operation

describe_launch_templates async

describe_launch_templates(request: DescribeLaunchTemplatesInput | DescribeLaunchTemplatesInputDict, /, *, plugins: list[Plugin] | None = None) -> DescribeLaunchTemplatesOutput
describe_launch_templates(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[DescribeLaunchTemplatesInputDict]) -> DescribeLaunchTemplatesOutput

Describes one or more launch templates.

Parameters:

Name Type Description Default
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
DescribeLaunchTemplatesOutput

An instance of DescribeLaunchTemplatesOutput.

Input

Pass the input fields as keyword arguments, or pass a model or dictionary as the first positional argument. Pass plugins separately as a keyword argument.

Model

DescribeLaunchTemplatesInput dataclass

Bases: _SerdeShape

Dataclass for DescribeLaunchTemplatesInput 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.

filters class-attribute instance-attribute
filters: list[Filter] | None = ...

One or more filters.

  • create-time - The time the launch template was created.

  • launch-template-name - The name of the launch template.

  • tag:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

include_managed_resources class-attribute instance-attribute
include_managed_resources: bool | None = ...

Indicates whether to include managed resources in the output. If this parameter is set to true, the output includes resources that are managed by Amazon Web Services services, even if managed resource visibility is set to hidden.

launch_template_ids class-attribute instance-attribute
launch_template_ids: list[str] | None = ...

One or more launch template IDs.

launch_template_names class-attribute instance-attribute
launch_template_names: list[str] | None = ...

One or more launch template names.

max_results class-attribute instance-attribute
max_results: int | None = ...

The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value. This value can be between 1 and 200.

next_token class-attribute instance-attribute
next_token: str | None = ...

The token to request the next page of results.

Dictionaries

DescribeLaunchTemplatesInputDict

Bases: TypedDict

Dictionary form of DescribeLaunchTemplatesInput.

Attributes
dry_run 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.

filters instance-attribute
filters: Sequence[Filter | FilterDict] | None

One or more filters.

  • create-time - The time the launch template was created.

  • launch-template-name - The name of the launch template.

  • tag:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

include_managed_resources instance-attribute
include_managed_resources: bool | None

Indicates whether to include managed resources in the output. If this parameter is set to true, the output includes resources that are managed by Amazon Web Services services, even if managed resource visibility is set to hidden.

launch_template_ids instance-attribute
launch_template_ids: Sequence[str] | None

One or more launch template IDs.

launch_template_names instance-attribute
launch_template_names: Sequence[str] | None

One or more launch template names.

max_results instance-attribute
max_results: int | None

The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value. This value can be between 1 and 200.

next_token instance-attribute
next_token: str | None

The token to request the next page of results.

Output

DescribeLaunchTemplatesOutput dataclass

Bases: _SerdeShape

Dataclass for DescribeLaunchTemplatesOutput structure.

Attributes

launch_templates class-attribute instance-attribute
launch_templates: list[LaunchTemplate] | None = ...

Information about the launch templates.

next_token class-attribute instance-attribute
next_token: str | None = ...

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

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.