describe_launch_templates
async
¶
describe_launch_templates(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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/async_ec2.py
29056 29057 29058 29059 29060 29061 29062 29063 29064 29065 29066 29067 29068 29069 29070 29071 29072 29073 29074 29075 29076 29077 29078 29079 29080 29081 29082 29083 29084 29085 29086 29087 29088 29089 29090 29091 29092 29093 29094 29095 29096 29097 29098 29099 29100 29101 29102 29103 29104 29105 29106 29107 29108 29109 29110 29111 29112 29113 29114 29115 29116 29117 29118 29119 29120 29121 29122 29123 29124 29125 29126 29127 29128 29129 29130 29131 29132 29133 29134 29135 29136 29137 | |