amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.DescribeLaunchTemplates

Description

Describes one or more launch templates.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeLaunchTemplates Source #

See: newDescribeLaunchTemplates smart constructor.

Constructors

DescribeLaunchTemplates' 

Fields

  • dryRun :: Maybe Bool

    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 :: Maybe [Filter]

    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.
  • launchTemplateIds :: Maybe [Text]

    One or more launch template IDs.

  • launchTemplateNames :: Maybe [Text]

    One or more launch template names.

  • maxResults :: Maybe Natural

    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.

  • nextToken :: Maybe Text

    The token to request the next page of results.

Instances

Instances details
ToHeaders DescribeLaunchTemplates Source # 
Instance details

Defined in Amazonka.EC2.DescribeLaunchTemplates

ToPath DescribeLaunchTemplates Source # 
Instance details

Defined in Amazonka.EC2.DescribeLaunchTemplates

ToQuery DescribeLaunchTemplates Source # 
Instance details

Defined in Amazonka.EC2.DescribeLaunchTemplates

AWSPager DescribeLaunchTemplates Source # 
Instance details

Defined in Amazonka.EC2.DescribeLaunchTemplates

AWSRequest DescribeLaunchTemplates Source # 
Instance details

Defined in Amazonka.EC2.DescribeLaunchTemplates

Generic DescribeLaunchTemplates Source # 
Instance details

Defined in Amazonka.EC2.DescribeLaunchTemplates

Associated Types

type Rep DescribeLaunchTemplates :: Type -> Type #

Read DescribeLaunchTemplates Source # 
Instance details

Defined in Amazonka.EC2.DescribeLaunchTemplates

Show DescribeLaunchTemplates Source # 
Instance details

Defined in Amazonka.EC2.DescribeLaunchTemplates

NFData DescribeLaunchTemplates Source # 
Instance details

Defined in Amazonka.EC2.DescribeLaunchTemplates

Methods

rnf :: DescribeLaunchTemplates -> () #

Eq DescribeLaunchTemplates Source # 
Instance details

Defined in Amazonka.EC2.DescribeLaunchTemplates

Hashable DescribeLaunchTemplates Source # 
Instance details

Defined in Amazonka.EC2.DescribeLaunchTemplates

type AWSResponse DescribeLaunchTemplates Source # 
Instance details

Defined in Amazonka.EC2.DescribeLaunchTemplates

type Rep DescribeLaunchTemplates Source # 
Instance details

Defined in Amazonka.EC2.DescribeLaunchTemplates

type Rep DescribeLaunchTemplates = D1 ('MetaData "DescribeLaunchTemplates" "Amazonka.EC2.DescribeLaunchTemplates" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribeLaunchTemplates'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Filter])) :*: S1 ('MetaSel ('Just "launchTemplateIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])))) :*: (S1 ('MetaSel ('Just "launchTemplateNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

newDescribeLaunchTemplates :: DescribeLaunchTemplates Source #

Create a value of DescribeLaunchTemplates 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:DescribeLaunchTemplates', describeLaunchTemplates_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:DescribeLaunchTemplates', describeLaunchTemplates_filters - 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.

$sel:launchTemplateIds:DescribeLaunchTemplates', describeLaunchTemplates_launchTemplateIds - One or more launch template IDs.

$sel:launchTemplateNames:DescribeLaunchTemplates', describeLaunchTemplates_launchTemplateNames - One or more launch template names.

$sel:maxResults:DescribeLaunchTemplates', describeLaunchTemplates_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.

DescribeLaunchTemplates, describeLaunchTemplates_nextToken - The token to request the next page of results.

Request Lenses

describeLaunchTemplates_dryRun :: Lens' DescribeLaunchTemplates (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.

describeLaunchTemplates_filters :: Lens' DescribeLaunchTemplates (Maybe [Filter]) Source #

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.

describeLaunchTemplates_maxResults :: Lens' DescribeLaunchTemplates (Maybe Natural) 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.

describeLaunchTemplates_nextToken :: Lens' DescribeLaunchTemplates (Maybe Text) Source #

The token to request the next page of results.

Destructuring the Response

data DescribeLaunchTemplatesResponse Source #

See: newDescribeLaunchTemplatesResponse smart constructor.

Constructors

DescribeLaunchTemplatesResponse' 

Fields

Instances

Instances details
Generic DescribeLaunchTemplatesResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeLaunchTemplates

Associated Types

type Rep DescribeLaunchTemplatesResponse :: Type -> Type #

Read DescribeLaunchTemplatesResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeLaunchTemplates

Show DescribeLaunchTemplatesResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeLaunchTemplates

NFData DescribeLaunchTemplatesResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeLaunchTemplates

Eq DescribeLaunchTemplatesResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeLaunchTemplates

type Rep DescribeLaunchTemplatesResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeLaunchTemplates

type Rep DescribeLaunchTemplatesResponse = D1 ('MetaData "DescribeLaunchTemplatesResponse" "Amazonka.EC2.DescribeLaunchTemplates" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribeLaunchTemplatesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "launchTemplates") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [LaunchTemplate])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeLaunchTemplatesResponse Source #

Create a value of DescribeLaunchTemplatesResponse 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:launchTemplates:DescribeLaunchTemplatesResponse', describeLaunchTemplatesResponse_launchTemplates - Information about the launch templates.

DescribeLaunchTemplates, describeLaunchTemplatesResponse_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:DescribeLaunchTemplatesResponse', describeLaunchTemplatesResponse_httpStatus - The response's http status code.

Response Lenses

describeLaunchTemplatesResponse_nextToken :: Lens' DescribeLaunchTemplatesResponse (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.