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.Types.CostCategorySplitChargeRule

Description

 
Synopsis

Documentation

data CostCategorySplitChargeRule Source #

Use the split charge rule to split the cost of one Cost Category value across several other target values.

See: newCostCategorySplitChargeRule smart constructor.

Constructors

CostCategorySplitChargeRule' 

Fields

  • parameters :: Maybe (NonEmpty CostCategorySplitChargeRuleParameter)

    The parameters for a split charge method. This is only required for the FIXED method.

  • source :: Text

    The Cost Category value that you want to split. That value can't be used as a source or a target in other split charge rules. To indicate uncategorized costs, you can use an empty string as the source.

  • targets :: NonEmpty Text

    The Cost Category values that you want to split costs across. These values can't be used as a source in other split charge rules.

  • method :: CostCategorySplitChargeMethod

    The method that's used to define how to split your source costs across your targets.

    Proportional - Allocates charges across your targets based on the proportional weighted cost of each target.

    Fixed - Allocates charges across your targets based on your defined allocation percentage.

    @Even@ - Allocates costs evenly across all targets.

Instances

Instances details
FromJSON CostCategorySplitChargeRule Source # 
Instance details

Defined in Amazonka.CostExplorer.Types.CostCategorySplitChargeRule

ToJSON CostCategorySplitChargeRule Source # 
Instance details

Defined in Amazonka.CostExplorer.Types.CostCategorySplitChargeRule

Generic CostCategorySplitChargeRule Source # 
Instance details

Defined in Amazonka.CostExplorer.Types.CostCategorySplitChargeRule

Associated Types

type Rep CostCategorySplitChargeRule :: Type -> Type #

Read CostCategorySplitChargeRule Source # 
Instance details

Defined in Amazonka.CostExplorer.Types.CostCategorySplitChargeRule

Show CostCategorySplitChargeRule Source # 
Instance details

Defined in Amazonka.CostExplorer.Types.CostCategorySplitChargeRule

NFData CostCategorySplitChargeRule Source # 
Instance details

Defined in Amazonka.CostExplorer.Types.CostCategorySplitChargeRule

Eq CostCategorySplitChargeRule Source # 
Instance details

Defined in Amazonka.CostExplorer.Types.CostCategorySplitChargeRule

Hashable CostCategorySplitChargeRule Source # 
Instance details

Defined in Amazonka.CostExplorer.Types.CostCategorySplitChargeRule

type Rep CostCategorySplitChargeRule Source # 
Instance details

Defined in Amazonka.CostExplorer.Types.CostCategorySplitChargeRule

type Rep CostCategorySplitChargeRule = D1 ('MetaData "CostCategorySplitChargeRule" "Amazonka.CostExplorer.Types.CostCategorySplitChargeRule" "amazonka-cost-explorer-2.0-QqVzyVvst98QYs5s2Ea4h" 'False) (C1 ('MetaCons "CostCategorySplitChargeRule'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "parameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty CostCategorySplitChargeRuleParameter))) :*: S1 ('MetaSel ('Just "source") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "targets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty Text)) :*: S1 ('MetaSel ('Just "method") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CostCategorySplitChargeMethod))))

newCostCategorySplitChargeRule Source #

Create a value of CostCategorySplitChargeRule 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:parameters:CostCategorySplitChargeRule', costCategorySplitChargeRule_parameters - The parameters for a split charge method. This is only required for the FIXED method.

$sel:source:CostCategorySplitChargeRule', costCategorySplitChargeRule_source - The Cost Category value that you want to split. That value can't be used as a source or a target in other split charge rules. To indicate uncategorized costs, you can use an empty string as the source.

$sel:targets:CostCategorySplitChargeRule', costCategorySplitChargeRule_targets - The Cost Category values that you want to split costs across. These values can't be used as a source in other split charge rules.

$sel:method:CostCategorySplitChargeRule', costCategorySplitChargeRule_method - The method that's used to define how to split your source costs across your targets.

Proportional - Allocates charges across your targets based on the proportional weighted cost of each target.

Fixed - Allocates charges across your targets based on your defined allocation percentage.

@Even@ - Allocates costs evenly across all targets.

costCategorySplitChargeRule_parameters :: Lens' CostCategorySplitChargeRule (Maybe (NonEmpty CostCategorySplitChargeRuleParameter)) Source #

The parameters for a split charge method. This is only required for the FIXED method.

costCategorySplitChargeRule_source :: Lens' CostCategorySplitChargeRule Text Source #

The Cost Category value that you want to split. That value can't be used as a source or a target in other split charge rules. To indicate uncategorized costs, you can use an empty string as the source.

costCategorySplitChargeRule_targets :: Lens' CostCategorySplitChargeRule (NonEmpty Text) Source #

The Cost Category values that you want to split costs across. These values can't be used as a source in other split charge rules.

costCategorySplitChargeRule_method :: Lens' CostCategorySplitChargeRule CostCategorySplitChargeMethod Source #

The method that's used to define how to split your source costs across your targets.

Proportional - Allocates charges across your targets based on the proportional weighted cost of each target.

Fixed - Allocates charges across your targets based on your defined allocation percentage.

@Even@ - Allocates costs evenly across all targets.