AWS::ComputeOptimizer::AutomationRuleCreates an AWS Compute Optimizer automation rule that automatically implements recommended actions based on your defined criteria and schedule. Automation rules are global resources that manage automated actions across all AWS Regions where Compute Optimizer Automation is available. Organization-level rules can only be created by the management account or delegated administrator.
import { CfnAutomationRule } from 'aws-cdk-lib/aws-computeoptimizer';Or use the module namespace:
import * as computeoptimizer from 'aws-cdk-lib/aws-computeoptimizer';
// computeoptimizer.CfnAutomationRuleConfiguration passed to the constructor as CfnAutomationRuleProps.
nameRequiredstringThe name of the automation rule.
recommendedActionTypesRequiredstring[]The types of recommended actions this rule will implement.
ruleTypeRequiredstringThe type of automation rule.
scheduleRequiredIResolvable | SchedulePropertystatusRequiredstringThe status of the automation rule.
criteriaOptionalIResolvable | CriteriaPropertydescriptionOptionalstringThe description of the automation rule.
organizationConfigurationOptionalIResolvable | OrganizationConfigurationPropertypriorityOptionalstringRule priority within its group.
tagsOptionalCfnTag[]Tags associated with the automation rule.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-computeoptimizerAWS::ComputeOptimizer::AutomationRule