CfnInvoiceUnitPropsMixin
- class aws_cdk.mixins_preview.aws_invoicing.mixins.CfnInvoiceUnitPropsMixin(props, *, strategy=None)
Bases:
MixinAn 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:
- 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:
- 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
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
ResourceTagProperty
- class CfnInvoiceUnitPropsMixin.ResourceTagProperty(*, key=None, value=None)
Bases:
objectThe 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:
- 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.
- value
The specific value of the resource tag.
RuleProperty
- class CfnInvoiceUnitPropsMixin.RuleProperty(*, linked_accounts=None)
Bases:
objectThe
InvoiceUnitRuleobject used to update invoice units.- Parameters:
linked_accounts (
Optional[Sequence[str]]) – The list ofLINKED_ACCOUNTIDs where charges are included within the invoice unit.- 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_invoicing import mixins as invoicing_mixins rule_property = invoicing_mixins.CfnInvoiceUnitPropsMixin.RuleProperty( linked_accounts=["linkedAccounts"] )
Attributes
- linked_accounts
The list of
LINKED_ACCOUNTIDs where charges are included within the invoice unit.