CfnBillingGroupPropsMixin

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

Bases: Mixin

Creates a billing group that resembles a consolidated billing family that AWS charges, based off of the predefined pricing plan computation.

See:

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

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:

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 = ['accountGrouping', 'computationPreference', 'description', 'name', 'primaryAccountId', 'tags']

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

AccountGroupingProperty

class CfnBillingGroupPropsMixin.AccountGroupingProperty(*, auto_associate=None, linked_account_ids=None, responsibility_transfer_arn=None)

Bases: object

The 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-billingconductor-billinggroup-accountgrouping.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

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-billingconductor-billinggroup-accountgrouping.html#cfn-billingconductor-billinggroup-accountgrouping-autoassociate

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-billingconductor-billinggroup-accountgrouping.html#cfn-billingconductor-billinggroup-accountgrouping-linkedaccountids

responsibility_transfer_arn

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-billingconductor-billinggroup-accountgrouping.html#cfn-billingconductor-billinggroup-accountgrouping-responsibilitytransferarn

Type:

see

ComputationPreferenceProperty

class CfnBillingGroupPropsMixin.ComputationPreferenceProperty(*, pricing_plan_arn=None)

Bases: object

The 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-billingconductor-billinggroup-computationpreference.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

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-billingconductor-billinggroup-computationpreference.html#cfn-billingconductor-billinggroup-computationpreference-pricingplanarn