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

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

Network.AWS.EC2.DescribeTags

Contents

Description

Describes one or more of the tags for your EC2 resources.

For more information about tags, see Tagging Your Resources in the Amazon Elastic Compute Cloud User Guide.

This operation returns paginated results.

Synopsis

Creating a Request

describeTags :: DescribeTags Source #

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

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

data DescribeTags Source #

Contains the parameters for DescribeTags.

See: describeTags smart constructor.

Instances

Eq DescribeTags Source # 
Data DescribeTags Source # 

Methods

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

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

toConstr :: DescribeTags -> Constr #

dataTypeOf :: DescribeTags -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeTags Source # 
Show DescribeTags Source # 
Generic DescribeTags Source # 

Associated Types

type Rep DescribeTags :: * -> * #

Hashable DescribeTags Source # 
NFData DescribeTags Source # 

Methods

rnf :: DescribeTags -> () #

AWSPager DescribeTags Source # 
AWSRequest DescribeTags Source # 
ToPath DescribeTags Source # 
ToHeaders DescribeTags Source # 
ToQuery DescribeTags Source # 
type Rep DescribeTags Source # 
type Rep DescribeTags = D1 (MetaData "DescribeTags" "Network.AWS.EC2.DescribeTags" "amazonka-ec2-1.4.2-6EJAAVBh1q13dHrwE82a1F" False) (C1 (MetaCons "DescribeTags'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_dtFilters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Filter]))) (S1 (MetaSel (Just Symbol "_dtNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_dtDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_dtMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))))))
type Rs DescribeTags Source # 

Request Lenses

dtFilters :: Lens' DescribeTags [Filter] Source #

One or more filters.

  • key - The tag key.
  • 'resource-id' - The resource ID.
  • 'resource-type' - The resource type ('customer-gateway' | 'dhcp-options' | image | 'instance' | 'internet-gateway' | 'network-acl' | 'network-interface' | 'reserved-instances' | 'route-table' | 'security-group' | snapshot | 'spot-instances-request' | subnet | volume | vpc | 'vpn-connection' | 'vpn-gateway').
  • value - The tag value.

dtNextToken :: Lens' DescribeTags (Maybe Text) Source #

The token to retrieve the next page of results.

dtDryRun :: Lens' DescribeTags (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.

dtMaxResults :: Lens' DescribeTags (Maybe Int) Source #

The maximum number of results to return in a single call. This value can be between 5 and 1000. To retrieve the remaining results, make another call with the returned NextToken value.

Destructuring the Response

describeTagsResponse Source #

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

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

data DescribeTagsResponse Source #

Contains the output of DescribeTags.

See: describeTagsResponse smart constructor.

Instances

Eq DescribeTagsResponse Source # 
Data DescribeTagsResponse Source # 

Methods

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

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

toConstr :: DescribeTagsResponse -> Constr #

dataTypeOf :: DescribeTagsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeTagsResponse Source # 
Show DescribeTagsResponse Source # 
Generic DescribeTagsResponse Source # 
NFData DescribeTagsResponse Source # 

Methods

rnf :: DescribeTagsResponse -> () #

type Rep DescribeTagsResponse Source # 
type Rep DescribeTagsResponse = D1 (MetaData "DescribeTagsResponse" "Network.AWS.EC2.DescribeTags" "amazonka-ec2-1.4.2-6EJAAVBh1q13dHrwE82a1F" False) (C1 (MetaCons "DescribeTagsResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dtrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_dtrsTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [TagDescription]))) (S1 (MetaSel (Just Symbol "_dtrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

dtrsNextToken :: Lens' DescribeTagsResponse (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..