:doc:`BillingConductor <../../billingconductor>` / Client / update_billing_group

********************
update_billing_group
********************



.. py:method:: BillingConductor.Client.update_billing_group(**kwargs)

  

  This updates an existing billing group.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdateBillingGroup>`_  


  **Request Syntax**
  ::

    response = client.update_billing_group(
        Arn='string',
        Name='string',
        Status='ACTIVE'|'PRIMARY_ACCOUNT_MISSING'|'PENDING',
        ComputationPreference={
            'PricingPlanArn': 'string'
        },
        Description='string',
        AccountGrouping={
            'AutoAssociate': True|False,
            'ResponsibilityTransferArn': 'string'
        }
    )
    
  :type Arn: string
  :param Arn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the billing group being updated.

    

  
  :type Name: string
  :param Name: 

    The name of the billing group. The names must be unique to each billing group.

    

  
  :type Status: string
  :param Status: 

    The status of the billing group. Only one of the valid values can be used.

    

  
  :type ComputationPreference: dict
  :param ComputationPreference: 

    The preferences and settings that will be used to compute the Amazon Web Services charges for a billing group.

    

  
    - **PricingPlanArn** *(string) --* **[REQUIRED]** 

      The Amazon Resource Name (ARN) of the pricing plan that's used to compute the Amazon Web Services charges for a billing group.

      

    
  
  :type Description: string
  :param Description: 

    A description of the billing group.

    

  
  :type AccountGrouping: dict
  :param AccountGrouping: 

    Specifies if the billing group has automatic account association ( ``AutoAssociate``) enabled.

    

  
    - **AutoAssociate** *(boolean) --* 

      Specifies if this billing group will automatically associate newly added Amazon Web Services accounts that join your consolidated billing family.

      

    
    - **ResponsibilityTransferArn** *(string) --* 

      The Amazon Resource Name (ARN) that identifies the transfer relationship. Note: Modifications to the ResponsibilityTransferArn are not permitted for existing billing groups.

      

    
  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'Arn': 'string',
          'Name': 'string',
          'Description': 'string',
          'PrimaryAccountId': 'string',
          'PricingPlanArn': 'string',
          'Size': 123,
          'LastModifiedTime': 123,
          'Status': 'ACTIVE'|'PRIMARY_ACCOUNT_MISSING'|'PENDING',
          'StatusReason': 'string',
          'AccountGrouping': {
              'AutoAssociate': True|False,
              'ResponsibilityTransferArn': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Arn** *(string) --* 

        The Amazon Resource Name (ARN) of the billing group that was updated.

        
      

      - **Name** *(string) --* 

        The name of the billing group. The names must be unique to each billing group.

        
      

      - **Description** *(string) --* 

        A description of the billing group.

        
      

      - **PrimaryAccountId** *(string) --* 

        The account ID that serves as the main account in a billing group.

        
      

      - **PricingPlanArn** *(string) --* 

        The Amazon Resource Name (ARN) of the pricing plan to compute Amazon Web Services charges for the billing group.

        
      

      - **Size** *(integer) --* 

        The number of accounts in the particular billing group.

        
      

      - **LastModifiedTime** *(integer) --* 

        The most recent time when the billing group was modified.

        
      

      - **Status** *(string) --* 

        The status of the billing group. Only one of the valid values can be used.

        
      

      - **StatusReason** *(string) --* 

        The reason why the billing group is in its current status.

        
      

      - **AccountGrouping** *(dict) --* 

        Specifies if the billing group has automatic account association ( ``AutoAssociate``) enabled.

        
        

        - **AutoAssociate** *(boolean) --* 

          Specifies if this billing group will automatically associate newly added Amazon Web Services accounts that join your consolidated billing family.

          
        

        - **ResponsibilityTransferArn** *(string) --* 

          The Amazon Resource Name (ARN) that identifies the transfer relationship. Note: Modifications to the ResponsibilityTransferArn are not permitted for existing billing groups.

          
    
  
  **Exceptions**
  
  *   :py:class:`BillingConductor.Client.exceptions.ConflictException`

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

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

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

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

  
  *   :py:class:`BillingConductor.Client.exceptions.ResourceNotFoundException`

  