Class: Aws::CostExplorer::Types::CostCategorySplitChargeRule

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/types.rb

Overview

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

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#methodString

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.

Returns:

  • (String)


998
999
1000
1001
1002
1003
1004
1005
# File 'gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/types.rb', line 998

class CostCategorySplitChargeRule < Struct.new(
  :source,
  :targets,
  :method,
  :parameters)
  SENSITIVE = []
  include Aws::Structure
end

#parametersArray<Types::CostCategorySplitChargeRuleParameter>

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



998
999
1000
1001
1002
1003
1004
1005
# File 'gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/types.rb', line 998

class CostCategorySplitChargeRule < Struct.new(
  :source,
  :targets,
  :method,
  :parameters)
  SENSITIVE = []
  include Aws::Structure
end

#sourceString

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.

Returns:

  • (String)


998
999
1000
1001
1002
1003
1004
1005
# File 'gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/types.rb', line 998

class CostCategorySplitChargeRule < Struct.new(
  :source,
  :targets,
  :method,
  :parameters)
  SENSITIVE = []
  include Aws::Structure
end

#targetsArray<String>

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.

Returns:

  • (Array<String>)


998
999
1000
1001
1002
1003
1004
1005
# File 'gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/types.rb', line 998

class CostCategorySplitChargeRule < Struct.new(
  :source,
  :targets,
  :method,
  :parameters)
  SENSITIVE = []
  include Aws::Structure
end