Class CfnPipeline
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::IoTAnalytics::Pipeline.
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();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAn activity that performs a transformation on a message.static interfaceAn activity that adds other attributes based on existing attributes in the message.static final classA fluent builder forCfnPipeline.static interfaceDetermines the source of the messages to be processed.static interfaceThe datastore activity that specifies where to store the processed data.static interfaceAn activity that adds data from the AWS IoT device registry to your message.static interfaceAn activity that adds information from the AWS IoT Device Shadows service to a message.static interfaceAn activity that filters a message based on its attributes.static interfaceAn activity that runs a Lambda function to modify the message.static interfaceAn activity that computes an arithmetic expression using the message's attributes.static interfaceAn activity that removes attributes from a message.static interfaceCreates a new message using only the specified attributes from the original message.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnPipeline(Construct scope, String id, CfnPipelineProps props) Create a newAWS::IoTAnalytics::Pipeline.protectedCfnPipeline(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnPipeline(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionA list of "PipelineActivity" objects.The name of the pipeline.getTags()Metadata which can be used to manage the pipeline.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetPipelineActivities(List<Object> value) A list of "PipelineActivity" objects.voidsetPipelineActivities(IResolvable value) A list of "PipelineActivity" objects.voidsetPipelineName(String value) The name of the pipeline.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnPipeline
protected CfnPipeline(software.amazon.jsii.JsiiObjectRef objRef) -
CfnPipeline
protected CfnPipeline(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnPipeline
@Stability(Stable) public CfnPipeline(@NotNull Construct scope, @NotNull String id, @NotNull CfnPipelineProps props) Create a newAWS::IoTAnalytics::Pipeline.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrId
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Metadata which can be used to manage the pipeline.For more information, see Tag .
-
getPipelineActivities
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
channeland adatastoreactivity. Each entry in the list must contain only one activity, for example:pipelineActivities = [ { "channel": { ... } }, { "lambda": { ... } }, ... ] -
setPipelineActivities
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
channeland adatastoreactivity. Each entry in the list must contain only one activity, for example:pipelineActivities = [ { "channel": { ... } }, { "lambda": { ... } }, ... ] -
setPipelineActivities
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
channeland adatastoreactivity. Each entry in the list must contain only one activity, for example:pipelineActivities = [ { "channel": { ... } }, { "lambda": { ... } }, ... ] -
getPipelineName
The name of the pipeline. -
setPipelineName
The name of the pipeline.
-