Class CfnAutomationRuleV2
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.securityhub.CfnAutomationRuleV2
- All Implemented Interfaces:
IInspectable
,ITaggableV2
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.112.0 (build de1bc80)",
date="2025-07-04T12:43:15.520Z")
@Stability(Stable)
public class CfnAutomationRuleV2
extends CfnResource
implements IInspectable, ITaggableV2
Creates a V2 automation rule.
This API is in private preview and subject to change.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.securityhub.*; CfnAutomationRuleV2 cfnAutomationRuleV2 = CfnAutomationRuleV2.Builder.create(this, "MyCfnAutomationRuleV2") .actions(List.of(AutomationRulesActionV2Property.builder() .type("type") // the properties below are optional .externalIntegrationConfiguration(ExternalIntegrationConfigurationProperty.builder() .connectorArn("connectorArn") .build()) .findingFieldsUpdate(AutomationRulesFindingFieldsUpdateV2Property.builder() .comment("comment") .severityId(123) .statusId(123) .build()) .build())) .criteria(CriteriaProperty.builder() .ocsfFindingCriteria(OcsfFindingFiltersProperty.builder() .compositeFilters(List.of(CompositeFilterProperty.builder() .booleanFilters(List.of(OcsfBooleanFilterProperty.builder() .fieldName("fieldName") .filter(BooleanFilterProperty.builder() .value(false) .build()) .build())) .dateFilters(List.of(OcsfDateFilterProperty.builder() .fieldName("fieldName") .filter(DateFilterProperty.builder() .dateRange(DateRangeProperty.builder() .unit("unit") .value(123) .build()) .end("end") .start("start") .build()) .build())) .mapFilters(List.of(OcsfMapFilterProperty.builder() .fieldName("fieldName") .filter(MapFilterProperty.builder() .comparison("comparison") .key("key") .value("value") .build()) .build())) .numberFilters(List.of(OcsfNumberFilterProperty.builder() .fieldName("fieldName") .filter(NumberFilterProperty.builder() .eq(123) .gte(123) .lte(123) .build()) .build())) .operator("operator") .stringFilters(List.of(OcsfStringFilterProperty.builder() .fieldName("fieldName") .filter(StringFilterProperty.builder() .comparison("comparison") .value("value") .build()) .build())) .build())) .compositeOperator("compositeOperator") .build()) .build()) .description("description") .ruleName("ruleName") .ruleOrder(123) // the properties below are optional .ruleStatus("ruleStatus") .tags(Map.of( "tagsKey", "tags")) .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Allows you to configure automated responses.static interface
Allows you to define the structure for modifying specific fields in security findings.static interface
Boolean filter for querying findings.static final class
A fluent builder forCfnAutomationRuleV2
.static interface
Enables the creation of filtering criteria for security findings.static interface
The filtering type and configuration of the automation rule.static interface
A date filter for querying findings.static interface
A date range for the date filter.static interface
The settings for integrating automation rule actions with external systems or service.static interface
A map filter for filtering AWS Security Hub findings.static interface
A number filter for querying findings.static interface
Enables filtering of security findings based on boolean field values in OCSF.static interface
Enables filtering of security findings based on date and timestamp fields in OCSF.static interface
Specifies the filtering criteria for security findings using OCSF.static interface
Enables filtering of security findings based on map field values in OCSF.static interface
Enables filtering of security findings based on numerical field values in OCSF.static interface
Enables filtering of security findings based on string field values in OCSF.static interface
A string filter for filtering AWS Security Hub findings.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CfnAutomationRuleV2
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnAutomationRuleV2
(software.amazon.jsii.JsiiObjectRef objRef) CfnAutomationRuleV2
(software.constructs.Construct scope, String id, CfnAutomationRuleV2Props props) -
Method Summary
Modifier and TypeMethodDescriptionA list of actions to be performed when the rule criteria is met.The timestamp when the V2 automation rule was created.The ARN of the V2 automation rule.The ID of the V2 automation rule.The timestamp when the V2 automation rule was updated.Tag Manager which manages the tags for this resource.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.getTags()
A list of key-value pairs associated with the V2 automation rule.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setActions
(List<Object> value) A list of actions to be performed when the rule criteria is met.void
setActions
(IResolvable value) A list of actions to be performed when the rule criteria is met.void
setCriteria
(IResolvable value) The filtering type and configuration of the automation rule.void
The filtering type and configuration of the automation rule.void
setDescription
(String value) A description of the V2 automation rule.void
setRuleName
(String value) The name of the V2 automation rule.void
setRuleOrder
(Number value) The value for the rule priority.void
setRuleStatus
(String value) The status of the V2 automation rule.void
A list of key-value pairs associated with the V2 automation rule.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnAutomationRuleV2
protected CfnAutomationRuleV2(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAutomationRuleV2
protected CfnAutomationRuleV2(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAutomationRuleV2
@Stability(Stable) public CfnAutomationRuleV2(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnAutomationRuleV2Props props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrCreatedAt
The timestamp when the V2 automation rule was created. -
getAttrRuleArn
The ARN of the V2 automation rule. -
getAttrRuleId
The ID of the V2 automation rule. -
getAttrUpdatedAt
The timestamp when the V2 automation rule was updated. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManager
in interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getActions
A list of actions to be performed when the rule criteria is met. -
setActions
A list of actions to be performed when the rule criteria is met. -
setActions
A list of actions to be performed when the rule criteria is met. -
getCriteria
The filtering type and configuration of the automation rule. -
setCriteria
The filtering type and configuration of the automation rule. -
setCriteria
The filtering type and configuration of the automation rule. -
getDescription
A description of the V2 automation rule. -
setDescription
A description of the V2 automation rule. -
getRuleName
The name of the V2 automation rule. -
setRuleName
The name of the V2 automation rule. -
getRuleOrder
The value for the rule priority. -
setRuleOrder
The value for the rule priority. -
getRuleStatus
The status of the V2 automation rule. -
setRuleStatus
The status of the V2 automation rule. -
getTags
A list of key-value pairs associated with the V2 automation rule. -
setTags
A list of key-value pairs associated with the V2 automation rule.
-