CfnPricingRulePropsMixin

class aws_cdk.mixins_preview.aws_billingconductor.mixins.CfnPricingRulePropsMixin(props, *, strategy=None)

Bases: Mixin

Creates a pricing rule which can be associated with a pricing plan, or a set of pricing plans.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-billingconductor-pricingrule.html

CloudformationResource:

AWS::BillingConductor::PricingRule

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.mixins_preview import mixins
from aws_cdk.mixins_preview.aws_billingconductor import mixins as billingconductor_mixins

cfn_pricing_rule_props_mixin = billingconductor_mixins.CfnPricingRulePropsMixin(billingconductor_mixins.CfnPricingRuleMixinProps(
    billing_entity="billingEntity",
    description="description",
    modifier_percentage=123,
    name="name",
    operation="operation",
    scope="scope",
    service="service",
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    tiering=billingconductor_mixins.CfnPricingRulePropsMixin.TieringProperty(
        free_tier=billingconductor_mixins.CfnPricingRulePropsMixin.FreeTierProperty(
            activated=False
        )
    ),
    type="type",
    usage_type="usageType"
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

Create a mixin to apply properties to AWS::BillingConductor::PricingRule.

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

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

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['billingEntity', 'description', 'modifierPercentage', 'name', 'operation', 'scope', 'service', 'tags', 'tiering', 'type', 'usageType']

Static Methods

classmethod is_mixin(x)

(experimental) 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.

Stability:

experimental

FreeTierProperty

class CfnPricingRulePropsMixin.FreeTierProperty(*, activated=None)

Bases: object

The possible AWS Free Tier configurations.

Parameters:

activated (Union[bool, IResolvable, None]) – Activate or deactivate AWS Free Tier.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-billingconductor-pricingrule-freetier.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.mixins_preview.aws_billingconductor import mixins as billingconductor_mixins

free_tier_property = billingconductor_mixins.CfnPricingRulePropsMixin.FreeTierProperty(
    activated=False
)

Attributes

activated

Activate or deactivate AWS Free Tier.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-billingconductor-pricingrule-freetier.html#cfn-billingconductor-pricingrule-freetier-activated

TieringProperty

class CfnPricingRulePropsMixin.TieringProperty(*, free_tier=None)

Bases: object

The set of tiering configurations for the pricing rule.

Parameters:

free_tier (Union[IResolvable, FreeTierProperty, Dict[str, Any], None]) – The possible AWS Free Tier configurations.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-billingconductor-pricingrule-tiering.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.mixins_preview.aws_billingconductor import mixins as billingconductor_mixins

tiering_property = billingconductor_mixins.CfnPricingRulePropsMixin.TieringProperty(
    free_tier=billingconductor_mixins.CfnPricingRulePropsMixin.FreeTierProperty(
        activated=False
    )
)

Attributes

free_tier

The possible AWS Free Tier configurations.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-billingconductor-pricingrule-tiering.html#cfn-billingconductor-pricingrule-tiering-freetier