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

Description

Get a list of cost allocation tags. All inputs in the API are optional and serve as filters. By default, all cost allocation tags are returned.

Synopsis

Creating a Request

data ListCostAllocationTags Source #

See: newListCostAllocationTags smart constructor.

Constructors

ListCostAllocationTags' 

Fields

  • maxResults :: Maybe Natural

    The maximum number of objects that are returned for this request. By default, the request returns 100 results.

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

  • status :: Maybe CostAllocationTagStatus

    The status of cost allocation tag keys that are returned for this request.

  • tagKeys :: Maybe (NonEmpty Text)

    The list of cost allocation tag keys that are returned for this request.

  • type' :: Maybe CostAllocationTagType

    The type of CostAllocationTag object that are returned for this request. The AWSGenerated type tags are tags that Amazon Web Services defines and applies to support Amazon Web Services resources for cost allocation purposes. The UserDefined type tags are tags that you define, create, and apply to resources.

Instances

Instances details
ToJSON ListCostAllocationTags Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostAllocationTags

ToHeaders ListCostAllocationTags Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostAllocationTags

ToPath ListCostAllocationTags Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostAllocationTags

ToQuery ListCostAllocationTags Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostAllocationTags

AWSRequest ListCostAllocationTags Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostAllocationTags

Associated Types

type AWSResponse ListCostAllocationTags #

Generic ListCostAllocationTags Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostAllocationTags

Associated Types

type Rep ListCostAllocationTags :: Type -> Type #

Read ListCostAllocationTags Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostAllocationTags

Show ListCostAllocationTags Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostAllocationTags

NFData ListCostAllocationTags Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostAllocationTags

Methods

rnf :: ListCostAllocationTags -> () #

Eq ListCostAllocationTags Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostAllocationTags

Hashable ListCostAllocationTags Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostAllocationTags

type AWSResponse ListCostAllocationTags Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostAllocationTags

type Rep ListCostAllocationTags Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostAllocationTags

type Rep ListCostAllocationTags = D1 ('MetaData "ListCostAllocationTags" "Amazonka.CostExplorer.ListCostAllocationTags" "amazonka-cost-explorer-2.0-QqVzyVvst98QYs5s2Ea4h" 'False) (C1 ('MetaCons "ListCostAllocationTags'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CostAllocationTagStatus)) :*: (S1 ('MetaSel ('Just "tagKeys") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text))) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CostAllocationTagType))))))

newListCostAllocationTags :: ListCostAllocationTags Source #

Create a value of ListCostAllocationTags 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:maxResults:ListCostAllocationTags', listCostAllocationTags_maxResults - The maximum number of objects that are returned for this request. By default, the request returns 100 results.

ListCostAllocationTags, listCostAllocationTags_nextToken - 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.

ListCostAllocationTags, listCostAllocationTags_status - The status of cost allocation tag keys that are returned for this request.

$sel:tagKeys:ListCostAllocationTags', listCostAllocationTags_tagKeys - The list of cost allocation tag keys that are returned for this request.

ListCostAllocationTags, listCostAllocationTags_type - The type of CostAllocationTag object that are returned for this request. The AWSGenerated type tags are tags that Amazon Web Services defines and applies to support Amazon Web Services resources for cost allocation purposes. The UserDefined type tags are tags that you define, create, and apply to resources.

Request Lenses

listCostAllocationTags_maxResults :: Lens' ListCostAllocationTags (Maybe Natural) Source #

The maximum number of objects that are returned for this request. By default, the request returns 100 results.

listCostAllocationTags_nextToken :: Lens' ListCostAllocationTags (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.

listCostAllocationTags_status :: Lens' ListCostAllocationTags (Maybe CostAllocationTagStatus) Source #

The status of cost allocation tag keys that are returned for this request.

listCostAllocationTags_tagKeys :: Lens' ListCostAllocationTags (Maybe (NonEmpty Text)) Source #

The list of cost allocation tag keys that are returned for this request.

listCostAllocationTags_type :: Lens' ListCostAllocationTags (Maybe CostAllocationTagType) Source #

The type of CostAllocationTag object that are returned for this request. The AWSGenerated type tags are tags that Amazon Web Services defines and applies to support Amazon Web Services resources for cost allocation purposes. The UserDefined type tags are tags that you define, create, and apply to resources.

Destructuring the Response

data ListCostAllocationTagsResponse Source #

See: newListCostAllocationTagsResponse smart constructor.

Constructors

ListCostAllocationTagsResponse' 

Fields

  • costAllocationTags :: Maybe [CostAllocationTag]

    A list of cost allocation tags that includes the detailed metadata for each one.

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

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListCostAllocationTagsResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostAllocationTags

Associated Types

type Rep ListCostAllocationTagsResponse :: Type -> Type #

Read ListCostAllocationTagsResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostAllocationTags

Show ListCostAllocationTagsResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostAllocationTags

NFData ListCostAllocationTagsResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostAllocationTags

Eq ListCostAllocationTagsResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostAllocationTags

type Rep ListCostAllocationTagsResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostAllocationTags

type Rep ListCostAllocationTagsResponse = D1 ('MetaData "ListCostAllocationTagsResponse" "Amazonka.CostExplorer.ListCostAllocationTags" "amazonka-cost-explorer-2.0-QqVzyVvst98QYs5s2Ea4h" 'False) (C1 ('MetaCons "ListCostAllocationTagsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "costAllocationTags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [CostAllocationTag])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListCostAllocationTagsResponse Source #

Create a value of ListCostAllocationTagsResponse 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:costAllocationTags:ListCostAllocationTagsResponse', listCostAllocationTagsResponse_costAllocationTags - A list of cost allocation tags that includes the detailed metadata for each one.

ListCostAllocationTags, listCostAllocationTagsResponse_nextToken - 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:httpStatus:ListCostAllocationTagsResponse', listCostAllocationTagsResponse_httpStatus - The response's http status code.

Response Lenses

listCostAllocationTagsResponse_costAllocationTags :: Lens' ListCostAllocationTagsResponse (Maybe [CostAllocationTag]) Source #

A list of cost allocation tags that includes the detailed metadata for each one.

listCostAllocationTagsResponse_nextToken :: Lens' ListCostAllocationTagsResponse (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.