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,IEnvironmentAware,IAutomationRuleV2Ref,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:45.460Z")
@Stability(Stable)
public class CfnAutomationRuleV2
extends CfnResource
implements IInspectable, IAutomationRuleV2Ref, ITaggableV2
Creates a V2 automation rule.
This API is in public 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 interfaceAllows you to configure automated responses.static interfaceAllows you to define the structure for modifying specific fields in security findings.static interfaceBoolean filter for querying findings.static final classA fluent builder forCfnAutomationRuleV2.static interfaceEnables the creation of filtering criteria for security findings.static interfaceThe filtering type and configuration of the automation rule.static interfaceA date filter for querying findings.static interfaceA date range for the date filter.static interfaceThe settings for integrating automation rule actions with external systems or service.static interfaceA map filter for filtering Security Hub findings.static interfaceA number filter for querying findings.static interfaceEnables filtering of security findings based on boolean field values in OCSF.static interfaceEnables filtering of security findings based on date and timestamp fields in OCSF.static interfaceSpecifies the filtering criteria for security findings using OCSF.static interfaceEnables filtering of security findings based on map field values in OCSF.static interfaceEnables filtering of security findings based on numerical field values in OCSF.static interfaceEnables filtering of security findings based on string field values in OCSF.static interfaceA string filter for filtering Security Hub findings.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.securityhub.IAutomationRuleV2Ref
IAutomationRuleV2Ref.Jsii$Default, IAutomationRuleV2Ref.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnAutomationRuleV2(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAutomationRuleV2(software.amazon.jsii.JsiiObjectRef objRef) CfnAutomationRuleV2(software.constructs.Construct scope, String id, CfnAutomationRuleV2Props props) Create a newAWS::SecurityHub::AutomationRuleV2. -
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.A reference to a AutomationRuleV2 resource.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.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnAutomationRuleV2.renderProperties(Map<String, Object> props) voidsetActions(List<Object> value) A list of actions to be performed when the rule criteria is met.voidsetActions(IResolvable value) A list of actions to be performed when the rule criteria is met.voidsetCriteria(IResolvable value) The filtering type and configuration of the automation rule.voidThe filtering type and configuration of the automation rule.voidsetDescription(String value) A description of the V2 automation rule.voidsetRuleName(String value) The name of the V2 automation rule.voidsetRuleOrder(Number value) The value for the rule priority.voidsetRuleStatus(String value) The status of the V2 automation rule.voidA 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, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods 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) Create a newAWS::SecurityHub::AutomationRuleV2.- 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
-
isCfnAutomationRuleV2
Checks whether the given object is a CfnAutomationRuleV2.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin 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:
renderPropertiesin 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. -
getAutomationRuleV2Ref
A reference to a AutomationRuleV2 resource.- Specified by:
getAutomationRuleV2Refin interfaceIAutomationRuleV2Ref
-
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getActions
A list of actions to be performed when the rule criteria is met.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnAutomationRuleV2.AutomationRulesActionV2Property> -
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.Returns union: either
IResolvableorCfnAutomationRuleV2.CriteriaProperty -
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.
-