Class: Aws::CostExplorer::Types::CreateCostCategoryDefinitionRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::CostExplorer::Types::CreateCostCategoryDefinitionRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-costexplorer/types.rb
Overview
Note:
When making an API call, you may pass CreateCostCategoryDefinitionRequest data as a hash:
{
name: "CostCategoryName", # 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",
}
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#default_value ⇒ String
The default value for the cost category.
-
#name ⇒ String
The unique name of the Cost Category.
-
#rule_version ⇒ String
The rule schema version in this particular Cost Category.
-
#rules ⇒ Array<Types::CostCategoryRule>
The Cost Category rules used to categorize costs.
Instance Attribute Details
#default_value ⇒ String
The default value for the cost category.
985 986 987 988 989 990 991 992 |
# File 'lib/aws-sdk-costexplorer/types.rb', line 985 class CreateCostCategoryDefinitionRequest < Struct.new( :name, :rule_version, :rules, :default_value) SENSITIVE = [] include Aws::Structure end |
#name ⇒ String
The unique name of the Cost Category.
985 986 987 988 989 990 991 992 |
# File 'lib/aws-sdk-costexplorer/types.rb', line 985 class CreateCostCategoryDefinitionRequest < Struct.new( :name, :rule_version, :rules, :default_value) SENSITIVE = [] include Aws::Structure end |
#rule_version ⇒ String
The rule schema version in this particular Cost Category.
985 986 987 988 989 990 991 992 |
# File 'lib/aws-sdk-costexplorer/types.rb', line 985 class CreateCostCategoryDefinitionRequest < Struct.new( :name, :rule_version, :rules, :default_value) SENSITIVE = [] include Aws::Structure end |
#rules ⇒ Array<Types::CostCategoryRule>
The Cost Category rules used to categorize costs. For more information, see [CostCategoryRule].
[1]: docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_CostCategoryRule.html
985 986 987 988 989 990 991 992 |
# File 'lib/aws-sdk-costexplorer/types.rb', line 985 class CreateCostCategoryDefinitionRequest < Struct.new( :name, :rule_version, :rules, :default_value) SENSITIVE = [] include Aws::Structure end |