CostOptimizationHub / Client / update_preferences

update_preferences#

CostOptimizationHub.Client.update_preferences(**kwargs)#

Updates a set of preferences for an account in order to add account-specific preferences into the service. These preferences impact how the savings associated with recommendations are presented.

See also: AWS API Documentation

Request Syntax

response = client.update_preferences(
    memberAccountDiscountVisibility='All'|'None',
    savingsEstimationMode='BeforeDiscounts'|'AfterDiscounts'
)
Parameters:
  • memberAccountDiscountVisibility (string) – Sets the “member account discount visibility” preference.

  • savingsEstimationMode (string) – Sets the “savings estimation mode” preference.

Return type:

dict

Returns:

Response Syntax

{
    'memberAccountDiscountVisibility': 'All'|'None',
    'savingsEstimationMode': 'BeforeDiscounts'|'AfterDiscounts'
}

Response Structure

  • (dict) –

    • memberAccountDiscountVisibility (string) –

      Shows the status of the “member account discount visibility” preference.

    • savingsEstimationMode (string) –

      Shows the status of the “savings estimation mode” preference.

Exceptions

  • CostOptimizationHub.Client.exceptions.ValidationException

  • CostOptimizationHub.Client.exceptions.InternalServerException

  • CostOptimizationHub.Client.exceptions.AccessDeniedException

  • CostOptimizationHub.Client.exceptions.ThrottlingException