Class CfnMitigationAction
Defines an action that can be applied to audit findings by using StartAuditMitigationActionsTask.
Inherited Members
Namespace: Amazon.CDK.AWS.IoT
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnMitigationAction : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnMitigationAction
Inherits CfnResource
Implements IInspectable, ITaggable
Remarks
For API reference, see CreateMitigationAction and for general information, see Mitigation actions .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-mitigationaction.html
CloudformationResource: AWS::IoT::MitigationAction
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoT;
var cfnMitigationAction = new CfnMitigationAction(this, "MyCfnMitigationAction", new CfnMitigationActionProps {
ActionParams = new ActionParamsProperty {
AddThingsToThingGroupParams = new AddThingsToThingGroupParamsProperty {
ThingGroupNames = new [] { "thingGroupNames" },
// the properties below are optional
OverrideDynamicGroups = false
},
EnableIoTLoggingParams = new EnableIoTLoggingParamsProperty {
LogLevel = "logLevel",
RoleArnForLogging = "roleArnForLogging"
},
PublishFindingToSnsParams = new PublishFindingToSnsParamsProperty {
TopicArn = "topicArn"
},
ReplaceDefaultPolicyVersionParams = new ReplaceDefaultPolicyVersionParamsProperty {
TemplateName = "templateName"
},
UpdateCaCertificateParams = new UpdateCACertificateParamsProperty {
Action = "action"
},
UpdateDeviceCertificateParams = new UpdateDeviceCertificateParamsProperty {
Action = "action"
}
},
RoleArn = "roleArn",
// the properties below are optional
ActionName = "actionName",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
CfnMitigationAction(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnMitigationAction(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnMitigationAction(Construct, String, ICfnMitigationActionProps) |
Properties
ActionName | The friendly name of the mitigation action. |
ActionParams | The set of parameters for this mitigation action. |
AttrMitigationActionArn | The Amazon Resource Name (ARN) of the mitigation action. |
AttrMitigationActionId | The ID of the mitigation action. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
RoleArn | The IAM role ARN used to apply this mitigation action. |
Tags | Tag Manager which manages the tags for this resource. |
TagsRaw | Metadata that can be used to manage the mitigation action. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnMitigationAction(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnMitigationAction(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnMitigationAction(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnMitigationAction(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnMitigationAction(Construct, String, ICfnMitigationActionProps)
public CfnMitigationAction(Construct scope, string id, ICfnMitigationActionProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnMitigationActionProps
Resource properties.
Properties
ActionName
The friendly name of the mitigation action.
public virtual string ActionName { get; set; }
Property Value
System.String
ActionParams
The set of parameters for this mitigation action.
public virtual object ActionParams { get; set; }
Property Value
System.Object
AttrMitigationActionArn
The Amazon Resource Name (ARN) of the mitigation action.
public virtual string AttrMitigationActionArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: MitigationActionArn
AttrMitigationActionId
The ID of the mitigation action.
public virtual string AttrMitigationActionId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: MitigationActionId
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
RoleArn
The IAM role ARN used to apply this mitigation action.
public virtual string RoleArn { get; set; }
Property Value
System.String
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
TagsRaw
Metadata that can be used to manage the mitigation action.
public virtual ICfnTag[] TagsRaw { get; set; }
Property Value
ICfnTag[]
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>