UpdatePreferences
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.
Request Syntax
{
   "memberAccountDiscountVisibility": "string",
   "preferredCommitment": { 
      "paymentOption": "string",
      "term": "string"
   },
   "savingsEstimationMode": "string"
}Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
The request accepts the following data in JSON format.
- memberAccountDiscountVisibility
- 
               Sets the "member account discount visibility" preference. Type: String Valid Values: All | NoneRequired: No 
- preferredCommitment
- 
               Sets the preferences for how Reserved Instances and Savings Plans cost-saving opportunities are prioritized in terms of payment option and term length. Type: PreferredCommitment object Required: No 
- savingsEstimationMode
- 
               Sets the "savings estimation mode" preference. Type: String Valid Values: BeforeDiscounts | AfterDiscountsRequired: No 
Response Syntax
{
   "memberAccountDiscountVisibility": "string",
   "preferredCommitment": { 
      "paymentOption": "string",
      "term": "string"
   },
   "savingsEstimationMode": "string"
}Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- memberAccountDiscountVisibility
- 
               Shows the status of the "member account discount visibility" preference. Type: String Valid Values: All | None
- preferredCommitment
- 
               Shows the updated preferences for how Reserved Instances and Savings Plans cost-saving opportunities are prioritized in terms of payment option and term length. Type: PreferredCommitment object 
- savingsEstimationMode
- 
               Shows the status of the "savings estimation mode" preference. Type: String Valid Values: BeforeDiscounts | AfterDiscounts
Errors
For information about the errors that are common to all actions, see Common Errors.
- AccessDeniedException
- 
               You are not authorized to use this operation with the given parameters. HTTP Status Code: 400 
- InternalServerException
- 
               An error on the server occurred during the processing of your request. Try again later. HTTP Status Code: 500 
- ThrottlingException
- 
               The request was denied due to request throttling. HTTP Status Code: 400 
- ValidationException
- 
               The input fails to satisfy the constraints specified by an AWS service. - fields
- 
                        The list of fields that are invalid. 
- reason
- 
                        The reason for the validation exception. 
 HTTP Status Code: 400 
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: