CfnAutomationRuleProps
- class aws_cdk.aws_computeoptimizer.CfnAutomationRuleProps(*, name, recommended_action_types, rule_type, schedule, status, criteria=None, description=None, organization_configuration=None, priority=None, tags=None)
Bases:
objectProperties for defining a
CfnAutomationRule.- Parameters:
name (
str) – The name of the automation rule.recommended_action_types (
Sequence[str]) – The types of recommended actions this rule will implement.rule_type (
str) – The type of automation rule.schedule (
Union[IResolvable,ScheduleProperty,Dict[str,Any]])status (
str) – The status of the automation rule.criteria (
Union[IResolvable,CriteriaProperty,Dict[str,Any],None])description (
Optional[str]) – The description of the automation rule.organization_configuration (
Union[IResolvable,OrganizationConfigurationProperty,Dict[str,Any],None])priority (
Optional[str]) – Rule priority within its group.tags (
Optional[Sequence[Union[CfnTag,Dict[str,Any]]]]) – Tags associated with the automation rule.
- See:
- ExampleMetadata:
fixture=_generated
Example:
from aws_cdk import CfnTag # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_computeoptimizer as computeoptimizer cfn_automation_rule_props = computeoptimizer.CfnAutomationRuleProps( name="name", recommended_action_types=["recommendedActionTypes"], rule_type="ruleType", schedule=computeoptimizer.CfnAutomationRule.ScheduleProperty( execution_window_in_minutes=123, schedule_expression="scheduleExpression", schedule_expression_timezone="scheduleExpressionTimezone" ), status="status", # the properties below are optional criteria=computeoptimizer.CfnAutomationRule.CriteriaProperty( ebs_volume_size_in_gib=[computeoptimizer.CfnAutomationRule.IntegerCriteriaConditionProperty( comparison="comparison", values=[123] )], ebs_volume_type=[computeoptimizer.CfnAutomationRule.StringCriteriaConditionProperty( comparison="comparison", values=["values"] )], estimated_monthly_savings=[computeoptimizer.CfnAutomationRule.DoubleCriteriaConditionProperty( comparison="comparison", values=[123] )], look_back_period_in_days=[computeoptimizer.CfnAutomationRule.IntegerCriteriaConditionProperty( comparison="comparison", values=[123] )], region=[computeoptimizer.CfnAutomationRule.StringCriteriaConditionProperty( comparison="comparison", values=["values"] )], resource_arn=[computeoptimizer.CfnAutomationRule.StringCriteriaConditionProperty( comparison="comparison", values=["values"] )], resource_tag=[computeoptimizer.CfnAutomationRule.ResourceTagsCriteriaConditionProperty( comparison="comparison", key="key", values=["values"] )], restart_needed=[computeoptimizer.CfnAutomationRule.StringCriteriaConditionProperty( comparison="comparison", values=["values"] )] ), description="description", organization_configuration=computeoptimizer.CfnAutomationRule.OrganizationConfigurationProperty( account_ids=["accountIds"], rule_apply_order="ruleApplyOrder" ), priority="priority", tags=[CfnTag( key="key", value="value" )] )
Attributes
- criteria
-
- Type:
see
- description
The description of the automation rule.
- name
The name of the automation rule.
- organization_configuration
-
- Type:
see
- priority
Rule priority within its group.
- recommended_action_types
The types of recommended actions this rule will implement.
- rule_type
The type of automation rule.
- schedule
-
- Type:
see
- status
The status of the automation rule.
- tags
Tags associated with the automation rule.