CfnAutomationRuleV2Props Struct
Properties for defining a CfnAutomationRuleV2.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_securityhub as securityhub } from 'aws-cdk-lib';
const cfnAutomationRuleV2Props: securityhub.CfnAutomationRuleV2Props = {
actions: [{
type: 'type',
// the properties below are optional
externalIntegrationConfiguration: {
connectorArn: 'connectorArn',
},
findingFieldsUpdate: {
comment: 'comment',
severityId: 123,
statusId: 123,
},
}],
criteria: {
ocsfFindingCriteria: {
compositeFilters: [{
booleanFilters: [{
fieldName: 'fieldName',
filter: {
value: false,
},
}],
dateFilters: [{
fieldName: 'fieldName',
filter: {
dateRange: {
unit: 'unit',
value: 123,
},
end: 'end',
start: 'start',
},
}],
mapFilters: [{
fieldName: 'fieldName',
filter: {
comparison: 'comparison',
key: 'key',
value: 'value',
},
}],
numberFilters: [{
fieldName: 'fieldName',
filter: {
eq: 123,
gte: 123,
lte: 123,
},
}],
operator: 'operator',
stringFilters: [{
fieldName: 'fieldName',
filter: {
comparison: 'comparison',
value: 'value',
},
}],
}],
compositeOperator: 'compositeOperator',
},
},
description: 'description',
ruleName: 'ruleName',
ruleOrder: 123,
// the properties below are optional
ruleStatus: 'ruleStatus',
tags: {
tagsKey: 'tags',
},
};
Properties
actionsIResolvable | IResolvable | CfnAutomationRuleV2.AutomationRulesActionV2Property[]actionstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AutomationRulesActionV2Property]]]actionsIResolvableActionsIResolvableActionsinterface{}required#A list of actions to be performed when the rule criteria is met.
criteriaIResolvable | CfnAutomationRuleV2.CriteriaPropertycriteriatyping.Union[IResolvable, CriteriaProperty]criteriaIResolvableCriteriaIResolvableCriteriainterface{}required#The filtering type and configuration of the automation rule.
A description of the V2 automation rule.
The name of the V2 automation rule.
The value for the rule priority.
The status of the V2 automation rule.
tags{ [key: string]: string }tagstyping.Mapping[str, str]tagsMap<String, String>TagsIDictionary<string, string>Tags*map[string]*string#A list of key-value pairs associated with the V2 automation rule.