public static interface KinesisStreamingSourceOptions.Builder extends SdkPojo, CopyableBuilder<KinesisStreamingSourceOptions.Builder,KinesisStreamingSourceOptions>
| Modifier and Type | Method and Description |
|---|---|
KinesisStreamingSourceOptions.Builder |
addIdleTimeBetweenReads(Boolean addIdleTimeBetweenReads)
Adds a time delay between two consecutive getRecords operations.
|
KinesisStreamingSourceOptions.Builder |
addRecordTimestamp(String addRecordTimestamp)
When this option is set to 'true', the data output will contain an additional column named "__src_timestamp"
that indicates the time when the corresponding record received by the stream.
|
KinesisStreamingSourceOptions.Builder |
avoidEmptyBatches(Boolean avoidEmptyBatches)
Avoids creating an empty microbatch job by checking for unread data in the Kinesis data stream before the
batch is started.
|
KinesisStreamingSourceOptions.Builder |
classification(String classification)
An optional classification.
|
KinesisStreamingSourceOptions.Builder |
delimiter(String delimiter)
Specifies the delimiter character.
|
KinesisStreamingSourceOptions.Builder |
describeShardInterval(Long describeShardInterval)
The minimum time interval between two ListShards API calls for your script to consider resharding.
|
KinesisStreamingSourceOptions.Builder |
emitConsumerLagMetrics(String emitConsumerLagMetrics)
When this option is set to 'true', for each batch, it will emit the metrics for the duration between the
oldest record received by the stream and the time it arrives in Glue to CloudWatch.
|
KinesisStreamingSourceOptions.Builder |
endpointUrl(String endpointUrl)
The URL of the Kinesis endpoint.
|
KinesisStreamingSourceOptions.Builder |
idleTimeBetweenReadsInMs(Long idleTimeBetweenReadsInMs)
The minimum time delay between two consecutive getRecords operations, specified in ms.
|
KinesisStreamingSourceOptions.Builder |
maxFetchRecordsPerShard(Long maxFetchRecordsPerShard)
The maximum number of records to fetch per shard in the Kinesis data stream.
|
KinesisStreamingSourceOptions.Builder |
maxFetchTimeInMs(Long maxFetchTimeInMs)
The maximum time spent in the job executor to fetch a record from the Kinesis data stream per shard,
specified in milliseconds (ms).
|
KinesisStreamingSourceOptions.Builder |
maxRecordPerRead(Long maxRecordPerRead)
The maximum number of records to fetch from the Kinesis data stream in each getRecords operation.
|
KinesisStreamingSourceOptions.Builder |
maxRetryIntervalMs(Long maxRetryIntervalMs)
The maximum cool-off time period (specified in ms) between two retries of a Kinesis Data Streams API call.
|
KinesisStreamingSourceOptions.Builder |
numRetries(Integer numRetries)
The maximum number of retries for Kinesis Data Streams API requests.
|
KinesisStreamingSourceOptions.Builder |
retryIntervalMs(Long retryIntervalMs)
The cool-off time period (specified in ms) before retrying the Kinesis Data Streams API call.
|
KinesisStreamingSourceOptions.Builder |
roleArn(String roleArn)
The Amazon Resource Name (ARN) of the role to assume using AWS Security Token Service (AWS STS).
|
KinesisStreamingSourceOptions.Builder |
roleSessionName(String roleSessionName)
An identifier for the session assuming the role using AWS STS.
|
KinesisStreamingSourceOptions.Builder |
startingPosition(StartingPosition startingPosition)
The starting position in the Kinesis data stream to read data from.
|
KinesisStreamingSourceOptions.Builder |
startingPosition(String startingPosition)
The starting position in the Kinesis data stream to read data from.
|
KinesisStreamingSourceOptions.Builder |
startingTimestamp(Instant startingTimestamp)
The timestamp of the record in the Kinesis data stream to start reading data from.
|
KinesisStreamingSourceOptions.Builder |
streamArn(String streamArn)
The Amazon Resource Name (ARN) of the Kinesis data stream.
|
KinesisStreamingSourceOptions.Builder |
streamName(String streamName)
The name of the Kinesis data stream.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildKinesisStreamingSourceOptions.Builder endpointUrl(String endpointUrl)
The URL of the Kinesis endpoint.
endpointUrl - The URL of the Kinesis endpoint.KinesisStreamingSourceOptions.Builder streamName(String streamName)
The name of the Kinesis data stream.
streamName - The name of the Kinesis data stream.KinesisStreamingSourceOptions.Builder classification(String classification)
An optional classification.
classification - An optional classification.KinesisStreamingSourceOptions.Builder delimiter(String delimiter)
Specifies the delimiter character.
delimiter - Specifies the delimiter character.KinesisStreamingSourceOptions.Builder startingPosition(String startingPosition)
The starting position in the Kinesis data stream to read data from. The possible values are
"latest", "trim_horizon", "earliest", or a timestamp string in UTC
format in the pattern yyyy-mm-ddTHH:MM:SSZ (where Z represents a UTC timezone
offset with a +/-. For example: "2023-04-04T08:00:00-04:00"). The default value is "latest".
Note: Using a value that is a timestamp string in UTC format for "startingPosition" is supported only for Glue version 4.0 or later.
startingPosition - The starting position in the Kinesis data stream to read data from. The possible values are
"latest", "trim_horizon", "earliest", or a timestamp string in
UTC format in the pattern yyyy-mm-ddTHH:MM:SSZ (where Z represents a UTC
timezone offset with a +/-. For example: "2023-04-04T08:00:00-04:00"). The default value is
"latest".
Note: Using a value that is a timestamp string in UTC format for "startingPosition" is supported only for Glue version 4.0 or later.
StartingPosition,
StartingPositionKinesisStreamingSourceOptions.Builder startingPosition(StartingPosition startingPosition)
The starting position in the Kinesis data stream to read data from. The possible values are
"latest", "trim_horizon", "earliest", or a timestamp string in UTC
format in the pattern yyyy-mm-ddTHH:MM:SSZ (where Z represents a UTC timezone
offset with a +/-. For example: "2023-04-04T08:00:00-04:00"). The default value is "latest".
Note: Using a value that is a timestamp string in UTC format for "startingPosition" is supported only for Glue version 4.0 or later.
startingPosition - The starting position in the Kinesis data stream to read data from. The possible values are
"latest", "trim_horizon", "earliest", or a timestamp string in
UTC format in the pattern yyyy-mm-ddTHH:MM:SSZ (where Z represents a UTC
timezone offset with a +/-. For example: "2023-04-04T08:00:00-04:00"). The default value is
"latest".
Note: Using a value that is a timestamp string in UTC format for "startingPosition" is supported only for Glue version 4.0 or later.
StartingPosition,
StartingPositionKinesisStreamingSourceOptions.Builder maxFetchTimeInMs(Long maxFetchTimeInMs)
The maximum time spent in the job executor to fetch a record from the Kinesis data stream per shard,
specified in milliseconds (ms). The default value is 1000.
maxFetchTimeInMs - The maximum time spent in the job executor to fetch a record from the Kinesis data stream per shard,
specified in milliseconds (ms). The default value is 1000.KinesisStreamingSourceOptions.Builder maxFetchRecordsPerShard(Long maxFetchRecordsPerShard)
The maximum number of records to fetch per shard in the Kinesis data stream. The default value is
100000.
maxFetchRecordsPerShard - The maximum number of records to fetch per shard in the Kinesis data stream. The default value is
100000.KinesisStreamingSourceOptions.Builder maxRecordPerRead(Long maxRecordPerRead)
The maximum number of records to fetch from the Kinesis data stream in each getRecords operation. The default
value is 10000.
maxRecordPerRead - The maximum number of records to fetch from the Kinesis data stream in each getRecords operation. The
default value is 10000.KinesisStreamingSourceOptions.Builder addIdleTimeBetweenReads(Boolean addIdleTimeBetweenReads)
Adds a time delay between two consecutive getRecords operations. The default value is "False".
This option is only configurable for Glue version 2.0 and above.
addIdleTimeBetweenReads - Adds a time delay between two consecutive getRecords operations. The default value is
"False". This option is only configurable for Glue version 2.0 and above.KinesisStreamingSourceOptions.Builder idleTimeBetweenReadsInMs(Long idleTimeBetweenReadsInMs)
The minimum time delay between two consecutive getRecords operations, specified in ms. The default value is
1000. This option is only configurable for Glue version 2.0 and above.
idleTimeBetweenReadsInMs - The minimum time delay between two consecutive getRecords operations, specified in ms. The default
value is 1000. This option is only configurable for Glue version 2.0 and above.KinesisStreamingSourceOptions.Builder describeShardInterval(Long describeShardInterval)
The minimum time interval between two ListShards API calls for your script to consider resharding. The
default value is 1s.
describeShardInterval - The minimum time interval between two ListShards API calls for your script to consider resharding. The
default value is 1s.KinesisStreamingSourceOptions.Builder numRetries(Integer numRetries)
The maximum number of retries for Kinesis Data Streams API requests. The default value is 3.
numRetries - The maximum number of retries for Kinesis Data Streams API requests. The default value is
3.KinesisStreamingSourceOptions.Builder retryIntervalMs(Long retryIntervalMs)
The cool-off time period (specified in ms) before retrying the Kinesis Data Streams API call. The default
value is 1000.
retryIntervalMs - The cool-off time period (specified in ms) before retrying the Kinesis Data Streams API call. The
default value is 1000.KinesisStreamingSourceOptions.Builder maxRetryIntervalMs(Long maxRetryIntervalMs)
The maximum cool-off time period (specified in ms) between two retries of a Kinesis Data Streams API call.
The default value is 10000.
maxRetryIntervalMs - The maximum cool-off time period (specified in ms) between two retries of a Kinesis Data Streams API
call. The default value is 10000.KinesisStreamingSourceOptions.Builder avoidEmptyBatches(Boolean avoidEmptyBatches)
Avoids creating an empty microbatch job by checking for unread data in the Kinesis data stream before the
batch is started. The default value is "False".
avoidEmptyBatches - Avoids creating an empty microbatch job by checking for unread data in the Kinesis data stream before
the batch is started. The default value is "False".KinesisStreamingSourceOptions.Builder streamArn(String streamArn)
The Amazon Resource Name (ARN) of the Kinesis data stream.
streamArn - The Amazon Resource Name (ARN) of the Kinesis data stream.KinesisStreamingSourceOptions.Builder roleArn(String roleArn)
The Amazon Resource Name (ARN) of the role to assume using AWS Security Token Service (AWS STS). This role
must have permissions for describe or read record operations for the Kinesis data stream. You must use this
parameter when accessing a data stream in a different account. Used in conjunction with
"awsSTSSessionName".
roleArn - The Amazon Resource Name (ARN) of the role to assume using AWS Security Token Service (AWS STS). This
role must have permissions for describe or read record operations for the Kinesis data stream. You
must use this parameter when accessing a data stream in a different account. Used in conjunction with
"awsSTSSessionName".KinesisStreamingSourceOptions.Builder roleSessionName(String roleSessionName)
An identifier for the session assuming the role using AWS STS. You must use this parameter when accessing a
data stream in a different account. Used in conjunction with "awsSTSRoleARN".
roleSessionName - An identifier for the session assuming the role using AWS STS. You must use this parameter when
accessing a data stream in a different account. Used in conjunction with "awsSTSRoleARN".KinesisStreamingSourceOptions.Builder addRecordTimestamp(String addRecordTimestamp)
When this option is set to 'true', the data output will contain an additional column named "__src_timestamp" that indicates the time when the corresponding record received by the stream. The default value is 'false'. This option is supported in Glue version 4.0 or later.
addRecordTimestamp - When this option is set to 'true', the data output will contain an additional column named
"__src_timestamp" that indicates the time when the corresponding record received by the stream. The
default value is 'false'. This option is supported in Glue version 4.0 or later.KinesisStreamingSourceOptions.Builder emitConsumerLagMetrics(String emitConsumerLagMetrics)
When this option is set to 'true', for each batch, it will emit the metrics for the duration between the oldest record received by the stream and the time it arrives in Glue to CloudWatch. The metric's name is "glue.driver.streaming.maxConsumerLagInMs". The default value is 'false'. This option is supported in Glue version 4.0 or later.
emitConsumerLagMetrics - When this option is set to 'true', for each batch, it will emit the metrics for the duration between
the oldest record received by the stream and the time it arrives in Glue to CloudWatch. The metric's
name is "glue.driver.streaming.maxConsumerLagInMs". The default value is 'false'. This option is
supported in Glue version 4.0 or later.KinesisStreamingSourceOptions.Builder startingTimestamp(Instant startingTimestamp)
The timestamp of the record in the Kinesis data stream to start reading data from. The possible values are a
timestamp string in UTC format of the pattern yyyy-mm-ddTHH:MM:SSZ (where Z represents a UTC
timezone offset with a +/-. For example: "2023-04-04T08:00:00+08:00").
startingTimestamp - The timestamp of the record in the Kinesis data stream to start reading data from. The possible values
are a timestamp string in UTC format of the pattern yyyy-mm-ddTHH:MM:SSZ (where Z
represents a UTC timezone offset with a +/-. For example: "2023-04-04T08:00:00+08:00").Copyright © 2023. All rights reserved.