Class CfnMitigationAction
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.CfnElement
software.amazon.awscdk.core.CfnRefElement
software.amazon.awscdk.core.CfnResource
software.amazon.awscdk.services.iot.CfnMitigationAction
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:29:57.577Z")
@Stability(Stable)
public class CfnMitigationAction
extends CfnResource
implements IInspectable
A CloudFormation
AWS::IoT::MitigationAction.
Defines an action that can be applied to audit findings by using StartAuditMitigationActionsTask. For API reference, see CreateMitigationAction and for general information, see Mitigation actions .
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.*;
CfnMitigationAction cfnMitigationAction = CfnMitigationAction.Builder.create(this, "MyCfnMitigationAction")
.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();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDefines the type of action and the parameters for that action.static interfaceParameters used when defining a mitigation action that move a set of things to a thing group.static final classA fluent builder forCfnMitigationAction.static interfaceParameters used when defining a mitigation action that enable AWS IoT Core logging.static interfaceParameters to define a mitigation action that publishes findings to Amazon SNS.static interfaceParameters to define a mitigation action that adds a blank policy to restrict permissions.static interfaceParameters to define a mitigation action that changes the state of the CA certificate to inactive.static interfaceParameters to define a mitigation action that changes the state of the device certificate to inactive.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnMitigationAction(Construct scope, String id, CfnMitigationActionProps props) Create a newAWS::IoT::MitigationAction.protectedCfnMitigationAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnMitigationAction(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe friendly name of the mitigation action.The set of parameters for this mitigation action.The Amazon Resource Name (ARN) of the mitigation action.The ID of the mitigation action.The IAM role ARN used to apply this mitigation action.getTags()Metadata that can be used to manage the mitigation action.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetActionName(String value) The friendly name of the mitigation action.voidsetActionParams(IResolvable value) The set of parameters for this mitigation action.voidThe set of parameters for this mitigation action.voidsetRoleArn(String value) The IAM role ARN used to apply this mitigation action.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnMitigationAction
protected CfnMitigationAction(software.amazon.jsii.JsiiObjectRef objRef) -
CfnMitigationAction
protected CfnMitigationAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnMitigationAction
@Stability(Stable) public CfnMitigationAction(@NotNull Construct scope, @NotNull String id, @NotNull CfnMitigationActionProps props) Create a newAWS::IoT::MitigationAction.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrMitigationActionArn
The Amazon Resource Name (ARN) of the mitigation action. -
getAttrMitigationActionId
The ID of the mitigation action. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Metadata that can be used to manage the mitigation action. -
getActionParams
The set of parameters for this mitigation action.The parameters vary, depending on the kind of action you apply.
-
setActionParams
The set of parameters for this mitigation action.The parameters vary, depending on the kind of action you apply.
-
setActionParams
@Stability(Stable) public void setActionParams(@NotNull CfnMitigationAction.ActionParamsProperty value) The set of parameters for this mitigation action.The parameters vary, depending on the kind of action you apply.
-
getRoleArn
The IAM role ARN used to apply this mitigation action. -
setRoleArn
The IAM role ARN used to apply this mitigation action. -
getActionName
The friendly name of the mitigation action. -
setActionName
The friendly name of the mitigation action.
-