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

Description

Updates an existing Cost Category. Changes made to the Cost Category rules will be used to categorize the current month’s expenses and future expenses. This won’t change categorization for the previous months.

Synopsis

Creating a Request

data UpdateCostCategoryDefinition Source #

See: newUpdateCostCategoryDefinition smart constructor.

Constructors

UpdateCostCategoryDefinition' 

Fields

Instances

Instances details
ToJSON UpdateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateCostCategoryDefinition

ToHeaders UpdateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateCostCategoryDefinition

ToPath UpdateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateCostCategoryDefinition

ToQuery UpdateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateCostCategoryDefinition

AWSRequest UpdateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateCostCategoryDefinition

Generic UpdateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateCostCategoryDefinition

Associated Types

type Rep UpdateCostCategoryDefinition :: Type -> Type #

Read UpdateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateCostCategoryDefinition

Show UpdateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateCostCategoryDefinition

NFData UpdateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateCostCategoryDefinition

Eq UpdateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateCostCategoryDefinition

Hashable UpdateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateCostCategoryDefinition

type AWSResponse UpdateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateCostCategoryDefinition

type Rep UpdateCostCategoryDefinition Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateCostCategoryDefinition

type Rep UpdateCostCategoryDefinition = D1 ('MetaData "UpdateCostCategoryDefinition" "Amazonka.CostExplorer.UpdateCostCategoryDefinition" "amazonka-cost-explorer-2.0-QqVzyVvst98QYs5s2Ea4h" 'False) (C1 ('MetaCons "UpdateCostCategoryDefinition'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "defaultValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "effectiveStart") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "splitChargeRules") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty CostCategorySplitChargeRule))))) :*: (S1 ('MetaSel ('Just "costCategoryArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "ruleVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CostCategoryRuleVersion) :*: S1 ('MetaSel ('Just "rules") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty CostCategoryRule))))))

newUpdateCostCategoryDefinition Source #

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

UpdateCostCategoryDefinition, updateCostCategoryDefinition_defaultValue - Undocumented member.

UpdateCostCategoryDefinition, updateCostCategoryDefinition_effectiveStart - The Cost Category's effective start date. It can only be a billing start date (first day of the month). If the date isn't provided, it's the first day of the current month. Dates can't be before the previous twelve months, or in the future.

UpdateCostCategoryDefinition, updateCostCategoryDefinition_splitChargeRules - The split charge rules used to allocate your charges between your Cost Category values.

UpdateCostCategoryDefinition, updateCostCategoryDefinition_costCategoryArn - The unique identifier for your Cost Category.

UpdateCostCategoryDefinition, updateCostCategoryDefinition_ruleVersion - Undocumented member.

UpdateCostCategoryDefinition, updateCostCategoryDefinition_rules - The Expression object used to categorize costs. For more information, see CostCategoryRule .

Request Lenses

updateCostCategoryDefinition_effectiveStart :: Lens' UpdateCostCategoryDefinition (Maybe Text) Source #

The Cost Category's effective start date. It can only be a billing start date (first day of the month). If the date isn't provided, it's the first day of the current month. Dates can't be before the previous twelve months, or in the future.

updateCostCategoryDefinition_splitChargeRules :: Lens' UpdateCostCategoryDefinition (Maybe (NonEmpty CostCategorySplitChargeRule)) Source #

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

updateCostCategoryDefinition_rules :: Lens' UpdateCostCategoryDefinition (NonEmpty CostCategoryRule) Source #

The Expression object used to categorize costs. For more information, see CostCategoryRule .

Destructuring the Response

data UpdateCostCategoryDefinitionResponse Source #

Constructors

UpdateCostCategoryDefinitionResponse' 

Fields

Instances

Instances details
Generic UpdateCostCategoryDefinitionResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateCostCategoryDefinition

Read UpdateCostCategoryDefinitionResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateCostCategoryDefinition

Show UpdateCostCategoryDefinitionResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateCostCategoryDefinition

NFData UpdateCostCategoryDefinitionResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateCostCategoryDefinition

Eq UpdateCostCategoryDefinitionResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateCostCategoryDefinition

type Rep UpdateCostCategoryDefinitionResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateCostCategoryDefinition

type Rep UpdateCostCategoryDefinitionResponse = D1 ('MetaData "UpdateCostCategoryDefinitionResponse" "Amazonka.CostExplorer.UpdateCostCategoryDefinition" "amazonka-cost-explorer-2.0-QqVzyVvst98QYs5s2Ea4h" 'False) (C1 ('MetaCons "UpdateCostCategoryDefinitionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "costCategoryArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "effectiveStart") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newUpdateCostCategoryDefinitionResponse Source #

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

UpdateCostCategoryDefinition, updateCostCategoryDefinitionResponse_costCategoryArn - The unique identifier for your Cost Category.

UpdateCostCategoryDefinition, updateCostCategoryDefinitionResponse_effectiveStart - The Cost Category's effective start date. It can only be a billing start date (first day of the month).

$sel:httpStatus:UpdateCostCategoryDefinitionResponse', updateCostCategoryDefinitionResponse_httpStatus - The response's http status code.

Response Lenses

updateCostCategoryDefinitionResponse_effectiveStart :: Lens' UpdateCostCategoryDefinitionResponse (Maybe Text) Source #

The Cost Category's effective start date. It can only be a billing start date (first day of the month).