Interface CfnMitigationActionProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnMitigationActionProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:57.584Z") @Stability(Stable) public interface CfnMitigationActionProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnMitigationAction.

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.iot.*;
 CfnMitigationActionProps cfnMitigationActionProps = CfnMitigationActionProps.builder()
         .actionParams(ActionParamsProperty.builder()
                 .addThingsToThingGroupParams(AddThingsToThingGroupParamsProperty.builder()
                         .thingGroupNames(List.of("thingGroupNames"))
                         // the properties below are optional
                         .overrideDynamicGroups(false)
                         .build())
                 .enableIoTLoggingParams(EnableIoTLoggingParamsProperty.builder()
                         .logLevel("logLevel")
                         .roleArnForLogging("roleArnForLogging")
                         .build())
                 .publishFindingToSnsParams(PublishFindingToSnsParamsProperty.builder()
                         .topicArn("topicArn")
                         .build())
                 .replaceDefaultPolicyVersionParams(ReplaceDefaultPolicyVersionParamsProperty.builder()
                         .templateName("templateName")
                         .build())
                 .updateCaCertificateParams(UpdateCACertificateParamsProperty.builder()
                         .action("action")
                         .build())
                 .updateDeviceCertificateParams(UpdateDeviceCertificateParamsProperty.builder()
                         .action("action")
                         .build())
                 .build())
         .roleArn("roleArn")
         // the properties below are optional
         .actionName("actionName")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 
  • Method Details

    • getActionParams

      @Stability(Stable) @NotNull Object getActionParams()
      The set of parameters for this mitigation action.

      The parameters vary, depending on the kind of action you apply.

    • getRoleArn

      @Stability(Stable) @NotNull String getRoleArn()
      The IAM role ARN used to apply this mitigation action.
    • getActionName

      @Stability(Stable) @Nullable default String getActionName()
      The friendly name of the mitigation action.
    • getTags

      @Stability(Stable) @Nullable default List<CfnTag> getTags()
      Metadata that can be used to manage the mitigation action.
    • builder

      @Stability(Stable) static CfnMitigationActionProps.Builder builder()
      Returns:
      a CfnMitigationActionProps.Builder of CfnMitigationActionProps