amazonka-ec2-1.6.0: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.DescribeLaunchTemplates

Contents

Description

Describes one or more launch templates.

Synopsis

Creating a Request

describeLaunchTemplates :: DescribeLaunchTemplates Source #

Creates a value of DescribeLaunchTemplates with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • dltsFilters - One or more filters. * create-time - The time the launch template was created. * launch-template-name - The name of the launch template. * tag :key =value - The keyvalue combination of a tag assigned to the resource. Specify the key of the tag in the filter name and the value of the tag in the filter value. For example, for the tag Purpose=X, specify tag:Purpose for the filter name and X for the filter value. * tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of the tag's key). If you want to list only resources where Purpose is X, see the tag :key =value/ filter.
  • dltsNextToken - The token to request the next page of results.
  • dltsLaunchTemplateIds - One or more launch template IDs.
  • dltsDryRun - 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 .
  • dltsMaxResults - 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 5 and 1000.
  • dltsLaunchTemplateNames - One or more launch template names.

data DescribeLaunchTemplates Source #

See: describeLaunchTemplates smart constructor.

Instances

Eq DescribeLaunchTemplates Source # 
Data DescribeLaunchTemplates Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeLaunchTemplates -> c DescribeLaunchTemplates #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeLaunchTemplates #

toConstr :: DescribeLaunchTemplates -> Constr #

dataTypeOf :: DescribeLaunchTemplates -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DescribeLaunchTemplates) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeLaunchTemplates) #

gmapT :: (forall b. Data b => b -> b) -> DescribeLaunchTemplates -> DescribeLaunchTemplates #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeLaunchTemplates -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeLaunchTemplates -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeLaunchTemplates -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeLaunchTemplates -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeLaunchTemplates -> m DescribeLaunchTemplates #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeLaunchTemplates -> m DescribeLaunchTemplates #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeLaunchTemplates -> m DescribeLaunchTemplates #

Read DescribeLaunchTemplates Source # 
Show DescribeLaunchTemplates Source # 
Generic DescribeLaunchTemplates Source # 
Hashable DescribeLaunchTemplates Source # 
NFData DescribeLaunchTemplates Source # 

Methods

rnf :: DescribeLaunchTemplates -> () #

AWSRequest DescribeLaunchTemplates Source # 
ToHeaders DescribeLaunchTemplates Source # 
ToPath DescribeLaunchTemplates Source # 
ToQuery DescribeLaunchTemplates Source # 
type Rep DescribeLaunchTemplates Source # 
type Rep DescribeLaunchTemplates = D1 * (MetaData "DescribeLaunchTemplates" "Network.AWS.EC2.DescribeLaunchTemplates" "amazonka-ec2-1.6.0-Kkew7Kpgof6EYi20Z0WOzs" False) (C1 * (MetaCons "DescribeLaunchTemplates'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_dltsFilters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Filter]))) ((:*:) * (S1 * (MetaSel (Just Symbol "_dltsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_dltsLaunchTemplateIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Text]))))) ((:*:) * (S1 * (MetaSel (Just Symbol "_dltsDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) ((:*:) * (S1 * (MetaSel (Just Symbol "_dltsMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Int))) (S1 * (MetaSel (Just Symbol "_dltsLaunchTemplateNames") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Text])))))))
type Rs DescribeLaunchTemplates Source # 

Request Lenses

dltsFilters :: Lens' DescribeLaunchTemplates [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 =value - The keyvalue combination of a tag assigned to the resource. Specify the key of the tag in the filter name and the value of the tag in the filter value. For example, for the tag Purpose=X, specify tag:Purpose for the filter name and X for the filter value. * tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of the tag's key). If you want to list only resources where Purpose is X, see the tag :key =value/ filter.

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

The token to request the next page of results.

dltsLaunchTemplateIds :: Lens' DescribeLaunchTemplates [Text] Source #

One or more launch template IDs.

dltsDryRun :: 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 .

dltsMaxResults :: Lens' DescribeLaunchTemplates (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 5 and 1000.

dltsLaunchTemplateNames :: Lens' DescribeLaunchTemplates [Text] Source #

One or more launch template names.

Destructuring the Response

describeLaunchTemplatesResponse Source #

Creates a value of DescribeLaunchTemplatesResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data DescribeLaunchTemplatesResponse Source #

See: describeLaunchTemplatesResponse smart constructor.

Instances

Eq DescribeLaunchTemplatesResponse Source # 
Data DescribeLaunchTemplatesResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeLaunchTemplatesResponse -> c DescribeLaunchTemplatesResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeLaunchTemplatesResponse #

toConstr :: DescribeLaunchTemplatesResponse -> Constr #

dataTypeOf :: DescribeLaunchTemplatesResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DescribeLaunchTemplatesResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeLaunchTemplatesResponse) #

gmapT :: (forall b. Data b => b -> b) -> DescribeLaunchTemplatesResponse -> DescribeLaunchTemplatesResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeLaunchTemplatesResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeLaunchTemplatesResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeLaunchTemplatesResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeLaunchTemplatesResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeLaunchTemplatesResponse -> m DescribeLaunchTemplatesResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeLaunchTemplatesResponse -> m DescribeLaunchTemplatesResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeLaunchTemplatesResponse -> m DescribeLaunchTemplatesResponse #

Read DescribeLaunchTemplatesResponse Source # 
Show DescribeLaunchTemplatesResponse Source # 
Generic DescribeLaunchTemplatesResponse Source # 
NFData DescribeLaunchTemplatesResponse Source # 
type Rep DescribeLaunchTemplatesResponse Source # 
type Rep DescribeLaunchTemplatesResponse = D1 * (MetaData "DescribeLaunchTemplatesResponse" "Network.AWS.EC2.DescribeLaunchTemplates" "amazonka-ec2-1.6.0-Kkew7Kpgof6EYi20Z0WOzs" False) (C1 * (MetaCons "DescribeLaunchTemplatesResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_dltsrsLaunchTemplates") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [LaunchTemplate]))) ((:*:) * (S1 * (MetaSel (Just Symbol "_dltsrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_dltsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

dltsrsNextToken :: 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.