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
",
"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 | None
Required: No
- savingsEstimationMode
-
Sets the "savings estimation mode" preference.
Type: String
Valid Values:
BeforeDiscounts | AfterDiscounts
Required: No
Response Syntax
{
"memberAccountDiscountVisibility": "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
- 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.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: