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

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

  • 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.

  • tagKey :: Maybe Text

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

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

    This field is only used when SortBy is provided in the request. The maximum number of objects that to be returned for this request. If MaxResults is not specified with SortBy, the request will return 1000 results as the default value for this parameter.

    For GetTags, MaxResults has an upper limit of 1000.

  • sortBy :: Maybe [SortDefinition]

    The value by which you want to sort the data.

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

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

    Supported values for SortOrder are ASCENDING or DESCENDING.

    When using SortBy, NextPageToken and SearchString are not supported.

  • 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
Eq GetTags Source # 
Instance details

Defined in Amazonka.CostExplorer.GetTags

Methods

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

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

Read GetTags Source # 
Instance details

Defined in Amazonka.CostExplorer.GetTags

Show GetTags Source # 
Instance details

Defined in Amazonka.CostExplorer.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 #

NFData GetTags Source # 
Instance details

Defined in Amazonka.CostExplorer.GetTags

Methods

rnf :: GetTags -> () #

Hashable GetTags Source # 
Instance details

Defined in Amazonka.CostExplorer.GetTags

Methods

hashWithSalt :: Int -> GetTags -> Int #

hash :: GetTags -> Int #

ToJSON GetTags Source # 
Instance details

Defined in Amazonka.CostExplorer.GetTags

AWSRequest GetTags Source # 
Instance details

Defined in Amazonka.CostExplorer.GetTags

Associated Types

type AWSResponse 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

type Rep GetTags Source # 
Instance details

Defined in Amazonka.CostExplorer.GetTags

type AWSResponse 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:nextPageToken: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:tagKey:GetTags', getTags_tagKey - The key of the tag that you want to return values for.

$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 to be returned for this request. If MaxResults is not specified with SortBy, the request will return 1000 results as the default value for this parameter.

For GetTags, MaxResults has an upper limit of 1000.

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

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

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

Supported values for SortOrder are ASCENDING or DESCENDING.

When using SortBy, NextPageToken and SearchString are not supported.

$sel:timePeriod: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_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_tagKey :: Lens' GetTags (Maybe Text) Source #

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

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 to be returned for this request. If MaxResults is not specified with SortBy, the request will return 1000 results as the default value for this parameter.

For GetTags, MaxResults has an upper limit of 1000.

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

The value by which you want to sort the data.

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

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

Supported values for SortOrder are ASCENDING or DESCENDING.

When using SortBy, NextPageToken and SearchString are not supported.

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
Eq GetTagsResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetTags

Read GetTagsResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetTags

Show GetTagsResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetTags

Generic GetTagsResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetTags

Associated Types

type Rep GetTagsResponse :: Type -> Type #

NFData GetTagsResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetTags

Methods

rnf :: GetTagsResponse -> () #

type Rep GetTagsResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetTags

type Rep GetTagsResponse = D1 ('MetaData "GetTagsResponse" "Amazonka.CostExplorer.GetTags" "libZSservicesZSamazonka-cost-explorerZSamazonka-cost-explorer" '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:

$sel:nextPageToken: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.

$sel:tags: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.