CfnPipelineProps

class aws_cdk.aws_iotanalytics.CfnPipelineProps(*, pipeline_activities, pipeline_name=None, tags=None)

Bases: object

Properties for defining a CfnPipeline.

Parameters:
  • pipeline_activities (Union[IResolvable, Sequence[Union[IResolvable, ActivityProperty, Dict[str, Any]]]]) – 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": { ... } }, ... ]

  • pipeline_name (Optional[str]) – The name of the pipeline.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – Metadata which can be used to manage the pipeline. For more information, see Tag .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotanalytics-pipeline.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iotanalytics as iotanalytics

cfn_pipeline_props = iotanalytics.CfnPipelineProps(
    pipeline_activities=[iotanalytics.CfnPipeline.ActivityProperty(
        add_attributes=iotanalytics.CfnPipeline.AddAttributesProperty(
            attributes={
                "attributes_key": "attributes"
            },
            name="name",

            # the properties below are optional
            next="next"
        ),
        channel=iotanalytics.CfnPipeline.ChannelProperty(
            channel_name="channelName",
            name="name",

            # the properties below are optional
            next="next"
        ),
        datastore=iotanalytics.CfnPipeline.DatastoreProperty(
            datastore_name="datastoreName",
            name="name"
        ),
        device_registry_enrich=iotanalytics.CfnPipeline.DeviceRegistryEnrichProperty(
            attribute="attribute",
            name="name",
            role_arn="roleArn",
            thing_name="thingName",

            # the properties below are optional
            next="next"
        ),
        device_shadow_enrich=iotanalytics.CfnPipeline.DeviceShadowEnrichProperty(
            attribute="attribute",
            name="name",
            role_arn="roleArn",
            thing_name="thingName",

            # the properties below are optional
            next="next"
        ),
        filter=iotanalytics.CfnPipeline.FilterProperty(
            filter="filter",
            name="name",

            # the properties below are optional
            next="next"
        ),
        lambda_=iotanalytics.CfnPipeline.LambdaProperty(
            batch_size=123,
            lambda_name="lambdaName",
            name="name",

            # the properties below are optional
            next="next"
        ),
        math=iotanalytics.CfnPipeline.MathProperty(
            attribute="attribute",
            math="math",
            name="name",

            # the properties below are optional
            next="next"
        ),
        remove_attributes=iotanalytics.CfnPipeline.RemoveAttributesProperty(
            attributes=["attributes"],
            name="name",

            # the properties below are optional
            next="next"
        ),
        select_attributes=iotanalytics.CfnPipeline.SelectAttributesProperty(
            attributes=["attributes"],
            name="name",

            # the properties below are optional
            next="next"
        )
    )],

    # the properties below are optional
    pipeline_name="pipelineName",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

pipeline_activities

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": { ... } }, ... ]

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotanalytics-pipeline.html#cfn-iotanalytics-pipeline-pipelineactivities

pipeline_name

The name of the pipeline.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotanalytics-pipeline.html#cfn-iotanalytics-pipeline-pipelinename

tags

Metadata which can be used to manage the pipeline.

For more information, see Tag .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotanalytics-pipeline.html#cfn-iotanalytics-pipeline-tags