Class DynamoDBSource
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.pipes.alpha.SourceWithDeadLetterTarget
software.amazon.awscdk.services.pipes.sources.alpha.StreamSource
software.amazon.awscdk.services.pipes.sources.alpha.DynamoDBSource
- All Implemented Interfaces:
ISource,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:18.833Z")
@Stability(Experimental)
public class DynamoDBSource
extends StreamSource
(experimental) A source that reads from an DynamoDB stream.
Example:
Queue targetQueue;
TableV2 table = TableV2.Builder.create(this, "MyTable")
.partitionKey(Attribute.builder()
.name("id")
.type(AttributeType.STRING)
.build())
.dynamoStream(StreamViewType.NEW_IMAGE)
.build();
DynamoDBSource pipeSource = DynamoDBSource.Builder.create(table)
.startingPosition(DynamoDBStartingPosition.LATEST)
.build();
Pipe pipe = Pipe.Builder.create(this, "Pipe")
.source(pipeSource)
.target(new SqsTarget(targetQueue))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class(experimental) A fluent builder forDynamoDBSource.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.pipes.alpha.ISource
ISource.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionDynamoDBSource(ITableV2 table, DynamoDBSourceParameters parameters) protectedDynamoDBSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedDynamoDBSource(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescription(experimental) Bind the source to a pipe.void(experimental) Grant the pipe role read access to the source.Methods inherited from class software.amazon.awscdk.services.pipes.sources.alpha.StreamSource
getSourceArn, getSourceParametersMethods inherited from class software.amazon.awscdk.services.pipes.alpha.SourceWithDeadLetterTarget
getDeadLetterTarget, getDeadLetterTargetArn, getDeadLetterTargetArn, grantPush, grantPush, isSourceWithDeadLetterTargetMethods 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, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
DynamoDBSource
protected DynamoDBSource(software.amazon.jsii.JsiiObjectRef objRef) -
DynamoDBSource
protected DynamoDBSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
DynamoDBSource
@Stability(Experimental) public DynamoDBSource(@NotNull ITableV2 table, @NotNull DynamoDBSourceParameters parameters) - Parameters:
table- This parameter is required.parameters- This parameter is required.
-
-
Method Details
-
bind
(experimental) Bind the source to a pipe.- Specified by:
bindin interfaceISource- Specified by:
bindin classSourceWithDeadLetterTarget- Parameters:
_pipe- This parameter is required.
-
grantRead
(experimental) Grant the pipe role read access to the source.- Specified by:
grantReadin interfaceISource- Specified by:
grantReadin classSourceWithDeadLetterTarget- Parameters:
grantee- This parameter is required.
-