Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Describes one or more versions of a specified launch template. You can describe all versions, individual versions, or a range of versions. You can also describe all the latest versions or all the default versions of all the launch templates in your account.
This operation returns paginated results.
Synopsis
- data DescribeLaunchTemplateVersions = DescribeLaunchTemplateVersions' {}
- newDescribeLaunchTemplateVersions :: DescribeLaunchTemplateVersions
- describeLaunchTemplateVersions_dryRun :: Lens' DescribeLaunchTemplateVersions (Maybe Bool)
- describeLaunchTemplateVersions_filters :: Lens' DescribeLaunchTemplateVersions (Maybe [Filter])
- describeLaunchTemplateVersions_launchTemplateId :: Lens' DescribeLaunchTemplateVersions (Maybe Text)
- describeLaunchTemplateVersions_launchTemplateName :: Lens' DescribeLaunchTemplateVersions (Maybe Text)
- describeLaunchTemplateVersions_maxResults :: Lens' DescribeLaunchTemplateVersions (Maybe Int)
- describeLaunchTemplateVersions_maxVersion :: Lens' DescribeLaunchTemplateVersions (Maybe Text)
- describeLaunchTemplateVersions_minVersion :: Lens' DescribeLaunchTemplateVersions (Maybe Text)
- describeLaunchTemplateVersions_nextToken :: Lens' DescribeLaunchTemplateVersions (Maybe Text)
- describeLaunchTemplateVersions_versions :: Lens' DescribeLaunchTemplateVersions (Maybe [Text])
- data DescribeLaunchTemplateVersionsResponse = DescribeLaunchTemplateVersionsResponse' {}
- newDescribeLaunchTemplateVersionsResponse :: Int -> DescribeLaunchTemplateVersionsResponse
- describeLaunchTemplateVersionsResponse_launchTemplateVersions :: Lens' DescribeLaunchTemplateVersionsResponse (Maybe [LaunchTemplateVersion])
- describeLaunchTemplateVersionsResponse_nextToken :: Lens' DescribeLaunchTemplateVersionsResponse (Maybe Text)
- describeLaunchTemplateVersionsResponse_httpStatus :: Lens' DescribeLaunchTemplateVersionsResponse Int
Creating a Request
data DescribeLaunchTemplateVersions Source #
See: newDescribeLaunchTemplateVersions
smart constructor.
DescribeLaunchTemplateVersions' | |
|
Instances
newDescribeLaunchTemplateVersions :: DescribeLaunchTemplateVersions Source #
Create a value of DescribeLaunchTemplateVersions
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:DescribeLaunchTemplateVersions'
, describeLaunchTemplateVersions_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
.
$sel:filters:DescribeLaunchTemplateVersions'
, describeLaunchTemplateVersions_filters
- One or more filters.
create-time
- The time the launch template version was created.ebs-optimized
- A boolean that indicates whether the instance is optimized for Amazon EBS I/O.http-endpoint
- Indicates whether the HTTP metadata endpoint on your instances is enabled (enabled
|disabled
).http-protocol-ipv4
- Indicates whether the IPv4 endpoint for the instance metadata service is enabled (enabled
|disabled
).host-resource-group-arn
- The ARN of the host resource group in which to launch the instances.http-tokens
- The state of token usage for your instance metadata requests (optional
|required
).iam-instance-profile
- The ARN of the IAM instance profile.image-id
- The ID of the AMI.instance-type
- The instance type.is-default-version
- A boolean that indicates whether the launch template version is the default version.kernel-id
- The kernel ID.license-configuration-arn
- The ARN of the license configuration.network-card-index
- The index of the network card.ram-disk-id
- The RAM disk ID.
DescribeLaunchTemplateVersions
, describeLaunchTemplateVersions_launchTemplateId
- The ID of the launch template.
To describe one or more versions of a specified launch template, you
must specify either the LaunchTemplateId
or the LaunchTemplateName
,
but not both.
To describe all the latest or default launch template versions in your account, you must omit this parameter.
DescribeLaunchTemplateVersions
, describeLaunchTemplateVersions_launchTemplateName
- The name of the launch template.
To describe one or more versions of a specified launch template, you
must specify either the LaunchTemplateName
or the LaunchTemplateId
,
but not both.
To describe all the latest or default launch template versions in your account, you must omit this parameter.
$sel:maxResults:DescribeLaunchTemplateVersions'
, describeLaunchTemplateVersions_maxResults
- 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.
$sel:maxVersion:DescribeLaunchTemplateVersions'
, describeLaunchTemplateVersions_maxVersion
- The version number up to which to describe launch template versions.
$sel:minVersion:DescribeLaunchTemplateVersions'
, describeLaunchTemplateVersions_minVersion
- The version number after which to describe launch template versions.
DescribeLaunchTemplateVersions
, describeLaunchTemplateVersions_nextToken
- The token to request the next page of results.
$sel:versions:DescribeLaunchTemplateVersions'
, describeLaunchTemplateVersions_versions
- One or more versions of the launch template. Valid values depend on
whether you are describing a specified launch template (by ID or name)
or all launch templates in your account.
To describe one or more versions of a specified launch template, valid
values are $Latest
, $Default
, and numbers.
To describe all launch templates in your account that are defined as the
latest version, the valid value is $Latest
. To describe all launch
templates in your account that are defined as the default version, the
valid value is $Default
. You can specify $Latest
and $Default
in
the same request. You cannot specify numbers.
Request Lenses
describeLaunchTemplateVersions_dryRun :: Lens' DescribeLaunchTemplateVersions (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
.
describeLaunchTemplateVersions_filters :: Lens' DescribeLaunchTemplateVersions (Maybe [Filter]) Source #
One or more filters.
create-time
- The time the launch template version was created.ebs-optimized
- A boolean that indicates whether the instance is optimized for Amazon EBS I/O.http-endpoint
- Indicates whether the HTTP metadata endpoint on your instances is enabled (enabled
|disabled
).http-protocol-ipv4
- Indicates whether the IPv4 endpoint for the instance metadata service is enabled (enabled
|disabled
).host-resource-group-arn
- The ARN of the host resource group in which to launch the instances.http-tokens
- The state of token usage for your instance metadata requests (optional
|required
).iam-instance-profile
- The ARN of the IAM instance profile.image-id
- The ID of the AMI.instance-type
- The instance type.is-default-version
- A boolean that indicates whether the launch template version is the default version.kernel-id
- The kernel ID.license-configuration-arn
- The ARN of the license configuration.network-card-index
- The index of the network card.ram-disk-id
- The RAM disk ID.
describeLaunchTemplateVersions_launchTemplateId :: Lens' DescribeLaunchTemplateVersions (Maybe Text) Source #
The ID of the launch template.
To describe one or more versions of a specified launch template, you
must specify either the LaunchTemplateId
or the LaunchTemplateName
,
but not both.
To describe all the latest or default launch template versions in your account, you must omit this parameter.
describeLaunchTemplateVersions_launchTemplateName :: Lens' DescribeLaunchTemplateVersions (Maybe Text) Source #
The name of the launch template.
To describe one or more versions of a specified launch template, you
must specify either the LaunchTemplateName
or the LaunchTemplateId
,
but not both.
To describe all the latest or default launch template versions in your account, you must omit this parameter.
describeLaunchTemplateVersions_maxResults :: Lens' DescribeLaunchTemplateVersions (Maybe Int) Source #
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.
describeLaunchTemplateVersions_maxVersion :: Lens' DescribeLaunchTemplateVersions (Maybe Text) Source #
The version number up to which to describe launch template versions.
describeLaunchTemplateVersions_minVersion :: Lens' DescribeLaunchTemplateVersions (Maybe Text) Source #
The version number after which to describe launch template versions.
describeLaunchTemplateVersions_nextToken :: Lens' DescribeLaunchTemplateVersions (Maybe Text) Source #
The token to request the next page of results.
describeLaunchTemplateVersions_versions :: Lens' DescribeLaunchTemplateVersions (Maybe [Text]) Source #
One or more versions of the launch template. Valid values depend on whether you are describing a specified launch template (by ID or name) or all launch templates in your account.
To describe one or more versions of a specified launch template, valid
values are $Latest
, $Default
, and numbers.
To describe all launch templates in your account that are defined as the
latest version, the valid value is $Latest
. To describe all launch
templates in your account that are defined as the default version, the
valid value is $Default
. You can specify $Latest
and $Default
in
the same request. You cannot specify numbers.
Destructuring the Response
data DescribeLaunchTemplateVersionsResponse Source #
See: newDescribeLaunchTemplateVersionsResponse
smart constructor.
DescribeLaunchTemplateVersionsResponse' | |
|
Instances
newDescribeLaunchTemplateVersionsResponse Source #
Create a value of DescribeLaunchTemplateVersionsResponse
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:launchTemplateVersions:DescribeLaunchTemplateVersionsResponse'
, describeLaunchTemplateVersionsResponse_launchTemplateVersions
- Information about the launch template versions.
DescribeLaunchTemplateVersions
, describeLaunchTemplateVersionsResponse_nextToken
- The token to use to retrieve the next page of results. This value is
null
when there are no more results to return.
$sel:httpStatus:DescribeLaunchTemplateVersionsResponse'
, describeLaunchTemplateVersionsResponse_httpStatus
- The response's http status code.
Response Lenses
describeLaunchTemplateVersionsResponse_launchTemplateVersions :: Lens' DescribeLaunchTemplateVersionsResponse (Maybe [LaunchTemplateVersion]) Source #
Information about the launch template versions.
describeLaunchTemplateVersionsResponse_nextToken :: Lens' DescribeLaunchTemplateVersionsResponse (Maybe Text) Source #
The token to use to retrieve the next page of results. This value is
null
when there are no more results to return.
describeLaunchTemplateVersionsResponse_httpStatus :: Lens' DescribeLaunchTemplateVersionsResponse Int Source #
The response's http status code.