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 automation rule to apply recommended actions to resources based on specified criteria.
For .NET Core this operation is only available in asynchronous form. Please refer to CreateAutomationRuleAsync.
Namespace: Amazon.ComputeOptimizerAutomation
Assembly: AWSSDK.ComputeOptimizerAutomation.dll
Version: 3.x.y.z
public abstract CreateAutomationRuleResponse CreateAutomationRule( CreateAutomationRuleRequest request )
Container for the necessary parameters to execute the CreateAutomationRule service method.
| Exception | Condition |
|---|---|
| AccessDeniedException | You do not have sufficient permissions to perform this action. |
| ForbiddenException | You are not authorized to perform this action. |
| IdempotencyTokenInUseException | The specified client token is already in use. |
| IdempotentParameterMismatchException | Exception thrown when the same client token is used with different parameters, indicating a mismatch in idempotent request parameters. |
| InternalServerException | An internal error occurred while processing the request. |
| InvalidParameterValueException | One or more parameter values are not valid. |
| OptInRequiredException | The account must be opted in to Compute Optimizer Automation before performing this action. |
| ResourceNotFoundException | The specified resource was not found. |
| ServiceQuotaExceededException | The request would exceed service quotas. |
| ServiceUnavailableException | The service is temporarily unavailable. |
| ThrottlingException | The request was denied due to request throttling. |
.NET Framework:
Supported in: 4.7.2 and newer