AWS SDK Version 4 for .NET
API Reference

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.

Note:

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

Syntax

C#
public abstract CreateAutomationRuleResponse CreateAutomationRule(
         CreateAutomationRuleRequest request
)

Parameters

request
Type: Amazon.ComputeOptimizerAutomation.Model.CreateAutomationRuleRequest

Container for the necessary parameters to execute the CreateAutomationRule service method.

Return Value


The response from the CreateAutomationRule service method, as returned by ComputeOptimizerAutomation.

Exceptions

ExceptionCondition
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.

Version Information

.NET Framework:
Supported in: 4.7.2 and newer

See Also