@aws-cdk_aws-iotevents-alpha.ActionConfig

interface ActionConfig 🔹

LanguageType name
.NETAmazon.CDK.AWS.IoTEvents.Alpha.ActionConfig
Gogithub.com/aws/aws-cdk-go/awscdkioteventsalpha/v2#ActionConfig
Javasoftware.amazon.awscdk.services.iotevents.alpha.ActionConfig
Pythonaws_cdk.aws_iotevents_alpha.ActionConfig
TypeScript (source)@aws-cdk/aws-iotevents-alpha » ActionConfig

Properties for a AWS IoT Events action.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as iotevents_alpha from '@aws-cdk/aws-iotevents-alpha';
const actionConfig: iotevents_alpha.ActionConfig = {
  configuration: {
    clearTimer: {
      timerName: 'timerName',
    },
    dynamoDb: {
      hashKeyField: 'hashKeyField',
      hashKeyValue: 'hashKeyValue',
      tableName: 'tableName',

      // the properties below are optional
      hashKeyType: 'hashKeyType',
      operation: 'operation',
      payload: {
        contentExpression: 'contentExpression',
        type: 'type',
      },
      payloadField: 'payloadField',
      rangeKeyField: 'rangeKeyField',
      rangeKeyType: 'rangeKeyType',
      rangeKeyValue: 'rangeKeyValue',
    },
    dynamoDBv2: {
      tableName: 'tableName',

      // the properties below are optional
      payload: {
        contentExpression: 'contentExpression',
        type: 'type',
      },
    },
    firehose: {
      deliveryStreamName: 'deliveryStreamName',

      // the properties below are optional
      payload: {
        contentExpression: 'contentExpression',
        type: 'type',
      },
      separator: 'separator',
    },
    iotEvents: {
      inputName: 'inputName',

      // the properties below are optional
      payload: {
        contentExpression: 'contentExpression',
        type: 'type',
      },
    },
    iotSiteWise: {
      propertyValue: {
        value: {
          booleanValue: 'booleanValue',
          doubleValue: 'doubleValue',
          integerValue: 'integerValue',
          stringValue: 'stringValue',
        },

        // the properties below are optional
        quality: 'quality',
        timestamp: {
          timeInSeconds: 'timeInSeconds',

          // the properties below are optional
          offsetInNanos: 'offsetInNanos',
        },
      },

      // the properties below are optional
      assetId: 'assetId',
      entryId: 'entryId',
      propertyAlias: 'propertyAlias',
      propertyId: 'propertyId',
    },
    iotTopicPublish: {
      mqttTopic: 'mqttTopic',

      // the properties below are optional
      payload: {
        contentExpression: 'contentExpression',
        type: 'type',
      },
    },
    lambda: {
      functionArn: 'functionArn',

      // the properties below are optional
      payload: {
        contentExpression: 'contentExpression',
        type: 'type',
      },
    },
    resetTimer: {
      timerName: 'timerName',
    },
    setTimer: {
      timerName: 'timerName',

      // the properties below are optional
      durationExpression: 'durationExpression',
      seconds: 123,
    },
    setVariable: {
      value: 'value',
      variableName: 'variableName',
    },
    sns: {
      targetArn: 'targetArn',

      // the properties below are optional
      payload: {
        contentExpression: 'contentExpression',
        type: 'type',
      },
    },
    sqs: {
      queueUrl: 'queueUrl',

      // the properties below are optional
      payload: {
        contentExpression: 'contentExpression',
        type: 'type',
      },
      useBase64: false,
    },
  },
};

Properties

NameTypeDescription
configuration🔹ActionPropertyThe configuration for this action.

configuration🔹

Type: ActionProperty

The configuration for this action.