Class CfnPipeline
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.iotanalytics.CfnPipeline
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IPipelineRef,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:40:53.963Z")
@Stability(Stable)
public class CfnPipeline
extends CfnResource
implements IInspectable, IPipelineRef, ITaggable
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();
- See Also:
-
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.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.iotanalytics.IPipelineRef
IPipelineRef.Jsii$Default, IPipelineRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnPipeline(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnPipeline(software.amazon.jsii.JsiiObjectRef objRef) CfnPipeline(software.constructs.Construct scope, String id, CfnPipelineProps props) Create a newAWS::IoTAnalytics::Pipeline. -
Method Summary
Modifier and TypeMethodDescriptionstatic IPipelineReffromPipelineName(software.constructs.Construct scope, String id, String pipelineName) Creates a new IPipelineRef from a pipelineName.A list of "PipelineActivity" objects.The name of the pipeline.A reference to a Pipeline resource.getTags()Tag Manager which manages the tags for this resource.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.voidsetTagsRaw(List<CfnTag> value) Metadata which can be used to manage the pipeline.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods 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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnPipelineProps props) Create a newAWS::IoTAnalytics::Pipeline.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
fromPipelineName
@Stability(Stable) @NotNull public static IPipelineRef fromPipelineName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String pipelineName) Creates a new IPipelineRef from a pipelineName.- Parameters:
scope- This parameter is required.id- This parameter is required.pipelineName- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
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
-
getPipelineRef
A reference to a Pipeline resource.- Specified by:
getPipelineRefin interfaceIPipelineRef
-
getTags
Tag Manager which manages the tags for this resource. -
getPipelineActivities
A list of "PipelineActivity" objects.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnPipeline.ActivityProperty> -
setPipelineActivities
A list of "PipelineActivity" objects. -
setPipelineActivities
A list of "PipelineActivity" objects. -
getPipelineName
The name of the pipeline. -
setPipelineName
The name of the pipeline. -
getTagsRaw
Metadata which can be used to manage the pipeline. -
setTagsRaw
Metadata which can be used to manage the pipeline.
-