Smaws_Client_Kinesis
Kinesis client library built on EIO.
val service : Smaws_Lib.Service.descriptor
Specifies that you tried to invoke this API for a data stream with the on-demand capacity mode. This API is only supported for data streams with the provisioned capacity mode.
type stream_mode_details = {
stream_mode : stream_mode;
Specifies the capacity mode to which you want to set your data stream. Currently, in Kinesis Data Streams, you can choose between an on-demand capacity mode and a provisioned capacity mode for your data streams.
*)}
Specifies the capacity mode to which you want to set your data stream. Currently, in Kinesis Data Streams, you can choose between an on-demand capacity mode and a provisioned capacity mode for your data streams.
type update_stream_mode_input = {
stream_mode_details : stream_mode_details;
Specifies the capacity mode to which you want to set your data stream. Currently, in Kinesis Data Streams, you can choose between an on-demand capacity mode and a provisioned capacity mode for your data streams.
*)stream_ar_n : string;
Specifies the ARN of the data stream whose capacity mode you want to update.
*)}
The requested resource could not be found. The stream might not be specified correctly.
The resource is not available for this operation. For successful operation, the resource must be in the ACTIVE
state.
The requested resource exceeds the maximum number allowed, or the number of concurrent stream requests exceeds the maximum number allowed.
A specified parameter exceeds its restrictions, is not supported, or can't be used. For more information, see the returned message.
type update_shard_count_input = {
stream_ar_n : string option;
The ARN of the stream.
*)scaling_type : scaling_type;
The scaling type. Uniform scaling creates shards of equal size.
*)target_shard_count : int;
The new number of shards. This value has the following default limits. By default, you cannot do the following:
stream_name : string option;
The name of the stream.
*)}
Specifies that you do not have the permissions required to perform this operation.
type tag = {
value : string option;
An optional string, typically used to describe or define the tag. Maximum length: 256 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
*)key : string;
A unique identifier for the tag. Maximum length: 128 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
*)}
Metadata assigned to the stream, consisting of a key-value pair.
type record = {
encryption_type : encryption_type option;
The encryption type used on the record. This parameter can be one of the following values:
NONE
: Do not encrypt the records in the stream.KMS
: Use server-side encryption on the records in the stream using a customer-managed Amazon Web Services KMS key.partition_key : string;
Identifies which shard in the stream the data record is assigned to.
*)data : bytes;
The data blob. The data in the blob is both opaque and immutable to Kinesis Data Streams, which does not inspect, interpret, or change the data in the blob in any way. When the data blob (the payload before base64-encoding) is added to the partition key size, the total size must not exceed the maximum record size (1 MiB).
*)approximate_arrival_timestamp : float option;
The approximate time that the record was inserted into the stream.
*)sequence_number : string;
The unique identifier of the record within its shard.
*)}
The unit of data of the Kinesis data stream, which is composed of a sequence number, a partition key, and a data blob.
type hash_key_range = {
ending_hash_key : string;
The ending hash key of the hash key range.
*)starting_hash_key : string;
The starting hash key of the hash key range.
*)}
The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
type child_shard = {
hash_key_range : hash_key_range;
parent_shards : string list;
The current shard that is the parent of the existing child shard.
*)shard_id : string;
The shard ID of the existing child shard of the current shard.
*)}
Output parameter of the GetRecords API. The existing child shard of the current shard.
type subscribe_to_shard_event = {
child_shards : child_shard list option;
The list of the child shards of the current shard, returned only at the end of the current shard.
*)millis_behind_latest : int;
The number of milliseconds the read records are from the tip of the stream, indicating how far behind current time the consumer is. A value of zero indicates that record processing is caught up, and there are no new records to process at this moment.
*)continuation_sequence_number : string;
Use this as SequenceNumber
in the next call to SubscribeToShard
, with StartingPosition
set to AT_SEQUENCE_NUMBER
or AFTER_SEQUENCE_NUMBER
. Use ContinuationSequenceNumber
for checkpointing because it captures your shard progress even when no data is written to the shard.
records : record list;
}
After you call SubscribeToShard
, Kinesis Data Streams sends events of this type over an HTTP/2 connection to your consumer.
The request was rejected because the specified customer master key (CMK) isn't enabled.
The request was rejected because the state of the specified resource isn't valid for this request. For more information, see How Key State Affects Use of a Customer Master Key in the Amazon Web Services Key Management Service Developer Guide.
The ciphertext references a key that doesn't exist or that you don't have access to.
The request was rejected because the specified entity or resource can't be found.
The Amazon Web Services access key ID needs a subscription for the service.
The request was denied due to request throttling. For more information about throttling, see Limits in the Amazon Web Services Key Management Service Developer Guide.
The processing of the request failed because of an unknown error, exception, or failure.
type subscribe_to_shard_event_stream =
| InternalFailureException of internal_failure_exception
| KMSThrottlingException of kms_throttling_exception
| KMSOptInRequired of kms_opt_in_required
| KMSNotFoundException of kms_not_found_exception
| KMSAccessDeniedException of kms_access_denied_exception
| KMSInvalidStateException of kms_invalid_state_exception
| KMSDisabledException of kms_disabled_exception
| ResourceInUseException of resource_in_use_exception
| ResourceNotFoundException of resource_not_found_exception
| SubscribeToShardEvent of subscribe_to_shard_event
This is a tagged union for all of the types of events an enhanced fan-out consumer can receive over HTTP/2 after a call to SubscribeToShard
.
type subscribe_to_shard_output = {
event_stream : subscribe_to_shard_event_stream;
The event stream that your consumer can use to read records from the shard.
*)}
type starting_position = {
timestamp_ : float option;
The time stamp of the data record from which to start reading. To specify a time stamp, set StartingPosition
to Type AT_TIMESTAMP
. A time stamp is the Unix epoch date with precision in milliseconds. For example, 2016-04-04T19:58:46.480-00:00
or 1459799926.480
. If a record with this exact time stamp does not exist, records will be streamed from the next (later) record. If the time stamp is older than the current trim horizon, records will be streamed from the oldest untrimmed data record (TRIM_HORIZON
).
sequence_number : string option;
The sequence number of the data record in the shard from which to start streaming. To specify a sequence number, set StartingPosition
to AT_SEQUENCE_NUMBER
or AFTER_SEQUENCE_NUMBER
.
type_ : shard_iterator_type;
You can set the starting position to one of the following values:
AT_SEQUENCE_NUMBER
: Start streaming from the position denoted by the sequence number specified in the SequenceNumber
field.
AFTER_SEQUENCE_NUMBER
: Start streaming right after the position denoted by the sequence number specified in the SequenceNumber
field.
AT_TIMESTAMP
: Start streaming from the position denoted by the time stamp specified in the Timestamp
field.
TRIM_HORIZON
: Start streaming at the last untrimmed record in the shard, which is the oldest data record in the shard.
LATEST
: Start streaming just after the most recent record in the shard, so that you always read the most recent data in the shard.
}
The starting position in the data stream from which to start streaming.
type subscribe_to_shard_input = {
starting_position : starting_position;
The starting position in the data stream from which to start streaming.
*)shard_id : string;
The ID of the shard you want to subscribe to. To see a list of all the shards for a given stream, use ListShards
.
consumer_ar_n : string;
For this parameter, use the value you obtained when you called RegisterStreamConsumer
.
}
type stream_summary = {
stream_creation_timestamp : float option;
The timestamp at which the stream was created.
*)stream_mode_details : stream_mode_details option;
stream_status : stream_status;
The status of the stream.
*)stream_ar_n : string;
The ARN of the stream.
*)stream_name : string;
The name of a stream.
*)}
The summary of a stream.
type enhanced_metrics = {
shard_level_metrics : metrics_name list option;
List of shard-level metrics.
The following are the valid shard-level metrics. The value "ALL
" enhances every metric.
IncomingBytes
IncomingRecords
OutgoingBytes
OutgoingRecords
WriteProvisionedThroughputExceeded
ReadProvisionedThroughputExceeded
IteratorAgeMilliseconds
ALL
For more information, see Monitoring the Amazon Kinesis Data Streams Service with Amazon CloudWatch in the Amazon Kinesis Data Streams Developer Guide.
*)}
Represents enhanced metrics types.
type stream_description_summary = {
consumer_count : int option;
The number of enhanced fan-out consumers registered with the stream.
*)open_shard_count : int;
The number of open shards in the stream.
*)key_id : string option;
The GUID for the customer-managed Amazon Web Services KMS key to use for encryption. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by "alias/".You can also use a master key owned by Kinesis Data Streams by specifying the alias aws/kinesis
.
arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
12345678-1234-1234-1234-123456789012
alias/MyAliasName
alias/aws/kinesis
encryption_type : encryption_type option;
The encryption type used. This value is one of the following:
KMS
NONE
enhanced_monitoring : enhanced_metrics list;
Represents the current enhanced monitoring settings of the stream.
*)stream_creation_timestamp : float;
The approximate time that the stream was created.
*)retention_period_hours : int;
The current retention period, in hours.
*)stream_mode_details : stream_mode_details option;
Specifies the capacity mode to which you want to set your data stream. Currently, in Kinesis Data Streams, you can choose between an on-demand ycapacity mode and a provisioned capacity mode for your data streams.
*)stream_status : stream_status;
The current status of the stream being described. The stream status is one of the following states:
CREATING
- The stream is being created. Kinesis Data Streams immediately returns and sets StreamStatus
to CREATING
.DELETING
- The stream is being deleted. The specified stream is in the DELETING
state until Kinesis Data Streams completes the deletion.ACTIVE
- The stream exists and is ready for read and write operations or deletion. You should perform read and write operations only on an ACTIVE
stream.UPDATING
- Shards in the stream are being merged or split. Read and write operations continue to work while the stream is in the UPDATING
state.stream_ar_n : string;
The Amazon Resource Name (ARN) for the stream being described.
*)stream_name : string;
The name of the stream being described.
*)}
Represents the output for DescribeStreamSummary
type sequence_number_range = {
ending_sequence_number : string option;
The ending sequence number for the range. Shards that are in the OPEN state have an ending sequence number of null
.
starting_sequence_number : string;
The starting sequence number for the range.
*)}
The range of possible sequence numbers for the shard.
type shard = {
sequence_number_range : sequence_number_range;
The range of possible sequence numbers for the shard.
*)hash_key_range : hash_key_range;
The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
*)adjacent_parent_shard_id : string option;
The shard ID of the shard adjacent to the shard's parent.
*)parent_shard_id : string option;
The shard ID of the shard's parent.
*)shard_id : string;
The unique identifier of the shard within the stream.
*)}
A uniquely identified group of data records in a Kinesis data stream.
type stream_description = {
key_id : string option;
The GUID for the customer-managed Amazon Web Services KMS key to use for encryption. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by "alias/".You can also use a master key owned by Kinesis Data Streams by specifying the alias aws/kinesis
.
arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
12345678-1234-1234-1234-123456789012
alias/MyAliasName
alias/aws/kinesis
encryption_type : encryption_type option;
The server-side encryption type used on the stream. This parameter can be one of the following values:
NONE
: Do not encrypt the records in the stream.KMS
: Use server-side encryption on the records in the stream using a customer-managed Amazon Web Services KMS key.enhanced_monitoring : enhanced_metrics list;
Represents the current enhanced monitoring settings of the stream.
*)stream_creation_timestamp : float;
The approximate time that the stream was created.
*)retention_period_hours : int;
The current retention period, in hours. Minimum value of 24. Maximum value of 168.
*)has_more_shards : bool;
If set to true
, more shards in the stream are available to describe.
shards : shard list;
The shards that comprise the stream.
*)stream_mode_details : stream_mode_details option;
Specifies the capacity mode to which you want to set your data stream. Currently, in Kinesis Data Streams, you can choose between an on-demand capacity mode and a provisioned capacity mode for your data streams.
*)stream_status : stream_status;
The current status of the stream being described. The stream status is one of the following states:
CREATING
- The stream is being created. Kinesis Data Streams immediately returns and sets StreamStatus
to CREATING
.DELETING
- The stream is being deleted. The specified stream is in the DELETING
state until Kinesis Data Streams completes the deletion.ACTIVE
- The stream exists and is ready for read and write operations or deletion. You should perform read and write operations only on an ACTIVE
stream.UPDATING
- Shards in the stream are being merged or split. Read and write operations continue to work while the stream is in the UPDATING
state.stream_ar_n : string;
The Amazon Resource Name (ARN) for the stream being described.
*)stream_name : string;
The name of the stream being described.
*)}
Represents the output for DescribeStream
.
type stop_stream_encryption_input = {
stream_ar_n : string option;
The ARN of the stream.
*)key_id : string;
The GUID for the customer-managed Amazon Web Services KMS key to use for encryption. This value can be a globally unique identifier, a fully specified Amazon Resource Name (ARN) to either an alias or a key, or an alias name prefixed by "alias/".You can also use a master key owned by Kinesis Data Streams by specifying the alias aws/kinesis
.
arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
12345678-1234-1234-1234-123456789012
alias/MyAliasName
alias/aws/kinesis
encryption_type : encryption_type;
The encryption type. The only valid value is KMS
.
stream_name : string option;
The name of the stream on which to stop encrypting records.
*)}
type start_stream_encryption_input = {
stream_ar_n : string option;
The ARN of the stream.
*)key_id : string;
The GUID for the customer-managed Amazon Web Services KMS key to use for encryption. This value can be a globally unique identifier, a fully specified Amazon Resource Name (ARN) to either an alias or a key, or an alias name prefixed by "alias/".You can also use a master key owned by Kinesis Data Streams by specifying the alias aws/kinesis
.
arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
12345678-1234-1234-1234-123456789012
alias/MyAliasName
alias/aws/kinesis
encryption_type : encryption_type;
The encryption type to use. The only valid value is KMS
.
stream_name : string option;
The name of the stream for which to start encrypting records.
*)}
type split_shard_input = {
stream_ar_n : string option;
The ARN of the stream.
*)new_starting_hash_key : string;
A hash key value for the starting hash key of one of the child shards created by the split. The hash key range for a given shard constitutes a set of ordered contiguous positive integers. The value for NewStartingHashKey
must be in the range of hash keys being mapped into the shard. The NewStartingHashKey
hash key value and all higher hash key values in hash key range are distributed to one of the child shards. All the lower hash key values in the range are distributed to the other child shard.
shard_to_split : string;
The shard ID of the shard to split.
*)stream_name : string option;
The name of the stream for the shard split.
*)}
Represents the input for SplitShard
.
type shard_filter = {
timestamp_ : float option;
The timestamps specified in the ShardFilter
parameter. A timestamp is a Unix epoch date with precision in milliseconds. For example, 2016-04-04T19:58:46.480-00:00 or 1459799926.480. This property can only be used if FROM_TIMESTAMP
or AT_TIMESTAMP
shard types are specified.
shard_id : string option;
The exclusive start shardID
speified in the ShardFilter
parameter. This property can only be used if the AFTER_SHARD_ID
shard type is specified.
type_ : shard_filter_type;
The shard type specified in the ShardFilter
parameter. This is a required property of the ShardFilter
parameter.
You can specify the following valid values:
AFTER_SHARD_ID
- the response includes all the shards, starting with the shard whose ID immediately follows the ShardId
that you provided.AT_TRIM_HORIZON
- the response includes all the shards that were open at TRIM_HORIZON
.FROM_TRIM_HORIZON
- (default), the response includes all the shards within the retention period of the data stream (trim to tip).AT_LATEST
- the response includes only the currently open shards of the data stream.AT_TIMESTAMP
- the response includes all shards whose start timestamp is less than or equal to the given timestamp and end timestamp is greater than or equal to the given timestamp or still open.FROM_TIMESTAMP
- the response incldues all closed shards whose end timestamp is greater than or equal to the given timestamp and also all open shards. Corrected to TRIM_HORIZON
of the data stream if FROM_TIMESTAMP
is less than the TRIM_HORIZON
value.}
The request parameter used to filter out the response of the ListShards
API.
type consumer = {
consumer_creation_timestamp : float;
consumer_status : consumer_status;
A consumer can't read data while in the CREATING
or DELETING
states.
consumer_ar_n : string;
When you register a consumer, Kinesis Data Streams generates an ARN for it. You need this ARN to be able to call SubscribeToShard
.
If you delete a consumer and then create a new one with the same name, it won't have the same ARN. That's because consumer ARNs contain the creation timestamp. This is important to keep in mind if you have IAM policies that reference consumer ARNs.
*)consumer_name : string;
The name of the consumer is something you choose when you register the consumer.
*)}
An object that represents the details of the consumer you registered. This type of object is returned by RegisterStreamConsumer
.
type register_stream_consumer_output = {
consumer : consumer;
An object that represents the details of the consumer you registered. When you register a consumer, it gets an ARN that is generated by Kinesis Data Streams.
*)}
type register_stream_consumer_input = {
consumer_name : string;
For a given Kinesis data stream, each consumer must have a unique name. However, consumer names don't have to be unique across data streams.
*)stream_ar_n : string;
The ARN of the Kinesis data stream that you want to register the consumer with. For more info, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces.
*)}
type put_records_result_entry = {
error_message : string option;
The error message for an individual record result. An ErrorCode
value of ProvisionedThroughputExceededException
has an error message that includes the account ID, stream name, and shard ID. An ErrorCode
value of InternalFailure
has the error message "Internal Service
Failure"
.
error_code : string option;
The error code for an individual record result. ErrorCodes
can be either ProvisionedThroughputExceededException
or InternalFailure
.
shard_id : string option;
The shard ID for an individual record result.
*)sequence_number : string option;
The sequence number for an individual record result.
*)}
Represents the result of an individual record from a PutRecords
request. A record that is successfully added to a stream includes SequenceNumber
and ShardId
in the result. A record that fails to be added to the stream includes ErrorCode
and ErrorMessage
in the result.
type put_records_request_entry = {
partition_key : string;
Determines which shard in the stream the data record is assigned to. Partition keys are Unicode strings with a maximum length limit of 256 characters for each key. Amazon Kinesis Data Streams uses the partition key as input to a hash function that maps the partition key and associated data to a specific shard. Specifically, an MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards. As a result of this hashing mechanism, all data records with the same partition key map to the same shard within the stream.
*)explicit_hash_key : string option;
The hash value used to determine explicitly the shard that the data record is assigned to by overriding the partition key hash.
*)data : bytes;
The data blob to put into the record, which is base64-encoded when the blob is serialized. When the data blob (the payload before base64-encoding) is added to the partition key size, the total size must not exceed the maximum record size (1 MiB).
*)}
Represents the output for PutRecords
.
type put_records_output = {
encryption_type : encryption_type option;
The encryption type used on the records. This parameter can be one of the following values:
NONE
: Do not encrypt the records.KMS
: Use server-side encryption on the records using a customer-managed Amazon Web Services KMS key.records : put_records_result_entry list;
An array of successfully and unsuccessfully processed record results. A record that is successfully added to a stream includes SequenceNumber
and ShardId
in the result. A record that fails to be added to a stream includes ErrorCode
and ErrorMessage
in the result.
failed_record_count : int option;
The number of unsuccessfully processed records in a PutRecords
request.
}
PutRecords
results.
type put_records_input = {
stream_ar_n : string option;
The ARN of the stream.
*)stream_name : string option;
The stream name associated with the request.
*)records : put_records_request_entry list;
The records associated with the request.
*)}
A PutRecords
request.
The request rate for the stream is too high, or the requested data is too large for the available throughput. Reduce the frequency or size of your requests. For more information, see Streams Limits in the Amazon Kinesis Data Streams Developer Guide, and Error Retries and Exponential Backoff in Amazon Web Services in the Amazon Web Services General Reference.
type put_record_output = {
encryption_type : encryption_type option;
The encryption type to use on the record. This parameter can be one of the following values:
NONE
: Do not encrypt the records in the stream.KMS
: Use server-side encryption on the records in the stream using a customer-managed Amazon Web Services KMS key.sequence_number : string;
The sequence number identifier that was assigned to the put data record. The sequence number for the record is unique across all records in the stream. A sequence number is the identifier associated with every record put into the stream.
*)shard_id : string;
The shard ID of the shard where the data record was placed.
*)}
Represents the output for PutRecord
.
type put_record_input = {
stream_ar_n : string option;
The ARN of the stream.
*)sequence_number_for_ordering : string option;
Guarantees strictly increasing sequence numbers, for puts from the same client and to the same partition key. Usage: set the SequenceNumberForOrdering
of record n to the sequence number of record n-1 (as returned in the result when putting record n-1). If this parameter is not set, records are coarsely ordered based on arrival time.
explicit_hash_key : string option;
The hash value used to explicitly determine the shard the data record is assigned to by overriding the partition key hash.
*)partition_key : string;
Determines which shard in the stream the data record is assigned to. Partition keys are Unicode strings with a maximum length limit of 256 characters for each key. Amazon Kinesis Data Streams uses the partition key as input to a hash function that maps the partition key and associated data to a specific shard. Specifically, an MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards. As a result of this hashing mechanism, all data records with the same partition key map to the same shard within the stream.
*)data : bytes;
The data blob to put into the record, which is base64-encoded when the blob is serialized. When the data blob (the payload before base64-encoding) is added to the partition key size, the total size must not exceed the maximum record size (1 MiB).
*)stream_name : string option;
The name of the stream to put the data record into.
*)}
Represents the input for PutRecord
.
type merge_shards_input = {
stream_ar_n : string option;
The ARN of the stream.
*)adjacent_shard_to_merge : string;
The shard ID of the adjacent shard for the merge.
*)shard_to_merge : string;
The shard ID of the shard to combine with the adjacent shard for the merge.
*)stream_name : string option;
The name of the stream for the merge.
*)}
Represents the input for MergeShards
.
type list_streams_output = {
stream_summaries : stream_summary list option;
next_token : string option;
has_more_streams : bool;
If set to true
, there are more streams available to list.
stream_names : string list;
The names of the streams that are associated with the Amazon Web Services account making the ListStreams
request.
}
Represents the output for ListStreams
.
type list_streams_input = {
next_token : string option;
exclusive_start_stream_name : string option;
The name of the stream to start the list with.
*)limit : int option;
The maximum number of streams to list. The default value is 100. If you specify a value greater than 100, at most 100 results are returned.
*)}
Represents the input for ListStreams
.
The pagination token passed to the operation is expired.
type list_stream_consumers_output = {
next_token : string option;
When the number of consumers that are registered with the data stream is greater than the default value for the MaxResults
parameter, or if you explicitly specify a value for MaxResults
that is less than the number of registered consumers, the response includes a pagination token named NextToken
. You can specify this NextToken
value in a subsequent call to ListStreamConsumers
to list the next set of registered consumers. For more information about the use of this pagination token when calling the ListStreamConsumers
operation, see ListStreamConsumersInput$NextToken
.
Tokens expire after 300 seconds. When you obtain a value for NextToken
in the response to a call to ListStreamConsumers
, you have 300 seconds to use that value. If you specify an expired token in a call to ListStreamConsumers
, you get ExpiredNextTokenException
.
consumers : consumer list option;
An array of JSON objects. Each object represents one registered consumer.
*)}
type list_stream_consumers_input = {
stream_creation_timestamp : float option;
Specify this input parameter to distinguish data streams that have the same name. For example, if you create a data stream and then delete it, and you later create another data stream with the same name, you can use this input parameter to specify which of the two streams you want to list the consumers for.
You can't specify this parameter if you specify the NextToken parameter.
*)max_results : int option;
The maximum number of consumers that you want a single call of ListStreamConsumers
to return. The default value is 100. If you specify a value greater than 100, at most 100 results are returned.
next_token : string option;
When the number of consumers that are registered with the data stream is greater than the default value for the MaxResults
parameter, or if you explicitly specify a value for MaxResults
that is less than the number of consumers that are registered with the data stream, the response includes a pagination token named NextToken
. You can specify this NextToken
value in a subsequent call to ListStreamConsumers
to list the next set of registered consumers.
Don't specify StreamName
or StreamCreationTimestamp
if you specify NextToken
because the latter unambiguously identifies the stream.
You can optionally specify a value for the MaxResults
parameter when you specify NextToken
. If you specify a MaxResults
value that is less than the number of consumers that the operation returns if you don't specify MaxResults
, the response will contain a new NextToken
value. You can use the new NextToken
value in a subsequent call to the ListStreamConsumers
operation to list the next set of consumers.
Tokens expire after 300 seconds. When you obtain a value for NextToken
in the response to a call to ListStreamConsumers
, you have 300 seconds to use that value. If you specify an expired token in a call to ListStreamConsumers
, you get ExpiredNextTokenException
.
stream_ar_n : string;
The ARN of the Kinesis data stream for which you want to list the registered consumers. For more information, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces.
*)}
type list_shards_output = {
next_token : string option;
When the number of shards in the data stream is greater than the default value for the MaxResults
parameter, or if you explicitly specify a value for MaxResults
that is less than the number of shards in the data stream, the response includes a pagination token named NextToken
. You can specify this NextToken
value in a subsequent call to ListShards
to list the next set of shards. For more information about the use of this pagination token when calling the ListShards
operation, see ListShardsInput$NextToken
.
Tokens expire after 300 seconds. When you obtain a value for NextToken
in the response to a call to ListShards
, you have 300 seconds to use that value. If you specify an expired token in a call to ListShards
, you get ExpiredNextTokenException
.
shards : shard list option;
An array of JSON objects. Each object represents one shard and specifies the IDs of the shard, the shard's parent, and the shard that's adjacent to the shard's parent. Each object also contains the starting and ending hash keys and the starting and ending sequence numbers for the shard.
*)}
type list_shards_input = {
stream_ar_n : string option;
The ARN of the stream.
*)shard_filter : shard_filter option;
Enables you to filter out the response of the ListShards
API. You can only specify one filter at a time.
If you use the ShardFilter
parameter when invoking the ListShards API, the Type
is the required property and must be specified. If you specify the AT_TRIM_HORIZON
, FROM_TRIM_HORIZON
, or AT_LATEST
types, you do not need to specify either the ShardId
or the Timestamp
optional properties.
If you specify the AFTER_SHARD_ID
type, you must also provide the value for the optional ShardId
property. The ShardId
property is identical in fuctionality to the ExclusiveStartShardId
parameter of the ListShards
API. When ShardId
property is specified, the response includes the shards starting with the shard whose ID immediately follows the ShardId
that you provided.
If you specify the AT_TIMESTAMP
or FROM_TIMESTAMP_ID
type, you must also provide the value for the optional Timestamp
property. If you specify the AT_TIMESTAMP type, then all shards that were open at the provided timestamp are returned. If you specify the FROM_TIMESTAMP type, then all shards starting from the provided timestamp to TIP are returned.
stream_creation_timestamp : float option;
Specify this input parameter to distinguish data streams that have the same name. For example, if you create a data stream and then delete it, and you later create another data stream with the same name, you can use this input parameter to specify which of the two streams you want to list the shards for.
You cannot specify this parameter if you specify the NextToken
parameter.
max_results : int option;
The maximum number of shards to return in a single call to ListShards
. The maximum number of shards to return in a single call. The default value is 1000. If you specify a value greater than 1000, at most 1000 results are returned.
When the number of shards to be listed is greater than the value of MaxResults
, the response contains a NextToken
value that you can use in a subsequent call to ListShards
to list the next set of shards.
exclusive_start_shard_id : string option;
Specify this parameter to indicate that you want to list the shards starting with the shard whose ID immediately follows ExclusiveStartShardId
.
If you don't specify this parameter, the default behavior is for ListShards
to list the shards starting with the first one in the stream.
You cannot specify this parameter if you specify NextToken
.
next_token : string option;
When the number of shards in the data stream is greater than the default value for the MaxResults
parameter, or if you explicitly specify a value for MaxResults
that is less than the number of shards in the data stream, the response includes a pagination token named NextToken
. You can specify this NextToken
value in a subsequent call to ListShards
to list the next set of shards.
Don't specify StreamName
or StreamCreationTimestamp
if you specify NextToken
because the latter unambiguously identifies the stream.
You can optionally specify a value for the MaxResults
parameter when you specify NextToken
. If you specify a MaxResults
value that is less than the number of shards that the operation returns if you don't specify MaxResults
, the response will contain a new NextToken
value. You can use the new NextToken
value in a subsequent call to the ListShards
operation.
Tokens expire after 300 seconds. When you obtain a value for NextToken
in the response to a call to ListShards
, you have 300 seconds to use that value. If you specify an expired token in a call to ListShards
, you get ExpiredNextTokenException
.
stream_name : string option;
The name of the data stream whose shards you want to list.
You cannot specify this parameter if you specify the NextToken
parameter.
}
type increase_stream_retention_period_input = {
stream_ar_n : string option;
The ARN of the stream.
*)retention_period_hours : int;
The new retention period of the stream, in hours. Must be more than the current retention period.
*)stream_name : string option;
The name of the stream to modify.
*)}
Represents the input for IncreaseStreamRetentionPeriod
.
type get_shard_iterator_output = {
shard_iterator : string option;
The position in the shard from which to start reading data records sequentially. A shard iterator specifies this position using the sequence number of a data record in a shard.
*)}
Represents the output for GetShardIterator
.
type get_shard_iterator_input = {
stream_ar_n : string option;
The ARN of the stream.
*)timestamp_ : float option;
The time stamp of the data record from which to start reading. Used with shard iterator type AT_TIMESTAMP. A time stamp is the Unix epoch date with precision in milliseconds. For example, 2016-04-04T19:58:46.480-00:00
or 1459799926.480
. If a record with this exact time stamp does not exist, the iterator returned is for the next (later) record. If the time stamp is older than the current trim horizon, the iterator returned is for the oldest untrimmed data record (TRIM_HORIZON).
starting_sequence_number : string option;
The sequence number of the data record in the shard from which to start reading. Used with shard iterator type AT_SEQUENCE_NUMBER and AFTER_SEQUENCE_NUMBER.
*)shard_iterator_type : shard_iterator_type;
Determines how the shard iterator is used to start reading data records from the shard.
The following are the valid Amazon Kinesis shard iterator types:
StartingSequenceNumber
.StartingSequenceNumber
.Timestamp
.shard_id : string;
The shard ID of the Kinesis Data Streams shard to get the iterator for.
*)stream_name : string option;
The name of the Amazon Kinesis data stream.
*)}
Represents the input for GetShardIterator
.
type get_records_output = {
child_shards : child_shard list option;
The list of the current shard's child shards, returned in the GetRecords
API's response only when the end of the current shard is reached.
millis_behind_latest : int option;
The number of milliseconds the GetRecords
response is from the tip of the stream, indicating how far behind current time the consumer is. A value of zero indicates that record processing is caught up, and there are no new records to process at this moment.
next_shard_iterator : string option;
The next position in the shard from which to start sequentially reading data records. If set to null
, the shard has been closed and the requested iterator does not return any more data.
records : record list;
The data records retrieved from the shard.
*)}
Represents the output for GetRecords
.
type get_records_input = {
stream_ar_n : string option;
The ARN of the stream.
*)limit : int option;
The maximum number of records to return. Specify a value of up to 10,000. If you specify a value that is greater than 10,000, GetRecords
throws InvalidArgumentException
. The default value is 10,000.
shard_iterator : string;
The position in the shard from which you want to start sequentially reading data records. A shard iterator specifies this position using the sequence number of a data record in the shard.
*)}
Represents the input for GetRecords
.
type enhanced_monitoring_output = {
stream_ar_n : string option;
The ARN of the stream.
*)desired_shard_level_metrics : metrics_name list option;
Represents the list of all the metrics that would be in the enhanced state after the operation.
*)current_shard_level_metrics : metrics_name list option;
Represents the current state of the metrics that are in the enhanced state before the operation.
*)stream_name : string option;
The name of the Kinesis data stream.
*)}
Represents the output for EnableEnhancedMonitoring
and DisableEnhancedMonitoring
.
type enable_enhanced_monitoring_input = {
stream_ar_n : string option;
The ARN of the stream.
*)shard_level_metrics : metrics_name list;
List of shard-level metrics to enable.
The following are the valid shard-level metrics. The value "ALL
" enables every metric.
IncomingBytes
IncomingRecords
OutgoingBytes
OutgoingRecords
WriteProvisionedThroughputExceeded
ReadProvisionedThroughputExceeded
IteratorAgeMilliseconds
ALL
For more information, see Monitoring the Amazon Kinesis Data Streams Service with Amazon CloudWatch in the Amazon Kinesis Data Streams Developer Guide.
*)stream_name : string option;
The name of the stream for which to enable enhanced monitoring.
*)}
Represents the input for EnableEnhancedMonitoring
.
type disable_enhanced_monitoring_input = {
stream_ar_n : string option;
The ARN of the stream.
*)shard_level_metrics : metrics_name list;
List of shard-level metrics to disable.
The following are the valid shard-level metrics. The value "ALL
" disables every metric.
IncomingBytes
IncomingRecords
OutgoingBytes
OutgoingRecords
WriteProvisionedThroughputExceeded
ReadProvisionedThroughputExceeded
IteratorAgeMilliseconds
ALL
For more information, see Monitoring the Amazon Kinesis Data Streams Service with Amazon CloudWatch in the Amazon Kinesis Data Streams Developer Guide.
*)stream_name : string option;
The name of the Kinesis data stream for which to disable enhanced monitoring.
*)}
Represents the input for DisableEnhancedMonitoring
.
type describe_stream_summary_output = {
stream_description_summary : stream_description_summary;
A StreamDescriptionSummary
containing information about the stream.
}
type consumer_description = {
stream_ar_n : string;
The ARN of the stream with which you registered the consumer.
*)consumer_creation_timestamp : float;
consumer_status : consumer_status;
A consumer can't read data while in the CREATING
or DELETING
states.
consumer_ar_n : string;
When you register a consumer, Kinesis Data Streams generates an ARN for it. You need this ARN to be able to call SubscribeToShard
.
If you delete a consumer and then create a new one with the same name, it won't have the same ARN. That's because consumer ARNs contain the creation timestamp. This is important to keep in mind if you have IAM policies that reference consumer ARNs.
*)consumer_name : string;
The name of the consumer is something you choose when you register the consumer.
*)}
An object that represents the details of a registered consumer. This type of object is returned by DescribeStreamConsumer
.
type describe_stream_consumer_output = {
consumer_description : consumer_description;
An object that represents the details of the consumer.
*)}
type describe_stream_consumer_input = {
consumer_ar_n : string option;
The ARN returned by Kinesis Data Streams when you registered the consumer.
*)consumer_name : string option;
The name that you gave to the consumer.
*)stream_ar_n : string option;
The ARN of the Kinesis data stream that the consumer is registered with. For more information, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces.
*)}
type describe_stream_output = {
stream_description : stream_description;
The current status of the stream, the stream Amazon Resource Name (ARN), an array of shard objects that comprise the stream, and whether there are more shards available.
*)}
Represents the output for DescribeStream
.
type describe_stream_input = {
stream_ar_n : string option;
The ARN of the stream.
*)exclusive_start_shard_id : string option;
The shard ID of the shard to start with.
Specify this parameter to indicate that you want to describe the stream starting with the shard whose ID immediately follows ExclusiveStartShardId
.
If you don't specify this parameter, the default behavior for DescribeStream
is to describe the stream starting with the first shard in the stream.
limit : int option;
The maximum number of shards to return in a single call. The default value is 100. If you specify a value greater than 100, at most 100 results are returned.
*)stream_name : string option;
The name of the stream to describe.
*)}
Represents the input for DescribeStream
.
type describe_limits_output = {
on_demand_stream_count_limit : int;
The maximum number of data streams with the on-demand capacity mode.
*)on_demand_stream_count : int;
Indicates the number of data streams with the on-demand capacity mode.
*)open_shard_count : int;
The number of open shards.
*)shard_limit : int;
The maximum number of shards.
*)}
type deregister_stream_consumer_input = {
consumer_ar_n : string option;
The ARN returned by Kinesis Data Streams when you registered the consumer. If you don't know the ARN of the consumer that you want to deregister, you can use the ListStreamConsumers operation to get a list of the descriptions of all the consumers that are currently registered with a given data stream. The description of a consumer contains its ARN.
*)consumer_name : string option;
The name that you gave to the consumer.
*)stream_ar_n : string option;
The ARN of the Kinesis data stream that the consumer is registered with. For more information, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces.
*)}
type delete_stream_input = {
stream_ar_n : string option;
The ARN of the stream.
*)enforce_consumer_deletion : bool option;
If this parameter is unset (null
) or if you set it to false
, and the stream has registered consumers, the call to DeleteStream
fails with a ResourceInUseException
.
stream_name : string option;
The name of the stream to delete.
*)}
Represents the input for DeleteStream
.
type decrease_stream_retention_period_input = {
stream_ar_n : string option;
The ARN of the stream.
*)retention_period_hours : int;
The new retention period of the stream, in hours. Must be less than the current retention period.
*)stream_name : string option;
The name of the stream to modify.
*)}
Represents the input for DecreaseStreamRetentionPeriod
.
type create_stream_input = {
stream_mode_details : stream_mode_details option;
Indicates the capacity mode of the data stream. Currently, in Kinesis Data Streams, you can choose between an on-demand capacity mode and a provisioned capacity mode for your data streams.
*)shard_count : int option;
The number of shards that the stream will use. The throughput of the stream is a function of the number of shards; more shards are required for greater provisioned throughput.
*)stream_name : string;
A name to identify the stream. The stream name is scoped to the Amazon Web Services account used by the application that creates the stream. It is also scoped by Amazon Web Services Region. That is, two streams in two different Amazon Web Services accounts can have the same name. Two streams in the same Amazon Web Services account but in two different Regions can also have the same name.
*)}
Represents the input for CreateStream
.
Amazon Kinesis Data Streams Service API Reference Amazon Kinesis Data Streams is a managed service that scales elastically for real-time processing of streaming big data.
type base_document = Smaws_Lib.Json.t
val make_stream_mode_details :
stream_mode:stream_mode ->
unit ->
stream_mode_details
Create a stream_mode_details
type
val make_update_stream_mode_input :
stream_mode_details:stream_mode_details ->
stream_ar_n:string ->
unit ->
update_stream_mode_input
Create a update_stream_mode_input
type
val make_update_shard_count_output :
?stream_ar_n:string ->
?target_shard_count:int ->
?current_shard_count:int ->
?stream_name:string ->
unit ->
update_shard_count_output
Create a update_shard_count_output
type
val make_update_shard_count_input :
?stream_ar_n:string ->
?stream_name:string ->
scaling_type:scaling_type ->
target_shard_count:int ->
unit ->
update_shard_count_input
Create a update_shard_count_input
type
val make_record :
?encryption_type:encryption_type ->
?approximate_arrival_timestamp:float ->
partition_key:string ->
data:bytes ->
sequence_number:string ->
unit ->
record
Create a record
type
val make_hash_key_range :
ending_hash_key:string ->
starting_hash_key:string ->
unit ->
hash_key_range
Create a hash_key_range
type
val make_child_shard :
hash_key_range:hash_key_range ->
parent_shards:string list ->
shard_id:string ->
unit ->
child_shard
Create a child_shard
type
val make_subscribe_to_shard_event :
?child_shards:child_shard list ->
millis_behind_latest:int ->
continuation_sequence_number:string ->
records:record list ->
unit ->
subscribe_to_shard_event
Create a subscribe_to_shard_event
type
val make_subscribe_to_shard_output :
event_stream:subscribe_to_shard_event_stream ->
unit ->
subscribe_to_shard_output
Create a subscribe_to_shard_output
type
val make_starting_position :
?timestamp_:float ->
?sequence_number:string ->
type_:shard_iterator_type ->
unit ->
starting_position
Create a starting_position
type
val make_subscribe_to_shard_input :
starting_position:starting_position ->
shard_id:string ->
consumer_ar_n:string ->
unit ->
subscribe_to_shard_input
Create a subscribe_to_shard_input
type
val make_stream_summary :
?stream_creation_timestamp:float ->
?stream_mode_details:stream_mode_details ->
stream_status:stream_status ->
stream_ar_n:string ->
stream_name:string ->
unit ->
stream_summary
Create a stream_summary
type
val make_enhanced_metrics :
?shard_level_metrics:metrics_name list ->
unit ->
enhanced_metrics
Create a enhanced_metrics
type
val make_stream_description_summary :
?consumer_count:int ->
?key_id:string ->
?encryption_type:encryption_type ->
?stream_mode_details:stream_mode_details ->
open_shard_count:int ->
enhanced_monitoring:enhanced_metrics list ->
stream_creation_timestamp:float ->
retention_period_hours:int ->
stream_status:stream_status ->
stream_ar_n:string ->
stream_name:string ->
unit ->
stream_description_summary
Create a stream_description_summary
type
val make_sequence_number_range :
?ending_sequence_number:string ->
starting_sequence_number:string ->
unit ->
sequence_number_range
Create a sequence_number_range
type
val make_shard :
?adjacent_parent_shard_id:string ->
?parent_shard_id:string ->
sequence_number_range:sequence_number_range ->
hash_key_range:hash_key_range ->
shard_id:string ->
unit ->
shard
Create a shard
type
val make_stream_description :
?key_id:string ->
?encryption_type:encryption_type ->
?stream_mode_details:stream_mode_details ->
enhanced_monitoring:enhanced_metrics list ->
stream_creation_timestamp:float ->
retention_period_hours:int ->
has_more_shards:bool ->
shards:shard list ->
stream_status:stream_status ->
stream_ar_n:string ->
stream_name:string ->
unit ->
stream_description
Create a stream_description
type
val make_stop_stream_encryption_input :
?stream_ar_n:string ->
?stream_name:string ->
key_id:string ->
encryption_type:encryption_type ->
unit ->
stop_stream_encryption_input
Create a stop_stream_encryption_input
type
val make_start_stream_encryption_input :
?stream_ar_n:string ->
?stream_name:string ->
key_id:string ->
encryption_type:encryption_type ->
unit ->
start_stream_encryption_input
Create a start_stream_encryption_input
type
val make_split_shard_input :
?stream_ar_n:string ->
?stream_name:string ->
new_starting_hash_key:string ->
shard_to_split:string ->
unit ->
split_shard_input
Create a split_shard_input
type
val make_shard_filter :
?timestamp_:float ->
?shard_id:string ->
type_:shard_filter_type ->
unit ->
shard_filter
Create a shard_filter
type
val make_remove_tags_from_stream_input :
?stream_ar_n:string ->
?stream_name:string ->
tag_keys:string list ->
unit ->
remove_tags_from_stream_input
Create a remove_tags_from_stream_input
type
val make_consumer :
consumer_creation_timestamp:float ->
consumer_status:consumer_status ->
consumer_ar_n:string ->
consumer_name:string ->
unit ->
consumer
Create a consumer
type
val make_register_stream_consumer_output :
consumer:consumer ->
unit ->
register_stream_consumer_output
Create a register_stream_consumer_output
type
val make_register_stream_consumer_input :
consumer_name:string ->
stream_ar_n:string ->
unit ->
register_stream_consumer_input
Create a register_stream_consumer_input
type
val make_put_resource_policy_input :
policy:string ->
resource_ar_n:string ->
unit ->
put_resource_policy_input
Create a put_resource_policy_input
type
val make_put_records_result_entry :
?error_message:string ->
?error_code:string ->
?shard_id:string ->
?sequence_number:string ->
unit ->
put_records_result_entry
Create a put_records_result_entry
type
val make_put_records_request_entry :
?explicit_hash_key:string ->
partition_key:string ->
data:bytes ->
unit ->
put_records_request_entry
Create a put_records_request_entry
type
val make_put_records_output :
?encryption_type:encryption_type ->
?failed_record_count:int ->
records:put_records_result_entry list ->
unit ->
put_records_output
Create a put_records_output
type
val make_put_records_input :
?stream_ar_n:string ->
?stream_name:string ->
records:put_records_request_entry list ->
unit ->
put_records_input
Create a put_records_input
type
val make_put_record_output :
?encryption_type:encryption_type ->
sequence_number:string ->
shard_id:string ->
unit ->
put_record_output
Create a put_record_output
type
val make_put_record_input :
?stream_ar_n:string ->
?sequence_number_for_ordering:string ->
?explicit_hash_key:string ->
?stream_name:string ->
partition_key:string ->
data:bytes ->
unit ->
put_record_input
Create a put_record_input
type
val make_merge_shards_input :
?stream_ar_n:string ->
?stream_name:string ->
adjacent_shard_to_merge:string ->
shard_to_merge:string ->
unit ->
merge_shards_input
Create a merge_shards_input
type
val make_list_tags_for_stream_output :
has_more_tags:bool ->
tags:tag list ->
unit ->
list_tags_for_stream_output
Create a list_tags_for_stream_output
type
val make_list_tags_for_stream_input :
?stream_ar_n:string ->
?limit:int ->
?exclusive_start_tag_key:string ->
?stream_name:string ->
unit ->
list_tags_for_stream_input
Create a list_tags_for_stream_input
type
val make_list_streams_output :
?stream_summaries:stream_summary list ->
?next_token:string ->
has_more_streams:bool ->
stream_names:string list ->
unit ->
list_streams_output
Create a list_streams_output
type
val make_list_streams_input :
?next_token:string ->
?exclusive_start_stream_name:string ->
?limit:int ->
unit ->
list_streams_input
Create a list_streams_input
type
val make_list_stream_consumers_output :
?next_token:string ->
?consumers:consumer list ->
unit ->
list_stream_consumers_output
Create a list_stream_consumers_output
type
val make_list_stream_consumers_input :
?stream_creation_timestamp:float ->
?max_results:int ->
?next_token:string ->
stream_ar_n:string ->
unit ->
list_stream_consumers_input
Create a list_stream_consumers_input
type
val make_list_shards_output :
?next_token:string ->
?shards:shard list ->
unit ->
list_shards_output
Create a list_shards_output
type
val make_list_shards_input :
?stream_ar_n:string ->
?shard_filter:shard_filter ->
?stream_creation_timestamp:float ->
?max_results:int ->
?exclusive_start_shard_id:string ->
?next_token:string ->
?stream_name:string ->
unit ->
list_shards_input
Create a list_shards_input
type
val make_increase_stream_retention_period_input :
?stream_ar_n:string ->
?stream_name:string ->
retention_period_hours:int ->
unit ->
increase_stream_retention_period_input
Create a increase_stream_retention_period_input
type
val make_get_shard_iterator_output :
?shard_iterator:string ->
unit ->
get_shard_iterator_output
Create a get_shard_iterator_output
type
val make_get_shard_iterator_input :
?stream_ar_n:string ->
?timestamp_:float ->
?starting_sequence_number:string ->
?stream_name:string ->
shard_iterator_type:shard_iterator_type ->
shard_id:string ->
unit ->
get_shard_iterator_input
Create a get_shard_iterator_input
type
val make_get_resource_policy_output :
policy:string ->
unit ->
get_resource_policy_output
Create a get_resource_policy_output
type
val make_get_resource_policy_input :
resource_ar_n:string ->
unit ->
get_resource_policy_input
Create a get_resource_policy_input
type
val make_get_records_output :
?child_shards:child_shard list ->
?millis_behind_latest:int ->
?next_shard_iterator:string ->
records:record list ->
unit ->
get_records_output
Create a get_records_output
type
val make_get_records_input :
?stream_ar_n:string ->
?limit:int ->
shard_iterator:string ->
unit ->
get_records_input
Create a get_records_input
type
val make_enhanced_monitoring_output :
?stream_ar_n:string ->
?desired_shard_level_metrics:metrics_name list ->
?current_shard_level_metrics:metrics_name list ->
?stream_name:string ->
unit ->
enhanced_monitoring_output
Create a enhanced_monitoring_output
type
val make_enable_enhanced_monitoring_input :
?stream_ar_n:string ->
?stream_name:string ->
shard_level_metrics:metrics_name list ->
unit ->
enable_enhanced_monitoring_input
Create a enable_enhanced_monitoring_input
type
val make_disable_enhanced_monitoring_input :
?stream_ar_n:string ->
?stream_name:string ->
shard_level_metrics:metrics_name list ->
unit ->
disable_enhanced_monitoring_input
Create a disable_enhanced_monitoring_input
type
val make_describe_stream_summary_output :
stream_description_summary:stream_description_summary ->
unit ->
describe_stream_summary_output
Create a describe_stream_summary_output
type
val make_describe_stream_summary_input :
?stream_ar_n:string ->
?stream_name:string ->
unit ->
describe_stream_summary_input
Create a describe_stream_summary_input
type
val make_consumer_description :
stream_ar_n:string ->
consumer_creation_timestamp:float ->
consumer_status:consumer_status ->
consumer_ar_n:string ->
consumer_name:string ->
unit ->
consumer_description
Create a consumer_description
type
val make_describe_stream_consumer_output :
consumer_description:consumer_description ->
unit ->
describe_stream_consumer_output
Create a describe_stream_consumer_output
type
val make_describe_stream_consumer_input :
?consumer_ar_n:string ->
?consumer_name:string ->
?stream_ar_n:string ->
unit ->
describe_stream_consumer_input
Create a describe_stream_consumer_input
type
val make_describe_stream_output :
stream_description:stream_description ->
unit ->
describe_stream_output
Create a describe_stream_output
type
val make_describe_stream_input :
?stream_ar_n:string ->
?exclusive_start_shard_id:string ->
?limit:int ->
?stream_name:string ->
unit ->
describe_stream_input
Create a describe_stream_input
type
val make_describe_limits_output :
on_demand_stream_count_limit:int ->
on_demand_stream_count:int ->
open_shard_count:int ->
shard_limit:int ->
unit ->
describe_limits_output
Create a describe_limits_output
type
val make_describe_limits_input : unit -> describe_limits_input
Create a describe_limits_input
type
val make_deregister_stream_consumer_input :
?consumer_ar_n:string ->
?consumer_name:string ->
?stream_ar_n:string ->
unit ->
deregister_stream_consumer_input
Create a deregister_stream_consumer_input
type
val make_delete_stream_input :
?stream_ar_n:string ->
?enforce_consumer_deletion:bool ->
?stream_name:string ->
unit ->
delete_stream_input
Create a delete_stream_input
type
val make_delete_resource_policy_input :
resource_ar_n:string ->
unit ->
delete_resource_policy_input
Create a delete_resource_policy_input
type
val make_decrease_stream_retention_period_input :
?stream_ar_n:string ->
?stream_name:string ->
retention_period_hours:int ->
unit ->
decrease_stream_retention_period_input
Create a decrease_stream_retention_period_input
type
val make_create_stream_input :
?stream_mode_details:stream_mode_details ->
?shard_count:int ->
stream_name:string ->
unit ->
create_stream_input
Create a create_stream_input
type
val make_add_tags_to_stream_input :
?stream_ar_n:string ->
?stream_name:string ->
tags:(string * string) list ->
unit ->
add_tags_to_stream_input
Create a add_tags_to_stream_input
type
module AddTagsToStream : sig ... end
module CreateStream : sig ... end
module DecreaseStreamRetentionPeriod : sig ... end
module DeleteResourcePolicy : sig ... end
module DeleteStream : sig ... end
module DeregisterStreamConsumer : sig ... end
module DescribeLimits : sig ... end
module DescribeStream : sig ... end
module DescribeStreamConsumer : sig ... end
module DescribeStreamSummary : sig ... end
module DisableEnhancedMonitoring : sig ... end
module EnableEnhancedMonitoring : sig ... end
module GetRecords : sig ... end
module GetResourcePolicy : sig ... end
module GetShardIterator : sig ... end
module IncreaseStreamRetentionPeriod : sig ... end
module ListShards : sig ... end
module ListStreamConsumers : sig ... end
module ListStreams : sig ... end
module ListTagsForStream : sig ... end
module MergeShards : sig ... end
module PutRecord : sig ... end
module PutRecords : sig ... end
module PutResourcePolicy : sig ... end
module RegisterStreamConsumer : sig ... end
module RemoveTagsFromStream : sig ... end
module SplitShard : sig ... end
module StartStreamEncryption : sig ... end
module StopStreamEncryption : sig ... end
module SubscribeToShard : sig ... end
module UpdateShardCount : sig ... end
module UpdateStreamMode : sig ... end