amazonka-cost-explorer-1.6.1: Amazon Cost Explorer Service 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.CostExplorer.GetTags

Contents

Description

Queries for available tag keys and tag values for a specified period. You can search the tag values for an arbitrary string.

Synopsis

Creating a Request

getTags Source #

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

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

  • gtNextPageToken - The token to retrieve the next set of results. AWS provides the token when the response from a previous call has more results than the maximum page size.
  • gtSearchString - The value that you want to search for.
  • gtTagKey - The key of the tag that you want to return values for.
  • gtTimePeriod - The start and end dates for retrieving the dimension values. The start date is inclusive, but the end date is exclusive. For example, if start is 2017-01-01 and end is 2017-05-01 , then the cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but not including 2017-05-01 .

data GetTags Source #

See: getTags smart constructor.

Instances
Eq GetTags Source # 
Instance details

Defined in Network.AWS.CostExplorer.GetTags

Methods

(==) :: GetTags -> GetTags -> Bool #

(/=) :: GetTags -> GetTags -> Bool #

Data GetTags Source # 
Instance details

Defined in Network.AWS.CostExplorer.GetTags

Methods

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

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

toConstr :: GetTags -> Constr #

dataTypeOf :: GetTags -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetTags Source # 
Instance details

Defined in Network.AWS.CostExplorer.GetTags

Show GetTags Source # 
Instance details

Defined in Network.AWS.CostExplorer.GetTags

Generic GetTags Source # 
Instance details

Defined in Network.AWS.CostExplorer.GetTags

Associated Types

type Rep GetTags :: Type -> Type #

Methods

from :: GetTags -> Rep GetTags x #

to :: Rep GetTags x -> GetTags #

Hashable GetTags Source # 
Instance details

Defined in Network.AWS.CostExplorer.GetTags

Methods

hashWithSalt :: Int -> GetTags -> Int #

hash :: GetTags -> Int #

ToJSON GetTags Source # 
Instance details

Defined in Network.AWS.CostExplorer.GetTags

AWSRequest GetTags Source # 
Instance details

Defined in Network.AWS.CostExplorer.GetTags

Associated Types

type Rs GetTags :: Type #

ToHeaders GetTags Source # 
Instance details

Defined in Network.AWS.CostExplorer.GetTags

Methods

toHeaders :: GetTags -> [Header] #

ToPath GetTags Source # 
Instance details

Defined in Network.AWS.CostExplorer.GetTags

Methods

toPath :: GetTags -> ByteString #

ToQuery GetTags Source # 
Instance details

Defined in Network.AWS.CostExplorer.GetTags

NFData GetTags Source # 
Instance details

Defined in Network.AWS.CostExplorer.GetTags

Methods

rnf :: GetTags -> () #

type Rep GetTags Source # 
Instance details

Defined in Network.AWS.CostExplorer.GetTags

type Rep GetTags = D1 (MetaData "GetTags" "Network.AWS.CostExplorer.GetTags" "amazonka-cost-explorer-1.6.1-7sTfcQv11bzDg3vrG851Fd" False) (C1 (MetaCons "GetTags'" PrefixI True) ((S1 (MetaSel (Just "_gtNextPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_gtSearchString") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_gtTagKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_gtTimePeriod") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 DateInterval))))
type Rs GetTags Source # 
Instance details

Defined in Network.AWS.CostExplorer.GetTags

Request Lenses

gtNextPageToken :: Lens' GetTags (Maybe Text) Source #

The token to retrieve the next set of results. AWS provides the token when the response from a previous call has more results than the maximum page size.

gtSearchString :: Lens' GetTags (Maybe Text) Source #

The value that you want to search for.

gtTagKey :: Lens' GetTags (Maybe Text) Source #

The key of the tag that you want to return values for.

gtTimePeriod :: Lens' GetTags DateInterval Source #

The start and end dates for retrieving the dimension values. The start date is inclusive, but the end date is exclusive. For example, if start is 2017-01-01 and end is 2017-05-01 , then the cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but not including 2017-05-01 .

Destructuring the Response

getTagsResponse Source #

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

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

  • gtrsNextPageToken - The token for the next set of retrievable results. AWS provides the token when the response from a previous call has more results than the maximum page size.
  • gtrsResponseStatus - -- | The response status code.
  • gtrsTags - The tags that match your request.
  • gtrsReturnSize - The number of query results that AWS returns at a time.
  • gtrsTotalSize - The total number of query results.

data GetTagsResponse Source #

See: getTagsResponse smart constructor.

Instances
Eq GetTagsResponse Source # 
Instance details

Defined in Network.AWS.CostExplorer.GetTags

Data GetTagsResponse Source # 
Instance details

Defined in Network.AWS.CostExplorer.GetTags

Methods

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

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

toConstr :: GetTagsResponse -> Constr #

dataTypeOf :: GetTagsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetTagsResponse Source # 
Instance details

Defined in Network.AWS.CostExplorer.GetTags

Show GetTagsResponse Source # 
Instance details

Defined in Network.AWS.CostExplorer.GetTags

Generic GetTagsResponse Source # 
Instance details

Defined in Network.AWS.CostExplorer.GetTags

Associated Types

type Rep GetTagsResponse :: Type -> Type #

NFData GetTagsResponse Source # 
Instance details

Defined in Network.AWS.CostExplorer.GetTags

Methods

rnf :: GetTagsResponse -> () #

type Rep GetTagsResponse Source # 
Instance details

Defined in Network.AWS.CostExplorer.GetTags

type Rep GetTagsResponse = D1 (MetaData "GetTagsResponse" "Network.AWS.CostExplorer.GetTags" "amazonka-cost-explorer-1.6.1-7sTfcQv11bzDg3vrG851Fd" False) (C1 (MetaCons "GetTagsResponse'" PrefixI True) ((S1 (MetaSel (Just "_gtrsNextPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_gtrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)) :*: (S1 (MetaSel (Just "_gtrsTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text]) :*: (S1 (MetaSel (Just "_gtrsReturnSize") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: S1 (MetaSel (Just "_gtrsTotalSize") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

gtrsNextPageToken :: Lens' GetTagsResponse (Maybe Text) Source #

The token for the next set of retrievable results. AWS provides the token when the response from a previous call has more results than the maximum page size.

gtrsResponseStatus :: Lens' GetTagsResponse Int Source #

  • - | The response status code.

gtrsTags :: Lens' GetTagsResponse [Text] Source #

The tags that match your request.

gtrsReturnSize :: Lens' GetTagsResponse Int Source #

The number of query results that AWS returns at a time.

gtrsTotalSize :: Lens' GetTagsResponse Int Source #

The total number of query results.