:doc:`BillingandCostManagementPricingCalculator <../../bcm-pricing-calculator>` / Client / update_preferences

******************
update_preferences
******************



.. py:method:: BillingandCostManagementPricingCalculator.Client.update_preferences(**kwargs)

  

  Updates the preferences for Pricing Calculator.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/bcm-pricing-calculator-2024-06-19/UpdatePreferences>`_  


  **Request Syntax**
  ::

    response = client.update_preferences(
        managementAccountRateTypeSelections=[
            'BEFORE_DISCOUNTS'|'AFTER_DISCOUNTS'|'AFTER_DISCOUNTS_AND_COMMITMENTS',
        ],
        memberAccountRateTypeSelections=[
            'BEFORE_DISCOUNTS'|'AFTER_DISCOUNTS'|'AFTER_DISCOUNTS_AND_COMMITMENTS',
        ],
        standaloneAccountRateTypeSelections=[
            'BEFORE_DISCOUNTS'|'AFTER_DISCOUNTS'|'AFTER_DISCOUNTS_AND_COMMITMENTS',
        ]
    )
    
  :type managementAccountRateTypeSelections: list
  :param managementAccountRateTypeSelections: 

    The updated preferred rate types for the management account.

    

  
    - *(string) --* 

    

  :type memberAccountRateTypeSelections: list
  :param memberAccountRateTypeSelections: 

    The updated preferred rate types for member accounts.

    

  
    - *(string) --* 

    

  :type standaloneAccountRateTypeSelections: list
  :param standaloneAccountRateTypeSelections: 

    The updated preferred rate types for a standalone account.

    

  
    - *(string) --* 

    

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

    
    ::

      {
          'managementAccountRateTypeSelections': [
              'BEFORE_DISCOUNTS'|'AFTER_DISCOUNTS'|'AFTER_DISCOUNTS_AND_COMMITMENTS',
          ],
          'memberAccountRateTypeSelections': [
              'BEFORE_DISCOUNTS'|'AFTER_DISCOUNTS'|'AFTER_DISCOUNTS_AND_COMMITMENTS',
          ],
          'standaloneAccountRateTypeSelections': [
              'BEFORE_DISCOUNTS'|'AFTER_DISCOUNTS'|'AFTER_DISCOUNTS_AND_COMMITMENTS',
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **managementAccountRateTypeSelections** *(list) --* 

        The updated preferred rate types for the management account.

        
        

        - *(string) --* 
    
      

      - **memberAccountRateTypeSelections** *(list) --* 

        The updated preferred rate types for member accounts.

        
        

        - *(string) --* 
    
      

      - **standaloneAccountRateTypeSelections** *(list) --* 

        The updated preferred rate types for a standalone account.

        
        

        - *(string) --* 
    
  
  **Exceptions**
  
  *   :py:class:`BillingandCostManagementPricingCalculator.Client.exceptions.ValidationException`

  
  *   :py:class:`BillingandCostManagementPricingCalculator.Client.exceptions.DataUnavailableException`

  
  *   :py:class:`BillingandCostManagementPricingCalculator.Client.exceptions.ServiceQuotaExceededException`

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

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

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

  