CfnInvoiceUnitPropsMixin

class aws_cdk.mixins_preview.aws_invoicing.mixins.CfnInvoiceUnitPropsMixin(props, *, strategy=None)

Bases: Mixin

An invoice unit is a set of mutually exclusive account that correspond to your business entity.

Invoice units allow you separate AWS account costs and configures your invoice for each business entity going forward.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-invoicing-invoiceunit.html

CloudformationResource:

AWS::Invoicing::InvoiceUnit

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_invoicing import mixins as invoicing_mixins

cfn_invoice_unit_props_mixin = invoicing_mixins.CfnInvoiceUnitPropsMixin(invoicing_mixins.CfnInvoiceUnitMixinProps(
    description="description",
    invoice_receiver="invoiceReceiver",
    name="name",
    resource_tags=[invoicing_mixins.CfnInvoiceUnitPropsMixin.ResourceTagProperty(
        key="key",
        value="value"
    )],
    rule=invoicing_mixins.CfnInvoiceUnitPropsMixin.RuleProperty(
        linked_accounts=["linkedAccounts"]
    ),
    tax_inheritance_disabled=False
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

Create a mixin to apply properties to AWS::Invoicing::InvoiceUnit.

Parameters:
  • props (Union[CfnInvoiceUnitMixinProps, 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 = ['description', 'invoiceReceiver', 'name', 'resourceTags', 'rule', 'taxInheritanceDisabled']

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

ResourceTagProperty

class CfnInvoiceUnitPropsMixin.ResourceTagProperty(*, key=None, value=None)

Bases: object

The tag structure that contains a tag key and value.

Parameters:
  • key (Optional[str]) – The object key of your of your resource tag.

  • value (Optional[str]) – The specific value of the resource tag.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-invoicing-invoiceunit-resourcetag.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_invoicing import mixins as invoicing_mixins

resource_tag_property = invoicing_mixins.CfnInvoiceUnitPropsMixin.ResourceTagProperty(
    key="key",
    value="value"
)

Attributes

key

The object key of your of your resource tag.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-invoicing-invoiceunit-resourcetag.html#cfn-invoicing-invoiceunit-resourcetag-key

value

The specific value of the resource tag.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-invoicing-invoiceunit-resourcetag.html#cfn-invoicing-invoiceunit-resourcetag-value

RuleProperty

class CfnInvoiceUnitPropsMixin.RuleProperty(*, linked_accounts=None)

Bases: object

The InvoiceUnitRule object used to update invoice units.

Parameters:

linked_accounts (Optional[Sequence[str]]) – The list of LINKED_ACCOUNT IDs where charges are included within the invoice unit.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-invoicing-invoiceunit-rule.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_invoicing import mixins as invoicing_mixins

rule_property = invoicing_mixins.CfnInvoiceUnitPropsMixin.RuleProperty(
    linked_accounts=["linkedAccounts"]
)

Attributes

linked_accounts

The list of LINKED_ACCOUNT IDs where charges are included within the invoice unit.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-invoicing-invoiceunit-rule.html#cfn-invoicing-invoiceunit-rule-linkedaccounts