Class: Aws::CostExplorer::Types::UpdateCostCategoryDefinitionRequest

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

Overview

Note:

When making an API call, you may pass UpdateCostCategoryDefinitionRequest data as a hash:

{
  cost_category_arn: "Arn", # required
  rule_version: "CostCategoryExpression.v1", # required, accepts CostCategoryExpression.v1
  rules: [ # required
    {
      value: "CostCategoryValue",
      rule: {
        or: [
          {
            # recursive Expression
          },
        ],
        and: [
          {
            # recursive Expression
          },
        ],
        not: {
          # recursive Expression
        },
        dimensions: {
          key: "AZ", # accepts AZ, INSTANCE_TYPE, LINKED_ACCOUNT, LINKED_ACCOUNT_NAME, OPERATION, PURCHASE_TYPE, REGION, SERVICE, SERVICE_CODE, USAGE_TYPE, USAGE_TYPE_GROUP, RECORD_TYPE, OPERATING_SYSTEM, TENANCY, SCOPE, PLATFORM, SUBSCRIPTION_ID, LEGAL_ENTITY_NAME, DEPLOYMENT_OPTION, DATABASE_ENGINE, CACHE_ENGINE, INSTANCE_TYPE_FAMILY, BILLING_ENTITY, RESERVATION_ID, RESOURCE_ID, RIGHTSIZING_TYPE, SAVINGS_PLANS_TYPE, SAVINGS_PLAN_ARN, PAYMENT_OPTION, AGREEMENT_END_DATE_TIME_AFTER, AGREEMENT_END_DATE_TIME_BEFORE
          values: ["Value"],
          match_options: ["EQUALS"], # accepts EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE
        },
        tags: {
          key: "TagKey",
          values: ["Value"],
          match_options: ["EQUALS"], # accepts EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE
        },
        cost_categories: {
          key: "CostCategoryName",
          values: ["Value"],
          match_options: ["EQUALS"], # accepts EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE
        },
      },
      inherited_value: {
        dimension_name: "LINKED_ACCOUNT_NAME", # accepts LINKED_ACCOUNT_NAME, TAG
        dimension_key: "GenericString",
      },
      type: "REGULAR", # accepts REGULAR, INHERITED_VALUE
    },
  ],
  default_value: "CostCategoryValue",
  split_charge_rules: [
    {
      source: "GenericString", # required
      targets: ["GenericString"], # required
      method: "FIXED", # required, accepts FIXED, PROPORTIONAL, EVEN
      parameters: [
        {
          type: "ALLOCATION_PERCENTAGES", # required, accepts ALLOCATION_PERCENTAGES
          values: ["GenericString"], # required
        },
      ],
    },
  ],
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#cost_category_arnString

The unique identifier for your Cost Category.

Returns:

  • (String)


7107
7108
7109
7110
7111
7112
7113
7114
7115
# File 'gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/types.rb', line 7107

class UpdateCostCategoryDefinitionRequest < Struct.new(
  :cost_category_arn,
  :rule_version,
  :rules,
  :default_value,
  :split_charge_rules)
  SENSITIVE = []
  include Aws::Structure
end

#default_valueString

The default value for the cost category.

Returns:

  • (String)


7107
7108
7109
7110
7111
7112
7113
7114
7115
# File 'gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/types.rb', line 7107

class UpdateCostCategoryDefinitionRequest < Struct.new(
  :cost_category_arn,
  :rule_version,
  :rules,
  :default_value,
  :split_charge_rules)
  SENSITIVE = []
  include Aws::Structure
end

#rule_versionString

The rule schema version in this particular Cost Category.

Returns:

  • (String)


7107
7108
7109
7110
7111
7112
7113
7114
7115
# File 'gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/types.rb', line 7107

class UpdateCostCategoryDefinitionRequest < Struct.new(
  :cost_category_arn,
  :rule_version,
  :rules,
  :default_value,
  :split_charge_rules)
  SENSITIVE = []
  include Aws::Structure
end

#rulesArray<Types::CostCategoryRule>

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

Returns:



7107
7108
7109
7110
7111
7112
7113
7114
7115
# File 'gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/types.rb', line 7107

class UpdateCostCategoryDefinitionRequest < Struct.new(
  :cost_category_arn,
  :rule_version,
  :rules,
  :default_value,
  :split_charge_rules)
  SENSITIVE = []
  include Aws::Structure
end

#split_charge_rulesArray<Types::CostCategorySplitChargeRule>

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



7107
7108
7109
7110
7111
7112
7113
7114
7115
# File 'gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/types.rb', line 7107

class UpdateCostCategoryDefinitionRequest < Struct.new(
  :cost_category_arn,
  :rule_version,
  :rules,
  :default_value,
  :split_charge_rules)
  SENSITIVE = []
  include Aws::Structure
end