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

Description

Creates a new Cost Category with the requested name and rules.

Synopsis

Creating a Request

data CreateCostCategoryDefinition Source #

See: newCreateCostCategoryDefinition smart constructor.

Constructors

CreateCostCategoryDefinition' 

Fields

Instances

Instances details
Eq CreateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

Read CreateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

Show CreateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

Generic CreateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

Associated Types

type Rep CreateCostCategoryDefinition :: Type -> Type #

NFData CreateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

Hashable CreateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

ToJSON CreateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

AWSRequest CreateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

ToHeaders CreateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

ToPath CreateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

ToQuery CreateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

type Rep CreateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

type Rep CreateCostCategoryDefinition = D1 ('MetaData "CreateCostCategoryDefinition" "Amazonka.CostExplorer.CreateCostCategoryDefinition" "libZSservicesZSamazonka-cost-explorerZSamazonka-cost-explorer" 'False) (C1 ('MetaCons "CreateCostCategoryDefinition'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "splitChargeRules") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty CostCategorySplitChargeRule))) :*: S1 ('MetaSel ('Just "defaultValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "ruleVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CostCategoryRuleVersion) :*: S1 ('MetaSel ('Just "rules") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty CostCategoryRule))))))
type AWSResponse CreateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

Request Lenses

createCostCategoryDefinition_splitChargeRules :: Lens' CreateCostCategoryDefinition (Maybe (NonEmpty CostCategorySplitChargeRule)) Source #

The split charge rules used to allocate your charges between your Cost Category values.

createCostCategoryDefinition_rules :: Lens' CreateCostCategoryDefinition (NonEmpty CostCategoryRule) Source #

The Cost Category rules used to categorize costs. For more information, see CostCategoryRule.

Destructuring the Response

data CreateCostCategoryDefinitionResponse Source #

Constructors

CreateCostCategoryDefinitionResponse' 

Fields

Instances

Instances details
Eq CreateCostCategoryDefinitionResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

Read CreateCostCategoryDefinitionResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

Show CreateCostCategoryDefinitionResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

Generic CreateCostCategoryDefinitionResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

NFData CreateCostCategoryDefinitionResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

type Rep CreateCostCategoryDefinitionResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.CreateCostCategoryDefinition

type Rep CreateCostCategoryDefinitionResponse = D1 ('MetaData "CreateCostCategoryDefinitionResponse" "Amazonka.CostExplorer.CreateCostCategoryDefinition" "libZSservicesZSamazonka-cost-explorerZSamazonka-cost-explorer" 'False) (C1 ('MetaCons "CreateCostCategoryDefinitionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "effectiveStart") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "costCategoryArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newCreateCostCategoryDefinitionResponse Source #

Create a value of CreateCostCategoryDefinitionResponse 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:effectiveStart:CreateCostCategoryDefinitionResponse', createCostCategoryDefinitionResponse_effectiveStart - The Cost Category's effective start date.

$sel:costCategoryArn:CreateCostCategoryDefinitionResponse', createCostCategoryDefinitionResponse_costCategoryArn - The unique identifier for your newly created Cost Category.

$sel:httpStatus:CreateCostCategoryDefinitionResponse', createCostCategoryDefinitionResponse_httpStatus - The response's http status code.

Response Lenses