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

Description

Returns the name, Amazon Resource Name (ARN), NumberOfRules and effective dates of all Cost Categories defined in the account. You have the option to use EffectiveOn to return a list of Cost Categories that were active on a specific date. If there is no EffectiveOn specified, you’ll see Cost Categories that are effective on the current date. If Cost Category is still effective, EffectiveEnd is omitted in the response. ListCostCategoryDefinitions supports pagination. The request can have a MaxResults range up to 100.

Synopsis

Creating a Request

data ListCostCategoryDefinitions Source #

See: newListCostCategoryDefinitions smart constructor.

Constructors

ListCostCategoryDefinitions' 

Fields

  • effectiveOn :: Maybe Text

    The date when the Cost Category was effective.

  • maxResults :: Maybe Natural

    The number of entries a paginated response contains.

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

Instances

Instances details
ToJSON ListCostCategoryDefinitions Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostCategoryDefinitions

ToHeaders ListCostCategoryDefinitions Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostCategoryDefinitions

ToPath ListCostCategoryDefinitions Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostCategoryDefinitions

ToQuery ListCostCategoryDefinitions Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostCategoryDefinitions

AWSRequest ListCostCategoryDefinitions Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostCategoryDefinitions

Generic ListCostCategoryDefinitions Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostCategoryDefinitions

Associated Types

type Rep ListCostCategoryDefinitions :: Type -> Type #

Read ListCostCategoryDefinitions Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostCategoryDefinitions

Show ListCostCategoryDefinitions Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostCategoryDefinitions

NFData ListCostCategoryDefinitions Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostCategoryDefinitions

Eq ListCostCategoryDefinitions Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostCategoryDefinitions

Hashable ListCostCategoryDefinitions Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostCategoryDefinitions

type AWSResponse ListCostCategoryDefinitions Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostCategoryDefinitions

type Rep ListCostCategoryDefinitions Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostCategoryDefinitions

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

newListCostCategoryDefinitions :: ListCostCategoryDefinitions Source #

Create a value of ListCostCategoryDefinitions 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:effectiveOn:ListCostCategoryDefinitions', listCostCategoryDefinitions_effectiveOn - The date when the Cost Category was effective.

$sel:maxResults:ListCostCategoryDefinitions', listCostCategoryDefinitions_maxResults - The number of entries a paginated response contains.

ListCostCategoryDefinitions, listCostCategoryDefinitions_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.

Request Lenses

listCostCategoryDefinitions_maxResults :: Lens' ListCostCategoryDefinitions (Maybe Natural) Source #

The number of entries a paginated response contains.

listCostCategoryDefinitions_nextToken :: Lens' ListCostCategoryDefinitions (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.

Destructuring the Response

data ListCostCategoryDefinitionsResponse Source #

Constructors

ListCostCategoryDefinitionsResponse' 

Fields

Instances

Instances details
Generic ListCostCategoryDefinitionsResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostCategoryDefinitions

Read ListCostCategoryDefinitionsResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostCategoryDefinitions

Show ListCostCategoryDefinitionsResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostCategoryDefinitions

NFData ListCostCategoryDefinitionsResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostCategoryDefinitions

Eq ListCostCategoryDefinitionsResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostCategoryDefinitions

type Rep ListCostCategoryDefinitionsResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.ListCostCategoryDefinitions

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

newListCostCategoryDefinitionsResponse Source #

Create a value of ListCostCategoryDefinitionsResponse 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:costCategoryReferences:ListCostCategoryDefinitionsResponse', listCostCategoryDefinitionsResponse_costCategoryReferences - A reference to a Cost Category that contains enough information to identify the Cost Category.

ListCostCategoryDefinitions, listCostCategoryDefinitionsResponse_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:ListCostCategoryDefinitionsResponse', listCostCategoryDefinitionsResponse_httpStatus - The response's http status code.

Response Lenses

listCostCategoryDefinitionsResponse_costCategoryReferences :: Lens' ListCostCategoryDefinitionsResponse (Maybe [CostCategoryReference]) Source #

A reference to a Cost Category that contains enough information to identify the Cost Category.

listCostCategoryDefinitionsResponse_nextToken :: Lens' ListCostCategoryDefinitionsResponse (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.