CostOptimizationHub / Client / get_preferences
get_preferences#
- CostOptimizationHub.Client.get_preferences()#
- Returns 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—estimated savings after discounts or estimated savings before discounts, for example. - See also: AWS API Documentation - Request Syntax- response = client.get_preferences() - Return type:
- dict 
- Returns:
- Response Syntax- { 'savingsEstimationMode': 'BeforeDiscounts'|'AfterDiscounts', 'memberAccountDiscountVisibility': 'All'|'None' } - Response Structure- (dict) – - savingsEstimationMode (string) – - Retrieves the status of the “savings estimation mode” preference. 
- memberAccountDiscountVisibility (string) – - Retrieves the status of the “member account discount visibility” preference. 
 
 
 - Exceptions- CostOptimizationHub.Client.exceptions.ValidationException
- CostOptimizationHub.Client.exceptions.InternalServerException
- CostOptimizationHub.Client.exceptions.AccessDeniedException
- CostOptimizationHub.Client.exceptions.ThrottlingException