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
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:02.978Z")
@Stability(Stable)
public class CfnMitigationAction
extends CfnResource
implements IInspectable, 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
Modifier and TypeClassDescriptionstatic interface
Defines the type of action and the parameters for that action.static interface
Parameters used when defining a mitigation action that move a set of things to a thing group.static final class
A fluent builder forCfnMitigationAction
.static interface
Parameters used when defining a mitigation action that enable AWS IoT Core logging.static interface
Parameters to define a mitigation action that publishes findings to Amazon SNS.static interface
Parameters to define a mitigation action that adds a blank policy to restrict permissions.static interface
Parameters to define a mitigation action that changes the state of the CA certificate to inactive.static interface
Parameters 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.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnMitigationAction
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnMitigationAction
(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.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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setActionName
(String value) The friendly name of the mitigation action.void
setActionParams
(IResolvable value) The set of parameters for this mitigation action.void
The set of parameters for this mitigation action.void
setRoleArn
(String value) The IAM role ARN used to apply this mitigation action.void
setTagsRaw
(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, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in 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:
getCfnProperties
in classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getActionParams
The set of parameters for this mitigation action. -
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.
-