CfnCostCategoryPropsMixin

class aws_cdk.cfn_property_mixins.aws_ce.CfnCostCategoryPropsMixin(props, *, strategy=None)

Bases: Mixin

The AWS::CE::CostCategory resource creates groupings of cost that you can use across products in the Billing and Cost Management console, such as Cost Explorer and AWS Budgets.

For more information, see Managing Your Costs with Cost Categories in the Billing and Cost Management User Guide .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ce-costcategory.html

CloudformationResource:

AWS::CE::CostCategory

Mixin:

true

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.cfn_property_mixins import aws_ce as ce
import aws_cdk as cdk

# merge_strategy: cdk.IMergeStrategy

cfn_cost_category_props_mixin = ce.CfnCostCategoryPropsMixin(ce.CfnCostCategoryMixinProps(
    default_value="defaultValue",
    name="name",
    rules="rules",
    rule_version="ruleVersion",
    split_charge_rules="splitChargeRules",
    tags=[ce.CfnCostCategoryPropsMixin.ResourceTagProperty(
        key="key",
        value="value"
    )]
),
    strategy=merge_strategy
)

Create a mixin to apply properties to AWS::CE::CostCategory.

Parameters:
  • props (Union[CfnCostCategoryMixinProps, Dict[str, Any]]) – L1 properties to apply.

  • strategy (Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

None

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['defaultValue', 'name', 'rules', 'ruleVersion', 'splitChargeRules', 'tags']

Static Methods

classmethod is_mixin(x)

Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

ResourceTagProperty

class CfnCostCategoryPropsMixin.ResourceTagProperty(*, key=None, value=None)

Bases: object

The tag structure that contains a tag key and value.

Parameters:
  • key (Optional[str]) – The key that’s associated with the tag.

  • value (Optional[str]) – The value that’s associated with the tag.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ce-costcategory-resourcetag.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.cfn_property_mixins import aws_ce as ce

resource_tag_property = ce.CfnCostCategoryPropsMixin.ResourceTagProperty(
    key="key",
    value="value"
)

Attributes

key

The key that’s associated with the tag.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ce-costcategory-resourcetag.html#cfn-ce-costcategory-resourcetag-key

value

The value that’s associated with the tag.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ce-costcategory-resourcetag.html#cfn-ce-costcategory-resourcetag-value