AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::ComputeOptimizer::AutomationRule

CfnAutomationRule

Creates 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

import { CfnAutomationRule } from 'aws-cdk-lib/aws-computeoptimizer';

Or use the module namespace:

import * as computeoptimizer from 'aws-cdk-lib/aws-computeoptimizer';
// computeoptimizer.CfnAutomationRule

Properties

Configuration passed to the constructor as CfnAutomationRuleProps.

nameRequired
string

The name of the automation rule.

recommendedActionTypesRequired
string[]

The types of recommended actions this rule will implement.

ruleTypeRequired
string

The type of automation rule.

scheduleRequired
IResolvable | ScheduleProperty
statusRequired
string

The status of the automation rule.

criteriaOptional
IResolvable | CriteriaProperty
descriptionOptional
string

The description of the automation rule.

organizationConfigurationOptional
IResolvable | OrganizationConfigurationProperty
priorityOptional
string

Rule priority within its group.

tagsOptional
CfnTag[]

Tags associated with the automation rule.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

LevelL1 (CloudFormation)
Moduleaws-computeoptimizer
CFN TypeAWS::ComputeOptimizer::AutomationRule
Properties10

External Links