All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awscdk.services.pipes.sources.alpha.DynamoDBStartingPosition Maven / Gradle / Ivy

There is a newer version: 2.168.0-alpha.0
Show newest version
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, }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy