describe_launch_templates
¶
describe_launch_templates(
*,
config_overrides: Optional[EC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
launch_template_ids: Optional[LaunchTemplateIdStringList] = None,
launch_template_names: Optional[LaunchTemplateNameStringList] = None,
filters: Optional[FilterList] = None,
next_token: Optional[String] = None,
max_results: Optional[DescribeLaunchTemplatesMaxResults] = None,
include_managed_resources: Optional[Boolean] = None,
) -> DescribeLaunchTemplatesResult
Describes one or more launch templates.
Parameters:
-
dry_run(Optional[Boolean], default: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 isUnauthorizedOperation. -
launch_template_ids(Optional[LaunchTemplateIdStringList], default:None) –One or more launch template IDs.
-
launch_template_names(Optional[LaunchTemplateNameStringList], default:None) –One or more launch template names.
-
filters(Optional[FilterList], default:None) –One or more filters.
-
create-time- The time the launch template was created. -
launch-template-name- The name of the launch template. -
tag:- 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 Ownerand the valueTeamA, specifytag:Ownerfor the filter name andTeamAfor 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.
-
-
next_token(Optional[String], default:None) –The token to request the next page of results.
-
max_results(Optional[DescribeLaunchTemplatesMaxResults], default:None) –The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned
NextTokenvalue. This value can be between 1 and 200. -
include_managed_resources(Optional[Boolean], default: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.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To describe a launch template This example describes the specified launch template.
Source code in docs_src/capo_ec2/_services/ec2.py
28662 28663 28664 28665 28666 28667 28668 28669 28670 28671 28672 28673 28674 28675 28676 28677 28678 28679 28680 28681 28682 28683 28684 28685 28686 28687 28688 28689 28690 28691 28692 28693 28694 28695 28696 28697 28698 28699 28700 28701 28702 28703 28704 28705 28706 28707 28708 28709 28710 28711 28712 28713 28714 28715 28716 28717 28718 28719 28720 28721 28722 28723 28724 28725 28726 28727 28728 28729 28730 28731 28732 28733 28734 28735 28736 28737 28738 28739 28740 28741 28742 | |