interface CfnAutomationRuleProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ComputeOptimizer.CfnAutomationRuleProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscomputeoptimizer#CfnAutomationRuleProps |
Java | software.amazon.awscdk.services.computeoptimizer.CfnAutomationRuleProps |
Python | aws_cdk.aws_computeoptimizer.CfnAutomationRuleProps |
TypeScript | aws-cdk-lib » aws_computeoptimizer » CfnAutomationRuleProps |
Properties for defining a CfnAutomationRule.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_computeoptimizer as computeoptimizer } from 'aws-cdk-lib';
const cfnAutomationRuleProps: computeoptimizer.CfnAutomationRuleProps = {
name: 'name',
recommendedActionTypes: ['recommendedActionTypes'],
ruleType: 'ruleType',
schedule: {
executionWindowInMinutes: 123,
scheduleExpression: 'scheduleExpression',
scheduleExpressionTimezone: 'scheduleExpressionTimezone',
},
status: 'status',
// the properties below are optional
criteria: {
ebsVolumeSizeInGib: [{
comparison: 'comparison',
values: [123],
}],
ebsVolumeType: [{
comparison: 'comparison',
values: ['values'],
}],
estimatedMonthlySavings: [{
comparison: 'comparison',
values: [123],
}],
lookBackPeriodInDays: [{
comparison: 'comparison',
values: [123],
}],
region: [{
comparison: 'comparison',
values: ['values'],
}],
resourceArn: [{
comparison: 'comparison',
values: ['values'],
}],
resourceTag: [{
comparison: 'comparison',
key: 'key',
values: ['values'],
}],
restartNeeded: [{
comparison: 'comparison',
values: ['values'],
}],
},
description: 'description',
organizationConfiguration: {
accountIds: ['accountIds'],
ruleApplyOrder: 'ruleApplyOrder',
},
priority: 'priority',
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| name | string | The name of the automation rule. |
| recommended | string[] | The types of recommended actions this rule will implement. |
| rule | string | The type of automation rule. |
| schedule | IResolvable | Schedule | |
| status | string | The status of the automation rule. |
| criteria? | IResolvable | Criteria | |
| description? | string | The description of the automation rule. |
| organization | IResolvable | Organization | |
| priority? | string | Rule priority within its group. |
| tags? | Cfn[] | Tags associated with the automation rule. |
name
Type:
string
The name of the automation rule.
recommendedActionTypes
Type:
string[]
The types of recommended actions this rule will implement.
ruleType
Type:
string
The type of automation rule.
schedule
Type:
IResolvable | Schedule
status
Type:
string
The status of the automation rule.
criteria?
Type:
IResolvable | Criteria
(optional)
description?
Type:
string
(optional)
The description of the automation rule.
organizationConfiguration?
Type:
IResolvable | Organization
(optional)
priority?
Type:
string
(optional)
Rule priority within its group.
tags?
Type:
Cfn[]
(optional)
Tags associated with the automation rule.

.NET
Go
Java
Python
TypeScript