Class CfnPipeline.ActivityProperty
An activity that performs a transformation on a message.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.IoTAnalytics
Assembly: Amazon.CDK.AWS.IoTAnalytics.dll
Syntax (csharp)
public class ActivityProperty : Object, CfnPipeline.IActivityPropertySyntax (vb)
Public Class ActivityProperty
    Inherits Object
    Implements CfnPipeline.IActivityPropertyRemarks
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.IoTAnalytics;
var activityProperty = new ActivityProperty {
    AddAttributes = new AddAttributesProperty {
        Attributes = new Dictionary<string, string> {
            { "attributesKey", "attributes" }
        },
        Name = "name",
        // the properties below are optional
        Next = "next"
    },
    Channel = new ChannelProperty {
        ChannelName = "channelName",
        Name = "name",
        // the properties below are optional
        Next = "next"
    },
    Datastore = new DatastoreProperty {
        DatastoreName = "datastoreName",
        Name = "name"
    },
    DeviceRegistryEnrich = new DeviceRegistryEnrichProperty {
        Attribute = "attribute",
        Name = "name",
        RoleArn = "roleArn",
        ThingName = "thingName",
        // the properties below are optional
        Next = "next"
    },
    DeviceShadowEnrich = new DeviceShadowEnrichProperty {
        Attribute = "attribute",
        Name = "name",
        RoleArn = "roleArn",
        ThingName = "thingName",
        // the properties below are optional
        Next = "next"
    },
    Filter = new FilterProperty {
        Filter = "filter",
        Name = "name",
        // the properties below are optional
        Next = "next"
    },
    Lambda = new LambdaProperty {
        BatchSize = 123,
        LambdaName = "lambdaName",
        Name = "name",
        // the properties below are optional
        Next = "next"
    },
    Math = new MathProperty {
        Attribute = "attribute",
        Math = "math",
        Name = "name",
        // the properties below are optional
        Next = "next"
    },
    RemoveAttributes = new RemoveAttributesProperty {
        Attributes = new [] { "attributes" },
        Name = "name",
        // the properties below are optional
        Next = "next"
    },
    SelectAttributes = new SelectAttributesProperty {
        Attributes = new [] { "attributes" },
        Name = "name",
        // the properties below are optional
        Next = "next"
    }
};Synopsis
Constructors
| ActivityProperty() | 
Properties
| AddAttributes | Adds other attributes based on existing attributes in the message. | 
| Channel | Determines the source of the messages to be processed. | 
| Datastore | Specifies where to store the processed message data. | 
| DeviceRegistryEnrich | Adds data from the AWS IoT device registry to your message. | 
| DeviceShadowEnrich | Adds information from the AWS IoT Device Shadows service to a message. | 
| Filter | Filters a message based on its attributes. | 
| Lambda | Runs a Lambda function to modify the message. | 
| Math | Computes an arithmetic expression using the message's attributes and adds it to the message. | 
| RemoveAttributes | Removes attributes from a message. | 
| SelectAttributes | Creates a new message using only the specified attributes from the original message. | 
Constructors
ActivityProperty()
public ActivityProperty()Properties
AddAttributes
Adds other attributes based on existing attributes in the message.
public object AddAttributes { get; set; }Property Value
System.Object
Remarks
Channel
Determines the source of the messages to be processed.
public object Channel { get; set; }Property Value
System.Object
Remarks
Datastore
Specifies where to store the processed message data.
public object Datastore { get; set; }Property Value
System.Object
Remarks
DeviceRegistryEnrich
Adds data from the AWS IoT device registry to your message.
public object DeviceRegistryEnrich { get; set; }Property Value
System.Object
Remarks
DeviceShadowEnrich
Adds information from the AWS IoT Device Shadows service to a message.
public object DeviceShadowEnrich { get; set; }Property Value
System.Object
Remarks
Filter
Filters a message based on its attributes.
public object Filter { get; set; }Property Value
System.Object
Remarks
Lambda
Runs a Lambda function to modify the message.
public object Lambda { get; set; }Property Value
System.Object
Remarks
Math
Computes an arithmetic expression using the message's attributes and adds it to the message.
public object Math { get; set; }Property Value
System.Object
Remarks
RemoveAttributes
Removes attributes from a message.
public object RemoveAttributes { get; set; }Property Value
System.Object
Remarks
SelectAttributes
Creates a new message using only the specified attributes from the original message.
public object SelectAttributes { get; set; }Property Value
System.Object