Class CfnAutomationRuleV2PropsMixin

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.securityhub.CfnAutomationRuleV2PropsMixin
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable, software.constructs.IMixin

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-03-11T13:20:05.345Z") @Stability(Stable) public class CfnAutomationRuleV2PropsMixin extends Mixin implements software.constructs.IMixin
Creates a V2 automation rule.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.cfnpropertymixins.services.securityhub.*;
 import software.amazon.awscdk.*;
 IMergeStrategy mergeStrategy;
 CfnAutomationRuleV2PropsMixin cfnAutomationRuleV2PropsMixin = CfnAutomationRuleV2PropsMixin.Builder.create(CfnAutomationRuleV2MixinProps.builder()
         .actions(List.of(AutomationRulesActionV2Property.builder()
                 .externalIntegrationConfiguration(ExternalIntegrationConfigurationProperty.builder()
                         .connectorArn("connectorArn")
                         .build())
                 .findingFieldsUpdate(AutomationRulesFindingFieldsUpdateV2Property.builder()
                         .comment("comment")
                         .severityId(123)
                         .statusId(123)
                         .build())
                 .type("type")
                 .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)
         .ruleStatus("ruleStatus")
         .tags(Map.of(
                 "tagsKey", "tags"))
         .build())
 .strategy(mergeStrategy)
 .build();
 

See Also:
  • Field Details

    • CFN_PROPERTY_KEYS

      @Stability(Stable) protected static final List<String> CFN_PROPERTY_KEYS
  • Constructor Details

    • CfnAutomationRuleV2PropsMixin

      protected CfnAutomationRuleV2PropsMixin(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnAutomationRuleV2PropsMixin

      protected CfnAutomationRuleV2PropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnAutomationRuleV2PropsMixin

      @Stability(Stable) public CfnAutomationRuleV2PropsMixin(@NotNull CfnAutomationRuleV2MixinProps props, @Nullable CfnPropertyMixinOptions options)
      Create a mixin to apply properties to AWS::SecurityHub::AutomationRuleV2.

      Parameters:
      props - L1 properties to apply. This parameter is required.
      options - Mixin options.
    • CfnAutomationRuleV2PropsMixin

      @Stability(Stable) public CfnAutomationRuleV2PropsMixin(@NotNull CfnAutomationRuleV2MixinProps props)
      Create a mixin to apply properties to AWS::SecurityHub::AutomationRuleV2.

      Parameters:
      props - L1 properties to apply. This parameter is required.
  • Method Details

    • applyTo

      @Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct)
      Apply the mixin properties to the construct.

      Specified by:
      applyTo in interface software.constructs.IMixin
      Specified by:
      applyTo in class Mixin
      Parameters:
      construct - This parameter is required.
    • supports

      @Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct)
      Check if this mixin supports the given construct.

      Specified by:
      supports in interface software.constructs.IMixin
      Overrides:
      supports in class Mixin
      Parameters:
      construct - This parameter is required.
    • getProps

      @Stability(Stable) @NotNull protected CfnAutomationRuleV2MixinProps getProps()
    • getStrategy

      @Stability(Stable) @NotNull protected IMergeStrategy getStrategy()