AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Creates a new recommendation preference or updates an existing recommendation preference, such as enhanced infrastructure metrics.
For more information, see Activating enhanced infrastructure metrics in the Compute Optimizer User Guide.
For .NET Core this operation is only available in asynchronous form. Please refer to PutRecommendationPreferencesAsync.
Namespace: Amazon.ComputeOptimizer
Assembly: AWSSDK.ComputeOptimizer.dll
Version: 3.x.y.z
public abstract PutRecommendationPreferencesResponse PutRecommendationPreferences( PutRecommendationPreferencesRequest request )
Container for the necessary parameters to execute the PutRecommendationPreferences service method.
Exception | Condition |
---|---|
AccessDeniedException | You do not have sufficient access to perform this action. |
InternalServerException | An internal error has occurred. Try your call again. |
InvalidParameterValueException | The value supplied for the input parameter is out of range or not valid. |
MissingAuthenticationTokenException | The request must contain either a valid (registered) Amazon Web Services access key ID or X.509 certificate. |
OptInRequiredException | The account is not opted in to Compute Optimizer. |
ResourceNotFoundException | A resource that is required for the action doesn't exist. |
ServiceUnavailableException | The request has failed due to a temporary failure of the server. |
ThrottlingException | The request was denied due to request throttling. |
.NET Framework:
Supported in: 4.5 and newer, 3.5