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

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

data GetTags Source #

See: newGetTags smart constructor.

Constructors

GetTags' 

Fields

  • filter' :: Maybe Expression
     
  • maxResults :: Maybe Natural

    This field is only used when SortBy is provided in the request. The maximum number of objects that are returned for this request. If MaxResults isn't specified with SortBy, the request returns 1000 results as the default value for this parameter.

    For GetTags, MaxResults has an upper quota of 1000.

  • nextPageToken :: Maybe Text

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

  • searchString :: Maybe Text

    The value that you want to search for.

  • sortBy :: Maybe [SortDefinition]

    The value that you want to sort the data by.

    The key represents cost and usage metrics. The following values are supported:

    • BlendedCost
    • UnblendedCost
    • AmortizedCost
    • NetAmortizedCost
    • NetUnblendedCost
    • UsageQuantity
    • NormalizedUsageAmount

    The supported values for SortOrder are ASCENDING and DESCENDING.

    When you use SortBy, NextPageToken and SearchString aren't supported.

  • tagKey :: Maybe Text

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

  • timePeriod :: DateInterval

    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.

Instances

Instances details
ToJSON GetTags Source # 
Instance details

Defined in Amazonka.CostExplorer.GetTags

ToHeaders GetTags Source # 
Instance details

Defined in Amazonka.CostExplorer.GetTags

Methods

toHeaders :: GetTags -> [Header] #

ToPath GetTags Source # 
Instance details

Defined in Amazonka.CostExplorer.GetTags

Methods

toPath :: GetTags -> ByteString #

ToQuery GetTags Source # 
Instance details

Defined in Amazonka.CostExplorer.GetTags

AWSRequest GetTags Source # 
Instance details

Defined in Amazonka.CostExplorer.GetTags

Associated Types

type AWSResponse GetTags #

Generic GetTags Source # 
Instance details

Defined in Amazonka.CostExplorer.GetTags

Associated Types

type Rep GetTags :: Type -> Type #

Methods

from :: GetTags -> Rep GetTags x #

to :: Rep GetTags x -> GetTags #

Read GetTags Source # 
Instance details

Defined in Amazonka.CostExplorer.GetTags

Show GetTags Source # 
Instance details

Defined in Amazonka.CostExplorer.GetTags

NFData GetTags Source # 
Instance details

Defined in Amazonka.CostExplorer.GetTags

Methods

rnf :: GetTags -> () #

Eq GetTags Source # 
Instance details

Defined in Amazonka.CostExplorer.GetTags

Methods

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

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

Hashable GetTags Source # 
Instance details

Defined in Amazonka.CostExplorer.GetTags

Methods

hashWithSalt :: Int -> GetTags -> Int #

hash :: GetTags -> Int #

type AWSResponse GetTags Source # 
Instance details

Defined in Amazonka.CostExplorer.GetTags

type Rep GetTags Source # 
Instance details

Defined in Amazonka.CostExplorer.GetTags

newGetTags Source #

Create a value of GetTags 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:filter':GetTags', getTags_filter - Undocumented member.

$sel:maxResults:GetTags', getTags_maxResults - This field is only used when SortBy is provided in the request. The maximum number of objects that are returned for this request. If MaxResults isn't specified with SortBy, the request returns 1000 results as the default value for this parameter.

For GetTags, MaxResults has an upper quota of 1000.

GetTags, getTags_nextPageToken - The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

$sel:searchString:GetTags', getTags_searchString - The value that you want to search for.

$sel:sortBy:GetTags', getTags_sortBy - The value that you want to sort the data by.

The key represents cost and usage metrics. The following values are supported:

  • BlendedCost
  • UnblendedCost
  • AmortizedCost
  • NetAmortizedCost
  • NetUnblendedCost
  • UsageQuantity
  • NormalizedUsageAmount

The supported values for SortOrder are ASCENDING and DESCENDING.

When you use SortBy, NextPageToken and SearchString aren't supported.

GetTags, getTags_tagKey - The key of the tag that you want to return values for.

GetTags, getTags_timePeriod - 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.

Request Lenses

getTags_maxResults :: Lens' GetTags (Maybe Natural) Source #

This field is only used when SortBy is provided in the request. The maximum number of objects that are returned for this request. If MaxResults isn't specified with SortBy, the request returns 1000 results as the default value for this parameter.

For GetTags, MaxResults has an upper quota of 1000.

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

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

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

The value that you want to search for.

getTags_sortBy :: Lens' GetTags (Maybe [SortDefinition]) Source #

The value that you want to sort the data by.

The key represents cost and usage metrics. The following values are supported:

  • BlendedCost
  • UnblendedCost
  • AmortizedCost
  • NetAmortizedCost
  • NetUnblendedCost
  • UsageQuantity
  • NormalizedUsageAmount

The supported values for SortOrder are ASCENDING and DESCENDING.

When you use SortBy, NextPageToken and SearchString aren't supported.

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

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

getTags_timePeriod :: 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

data GetTagsResponse Source #

See: newGetTagsResponse smart constructor.

Constructors

GetTagsResponse' 

Fields

  • nextPageToken :: Maybe Text

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

  • httpStatus :: Int

    The response's http status code.

  • tags :: [Text]

    The tags that match your request.

  • returnSize :: Int

    The number of query results that Amazon Web Services returns at a time.

  • totalSize :: Int

    The total number of query results.

Instances

Instances details
Generic GetTagsResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetTags

Associated Types

type Rep GetTagsResponse :: Type -> Type #

Read GetTagsResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetTags

Show GetTagsResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetTags

NFData GetTagsResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetTags

Methods

rnf :: GetTagsResponse -> () #

Eq GetTagsResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetTags

type Rep GetTagsResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetTags

type Rep GetTagsResponse = D1 ('MetaData "GetTagsResponse" "Amazonka.CostExplorer.GetTags" "amazonka-cost-explorer-2.0-QqVzyVvst98QYs5s2Ea4h" 'False) (C1 ('MetaCons "GetTagsResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nextPageToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text]) :*: (S1 ('MetaSel ('Just "returnSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "totalSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newGetTagsResponse Source #

Create a value of GetTagsResponse 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:

GetTags, getTagsResponse_nextPageToken - The token for the next set of retrievable results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

$sel:httpStatus:GetTagsResponse', getTagsResponse_httpStatus - The response's http status code.

GetTagsResponse, getTagsResponse_tags - The tags that match your request.

$sel:returnSize:GetTagsResponse', getTagsResponse_returnSize - The number of query results that Amazon Web Services returns at a time.

$sel:totalSize:GetTagsResponse', getTagsResponse_totalSize - The total number of query results.

Response Lenses

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

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

getTagsResponse_httpStatus :: Lens' GetTagsResponse Int Source #

The response's http status code.

getTagsResponse_tags :: Lens' GetTagsResponse [Text] Source #

The tags that match your request.

getTagsResponse_returnSize :: Lens' GetTagsResponse Int Source #

The number of query results that Amazon Web Services returns at a time.

getTagsResponse_totalSize :: Lens' GetTagsResponse Int Source #

The total number of query results.