StartingPosition

class aws_cdk.aws_lambda.StartingPosition

Bases: enum.Enum

The position in the DynamoDB or Kinesis stream where AWS Lambda should start reading.

Attributes

LATEST

Start reading just after the most recent record in the shard, so that you always read the most recent data in the shard.

TRIM_HORIZON

Start reading at the last untrimmed record in the shard in the system, which is the oldest data record in the shard.

Attributes

LATEST = 'LATEST'

Start reading just after the most recent record in the shard, so that you always read the most recent data in the shard.

TRIM_HORIZON = 'TRIM_HORIZON'

Start reading at the last untrimmed record in the shard in the system, which is the oldest data record in the shard.