aws-cdk-lib.aws_iot.CfnMitigationActionProps

interface CfnMitigationActionProps

LanguageType name
.NETAmazon.CDK.AWS.IoT.CfnMitigationActionProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsiot#CfnMitigationActionProps
Javasoftware.amazon.awscdk.services.iot.CfnMitigationActionProps
Pythonaws_cdk.aws_iot.CfnMitigationActionProps
TypeScript aws-cdk-lib » aws_iot » CfnMitigationActionProps

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 { aws_iot as iot } from 'aws-cdk-lib';
const cfnMitigationActionProps: iot.CfnMitigationActionProps = {
  actionParams: {
    addThingsToThingGroupParams: {
      thingGroupNames: ['thingGroupNames'],

      // the properties below are optional
      overrideDynamicGroups: false,
    },
    enableIoTLoggingParams: {
      logLevel: 'logLevel',
      roleArnForLogging: 'roleArnForLogging',
    },
    publishFindingToSnsParams: {
      topicArn: 'topicArn',
    },
    replaceDefaultPolicyVersionParams: {
      templateName: 'templateName',
    },
    updateCaCertificateParams: {
      action: 'action',
    },
    updateDeviceCertificateParams: {
      action: 'action',
    },
  },
  roleArn: 'roleArn',

  // the properties below are optional
  actionName: 'actionName',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties

NameTypeDescription
actionParamsIResolvable | ActionParamsPropertyThe set of parameters for this mitigation action.
roleArnstringThe IAM role ARN used to apply this mitigation action.
actionName?stringThe friendly name of the mitigation action.
tags?CfnTag[]Metadata that can be used to manage the mitigation action.

actionParams

Type: IResolvable | ActionParamsProperty

The set of parameters for this mitigation action.

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


roleArn

Type: string

The IAM role ARN used to apply this mitigation action.


actionName?

Type: string (optional)

The friendly name of the mitigation action.


tags?

Type: CfnTag[] (optional)

Metadata that can be used to manage the mitigation action.