Invoicing / Client / create_invoice_unit

create_invoice_unit#

Invoicing.Client.create_invoice_unit(**kwargs)#

This creates a new invoice unit with the provided definition.

See also: AWS API Documentation

Request Syntax

response = client.create_invoice_unit(
    Name='string',
    InvoiceReceiver='string',
    Description='string',
    TaxInheritanceDisabled=True|False,
    Rule={
        'LinkedAccounts': [
            'string',
        ]
    },
    ResourceTags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters:
  • Name (string) –

    [REQUIRED]

    The unique name of the invoice unit that is shown on the generated invoice. This can’t be changed once it is set. To change this name, you must delete the invoice unit recreate.

  • InvoiceReceiver (string) –

    [REQUIRED]

    The Amazon Web Services account ID chosen to be the receiver of an invoice unit. All invoices generated for that invoice unit will be sent to this account ID.

  • Description (string) – The invoice unit’s description. This can be changed at a later time.

  • TaxInheritanceDisabled (boolean) – Whether the invoice unit based tax inheritance is/ should be enabled or disabled.

  • Rule (dict) –

    [REQUIRED]

    The InvoiceUnitRule object used to create invoice units.

    • LinkedAccounts (list) –

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

      • (string) –

  • ResourceTags (list) –

    The tag structure that contains a tag key and value.

    • (dict) –

      The tag structure that contains a tag key and value.

      • Key (string) – [REQUIRED]

        The object key of your of your resource tag.

      • Value (string) – [REQUIRED]

        The specific value of the resource tag.

Return type:

dict

Returns:

Response Syntax

{
    'InvoiceUnitArn': 'string'
}

Response Structure

  • (dict) –

    • InvoiceUnitArn (string) –

      The ARN to identify an invoice unit. This information can’t be modified or deleted.

Exceptions