software.amazon.awscdk.services.pipes.sources.alpha.DynamoDBStartingPosition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pipes-sources-alpha Show documentation
Show all versions of pipes-sources-alpha Show documentation
The CDK Construct Library for Amazon EventBridge Pipes Sources
package software.amazon.awscdk.services.pipes.sources.alpha;
/**
* (experimental) The position in a DynamoDB stream from which to start reading.
*
* 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 SomeTarget(targetQueue))
* .build();
*
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.104.0 (build e79254c)", date = "2024-10-31T19:13:08.272Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.pipes.sources.alpha.$Module.class, fqn = "@aws-cdk/aws-pipes-sources-alpha.DynamoDBStartingPosition")
public enum DynamoDBStartingPosition {
/**
* (experimental) Start reading at the last (untrimmed) stream record, which is the oldest record in the shard.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
TRIM_HORIZON,
/**
* (experimental) Start reading just after the most recent stream record in the shard, so that you always read the most recent data in the shard.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
LATEST,
}