ActivityProperty Struct
An activity that performs a transformation on a message.
Example
ts
// 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 activityProperty: iotanalytics.CfnPipeline.ActivityProperty = {
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',
},
};
python
# 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
activity_property = 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"
)
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iotanalytics.*;
ActivityProperty activityProperty = ActivityProperty.builder()
.addAttributes(AddAttributesProperty.builder()
.attributes(Map.of(
"attributesKey", "attributes"))
.name("name")
// the properties below are optional
.next("next")
.build())
.channel(ChannelProperty.builder()
.channelName("channelName")
.name("name")
// the properties below are optional
.next("next")
.build())
.datastore(DatastoreProperty.builder()
.datastoreName("datastoreName")
.name("name")
.build())
.deviceRegistryEnrich(DeviceRegistryEnrichProperty.builder()
.attribute("attribute")
.name("name")
.roleArn("roleArn")
.thingName("thingName")
// the properties below are optional
.next("next")
.build())
.deviceShadowEnrich(DeviceShadowEnrichProperty.builder()
.attribute("attribute")
.name("name")
.roleArn("roleArn")
.thingName("thingName")
// the properties below are optional
.next("next")
.build())
.filter(FilterProperty.builder()
.filter("filter")
.name("name")
// the properties below are optional
.next("next")
.build())
.lambda(LambdaProperty.builder()
.batchSize(123)
.lambdaName("lambdaName")
.name("name")
// the properties below are optional
.next("next")
.build())
.math(MathProperty.builder()
.attribute("attribute")
.math("math")
.name("name")
// the properties below are optional
.next("next")
.build())
.removeAttributes(RemoveAttributesProperty.builder()
.attributes(List.of("attributes"))
.name("name")
// the properties below are optional
.next("next")
.build())
.selectAttributes(SelectAttributesProperty.builder()
.attributes(List.of("attributes"))
.name("name")
// the properties below are optional
.next("next")
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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"
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
activityProperty := &ActivityProperty{
AddAttributes: &AddAttributesProperty{
Attributes: map[string]*string{
"attributesKey": jsii.String("attributes"),
},
Name: jsii.String("name"),
// the properties below are optional
Next: jsii.String("next"),
},
Channel: &ChannelProperty{
ChannelName: jsii.String("channelName"),
Name: jsii.String("name"),
// the properties below are optional
Next: jsii.String("next"),
},
Datastore: &DatastoreProperty{
DatastoreName: jsii.String("datastoreName"),
Name: jsii.String("name"),
},
DeviceRegistryEnrich: &DeviceRegistryEnrichProperty{
Attribute: jsii.String("attribute"),
Name: jsii.String("name"),
RoleArn: jsii.String("roleArn"),
ThingName: jsii.String("thingName"),
// the properties below are optional
Next: jsii.String("next"),
},
DeviceShadowEnrich: &DeviceShadowEnrichProperty{
Attribute: jsii.String("attribute"),
Name: jsii.String("name"),
RoleArn: jsii.String("roleArn"),
ThingName: jsii.String("thingName"),
// the properties below are optional
Next: jsii.String("next"),
},
Filter: &FilterProperty{
Filter: jsii.String("filter"),
Name: jsii.String("name"),
// the properties below are optional
Next: jsii.String("next"),
},
Lambda: &LambdaProperty{
BatchSize: jsii.Number(123),
LambdaName: jsii.String("lambdaName"),
Name: jsii.String("name"),
// the properties below are optional
Next: jsii.String("next"),
},
Math: &MathProperty{
Attribute: jsii.String("attribute"),
Math: jsii.String("math"),
Name: jsii.String("name"),
// the properties below are optional
Next: jsii.String("next"),
},
RemoveAttributes: &RemoveAttributesProperty{
Attributes: []*string{
jsii.String("attributes"),
},
Name: jsii.String("name"),
// the properties below are optional
Next: jsii.String("next"),
},
SelectAttributes: &SelectAttributesProperty{
Attributes: []*string{
jsii.String("attributes"),
},
Name: jsii.String("name"),
// the properties below are optional
Next: jsii.String("next"),
},
}
Properties
addAttributesoptionalIResolvable | CfnPipeline.AddAttributesPropertyadd_attributesoptionaltyping.Union[IResolvable, AddAttributesProperty]addAttributesoptionalIResolvableAddAttributesoptionalIResolvableAddAttributesoptionalinterface{}#Adds other attributes based on existing attributes in the message.
channeloptionalIResolvable | CfnPipeline.ChannelPropertychanneloptionaltyping.Union[IResolvable, ChannelProperty]channeloptionalIResolvableChanneloptionalIResolvableChanneloptionalinterface{}#Determines the source of the messages to be processed.
datastoreoptionalIResolvable | CfnPipeline.DatastorePropertydatastoreoptionaltyping.Union[IResolvable, DatastoreProperty]datastoreoptionalIResolvableDatastoreoptionalIResolvableDatastoreoptionalinterface{}#Specifies where to store the processed message data.
deviceRegistryEnrichoptionalIResolvable | CfnPipeline.DeviceRegistryEnrichPropertydevice_registry_enrichoptionaltyping.Union[IResolvable, DeviceRegistryEnrichProperty]deviceRegistryEnrichoptionalIResolvableDeviceRegistryEnrichoptionalIResolvableDeviceRegistryEnrichoptionalinterface{}#Adds data from the AWS IoT device registry to your message.
deviceShadowEnrichoptionalIResolvable | CfnPipeline.DeviceShadowEnrichPropertydevice_shadow_enrichoptionaltyping.Union[IResolvable, DeviceShadowEnrichProperty]deviceShadowEnrichoptionalIResolvableDeviceShadowEnrichoptionalIResolvableDeviceShadowEnrichoptionalinterface{}#Adds information from the AWS IoT Device Shadows service to a message.
filteroptionalIResolvable | CfnPipeline.FilterPropertyfilteroptionaltyping.Union[IResolvable, FilterProperty]filteroptionalIResolvableFilteroptionalIResolvableFilteroptionalinterface{}#Filters a message based on its attributes.
lambdaoptionalIResolvable | CfnPipeline.LambdaPropertylambdaoptionaltyping.Union[IResolvable, LambdaProperty]lambdaoptionalIResolvableLambdaoptionalIResolvableLambdaoptionalinterface{}#Runs a Lambda function to modify the message.
mathoptionalIResolvable | CfnPipeline.MathPropertymathoptionaltyping.Union[IResolvable, MathProperty]mathoptionalIResolvableMathoptionalIResolvableMathoptionalinterface{}#Computes an arithmetic expression using the message's attributes and adds it to the message.
removeAttributesoptionalIResolvable | CfnPipeline.RemoveAttributesPropertyremove_attributesoptionaltyping.Union[IResolvable, RemoveAttributesProperty]removeAttributesoptionalIResolvableRemoveAttributesoptionalIResolvableRemoveAttributesoptionalinterface{}#Removes attributes from a message.
selectAttributesoptionalIResolvable | CfnPipeline.SelectAttributesPropertyselect_attributesoptionaltyping.Union[IResolvable, SelectAttributesProperty]selectAttributesoptionalIResolvableSelectAttributesoptionalIResolvableSelectAttributesoptionalinterface{}#Creates a new message using only the specified attributes from the original message.