CfnPricingRulePropsMixin

class aws_cdk.cfn_property_mixins.aws_billingconductor.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.cfn_property_mixins import aws_billingconductor as billingconductor
import aws_cdk as cdk

# merge_strategy: cdk.IMergeStrategy

cfn_pricing_rule_props_mixin = billingconductor.CfnPricingRulePropsMixin(billingconductor.CfnPricingRuleMixinProps(
    billing_entity="billingEntity",
    description="description",
    modifier_percentage=123,
    name="name",
    operation="operation",
    scope="scope",
    service="service",
    tags=[cdk.CfnTag(
        key="key",
        value="value"
    )],
    tiering=billingconductor.CfnPricingRulePropsMixin.TieringProperty(
        custom_tiers=[billingconductor.CfnPricingRulePropsMixin.CustomTierProperty(
            begin_range_inclusive=123,
            end_range_exclusive=123,
            rate_value=123
        )],
        free_tier=billingconductor.CfnPricingRulePropsMixin.FreeTierProperty(
            activated=False
        )
    ),
    type="type",
    usage_type="usageType"
),
    strategy=merge_strategy
)

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

Parameters:
  • props (Union[CfnPricingRuleMixinProps, 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 = ['billingEntity', 'description', 'modifierPercentage', 'name', 'operation', 'scope', 'service', 'tags', 'tiering', 'type', 'usageType']

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.

CustomTierProperty

class CfnPricingRulePropsMixin.CustomTierProperty(*, begin_range_inclusive=None, end_range_exclusive=None, rate_value=None)

Bases: object

A custom volume tier that defines the rate applied to usage within the given range.

Parameters:
  • begin_range_inclusive (Union[int, float, None]) – The inclusive beginning of the tier’s usage range.

  • end_range_exclusive (Union[int, float, None]) – The exclusive end of the tier’s usage range. Omit for the last tier (infinity).

  • rate_value (Union[int, float, None]) – The custom rate applied to usage within the tier’s range.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-billingconductor-pricingrule-customtier.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_billingconductor as billingconductor

custom_tier_property = billingconductor.CfnPricingRulePropsMixin.CustomTierProperty(
    begin_range_inclusive=123,
    end_range_exclusive=123,
    rate_value=123
)

Attributes

begin_range_inclusive

The inclusive beginning of the tier’s usage range.

See:

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

end_range_exclusive

The exclusive end of the tier’s usage range.

Omit for the last tier (infinity).

See:

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

rate_value

The custom rate applied to usage within the tier’s range.

See:

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

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.cfn_property_mixins import aws_billingconductor as billingconductor

free_tier_property = billingconductor.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(*, custom_tiers=None, free_tier=None)

Bases: object

The set of tiering configurations for the pricing rule.

Parameters:
  • custom_tiers (Union[IResolvable, Sequence[Union[IResolvable, CustomTierProperty, Dict[str, Any]]], None]) – The set of custom volume tiers for a SKU-scoped TIERING pricing rule. Tiers must start at 0, be contiguous, and the last tier must have no end range.

  • 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.cfn_property_mixins import aws_billingconductor as billingconductor

tiering_property = billingconductor.CfnPricingRulePropsMixin.TieringProperty(
    custom_tiers=[billingconductor.CfnPricingRulePropsMixin.CustomTierProperty(
        begin_range_inclusive=123,
        end_range_exclusive=123,
        rate_value=123
    )],
    free_tier=billingconductor.CfnPricingRulePropsMixin.FreeTierProperty(
        activated=False
    )
)

Attributes

custom_tiers

The set of custom volume tiers for a SKU-scoped TIERING pricing rule.

Tiers must start at 0, be contiguous, and the last tier must have no end range.

See:

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

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