AWS::SecurityHub::AutomationRuleThe `AWS::SecurityHub::AutomationRule` resource specifies an automation rule based on input parameters. For more information, see [Automation rules](https://docs.aws.amazon.com/securityhub/latest/userguide/automation-rules.html) in the *AWS Security Hub CSPM User Guide* .
import { CfnAutomationRule } from 'aws-cdk-lib/aws-securityhub';Or use the module namespace:
import * as securityhub from 'aws-cdk-lib/aws-securityhub';
// securityhub.CfnAutomationRuleConfiguration passed to the constructor as CfnAutomationRuleProps.
actionsRequiredIResolvable | IResolvable | AutomationRulesActionProperty[]One or more actions to update finding fields if a finding matches the conditions specified in `Criteria` .
criteriaRequiredIResolvable | AutomationRulesFindingFiltersPropertyA set of [AWS Security Finding Format (ASFF)](https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-findings-format.html) finding field attributes and corresponding expected values that Security Hub CSPM uses to filter findings. If a rule is enabled and a finding matches the criteria specified in this parameter, Security Hub CSPM applies the rule action to the finding.
descriptionRequiredstringA description of the rule.
ruleNameRequiredstringThe name of the rule.
ruleOrderRequirednumberAn integer ranging from 1 to 1000 that represents the order in which the rule action is applied to findings. Security Hub CSPM applies rules with lower values for this parameter first.
isTerminalOptionalboolean | IResolvableSpecifies whether a rule is the last to be applied with respect to a finding that matches the rule criteria. This is useful when a finding matches the criteria for multiple rules, and each rule has different actions. If a rule is terminal, Security Hub CSPM applies the rule action to a finding that matches the rule criteria and doesn't evaluate other rules for the finding. By default, a rule isn't terminal.
ruleStatusOptionalstringWhether the rule is active after it is created. If this parameter is equal to `ENABLED` , Security Hub CSPM applies the rule to findings and finding updates after the rule is created.
tagsOptional{ [key: string]: string }User-defined tags associated with an 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-securityhubAWS::SecurityHub::AutomationRule