CfnPricingRulePropsMixin
- class aws_cdk.mixins_preview.aws_billingconductor.mixins.CfnPricingRulePropsMixin(props, *, strategy=None)
Bases:
MixinCreates a pricing rule which can be associated with a pricing plan, or a set of pricing plans.
- See:
- 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:
- 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
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
FreeTierProperty
- class CfnPricingRulePropsMixin.FreeTierProperty(*, activated=None)
Bases:
objectThe possible AWS Free Tier configurations.
- Parameters:
activated (
Union[bool,IResolvable,None]) – Activate or deactivate AWS Free Tier.- See:
- 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.
TieringProperty
- class CfnPricingRulePropsMixin.TieringProperty(*, free_tier=None)
Bases:
objectThe 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:
- 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.