Class CfnMitigationAction
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.iot.CfnMitigationAction
- All Implemented Interfaces:
IInspectable,ITaggable,IMitigationActionRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:41.468Z")
@Stability(Stable)
public class CfnMitigationAction
extends CfnResource
implements IInspectable, IMitigationActionRef, ITaggable
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();
- See Also:
-
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.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.services.iot.IMitigationActionRef
IMitigationActionRef.Jsii$Default, IMitigationActionRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnMitigationAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnMitigationAction(software.amazon.jsii.JsiiObjectRef objRef) CfnMitigationAction(software.constructs.Construct scope, String id, CfnMitigationActionProps props) -
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.A reference to a MitigationAction resource.The IAM role ARN used to apply this mitigation action.getTags()Tag Manager which manages the tags for this resource.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.voidsetTagsRaw(List<CfnTag> value) Metadata that can be used to manage the mitigation action.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, 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.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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnMitigationActionProps 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:
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.
-
getAttrMitigationActionArn
The Amazon Resource Name (ARN) of the mitigation action. -
getAttrMitigationActionId
The ID of the mitigation action. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getMitigationActionRef
A reference to a MitigationAction resource.- Specified by:
getMitigationActionRefin interfaceIMitigationActionRef
-
getTags
Tag Manager which manages the tags for this resource. -
getActionParams
The set of parameters for this mitigation action.Returns union: either
IResolvableorCfnMitigationAction.ActionParamsProperty -
setActionParams
The set of parameters for this mitigation action. -
setActionParams
@Stability(Stable) public void setActionParams(@NotNull CfnMitigationAction.ActionParamsProperty value) The set of parameters for this mitigation action. -
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. -
getTagsRaw
Metadata that can be used to manage the mitigation action. -
setTagsRaw
Metadata that can be used to manage the mitigation action.
-