aws-cdk-lib.aws_iotanalytics.CfnPipelineProps

interface CfnPipelineProps

LanguageType name
.NETAmazon.CDK.AWS.IoTAnalytics.CfnPipelineProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsiotanalytics#CfnPipelineProps
Javasoftware.amazon.awscdk.services.iotanalytics.CfnPipelineProps
Pythonaws_cdk.aws_iotanalytics.CfnPipelineProps
TypeScript aws-cdk-lib » aws_iotanalytics » CfnPipelineProps

Properties for defining a CfnPipeline.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iotanalytics as iotanalytics } from 'aws-cdk-lib';
const cfnPipelineProps: iotanalytics.CfnPipelineProps = {
  pipelineActivities: [{
    addAttributes: {
      attributes: {
        attributesKey: 'attributes',
      },
      name: 'name',

      // the properties below are optional
      next: 'next',
    },
    channel: {
      channelName: 'channelName',
      name: 'name',

      // the properties below are optional
      next: 'next',
    },
    datastore: {
      datastoreName: 'datastoreName',
      name: 'name',
    },
    deviceRegistryEnrich: {
      attribute: 'attribute',
      name: 'name',
      roleArn: 'roleArn',
      thingName: 'thingName',

      // the properties below are optional
      next: 'next',
    },
    deviceShadowEnrich: {
      attribute: 'attribute',
      name: 'name',
      roleArn: 'roleArn',
      thingName: 'thingName',

      // the properties below are optional
      next: 'next',
    },
    filter: {
      filter: 'filter',
      name: 'name',

      // the properties below are optional
      next: 'next',
    },
    lambda: {
      batchSize: 123,
      lambdaName: 'lambdaName',
      name: 'name',

      // the properties below are optional
      next: 'next',
    },
    math: {
      attribute: 'attribute',
      math: 'math',
      name: 'name',

      // the properties below are optional
      next: 'next',
    },
    removeAttributes: {
      attributes: ['attributes'],
      name: 'name',

      // the properties below are optional
      next: 'next',
    },
    selectAttributes: {
      attributes: ['attributes'],
      name: 'name',

      // the properties below are optional
      next: 'next',
    },
  }],

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

Properties

NameTypeDescription
pipelineActivitiesIResolvable | IResolvable | ActivityProperty[]A list of "PipelineActivity" objects.
pipelineName?stringThe name of the pipeline.
tags?CfnTag[]Metadata which can be used to manage the pipeline.

pipelineActivities

Type: IResolvable | IResolvable | ActivityProperty[]

A list of "PipelineActivity" objects.

Activities perform transformations on your messages, such as removing, renaming or adding message attributes; filtering messages based on attribute values; invoking your Lambda functions on messages for advanced processing; or performing mathematical transformations to normalize device data.

The list can be 2-25 PipelineActivity objects and must contain both a channel and a datastore activity. Each entry in the list must contain only one activity, for example:

pipelineActivities = [ { "channel": { ... } }, { "lambda": { ... } }, ... ]


pipelineName?

Type: string (optional)

The name of the pipeline.


tags?

Type: CfnTag[] (optional)

Metadata which can be used to manage the pipeline.

For more information, see Tag .