CfnBillingGroupPropsMixin
- class aws_cdk.mixins_preview.aws_billingconductor.mixins.CfnBillingGroupPropsMixin(props, *, strategy=None)
Bases:
MixinCreates a billing group that resembles a consolidated billing family that AWS charges, based off of the predefined pricing plan computation.
- See:
- CloudformationResource:
AWS::BillingConductor::BillingGroup
- 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_billing_group_props_mixin = billingconductor_mixins.CfnBillingGroupPropsMixin(billingconductor_mixins.CfnBillingGroupMixinProps( account_grouping=billingconductor_mixins.CfnBillingGroupPropsMixin.AccountGroupingProperty( auto_associate=False, linked_account_ids=["linkedAccountIds"], responsibility_transfer_arn="responsibilityTransferArn" ), computation_preference=billingconductor_mixins.CfnBillingGroupPropsMixin.ComputationPreferenceProperty( pricing_plan_arn="pricingPlanArn" ), description="description", name="name", primary_account_id="primaryAccountId", tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::BillingConductor::BillingGroup.- Parameters:
props (
Union[CfnBillingGroupMixinProps,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 = ['accountGrouping', 'computationPreference', 'description', 'name', 'primaryAccountId', 'tags']
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
AccountGroupingProperty
- class CfnBillingGroupPropsMixin.AccountGroupingProperty(*, auto_associate=None, linked_account_ids=None, responsibility_transfer_arn=None)
Bases:
objectThe set of accounts that will be under the billing group.
The set of accounts resemble the linked accounts in a consolidated billing family.
- Parameters:
auto_associate (
Union[bool,IResolvable,None]) – Specifies if this billing group will automatically associate newly added AWS accounts that join your consolidated billing family.linked_account_ids (
Optional[Sequence[str]]) – The account IDs that make up the billing group. Account IDs must be a part of the consolidated billing family, and not associated with another billing group.responsibility_transfer_arn (
Optional[str])
- 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 account_grouping_property = billingconductor_mixins.CfnBillingGroupPropsMixin.AccountGroupingProperty( auto_associate=False, linked_account_ids=["linkedAccountIds"], responsibility_transfer_arn="responsibilityTransferArn" )
Attributes
- auto_associate
Specifies if this billing group will automatically associate newly added AWS accounts that join your consolidated billing family.
- linked_account_ids
The account IDs that make up the billing group.
Account IDs must be a part of the consolidated billing family, and not associated with another billing group.
ComputationPreferenceProperty
- class CfnBillingGroupPropsMixin.ComputationPreferenceProperty(*, pricing_plan_arn=None)
Bases:
objectThe preferences and settings that will be used to compute the AWS charges for a billing group.
- Parameters:
pricing_plan_arn (
Optional[str]) – The Amazon Resource Name (ARN) of the pricing plan used to compute the AWS charges for a billing group.- 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 computation_preference_property = billingconductor_mixins.CfnBillingGroupPropsMixin.ComputationPreferenceProperty( pricing_plan_arn="pricingPlanArn" )
Attributes
- pricing_plan_arn
The Amazon Resource Name (ARN) of the pricing plan used to compute the AWS charges for a billing group.