:doc:`Invoicing <../../invoicing>` / Client / update_invoice_unit

*******************
update_invoice_unit
*******************



.. py:method:: Invoicing.Client.update_invoice_unit(**kwargs)

  

  You can update the invoice unit configuration at any time, and Amazon Web Services will use the latest configuration at the end of the month.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/invoicing-2024-12-01/UpdateInvoiceUnit>`_  


  **Request Syntax**
  ::

    response = client.update_invoice_unit(
        InvoiceUnitArn='string',
        Description='string',
        TaxInheritanceDisabled=True|False,
        Rule={
            'LinkedAccounts': [
                'string',
            ],
            'BillSourceAccounts': [
                'string',
            ]
        }
    )
    
  :type InvoiceUnitArn: string
  :param InvoiceUnitArn: **[REQUIRED]** 

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

    

  
  :type Description: string
  :param Description: 

    The assigned description for an invoice unit. This information can't be modified or deleted.

    

  
  :type TaxInheritanceDisabled: boolean
  :param TaxInheritanceDisabled: 

    Whether the invoice unit based tax inheritance is/ should be enabled or disabled.

    

  
  :type Rule: dict
  :param Rule: 

    The ``InvoiceUnitRule`` object used to update invoice units.

    

  
    - **LinkedAccounts** *(list) --* 

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

      

    
      - *(string) --* 

      
  
    - **BillSourceAccounts** *(list) --* 

      A list of Amazon Web Services account account IDs that have delegated their billing responsibility to the receiver account through transfer billing. Unlike linked accounts, these bill source accounts can be payer accounts from other organizations that have authorized billing transfer to this account.

      

    
      - *(string) --* 

      
  
  
  
  :rtype: 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**
  
  *   :py:class:`Invoicing.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`Invoicing.Client.exceptions.ValidationException`

  
  *   :py:class:`Invoicing.Client.exceptions.InternalServerException`

  
  *   :py:class:`Invoicing.Client.exceptions.ThrottlingException`

  
  *   :py:class:`Invoicing.Client.exceptions.AccessDeniedException`

  