@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.949Z") @Stability(value=Stable) public class CfnPipeline extends CfnResource implements IInspectable
The AWS::IoTAnalytics::Pipeline resource consumes messages from one or more channels and allows you to process the messages before storing them in a data store. You must specify both a channel and a datastore activity and, optionally, as many as 23 additional activities in the pipelineActivities array. For more information, see How to Use AWS IoT Analytics in the AWS IoT Analytics User Guide .
Example:
// 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.*;
CfnPipeline cfnPipeline = CfnPipeline.Builder.create(this, "MyCfnPipeline")
.pipelineActivities(List.of(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()))
// the properties below are optional
.pipelineName("pipelineName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static interface |
CfnPipeline.ActivityProperty
An activity that performs a transformation on a message.
|
static interface |
CfnPipeline.AddAttributesProperty
An activity that adds other attributes based on existing attributes in the message.
|
static class |
CfnPipeline.Builder
A fluent builder for
CfnPipeline. |
static interface |
CfnPipeline.ChannelProperty
Determines the source of the messages to be processed.
|
static interface |
CfnPipeline.DatastoreProperty
The datastore activity that specifies where to store the processed data.
|
static interface |
CfnPipeline.DeviceRegistryEnrichProperty
An activity that adds data from the AWS IoT device registry to your message.
|
static interface |
CfnPipeline.DeviceShadowEnrichProperty
An activity that adds information from the AWS IoT Device Shadows service to a message.
|
static interface |
CfnPipeline.FilterProperty
An activity that filters a message based on its attributes.
|
static interface |
CfnPipeline.LambdaProperty
An activity that runs a Lambda function to modify the message.
|
static interface |
CfnPipeline.MathProperty
An activity that computes an arithmetic expression using the message's attributes.
|
static interface |
CfnPipeline.RemoveAttributesProperty
An activity that removes attributes from a message.
|
static interface |
CfnPipeline.SelectAttributesProperty
Creates a new message using only the specified attributes from the original message.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnPipeline(software.constructs.Construct scope,
String id,
CfnPipelineProps props)
Create a new `AWS::IoTAnalytics::Pipeline`.
|
protected |
CfnPipeline(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnPipeline(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrId() |
protected Map<String,Object> |
getCfnProperties() |
Object |
getPipelineActivities()
A list of "PipelineActivity" objects.
|
String |
getPipelineName()
The name of the pipeline.
|
TagManager |
getTags()
Metadata which can be used to manage the pipeline.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setPipelineActivities(IResolvable value)
A list of "PipelineActivity" objects.
|
void |
setPipelineActivities(List<Object> value)
A list of "PipelineActivity" objects.
|
void |
setPipelineName(String value)
The name of the pipeline.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnPipeline(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnPipeline(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnPipeline(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnPipelineProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrId()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
For more information, see Tag .
@Stability(value=Stable) @NotNull public Object getPipelineActivities()
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": { ... } }, ... ]
@Stability(value=Stable)
public void setPipelineActivities(@NotNull
IResolvable value)
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": { ... } }, ... ]
@Stability(value=Stable)
public void setPipelineActivities(@NotNull
List<Object> value)
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": { ... } }, ... ]
@Stability(value=Stable) @Nullable public String getPipelineName()
@Stability(value=Stable)
public void setPipelineName(@Nullable
String value)
Copyright © 2022. All rights reserved.