{ "smithy": "1.0", "metadata": { "suppressions": [ { "id": "HttpMethodSemantics", "namespace": "*" }, { "id": "HttpResponseCodeSemantics", "namespace": "*" }, { "id": "PaginatedTrait", "namespace": "*" }, { "id": "HttpHeaderTrait", "namespace": "*" }, { "id": "HttpUriConflict", "namespace": "*" }, { "id": "Service", "namespace": "*" } ] }, "shapes": { "com.amazonaws.kinesis#AddTagsToStream": { "type": "operation", "input": { "target": "com.amazonaws.kinesis#AddTagsToStreamInput" }, "errors": [ { "target": "com.amazonaws.kinesis#InvalidArgumentException" }, { "target": "com.amazonaws.kinesis#LimitExceededException" }, { "target": "com.amazonaws.kinesis#ResourceInUseException" }, { "target": "com.amazonaws.kinesis#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Adds or updates tags for the specified Kinesis data stream. Each time you invoke\n this operation, you can specify up to 10 tags. If you want to add more than 10 tags to\n your stream, you can invoke this operation multiple times. In total, each stream can\n have up to 50 tags.

\n

If tags have already been assigned to the stream, AddTagsToStream\n overwrites any existing tags that correspond to the specified tag keys.

\n

\n AddTagsToStream has a limit of five transactions per second per\n account.

" } }, "com.amazonaws.kinesis#AddTagsToStreamInput": { "type": "structure", "members": { "StreamName": { "target": "com.amazonaws.kinesis#StreamName", "traits": { "smithy.api#documentation": "

The name of the stream.

", "smithy.api#required": {} } }, "Tags": { "target": "com.amazonaws.kinesis#TagMap", "traits": { "smithy.api#documentation": "

A set of up to 10 key-value pairs to use to create the tags.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

Represents the input for AddTagsToStream.

" } }, "com.amazonaws.kinesis#BooleanObject": { "type": "boolean", "traits": { "smithy.api#box": {} } }, "com.amazonaws.kinesis#ChildShard": { "type": "structure", "members": { "ShardId": { "target": "com.amazonaws.kinesis#ShardId", "traits": { "smithy.api#required": {} } }, "ParentShards": { "target": "com.amazonaws.kinesis#ShardIdList", "traits": { "smithy.api#required": {} } }, "HashKeyRange": { "target": "com.amazonaws.kinesis#HashKeyRange", "traits": { "smithy.api#required": {} } } } }, "com.amazonaws.kinesis#ChildShardList": { "type": "list", "member": { "target": "com.amazonaws.kinesis#ChildShard" } }, "com.amazonaws.kinesis#Consumer": { "type": "structure", "members": { "ConsumerName": { "target": "com.amazonaws.kinesis#ConsumerName", "traits": { "smithy.api#documentation": "

The name of the consumer is something you choose when you register the\n consumer.

", "smithy.api#required": {} } }, "ConsumerARN": { "target": "com.amazonaws.kinesis#ConsumerARN", "traits": { "smithy.api#documentation": "

When you register a consumer, Kinesis Data Streams generates an ARN for it. You need\n this ARN to be able to call SubscribeToShard.

\n

If you delete a consumer and then create a new one with the same name, it won't have\n the same ARN. That's because consumer ARNs contain the creation timestamp. This is\n important to keep in mind if you have IAM policies that reference consumer ARNs.

", "smithy.api#required": {} } }, "ConsumerStatus": { "target": "com.amazonaws.kinesis#ConsumerStatus", "traits": { "smithy.api#documentation": "

A consumer can't read data while in the CREATING or DELETING\n states.

", "smithy.api#required": {} } }, "ConsumerCreationTimestamp": { "target": "com.amazonaws.kinesis#Timestamp", "traits": { "smithy.api#documentation": "

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

An object that represents the details of the consumer you registered. This type of\n object is returned by RegisterStreamConsumer.

" } }, "com.amazonaws.kinesis#ConsumerARN": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 2048 }, "smithy.api#pattern": "^(arn):aws.*:kinesis:.*:\\d{12}:.*stream\\/[a-zA-Z0-9_.-]+\\/consumer\\/[a-zA-Z0-9_.-]+:[0-9]+" } }, "com.amazonaws.kinesis#ConsumerCountObject": { "type": "integer", "traits": { "smithy.api#box": {}, "smithy.api#range": { "min": 0, "max": 1000000 } } }, "com.amazonaws.kinesis#ConsumerDescription": { "type": "structure", "members": { "ConsumerName": { "target": "com.amazonaws.kinesis#ConsumerName", "traits": { "smithy.api#documentation": "

The name of the consumer is something you choose when you register the\n consumer.

", "smithy.api#required": {} } }, "ConsumerARN": { "target": "com.amazonaws.kinesis#ConsumerARN", "traits": { "smithy.api#documentation": "

When you register a consumer, Kinesis Data Streams generates an ARN for it. You need\n this ARN to be able to call SubscribeToShard.

\n

If you delete a consumer and then create a new one with the same name, it won't have\n the same ARN. That's because consumer ARNs contain the creation timestamp. This is\n important to keep in mind if you have IAM policies that reference consumer ARNs.

", "smithy.api#required": {} } }, "ConsumerStatus": { "target": "com.amazonaws.kinesis#ConsumerStatus", "traits": { "smithy.api#documentation": "

A consumer can't read data while in the CREATING or DELETING\n states.

", "smithy.api#required": {} } }, "ConsumerCreationTimestamp": { "target": "com.amazonaws.kinesis#Timestamp", "traits": { "smithy.api#documentation": "

", "smithy.api#required": {} } }, "StreamARN": { "target": "com.amazonaws.kinesis#StreamARN", "traits": { "smithy.api#documentation": "

The ARN of the stream with which you registered the consumer.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

An object that represents the details of a registered consumer. This type of object is\n returned by DescribeStreamConsumer.

" } }, "com.amazonaws.kinesis#ConsumerList": { "type": "list", "member": { "target": "com.amazonaws.kinesis#Consumer" } }, "com.amazonaws.kinesis#ConsumerName": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 128 }, "smithy.api#pattern": "[a-zA-Z0-9_.-]+" } }, "com.amazonaws.kinesis#ConsumerStatus": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "CREATING", "name": "CREATING" }, { "value": "DELETING", "name": "DELETING" }, { "value": "ACTIVE", "name": "ACTIVE" } ] } }, "com.amazonaws.kinesis#CreateStream": { "type": "operation", "input": { "target": "com.amazonaws.kinesis#CreateStreamInput" }, "errors": [ { "target": "com.amazonaws.kinesis#InvalidArgumentException" }, { "target": "com.amazonaws.kinesis#LimitExceededException" }, { "target": "com.amazonaws.kinesis#ResourceInUseException" } ], "traits": { "smithy.api#documentation": "

Creates a Kinesis data stream. A stream captures and transports data records that\n are continuously emitted from different data sources or producers.\n Scale-out within a stream is explicitly supported by means of shards, which are uniquely\n identified groups of data records in a stream.

\n

You specify and control the number of shards that a stream is composed of. Each\n shard can support reads up to five transactions per second, up to a maximum data read\n total of 2 MiB per second. Each shard can support writes up to 1,000 records per second,\n up to a maximum data write total of 1 MiB per second. If the amount of data input\n increases or decreases, you can add or remove shards.

\n

The stream name identifies the stream. The name is scoped to the AWS account used\n by the application. It is also scoped by AWS Region. That is, two streams in two\n different accounts can have the same name, and two streams in the same account, but in\n two different Regions, can have the same name.

\n

\n CreateStream is an asynchronous operation. Upon receiving a\n CreateStream request, Kinesis Data Streams immediately returns and sets\n the stream status to CREATING. After the stream is created, Kinesis Data\n Streams sets the stream status to ACTIVE. You should perform read and write\n operations only on an ACTIVE stream.

\n

You receive a LimitExceededException when making a\n CreateStream request when you try to do one of the following:

\n \n

For the default shard limit for an AWS account, see Amazon Kinesis Data Streams\n Limits in the Amazon Kinesis Data Streams Developer\n Guide. To increase this limit, contact AWS\n Support.

\n

You can use DescribeStream to check the stream status, which is\n returned in StreamStatus.

\n

\n CreateStream has a limit of five transactions per second per\n account.

" } }, "com.amazonaws.kinesis#CreateStreamInput": { "type": "structure", "members": { "StreamName": { "target": "com.amazonaws.kinesis#StreamName", "traits": { "smithy.api#documentation": "

A name to identify the stream. The stream name is scoped to the AWS account used by\n the application that creates the stream. It is also scoped by AWS Region. That is, two\n streams in two different AWS accounts can have the same name. Two streams in the same\n AWS account but in two different Regions can also have the same name.

", "smithy.api#required": {} } }, "ShardCount": { "target": "com.amazonaws.kinesis#PositiveIntegerObject", "traits": { "smithy.api#documentation": "

The number of shards that the stream will use. The throughput of the stream is a\n function of the number of shards; more shards are required for greater provisioned\n throughput.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

Represents the input for CreateStream.

" } }, "com.amazonaws.kinesis#Data": { "type": "blob", "traits": { "smithy.api#length": { "min": 0, "max": 1048576 } } }, "com.amazonaws.kinesis#DecreaseStreamRetentionPeriod": { "type": "operation", "input": { "target": "com.amazonaws.kinesis#DecreaseStreamRetentionPeriodInput" }, "errors": [ { "target": "com.amazonaws.kinesis#InvalidArgumentException" }, { "target": "com.amazonaws.kinesis#LimitExceededException" }, { "target": "com.amazonaws.kinesis#ResourceInUseException" }, { "target": "com.amazonaws.kinesis#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Decreases the Kinesis data stream's retention period, which is the length of time\n data records are accessible after they are added to the stream. The minimum value of a\n stream's retention period is 24 hours.

\n

This operation may result in lost data. For example, if the stream's retention\n period is 48 hours and is decreased to 24 hours, any data already in the stream that is\n older than 24 hours is inaccessible.

" } }, "com.amazonaws.kinesis#DecreaseStreamRetentionPeriodInput": { "type": "structure", "members": { "StreamName": { "target": "com.amazonaws.kinesis#StreamName", "traits": { "smithy.api#documentation": "

The name of the stream to modify.

", "smithy.api#required": {} } }, "RetentionPeriodHours": { "target": "com.amazonaws.kinesis#RetentionPeriodHours", "traits": { "smithy.api#documentation": "

The new retention period of the stream, in hours. Must be less than the current\n retention period.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

Represents the input for DecreaseStreamRetentionPeriod.

" } }, "com.amazonaws.kinesis#DeleteStream": { "type": "operation", "input": { "target": "com.amazonaws.kinesis#DeleteStreamInput" }, "errors": [ { "target": "com.amazonaws.kinesis#LimitExceededException" }, { "target": "com.amazonaws.kinesis#ResourceInUseException" }, { "target": "com.amazonaws.kinesis#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Deletes a Kinesis data stream and all its shards and data. You must shut down any\n applications that are operating on the stream before you delete the stream. If an\n application attempts to operate on a deleted stream, it receives the exception\n ResourceNotFoundException.

\n

If the stream is in the ACTIVE state, you can delete it. After a\n DeleteStream request, the specified stream is in the\n DELETING state until Kinesis Data Streams completes the\n deletion.

\n

\n Note: Kinesis Data Streams might continue to accept\n data read and write operations, such as PutRecord, PutRecords, and GetRecords, on a stream in the\n DELETING state until the stream deletion is complete.

\n

When you delete a stream, any shards in that stream are also deleted, and any tags\n are dissociated from the stream.

\n

You can use the DescribeStream operation to check the state of\n the stream, which is returned in StreamStatus.

\n

\n DeleteStream has a limit of five transactions per second per\n account.

" } }, "com.amazonaws.kinesis#DeleteStreamInput": { "type": "structure", "members": { "StreamName": { "target": "com.amazonaws.kinesis#StreamName", "traits": { "smithy.api#documentation": "

The name of the stream to delete.

", "smithy.api#required": {} } }, "EnforceConsumerDeletion": { "target": "com.amazonaws.kinesis#BooleanObject", "traits": { "smithy.api#documentation": "

If this parameter is unset (null) or if you set it to false,\n and the stream has registered consumers, the call to DeleteStream fails\n with a ResourceInUseException.

" } } }, "traits": { "smithy.api#documentation": "

Represents the input for DeleteStream.

" } }, "com.amazonaws.kinesis#DeregisterStreamConsumer": { "type": "operation", "input": { "target": "com.amazonaws.kinesis#DeregisterStreamConsumerInput" }, "errors": [ { "target": "com.amazonaws.kinesis#InvalidArgumentException" }, { "target": "com.amazonaws.kinesis#LimitExceededException" }, { "target": "com.amazonaws.kinesis#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

To deregister a consumer, provide its ARN. Alternatively, you can provide the ARN of\n the data stream and the name you gave the consumer when you registered it. You may also\n provide all three parameters, as long as they don't conflict with each other. If you\n don't know the name or ARN of the consumer that you want to deregister, you can use the\n ListStreamConsumers operation to get a list of the descriptions of\n all the consumers that are currently registered with a given data stream. The\n description of a consumer contains its name and ARN.

\n

This operation has a limit of five transactions per second per stream.

" } }, "com.amazonaws.kinesis#DeregisterStreamConsumerInput": { "type": "structure", "members": { "StreamARN": { "target": "com.amazonaws.kinesis#StreamARN", "traits": { "smithy.api#documentation": "

The ARN of the Kinesis data stream that the consumer is registered with. For more\n information, see Amazon Resource Names (ARNs) and AWS Service Namespaces.

" } }, "ConsumerName": { "target": "com.amazonaws.kinesis#ConsumerName", "traits": { "smithy.api#documentation": "

The name that you gave to the consumer.

" } }, "ConsumerARN": { "target": "com.amazonaws.kinesis#ConsumerARN", "traits": { "smithy.api#documentation": "

The ARN returned by Kinesis Data Streams when you registered the consumer. If you\n don't know the ARN of the consumer that you want to deregister, you can use the\n ListStreamConsumers operation to get a list of the descriptions of all the consumers\n that are currently registered with a given data stream. The description of a consumer\n contains its ARN.

" } } } }, "com.amazonaws.kinesis#DescribeLimits": { "type": "operation", "input": { "target": "com.amazonaws.kinesis#DescribeLimitsInput" }, "output": { "target": "com.amazonaws.kinesis#DescribeLimitsOutput" }, "errors": [ { "target": "com.amazonaws.kinesis#LimitExceededException" } ], "traits": { "smithy.api#documentation": "

Describes the shard limits and usage for the account.

\n

If you update your account limits, the old limits might be returned for a few\n minutes.

\n

This operation has a limit of one transaction per second per account.

" } }, "com.amazonaws.kinesis#DescribeLimitsInput": { "type": "structure", "members": {} }, "com.amazonaws.kinesis#DescribeLimitsOutput": { "type": "structure", "members": { "ShardLimit": { "target": "com.amazonaws.kinesis#ShardCountObject", "traits": { "smithy.api#documentation": "

The maximum number of shards.

", "smithy.api#required": {} } }, "OpenShardCount": { "target": "com.amazonaws.kinesis#ShardCountObject", "traits": { "smithy.api#documentation": "

The number of open shards.

", "smithy.api#required": {} } } } }, "com.amazonaws.kinesis#DescribeStream": { "type": "operation", "input": { "target": "com.amazonaws.kinesis#DescribeStreamInput" }, "output": { "target": "com.amazonaws.kinesis#DescribeStreamOutput" }, "errors": [ { "target": "com.amazonaws.kinesis#LimitExceededException" }, { "target": "com.amazonaws.kinesis#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Describes the specified Kinesis data stream.

\n\n

The information returned includes the stream name, Amazon Resource Name (ARN),\n creation time, enhanced metric configuration, and shard map. The shard map is an array\n of shard objects. For each shard object, there is the hash key and sequence number\n ranges that the shard spans, and the IDs of any earlier shards that played in a role in\n creating the shard. Every record ingested in the stream is identified by a sequence\n number, which is assigned when the record is put into the stream.

\n\n

You can limit the number of shards returned by each call. For more information, see\n Retrieving\n Shards from a Stream in the Amazon Kinesis Data Streams Developer\n Guide.

\n

There are no guarantees about the chronological order shards returned. To process\n shards in chronological order, use the ID of the parent shard to track the lineage to\n the oldest shard.

\n

This operation has a limit of 10 transactions per second per account.

", "smithy.waiters#waitable": { "StreamExists": { "acceptors": [ { "state": "success", "matcher": { "output": { "path": "StreamDescription.StreamStatus", "expected": "ACTIVE", "comparator": "stringEquals" } } } ], "minDelay": 10 }, "StreamNotExists": { "acceptors": [ { "state": "success", "matcher": { "errorType": "ResourceNotFoundException" } } ], "minDelay": 10 } } } }, "com.amazonaws.kinesis#DescribeStreamConsumer": { "type": "operation", "input": { "target": "com.amazonaws.kinesis#DescribeStreamConsumerInput" }, "output": { "target": "com.amazonaws.kinesis#DescribeStreamConsumerOutput" }, "errors": [ { "target": "com.amazonaws.kinesis#InvalidArgumentException" }, { "target": "com.amazonaws.kinesis#LimitExceededException" }, { "target": "com.amazonaws.kinesis#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

To get the description of a registered consumer, provide the ARN of the consumer.\n Alternatively, you can provide the ARN of the data stream and the name you gave the\n consumer when you registered it. You may also provide all three parameters, as long as\n they don't conflict with each other. If you don't know the name or ARN of the consumer\n that you want to describe, you can use the ListStreamConsumers\n operation to get a list of the descriptions of all the consumers that are currently\n registered with a given data stream.

\n

This operation has a limit of 20 transactions per second per stream.

" } }, "com.amazonaws.kinesis#DescribeStreamConsumerInput": { "type": "structure", "members": { "StreamARN": { "target": "com.amazonaws.kinesis#StreamARN", "traits": { "smithy.api#documentation": "

The ARN of the Kinesis data stream that the consumer is registered with. For more\n information, see Amazon Resource Names (ARNs) and AWS Service Namespaces.

" } }, "ConsumerName": { "target": "com.amazonaws.kinesis#ConsumerName", "traits": { "smithy.api#documentation": "

The name that you gave to the consumer.

" } }, "ConsumerARN": { "target": "com.amazonaws.kinesis#ConsumerARN", "traits": { "smithy.api#documentation": "

The ARN returned by Kinesis Data Streams when you registered the consumer.

" } } } }, "com.amazonaws.kinesis#DescribeStreamConsumerOutput": { "type": "structure", "members": { "ConsumerDescription": { "target": "com.amazonaws.kinesis#ConsumerDescription", "traits": { "smithy.api#documentation": "

An object that represents the details of the consumer.

", "smithy.api#required": {} } } } }, "com.amazonaws.kinesis#DescribeStreamInput": { "type": "structure", "members": { "StreamName": { "target": "com.amazonaws.kinesis#StreamName", "traits": { "smithy.api#documentation": "

The name of the stream to describe.

", "smithy.api#required": {} } }, "Limit": { "target": "com.amazonaws.kinesis#DescribeStreamInputLimit", "traits": { "smithy.api#documentation": "

The maximum number of shards to return in a single call. The default value is 100.\n If you specify a value greater than 100, at most 100 shards are returned.

" } }, "ExclusiveStartShardId": { "target": "com.amazonaws.kinesis#ShardId", "traits": { "smithy.api#documentation": "

The shard ID of the shard to start with.

" } } }, "traits": { "smithy.api#documentation": "

Represents the input for DescribeStream.

" } }, "com.amazonaws.kinesis#DescribeStreamInputLimit": { "type": "integer", "traits": { "smithy.api#box": {}, "smithy.api#range": { "min": 1, "max": 10000 } } }, "com.amazonaws.kinesis#DescribeStreamOutput": { "type": "structure", "members": { "StreamDescription": { "target": "com.amazonaws.kinesis#StreamDescription", "traits": { "smithy.api#documentation": "

The current status of the stream, the stream Amazon Resource Name (ARN), an array\n of shard objects that comprise the stream, and whether there are more shards\n available.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

Represents the output for DescribeStream.

" } }, "com.amazonaws.kinesis#DescribeStreamSummary": { "type": "operation", "input": { "target": "com.amazonaws.kinesis#DescribeStreamSummaryInput" }, "output": { "target": "com.amazonaws.kinesis#DescribeStreamSummaryOutput" }, "errors": [ { "target": "com.amazonaws.kinesis#LimitExceededException" }, { "target": "com.amazonaws.kinesis#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Provides a summarized description of the specified Kinesis data stream without the\n shard list.

\n

The information returned includes the stream name, Amazon Resource Name (ARN),\n status, record retention period, approximate creation time, monitoring, encryption\n details, and open shard count.

\n

\n DescribeStreamSummary has a limit of 20 transactions per second\n per account.

" } }, "com.amazonaws.kinesis#DescribeStreamSummaryInput": { "type": "structure", "members": { "StreamName": { "target": "com.amazonaws.kinesis#StreamName", "traits": { "smithy.api#documentation": "

The name of the stream to describe.

", "smithy.api#required": {} } } } }, "com.amazonaws.kinesis#DescribeStreamSummaryOutput": { "type": "structure", "members": { "StreamDescriptionSummary": { "target": "com.amazonaws.kinesis#StreamDescriptionSummary", "traits": { "smithy.api#documentation": "

A StreamDescriptionSummary containing information about the\n stream.

", "smithy.api#required": {} } } } }, "com.amazonaws.kinesis#DisableEnhancedMonitoring": { "type": "operation", "input": { "target": "com.amazonaws.kinesis#DisableEnhancedMonitoringInput" }, "output": { "target": "com.amazonaws.kinesis#EnhancedMonitoringOutput" }, "errors": [ { "target": "com.amazonaws.kinesis#InvalidArgumentException" }, { "target": "com.amazonaws.kinesis#LimitExceededException" }, { "target": "com.amazonaws.kinesis#ResourceInUseException" }, { "target": "com.amazonaws.kinesis#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Disables enhanced monitoring.

" } }, "com.amazonaws.kinesis#DisableEnhancedMonitoringInput": { "type": "structure", "members": { "StreamName": { "target": "com.amazonaws.kinesis#StreamName", "traits": { "smithy.api#documentation": "

The name of the Kinesis data stream for which to disable enhanced\n monitoring.

", "smithy.api#required": {} } }, "ShardLevelMetrics": { "target": "com.amazonaws.kinesis#MetricsNameList", "traits": { "smithy.api#documentation": "

List of shard-level metrics to disable.

\n

The following are the valid shard-level metrics. The value \"ALL\"\n disables every metric.

\n \n

For more information, see Monitoring the Amazon\n Kinesis Data Streams Service with Amazon CloudWatch in the Amazon\n Kinesis Data Streams Developer Guide.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

Represents the input for DisableEnhancedMonitoring.

" } }, "com.amazonaws.kinesis#EnableEnhancedMonitoring": { "type": "operation", "input": { "target": "com.amazonaws.kinesis#EnableEnhancedMonitoringInput" }, "output": { "target": "com.amazonaws.kinesis#EnhancedMonitoringOutput" }, "errors": [ { "target": "com.amazonaws.kinesis#InvalidArgumentException" }, { "target": "com.amazonaws.kinesis#LimitExceededException" }, { "target": "com.amazonaws.kinesis#ResourceInUseException" }, { "target": "com.amazonaws.kinesis#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Enables enhanced Kinesis data stream monitoring for shard-level metrics.

" } }, "com.amazonaws.kinesis#EnableEnhancedMonitoringInput": { "type": "structure", "members": { "StreamName": { "target": "com.amazonaws.kinesis#StreamName", "traits": { "smithy.api#documentation": "

The name of the stream for which to enable enhanced monitoring.

", "smithy.api#required": {} } }, "ShardLevelMetrics": { "target": "com.amazonaws.kinesis#MetricsNameList", "traits": { "smithy.api#documentation": "

List of shard-level metrics to enable.

\n

The following are the valid shard-level metrics. The value \"ALL\"\n enables every metric.

\n \n

For more information, see Monitoring the Amazon\n Kinesis Data Streams Service with Amazon CloudWatch in the Amazon\n Kinesis Data Streams Developer Guide.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

Represents the input for EnableEnhancedMonitoring.

" } }, "com.amazonaws.kinesis#EncryptionType": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "NONE", "name": "NONE" }, { "value": "KMS", "name": "KMS" } ] } }, "com.amazonaws.kinesis#EnhancedMetrics": { "type": "structure", "members": { "ShardLevelMetrics": { "target": "com.amazonaws.kinesis#MetricsNameList", "traits": { "smithy.api#documentation": "

List of shard-level metrics.

\n

The following are the valid shard-level metrics. The value \"ALL\"\n enhances every metric.

\n \n

For more information, see Monitoring the Amazon\n Kinesis Data Streams Service with Amazon CloudWatch in the Amazon\n Kinesis Data Streams Developer Guide.

" } } }, "traits": { "smithy.api#documentation": "

Represents enhanced metrics types.

" } }, "com.amazonaws.kinesis#EnhancedMonitoringList": { "type": "list", "member": { "target": "com.amazonaws.kinesis#EnhancedMetrics" } }, "com.amazonaws.kinesis#EnhancedMonitoringOutput": { "type": "structure", "members": { "StreamName": { "target": "com.amazonaws.kinesis#StreamName", "traits": { "smithy.api#documentation": "

The name of the Kinesis data stream.

" } }, "CurrentShardLevelMetrics": { "target": "com.amazonaws.kinesis#MetricsNameList", "traits": { "smithy.api#documentation": "

Represents the current state of the metrics that are in the enhanced state before\n the operation.

" } }, "DesiredShardLevelMetrics": { "target": "com.amazonaws.kinesis#MetricsNameList", "traits": { "smithy.api#documentation": "

Represents the list of all the metrics that would be in the enhanced state after\n the operation.

" } } }, "traits": { "smithy.api#documentation": "

Represents the output for EnableEnhancedMonitoring and DisableEnhancedMonitoring.

" } }, "com.amazonaws.kinesis#ErrorCode": { "type": "string" }, "com.amazonaws.kinesis#ErrorMessage": { "type": "string" }, "com.amazonaws.kinesis#ExpiredIteratorException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.kinesis#ErrorMessage", "traits": { "smithy.api#documentation": "

A message that provides information about the error.

" } } }, "traits": { "smithy.api#documentation": "

The provided iterator exceeds the maximum age allowed.

", "smithy.api#error": "client" } }, "com.amazonaws.kinesis#ExpiredNextTokenException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.kinesis#ErrorMessage" } }, "traits": { "smithy.api#documentation": "

The pagination token passed to the operation is expired.

", "smithy.api#error": "client" } }, "com.amazonaws.kinesis#GetRecords": { "type": "operation", "input": { "target": "com.amazonaws.kinesis#GetRecordsInput" }, "output": { "target": "com.amazonaws.kinesis#GetRecordsOutput" }, "errors": [ { "target": "com.amazonaws.kinesis#ExpiredIteratorException" }, { "target": "com.amazonaws.kinesis#InvalidArgumentException" }, { "target": "com.amazonaws.kinesis#KMSAccessDeniedException" }, { "target": "com.amazonaws.kinesis#KMSDisabledException" }, { "target": "com.amazonaws.kinesis#KMSInvalidStateException" }, { "target": "com.amazonaws.kinesis#KMSNotFoundException" }, { "target": "com.amazonaws.kinesis#KMSOptInRequired" }, { "target": "com.amazonaws.kinesis#KMSThrottlingException" }, { "target": "com.amazonaws.kinesis#ProvisionedThroughputExceededException" }, { "target": "com.amazonaws.kinesis#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Gets data records from a Kinesis data stream's shard.

\n

Specify a shard iterator using the ShardIterator parameter. The shard\n iterator specifies the position in the shard from which you want to start reading data\n records sequentially. If there are no records available in the portion of the shard that\n the iterator points to, GetRecords returns an empty list. It might\n take multiple calls to get to a portion of the shard that contains records.

\n

You can scale by provisioning multiple shards per stream while considering service\n limits (for more information, see Amazon Kinesis Data Streams\n Limits in the Amazon Kinesis Data Streams Developer\n Guide). Your application should have one thread per shard, each reading\n continuously from its stream. To read from a stream continually, call GetRecords in a loop. Use GetShardIterator to get the\n shard iterator to specify in the first GetRecords call. GetRecords returns a new shard iterator in\n NextShardIterator. Specify the shard iterator returned in\n NextShardIterator in subsequent calls to GetRecords.\n If the shard has been closed, the shard iterator can't return more data and GetRecords returns null in NextShardIterator.\n You can terminate the loop when the shard is closed, or when the shard iterator reaches\n the record with the sequence number or other attribute that marks it as the last record\n to process.

\n

Each data record can be up to 1 MiB in size, and each shard can read up to 2 MiB\n per second. You can ensure that your calls don't exceed the maximum supported size or\n throughput by using the Limit parameter to specify the maximum number of\n records that GetRecords can return. Consider your average record size\n when determining this limit. The maximum number of records that can be returned per call\n is 10,000.

\n\n

The size of the data returned by GetRecords varies depending on\n the utilization of the shard. The maximum size of data that GetRecords\n can return is 10 MiB. If a call returns this amount of data, subsequent calls made\n within the next 5 seconds throw ProvisionedThroughputExceededException. If\n there is insufficient provisioned throughput on the stream, subsequent calls made within\n the next 1 second throw ProvisionedThroughputExceededException. GetRecords doesn't return any data when it throws an exception. For this\n reason, we recommend that you wait 1 second between calls to GetRecords. However, it's possible that the application will get exceptions for longer than 1\n second.

\n

To detect whether the application is falling behind in processing, you can use the\n MillisBehindLatest response attribute. You can also monitor the stream\n using CloudWatch metrics and other mechanisms (see Monitoring in the Amazon\n Kinesis Data Streams Developer Guide).

\n

Each Amazon Kinesis record includes a value,\n ApproximateArrivalTimestamp, that is set when a stream successfully\n receives and stores a record. This is commonly referred to as a server-side time stamp,\n whereas a client-side time stamp is set when a data producer creates or sends the record\n to a stream (a data producer is any data source putting data records into a stream, for\n example with PutRecords). The time stamp has millisecond precision.\n There are no guarantees about the time stamp accuracy, or that the time stamp is always\n increasing. For example, records in a shard or across a stream might have time stamps\n that are out of order.

\n

This operation has a limit of five transactions per second per shard.

" } }, "com.amazonaws.kinesis#GetRecordsInput": { "type": "structure", "members": { "ShardIterator": { "target": "com.amazonaws.kinesis#ShardIterator", "traits": { "smithy.api#documentation": "

The position in the shard from which you want to start sequentially reading data\n records. A shard iterator specifies this position using the sequence number of a data\n record in the shard.

", "smithy.api#required": {} } }, "Limit": { "target": "com.amazonaws.kinesis#GetRecordsInputLimit", "traits": { "smithy.api#documentation": "

The maximum number of records to return. Specify a value of up to 10,000. If you\n specify a value that is greater than 10,000, GetRecords throws\n InvalidArgumentException. The default value is 10,000.

" } } }, "traits": { "smithy.api#documentation": "

Represents the input for GetRecords.

" } }, "com.amazonaws.kinesis#GetRecordsInputLimit": { "type": "integer", "traits": { "smithy.api#box": {}, "smithy.api#range": { "min": 1, "max": 10000 } } }, "com.amazonaws.kinesis#GetRecordsOutput": { "type": "structure", "members": { "Records": { "target": "com.amazonaws.kinesis#RecordList", "traits": { "smithy.api#documentation": "

The data records retrieved from the shard.

", "smithy.api#required": {} } }, "NextShardIterator": { "target": "com.amazonaws.kinesis#ShardIterator", "traits": { "smithy.api#documentation": "

The next position in the shard from which to start sequentially reading data\n records. If set to null, the shard has been closed and the requested\n iterator does not return any more data.

" } }, "MillisBehindLatest": { "target": "com.amazonaws.kinesis#MillisBehindLatest", "traits": { "smithy.api#documentation": "

The number of milliseconds the GetRecords response is from the\n tip of the stream, indicating how far behind current time the consumer is. A value of\n zero indicates that record processing is caught up, and there are no new records to\n process at this moment.

" } }, "ChildShards": { "target": "com.amazonaws.kinesis#ChildShardList" } }, "traits": { "smithy.api#documentation": "

Represents the output for GetRecords.

" } }, "com.amazonaws.kinesis#GetShardIterator": { "type": "operation", "input": { "target": "com.amazonaws.kinesis#GetShardIteratorInput" }, "output": { "target": "com.amazonaws.kinesis#GetShardIteratorOutput" }, "errors": [ { "target": "com.amazonaws.kinesis#InvalidArgumentException" }, { "target": "com.amazonaws.kinesis#ProvisionedThroughputExceededException" }, { "target": "com.amazonaws.kinesis#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Gets an Amazon Kinesis shard iterator. A shard iterator expires 5 minutes after it\n is returned to the requester.

\n

A shard iterator specifies the shard position from which to start reading data\n records sequentially. The position is specified using the sequence number of a data\n record in a shard. A sequence number is the identifier associated with every record\n ingested in the stream, and is assigned when a record is put into the stream. Each\n stream has one or more shards.

\n

You must specify the shard iterator type. For example, you can set the\n ShardIteratorType parameter to read exactly from the position denoted\n by a specific sequence number by using the AT_SEQUENCE_NUMBER shard\n iterator type. Alternatively, the parameter can read right after the sequence number by\n using the AFTER_SEQUENCE_NUMBER shard iterator type, using sequence numbers\n returned by earlier calls to PutRecord, PutRecords,\n GetRecords, or DescribeStream. In the request,\n you can specify the shard iterator type AT_TIMESTAMP to read records from\n an arbitrary point in time, TRIM_HORIZON to cause\n ShardIterator to point to the last untrimmed record in the shard in the\n system (the oldest data record in the shard), or LATEST so that you always\n read the most recent data in the shard.

\n

When you read repeatedly from a stream, use a GetShardIterator\n request to get the first shard iterator for use in your first GetRecords request and for subsequent reads use the shard iterator returned by the GetRecords request in NextShardIterator. A new shard\n iterator is returned by every GetRecords request in\n NextShardIterator, which you use in the ShardIterator\n parameter of the next GetRecords request.

\n

If a GetShardIterator request is made too often, you receive a\n ProvisionedThroughputExceededException. For more information about\n throughput limits, see GetRecords, and Streams Limits in the\n Amazon Kinesis Data Streams Developer Guide.

\n

If the shard is closed, GetShardIterator returns a valid iterator\n for the last sequence number of the shard. A shard can be closed as a result of using\n SplitShard or MergeShards.

\n

\n GetShardIterator has a limit of five transactions per second per\n account per open shard.

" } }, "com.amazonaws.kinesis#GetShardIteratorInput": { "type": "structure", "members": { "StreamName": { "target": "com.amazonaws.kinesis#StreamName", "traits": { "smithy.api#documentation": "

The name of the Amazon Kinesis data stream.

", "smithy.api#required": {} } }, "ShardId": { "target": "com.amazonaws.kinesis#ShardId", "traits": { "smithy.api#documentation": "

The shard ID of the Kinesis Data Streams shard to get the iterator for.

", "smithy.api#required": {} } }, "ShardIteratorType": { "target": "com.amazonaws.kinesis#ShardIteratorType", "traits": { "smithy.api#documentation": "

Determines how the shard iterator is used to start reading data records from the\n shard.

\n

The following are the valid Amazon Kinesis shard iterator types:

\n ", "smithy.api#required": {} } }, "StartingSequenceNumber": { "target": "com.amazonaws.kinesis#SequenceNumber", "traits": { "smithy.api#documentation": "

The sequence number of the data record in the shard from which to start reading.\n Used with shard iterator type AT_SEQUENCE_NUMBER and AFTER_SEQUENCE_NUMBER.

" } }, "Timestamp": { "target": "com.amazonaws.kinesis#Timestamp", "traits": { "smithy.api#documentation": "

The time stamp of the data record from which to start reading. Used with shard\n iterator type AT_TIMESTAMP. A time stamp is the Unix epoch date with precision in\n milliseconds. For example, 2016-04-04T19:58:46.480-00:00 or\n 1459799926.480. If a record with this exact time stamp does not exist,\n the iterator returned is for the next (later) record. If the time stamp is older than\n the current trim horizon, the iterator returned is for the oldest untrimmed data record\n (TRIM_HORIZON).

" } } }, "traits": { "smithy.api#documentation": "

Represents the input for GetShardIterator.

" } }, "com.amazonaws.kinesis#GetShardIteratorOutput": { "type": "structure", "members": { "ShardIterator": { "target": "com.amazonaws.kinesis#ShardIterator", "traits": { "smithy.api#documentation": "

The position in the shard from which to start reading data records sequentially. A\n shard iterator specifies this position using the sequence number of a data record in a\n shard.

" } } }, "traits": { "smithy.api#documentation": "

Represents the output for GetShardIterator.

" } }, "com.amazonaws.kinesis#HashKey": { "type": "string", "traits": { "smithy.api#pattern": "0|([1-9]\\d{0,38})" } }, "com.amazonaws.kinesis#HashKeyRange": { "type": "structure", "members": { "StartingHashKey": { "target": "com.amazonaws.kinesis#HashKey", "traits": { "smithy.api#documentation": "

The starting hash key of the hash key range.

", "smithy.api#required": {} } }, "EndingHashKey": { "target": "com.amazonaws.kinesis#HashKey", "traits": { "smithy.api#documentation": "

The ending hash key of the hash key range.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

The range of possible hash key values for the shard, which is a set of ordered\n contiguous positive integers.

" } }, "com.amazonaws.kinesis#IncreaseStreamRetentionPeriod": { "type": "operation", "input": { "target": "com.amazonaws.kinesis#IncreaseStreamRetentionPeriodInput" }, "errors": [ { "target": "com.amazonaws.kinesis#InvalidArgumentException" }, { "target": "com.amazonaws.kinesis#LimitExceededException" }, { "target": "com.amazonaws.kinesis#ResourceInUseException" }, { "target": "com.amazonaws.kinesis#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Increases the Kinesis data stream's retention period, which is the length of time\n data records are accessible after they are added to the stream. The maximum value of a\n stream's retention period is 168 hours (7 days).

\n

If you choose a longer stream retention period, this operation increases the time\n period during which records that have not yet expired are accessible. However, it does\n not make previous, expired data (older than the stream's previous retention period)\n accessible after the operation has been called. For example, if a stream's retention\n period is set to 24 hours and is increased to 168 hours, any data that is older than 24\n hours remains inaccessible to consumer applications.

" } }, "com.amazonaws.kinesis#IncreaseStreamRetentionPeriodInput": { "type": "structure", "members": { "StreamName": { "target": "com.amazonaws.kinesis#StreamName", "traits": { "smithy.api#documentation": "

The name of the stream to modify.

", "smithy.api#required": {} } }, "RetentionPeriodHours": { "target": "com.amazonaws.kinesis#RetentionPeriodHours", "traits": { "smithy.api#documentation": "

The new retention period of the stream, in hours. Must be more than the current\n retention period.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

Represents the input for IncreaseStreamRetentionPeriod.

" } }, "com.amazonaws.kinesis#InternalFailureException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.kinesis#ErrorMessage" } }, "traits": { "smithy.api#documentation": "

The processing of the request failed because of an unknown error, exception, or\n failure.

", "smithy.api#error": "server" } }, "com.amazonaws.kinesis#InvalidArgumentException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.kinesis#ErrorMessage", "traits": { "smithy.api#documentation": "

A message that provides information about the error.

" } } }, "traits": { "smithy.api#documentation": "

A specified parameter exceeds its restrictions, is not supported, or can't be used.\n For more information, see the returned message.

", "smithy.api#error": "client" } }, "com.amazonaws.kinesis#KMSAccessDeniedException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.kinesis#ErrorMessage", "traits": { "smithy.api#documentation": "

A message that provides information about the error.

" } } }, "traits": { "smithy.api#documentation": "

The ciphertext references a key that doesn't exist or that you don't have access\n to.

", "smithy.api#error": "client" } }, "com.amazonaws.kinesis#KMSDisabledException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.kinesis#ErrorMessage", "traits": { "smithy.api#documentation": "

A message that provides information about the error.

" } } }, "traits": { "smithy.api#documentation": "

The request was rejected because the specified customer master key (CMK) isn't\n enabled.

", "smithy.api#error": "client" } }, "com.amazonaws.kinesis#KMSInvalidStateException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.kinesis#ErrorMessage", "traits": { "smithy.api#documentation": "

A message that provides information about the error.

" } } }, "traits": { "smithy.api#documentation": "

The request was rejected because the state of the specified resource isn't valid\n for this request. For more information, see How Key State Affects Use of a\n Customer Master Key in the AWS Key Management Service Developer\n Guide.

", "smithy.api#error": "client" } }, "com.amazonaws.kinesis#KMSNotFoundException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.kinesis#ErrorMessage", "traits": { "smithy.api#documentation": "

A message that provides information about the error.

" } } }, "traits": { "smithy.api#documentation": "

The request was rejected because the specified entity or resource can't be\n found.

", "smithy.api#error": "client" } }, "com.amazonaws.kinesis#KMSOptInRequired": { "type": "structure", "members": { "message": { "target": "com.amazonaws.kinesis#ErrorMessage", "traits": { "smithy.api#documentation": "

A message that provides information about the error.

" } } }, "traits": { "smithy.api#documentation": "

The AWS access key ID needs a subscription for the service.

", "smithy.api#error": "client" } }, "com.amazonaws.kinesis#KMSThrottlingException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.kinesis#ErrorMessage", "traits": { "smithy.api#documentation": "

A message that provides information about the error.

" } } }, "traits": { "smithy.api#documentation": "

The request was denied due to request throttling. For more information about\n throttling, see Limits in\n the AWS Key Management Service Developer Guide.

", "smithy.api#error": "client" } }, "com.amazonaws.kinesis#KeyId": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 2048 } } }, "com.amazonaws.kinesis#Kinesis_20131202": { "type": "service", "version": "2013-12-02", "operations": [ { "target": "com.amazonaws.kinesis#AddTagsToStream" }, { "target": "com.amazonaws.kinesis#CreateStream" }, { "target": "com.amazonaws.kinesis#DecreaseStreamRetentionPeriod" }, { "target": "com.amazonaws.kinesis#DeleteStream" }, { "target": "com.amazonaws.kinesis#DeregisterStreamConsumer" }, { "target": "com.amazonaws.kinesis#DescribeLimits" }, { "target": "com.amazonaws.kinesis#DescribeStream" }, { "target": "com.amazonaws.kinesis#DescribeStreamConsumer" }, { "target": "com.amazonaws.kinesis#DescribeStreamSummary" }, { "target": "com.amazonaws.kinesis#DisableEnhancedMonitoring" }, { "target": "com.amazonaws.kinesis#EnableEnhancedMonitoring" }, { "target": "com.amazonaws.kinesis#GetRecords" }, { "target": "com.amazonaws.kinesis#GetShardIterator" }, { "target": "com.amazonaws.kinesis#IncreaseStreamRetentionPeriod" }, { "target": "com.amazonaws.kinesis#ListShards" }, { "target": "com.amazonaws.kinesis#ListStreamConsumers" }, { "target": "com.amazonaws.kinesis#ListStreams" }, { "target": "com.amazonaws.kinesis#ListTagsForStream" }, { "target": "com.amazonaws.kinesis#MergeShards" }, { "target": "com.amazonaws.kinesis#PutRecord" }, { "target": "com.amazonaws.kinesis#PutRecords" }, { "target": "com.amazonaws.kinesis#RegisterStreamConsumer" }, { "target": "com.amazonaws.kinesis#RemoveTagsFromStream" }, { "target": "com.amazonaws.kinesis#SplitShard" }, { "target": "com.amazonaws.kinesis#StartStreamEncryption" }, { "target": "com.amazonaws.kinesis#StopStreamEncryption" }, { "target": "com.amazonaws.kinesis#SubscribeToShard" }, { "target": "com.amazonaws.kinesis#UpdateShardCount" } ], "traits": { "aws.api#service": { "sdkId": "Kinesis", "arnNamespace": "kinesis", "cloudFormationName": "Kinesis", "cloudTrailEventSource": "kinesis.amazonaws.com", "endpointPrefix": "kinesis" }, "aws.auth#sigv4": { "name": "kinesis" }, "aws.protocols#awsJson1_1": {}, "smithy.api#documentation": "Amazon Kinesis Data Streams Service API Reference\n

Amazon Kinesis Data Streams is a managed service that scales elastically for\n real-time processing of streaming big data.

", "smithy.api#title": "Amazon Kinesis", "smithy.api#xmlNamespace": { "uri": "http://kinesis.amazonaws.com/doc/2013-12-02" } } }, "com.amazonaws.kinesis#LimitExceededException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.kinesis#ErrorMessage", "traits": { "smithy.api#documentation": "

A message that provides information about the error.

" } } }, "traits": { "smithy.api#documentation": "

The requested resource exceeds the maximum number allowed, or the number of\n concurrent stream requests exceeds the maximum number allowed.

", "smithy.api#error": "client" } }, "com.amazonaws.kinesis#ListShards": { "type": "operation", "input": { "target": "com.amazonaws.kinesis#ListShardsInput" }, "output": { "target": "com.amazonaws.kinesis#ListShardsOutput" }, "errors": [ { "target": "com.amazonaws.kinesis#ExpiredNextTokenException" }, { "target": "com.amazonaws.kinesis#InvalidArgumentException" }, { "target": "com.amazonaws.kinesis#LimitExceededException" }, { "target": "com.amazonaws.kinesis#ResourceInUseException" }, { "target": "com.amazonaws.kinesis#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Lists the shards in a stream and provides information about each shard. This\n operation has a limit of 100 transactions per second per data stream.

\n \n

This API is a new operation that is used by the Amazon Kinesis Client Library\n (KCL). If you have a fine-grained IAM policy that only allows specific operations,\n you must update your policy to allow calls to this API. For more information, see\n Controlling Access to Amazon Kinesis Data Streams Resources Using\n IAM.

\n
" } }, "com.amazonaws.kinesis#ListShardsInput": { "type": "structure", "members": { "StreamName": { "target": "com.amazonaws.kinesis#StreamName", "traits": { "smithy.api#documentation": "

The name of the data stream whose shards you want to list.

\n

You cannot specify this parameter if you specify the NextToken\n parameter.

" } }, "NextToken": { "target": "com.amazonaws.kinesis#NextToken", "traits": { "smithy.api#documentation": "

When the number of shards in the data stream is greater than the default value for\n the MaxResults parameter, or if you explicitly specify a value for\n MaxResults that is less than the number of shards in the data stream,\n the response includes a pagination token named NextToken. You can specify\n this NextToken value in a subsequent call to ListShards to\n list the next set of shards.

\n

Don't specify StreamName or StreamCreationTimestamp if\n you specify NextToken because the latter unambiguously identifies the\n stream.

\n

You can optionally specify a value for the MaxResults parameter when\n you specify NextToken. If you specify a MaxResults value that\n is less than the number of shards that the operation returns if you don't specify\n MaxResults, the response will contain a new NextToken\n value. You can use the new NextToken value in a subsequent call to the\n ListShards operation.

\n \n

Tokens expire after 300 seconds. When you obtain a value for\n NextToken in the response to a call to ListShards, you\n have 300 seconds to use that value. If you specify an expired token in a call to\n ListShards, you get\n ExpiredNextTokenException.

\n
" } }, "ExclusiveStartShardId": { "target": "com.amazonaws.kinesis#ShardId", "traits": { "smithy.api#documentation": "

Specify this parameter to indicate that you want to list the shards starting with\n the shard whose ID immediately follows ExclusiveStartShardId.

\n

If you don't specify this parameter, the default behavior is for\n ListShards to list the shards starting with the first one in the\n stream.

\n

You cannot specify this parameter if you specify NextToken.

" } }, "MaxResults": { "target": "com.amazonaws.kinesis#ListShardsInputLimit", "traits": { "smithy.api#documentation": "

The maximum number of shards to return in a single call to ListShards.\n The minimum value you can specify for this parameter is 1, and the maximum is 10,000,\n which is also the default.

\n

When the number of shards to be listed is greater than the value of\n MaxResults, the response contains a NextToken value that\n you can use in a subsequent call to ListShards to list the next set of\n shards.

" } }, "StreamCreationTimestamp": { "target": "com.amazonaws.kinesis#Timestamp", "traits": { "smithy.api#documentation": "

Specify this input parameter to distinguish data streams that have the same name.\n For example, if you create a data stream and then delete it, and you later create\n another data stream with the same name, you can use this input parameter to specify\n which of the two streams you want to list the shards for.

\n

You cannot specify this parameter if you specify the NextToken\n parameter.

" } }, "ShardFilter": { "target": "com.amazonaws.kinesis#ShardFilter" } } }, "com.amazonaws.kinesis#ListShardsInputLimit": { "type": "integer", "traits": { "smithy.api#box": {}, "smithy.api#range": { "min": 1, "max": 10000 } } }, "com.amazonaws.kinesis#ListShardsOutput": { "type": "structure", "members": { "Shards": { "target": "com.amazonaws.kinesis#ShardList", "traits": { "smithy.api#documentation": "

An array of JSON objects. Each object represents one shard and specifies the IDs of\n the shard, the shard's parent, and the shard that's adjacent to the shard's parent. Each\n object also contains the starting and ending hash keys and the starting and ending\n sequence numbers for the shard.

" } }, "NextToken": { "target": "com.amazonaws.kinesis#NextToken", "traits": { "smithy.api#documentation": "

When the number of shards in the data stream is greater than the default value for\n the MaxResults parameter, or if you explicitly specify a value for\n MaxResults that is less than the number of shards in the data stream,\n the response includes a pagination token named NextToken. You can specify\n this NextToken value in a subsequent call to ListShards to\n list the next set of shards. For more information about the use of this pagination token\n when calling the ListShards operation, see ListShardsInput$NextToken.

\n \n

Tokens expire after 300 seconds. When you obtain a value for\n NextToken in the response to a call to ListShards, you\n have 300 seconds to use that value. If you specify an expired token in a call to\n ListShards, you get\n ExpiredNextTokenException.

\n
" } } } }, "com.amazonaws.kinesis#ListStreamConsumers": { "type": "operation", "input": { "target": "com.amazonaws.kinesis#ListStreamConsumersInput" }, "output": { "target": "com.amazonaws.kinesis#ListStreamConsumersOutput" }, "errors": [ { "target": "com.amazonaws.kinesis#ExpiredNextTokenException" }, { "target": "com.amazonaws.kinesis#InvalidArgumentException" }, { "target": "com.amazonaws.kinesis#LimitExceededException" }, { "target": "com.amazonaws.kinesis#ResourceInUseException" }, { "target": "com.amazonaws.kinesis#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Lists the consumers registered to receive data from a stream using enhanced fan-out,\n and provides information about each consumer.

\n

This operation has a limit of 5 transactions per second per stream.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", "pageSize": "MaxResults" } } }, "com.amazonaws.kinesis#ListStreamConsumersInput": { "type": "structure", "members": { "StreamARN": { "target": "com.amazonaws.kinesis#StreamARN", "traits": { "smithy.api#documentation": "

The ARN of the Kinesis data stream for which you want to list the registered\n consumers. For more information, see Amazon Resource Names (ARNs) and AWS Service Namespaces.

", "smithy.api#required": {} } }, "NextToken": { "target": "com.amazonaws.kinesis#NextToken", "traits": { "smithy.api#documentation": "

When the number of consumers that are registered with the data stream is greater than\n the default value for the MaxResults parameter, or if you explicitly\n specify a value for MaxResults that is less than the number of consumers\n that are registered with the data stream, the response includes a pagination token named\n NextToken. You can specify this NextToken value in a\n subsequent call to ListStreamConsumers to list the next set of registered\n consumers.

\n

Don't specify StreamName or StreamCreationTimestamp if you\n specify NextToken because the latter unambiguously identifies the\n stream.

\n

You can optionally specify a value for the MaxResults parameter when you\n specify NextToken. If you specify a MaxResults value that is\n less than the number of consumers that the operation returns if you don't specify\n MaxResults, the response will contain a new NextToken\n value. You can use the new NextToken value in a subsequent call to the\n ListStreamConsumers operation to list the next set of consumers.

\n \n

Tokens expire after 300 seconds. When you obtain a value for\n NextToken in the response to a call to\n ListStreamConsumers, you have 300 seconds to use that value. If you\n specify an expired token in a call to ListStreamConsumers, you get\n ExpiredNextTokenException.

\n
" } }, "MaxResults": { "target": "com.amazonaws.kinesis#ListStreamConsumersInputLimit", "traits": { "smithy.api#documentation": "

The maximum number of consumers that you want a single call of\n ListStreamConsumers to return.

" } }, "StreamCreationTimestamp": { "target": "com.amazonaws.kinesis#Timestamp", "traits": { "smithy.api#documentation": "

Specify this input parameter to distinguish data streams that have the same name. For\n example, if you create a data stream and then delete it, and you later create another\n data stream with the same name, you can use this input parameter to specify which of the\n two streams you want to list the consumers for.

\n

You can't specify this parameter if you specify the NextToken parameter.

" } } } }, "com.amazonaws.kinesis#ListStreamConsumersInputLimit": { "type": "integer", "traits": { "smithy.api#box": {}, "smithy.api#range": { "min": 1, "max": 10000 } } }, "com.amazonaws.kinesis#ListStreamConsumersOutput": { "type": "structure", "members": { "Consumers": { "target": "com.amazonaws.kinesis#ConsumerList", "traits": { "smithy.api#documentation": "

An array of JSON objects. Each object represents one registered consumer.

" } }, "NextToken": { "target": "com.amazonaws.kinesis#NextToken", "traits": { "smithy.api#documentation": "

When the number of consumers that are registered with the data stream is greater than\n the default value for the MaxResults parameter, or if you explicitly\n specify a value for MaxResults that is less than the number of registered\n consumers, the response includes a pagination token named NextToken. You\n can specify this NextToken value in a subsequent call to\n ListStreamConsumers to list the next set of registered consumers. For\n more information about the use of this pagination token when calling the\n ListStreamConsumers operation, see ListStreamConsumersInput$NextToken.

\n \n

Tokens expire after 300 seconds. When you obtain a value for\n NextToken in the response to a call to\n ListStreamConsumers, you have 300 seconds to use that value. If you\n specify an expired token in a call to ListStreamConsumers, you get\n ExpiredNextTokenException.

\n
" } } } }, "com.amazonaws.kinesis#ListStreams": { "type": "operation", "input": { "target": "com.amazonaws.kinesis#ListStreamsInput" }, "output": { "target": "com.amazonaws.kinesis#ListStreamsOutput" }, "errors": [ { "target": "com.amazonaws.kinesis#LimitExceededException" } ], "traits": { "smithy.api#documentation": "

Lists your Kinesis data streams.

\n

The number of streams may be too large to return from a single call to\n ListStreams. You can limit the number of returned streams using the\n Limit parameter. If you do not specify a value for the\n Limit parameter, Kinesis Data Streams uses the default limit, which is\n currently 10.

\n

You can detect if there are more streams available to list by using the\n HasMoreStreams flag from the returned output. If there are more streams\n available, you can request more streams by using the name of the last stream returned by\n the ListStreams request in the ExclusiveStartStreamName\n parameter in a subsequent request to ListStreams. The group of stream names\n returned by the subsequent request is then added to the list. You can continue this\n process until all the stream names have been collected in the list.

\n

\n ListStreams has a limit of five transactions per second per\n account.

" } }, "com.amazonaws.kinesis#ListStreamsInput": { "type": "structure", "members": { "Limit": { "target": "com.amazonaws.kinesis#ListStreamsInputLimit", "traits": { "smithy.api#documentation": "

The maximum number of streams to list.

" } }, "ExclusiveStartStreamName": { "target": "com.amazonaws.kinesis#StreamName", "traits": { "smithy.api#documentation": "

The name of the stream to start the list with.

" } } }, "traits": { "smithy.api#documentation": "

Represents the input for ListStreams.

" } }, "com.amazonaws.kinesis#ListStreamsInputLimit": { "type": "integer", "traits": { "smithy.api#box": {}, "smithy.api#range": { "min": 1, "max": 10000 } } }, "com.amazonaws.kinesis#ListStreamsOutput": { "type": "structure", "members": { "StreamNames": { "target": "com.amazonaws.kinesis#StreamNameList", "traits": { "smithy.api#documentation": "

The names of the streams that are associated with the AWS account making the\n ListStreams request.

", "smithy.api#required": {} } }, "HasMoreStreams": { "target": "com.amazonaws.kinesis#BooleanObject", "traits": { "smithy.api#documentation": "

If set to true, there are more streams available to list.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

Represents the output for ListStreams.

" } }, "com.amazonaws.kinesis#ListTagsForStream": { "type": "operation", "input": { "target": "com.amazonaws.kinesis#ListTagsForStreamInput" }, "output": { "target": "com.amazonaws.kinesis#ListTagsForStreamOutput" }, "errors": [ { "target": "com.amazonaws.kinesis#InvalidArgumentException" }, { "target": "com.amazonaws.kinesis#LimitExceededException" }, { "target": "com.amazonaws.kinesis#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Lists the tags for the specified Kinesis data stream. This operation has a limit of\n five transactions per second per account.

" } }, "com.amazonaws.kinesis#ListTagsForStreamInput": { "type": "structure", "members": { "StreamName": { "target": "com.amazonaws.kinesis#StreamName", "traits": { "smithy.api#documentation": "

The name of the stream.

", "smithy.api#required": {} } }, "ExclusiveStartTagKey": { "target": "com.amazonaws.kinesis#TagKey", "traits": { "smithy.api#documentation": "

The key to use as the starting point for the list of tags. If this parameter is\n set, ListTagsForStream gets all tags that occur after\n ExclusiveStartTagKey.

" } }, "Limit": { "target": "com.amazonaws.kinesis#ListTagsForStreamInputLimit", "traits": { "smithy.api#documentation": "

The number of tags to return. If this number is less than the total number of tags\n associated with the stream, HasMoreTags is set to true. To\n list additional tags, set ExclusiveStartTagKey to the last key in the\n response.

" } } }, "traits": { "smithy.api#documentation": "

Represents the input for ListTagsForStream.

" } }, "com.amazonaws.kinesis#ListTagsForStreamInputLimit": { "type": "integer", "traits": { "smithy.api#box": {}, "smithy.api#range": { "min": 1, "max": 50 } } }, "com.amazonaws.kinesis#ListTagsForStreamOutput": { "type": "structure", "members": { "Tags": { "target": "com.amazonaws.kinesis#TagList", "traits": { "smithy.api#documentation": "

A list of tags associated with StreamName, starting with the first tag\n after ExclusiveStartTagKey and up to the specified Limit.\n

", "smithy.api#required": {} } }, "HasMoreTags": { "target": "com.amazonaws.kinesis#BooleanObject", "traits": { "smithy.api#documentation": "

If set to true, more tags are available. To request additional tags,\n set ExclusiveStartTagKey to the key of the last tag returned.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

Represents the output for ListTagsForStream.

" } }, "com.amazonaws.kinesis#MergeShards": { "type": "operation", "input": { "target": "com.amazonaws.kinesis#MergeShardsInput" }, "errors": [ { "target": "com.amazonaws.kinesis#InvalidArgumentException" }, { "target": "com.amazonaws.kinesis#LimitExceededException" }, { "target": "com.amazonaws.kinesis#ResourceInUseException" }, { "target": "com.amazonaws.kinesis#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Merges two adjacent shards in a Kinesis data stream and combines them into a single\n shard to reduce the stream's capacity to ingest and transport data. Two shards are\n considered adjacent if the union of the hash key ranges for the two shards form a\n contiguous set with no gaps. For example, if you have two shards, one with a hash key\n range of 276...381 and the other with a hash key range of 382...454, then you could\n merge these two shards into a single shard that would have a hash key range of\n 276...454. After the merge, the single child shard receives data for all hash key values\n covered by the two parent shards.

\n

\n MergeShards is called when there is a need to reduce the overall capacity\n of a stream because of excess capacity that is not being used. You must specify the\n shard to be merged and the adjacent shard for a stream. For more information about\n merging shards, see Merge Two\n Shards in the Amazon Kinesis Data Streams Developer\n Guide.

\n

If the stream is in the ACTIVE state, you can call\n MergeShards. If a stream is in the CREATING,\n UPDATING, or DELETING state, MergeShards\n returns a ResourceInUseException. If the specified stream does not exist,\n MergeShards returns a ResourceNotFoundException.

\n

You can use DescribeStream to check the state of the stream,\n which is returned in StreamStatus.

\n

\n MergeShards is an asynchronous operation. Upon receiving a\n MergeShards request, Amazon Kinesis Data Streams immediately returns a\n response and sets the StreamStatus to UPDATING. After the\n operation is completed, Kinesis Data Streams sets the StreamStatus to\n ACTIVE. Read and write operations continue to work while the stream is\n in the UPDATING state.

\n

You use DescribeStream to determine the shard IDs that are\n specified in the MergeShards request.

\n

If you try to operate on too many streams in parallel using CreateStream, DeleteStream, MergeShards,\n or SplitShard, you receive a LimitExceededException.

\n

\n MergeShards has a limit of five transactions per second per\n account.

" } }, "com.amazonaws.kinesis#MergeShardsInput": { "type": "structure", "members": { "StreamName": { "target": "com.amazonaws.kinesis#StreamName", "traits": { "smithy.api#documentation": "

The name of the stream for the merge.

", "smithy.api#required": {} } }, "ShardToMerge": { "target": "com.amazonaws.kinesis#ShardId", "traits": { "smithy.api#documentation": "

The shard ID of the shard to combine with the adjacent shard for the\n merge.

", "smithy.api#required": {} } }, "AdjacentShardToMerge": { "target": "com.amazonaws.kinesis#ShardId", "traits": { "smithy.api#documentation": "

The shard ID of the adjacent shard for the merge.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

Represents the input for MergeShards.

" } }, "com.amazonaws.kinesis#MetricsName": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "IncomingBytes", "name": "INCOMING_BYTES" }, { "value": "IncomingRecords", "name": "INCOMING_RECORDS" }, { "value": "OutgoingBytes", "name": "OUTGOING_BYTES" }, { "value": "OutgoingRecords", "name": "OUTGOING_RECORDS" }, { "value": "WriteProvisionedThroughputExceeded", "name": "WRITE_PROVISIONED_THROUGHPUT_EXCEEDED" }, { "value": "ReadProvisionedThroughputExceeded", "name": "READ_PROVISIONED_THROUGHPUT_EXCEEDED" }, { "value": "IteratorAgeMilliseconds", "name": "ITERATOR_AGE_MILLISECONDS" }, { "value": "ALL", "name": "ALL" } ] } }, "com.amazonaws.kinesis#MetricsNameList": { "type": "list", "member": { "target": "com.amazonaws.kinesis#MetricsName" }, "traits": { "smithy.api#length": { "min": 1, "max": 7 } } }, "com.amazonaws.kinesis#MillisBehindLatest": { "type": "long", "traits": { "smithy.api#box": {}, "smithy.api#range": { "min": 0 } } }, "com.amazonaws.kinesis#NextToken": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 1048576 } } }, "com.amazonaws.kinesis#PartitionKey": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 256 } } }, "com.amazonaws.kinesis#PositiveIntegerObject": { "type": "integer", "traits": { "smithy.api#box": {}, "smithy.api#range": { "min": 1 } } }, "com.amazonaws.kinesis#ProvisionedThroughputExceededException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.kinesis#ErrorMessage", "traits": { "smithy.api#documentation": "

A message that provides information about the error.

" } } }, "traits": { "smithy.api#documentation": "

The request rate for the stream is too high, or the requested data is too large for\n the available throughput. Reduce the frequency or size of your requests. For more\n information, see Streams Limits in the\n Amazon Kinesis Data Streams Developer Guide, and Error Retries and\n Exponential Backoff in AWS in the AWS General\n Reference.

", "smithy.api#error": "client" } }, "com.amazonaws.kinesis#PutRecord": { "type": "operation", "input": { "target": "com.amazonaws.kinesis#PutRecordInput" }, "output": { "target": "com.amazonaws.kinesis#PutRecordOutput" }, "errors": [ { "target": "com.amazonaws.kinesis#InvalidArgumentException" }, { "target": "com.amazonaws.kinesis#KMSAccessDeniedException" }, { "target": "com.amazonaws.kinesis#KMSDisabledException" }, { "target": "com.amazonaws.kinesis#KMSInvalidStateException" }, { "target": "com.amazonaws.kinesis#KMSNotFoundException" }, { "target": "com.amazonaws.kinesis#KMSOptInRequired" }, { "target": "com.amazonaws.kinesis#KMSThrottlingException" }, { "target": "com.amazonaws.kinesis#ProvisionedThroughputExceededException" }, { "target": "com.amazonaws.kinesis#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Writes a single data record into an Amazon Kinesis data stream. Call\n PutRecord to send data into the stream for real-time ingestion and\n subsequent processing, one record at a time. Each shard can support writes up to 1,000\n records per second, up to a maximum data write total of 1 MiB per second.

\n

You must specify the name of the stream that captures, stores, and transports the\n data; a partition key; and the data blob itself.

\n

The data blob can be any type of data; for example, a segment from a log file,\n geographic/location data, website clickstream data, and so on.

\n

The partition key is used by Kinesis Data Streams to distribute data across shards.\n Kinesis Data Streams segregates the data records that belong to a stream into multiple\n shards, using the partition key associated with each data record to determine the shard\n to which a given data record belongs.

\n

Partition keys are Unicode strings, with a maximum length limit of 256 characters\n for each key. An MD5 hash function is used to map partition keys to 128-bit integer\n values and to map associated data records to shards using the hash key ranges of the\n shards. You can override hashing the partition key to determine the shard by explicitly\n specifying a hash value using the ExplicitHashKey parameter. For more\n information, see Adding Data to a Stream in the Amazon Kinesis Data Streams\n Developer Guide.

\n

\n PutRecord returns the shard ID of where the data record was placed and the\n sequence number that was assigned to the data record.

\n

Sequence numbers increase over time and are specific to a shard within a stream,\n not across all shards within a stream. To guarantee strictly increasing ordering, write\n serially to a shard and use the SequenceNumberForOrdering parameter. For\n more information, see Adding Data to a Stream in the Amazon Kinesis Data Streams\n Developer Guide.

\n \n

After you write a record to a stream, you cannot modify that record or its order\n within the stream.

\n
\n

If a PutRecord request cannot be processed because of insufficient\n provisioned throughput on the shard involved in the request, PutRecord\n throws ProvisionedThroughputExceededException.

\n

By default, data records are accessible for 24 hours from the time that they are\n added to a stream. You can use IncreaseStreamRetentionPeriod or DecreaseStreamRetentionPeriod to modify this retention period.

" } }, "com.amazonaws.kinesis#PutRecordInput": { "type": "structure", "members": { "StreamName": { "target": "com.amazonaws.kinesis#StreamName", "traits": { "smithy.api#documentation": "

The name of the stream to put the data record into.

", "smithy.api#required": {} } }, "Data": { "target": "com.amazonaws.kinesis#Data", "traits": { "smithy.api#documentation": "

The data blob to put into the record, which is base64-encoded when the blob is\n serialized. When the data blob (the payload before base64-encoding) is added to the\n partition key size, the total size must not exceed the maximum record size (1\n MiB).

", "smithy.api#required": {} } }, "PartitionKey": { "target": "com.amazonaws.kinesis#PartitionKey", "traits": { "smithy.api#documentation": "

Determines which shard in the stream the data record is assigned to. Partition keys\n are Unicode strings with a maximum length limit of 256 characters for each key. Amazon\n Kinesis Data Streams uses the partition key as input to a hash function that maps the\n partition key and associated data to a specific shard. Specifically, an MD5 hash\n function is used to map partition keys to 128-bit integer values and to map associated\n data records to shards. As a result of this hashing mechanism, all data records with the\n same partition key map to the same shard within the stream.

", "smithy.api#required": {} } }, "ExplicitHashKey": { "target": "com.amazonaws.kinesis#HashKey", "traits": { "smithy.api#documentation": "

The hash value used to explicitly determine the shard the data record is assigned\n to by overriding the partition key hash.

" } }, "SequenceNumberForOrdering": { "target": "com.amazonaws.kinesis#SequenceNumber", "traits": { "smithy.api#documentation": "

Guarantees strictly increasing sequence numbers, for puts from the same client and\n to the same partition key. Usage: set the SequenceNumberForOrdering of\n record n to the sequence number of record n-1\n (as returned in the result when putting record n-1). If this\n parameter is not set, records are coarsely ordered based on arrival time.

" } } }, "traits": { "smithy.api#documentation": "

Represents the input for PutRecord.

" } }, "com.amazonaws.kinesis#PutRecordOutput": { "type": "structure", "members": { "ShardId": { "target": "com.amazonaws.kinesis#ShardId", "traits": { "smithy.api#documentation": "

The shard ID of the shard where the data record was placed.

", "smithy.api#required": {} } }, "SequenceNumber": { "target": "com.amazonaws.kinesis#SequenceNumber", "traits": { "smithy.api#documentation": "

The sequence number identifier that was assigned to the put data record. The\n sequence number for the record is unique across all records in the stream. A sequence\n number is the identifier associated with every record put into the stream.

", "smithy.api#required": {} } }, "EncryptionType": { "target": "com.amazonaws.kinesis#EncryptionType", "traits": { "smithy.api#documentation": "

The encryption type to use on the record. This parameter can be one of the\n following values:

\n " } } }, "traits": { "smithy.api#documentation": "

Represents the output for PutRecord.

" } }, "com.amazonaws.kinesis#PutRecords": { "type": "operation", "input": { "target": "com.amazonaws.kinesis#PutRecordsInput" }, "output": { "target": "com.amazonaws.kinesis#PutRecordsOutput" }, "errors": [ { "target": "com.amazonaws.kinesis#InvalidArgumentException" }, { "target": "com.amazonaws.kinesis#KMSAccessDeniedException" }, { "target": "com.amazonaws.kinesis#KMSDisabledException" }, { "target": "com.amazonaws.kinesis#KMSInvalidStateException" }, { "target": "com.amazonaws.kinesis#KMSNotFoundException" }, { "target": "com.amazonaws.kinesis#KMSOptInRequired" }, { "target": "com.amazonaws.kinesis#KMSThrottlingException" }, { "target": "com.amazonaws.kinesis#ProvisionedThroughputExceededException" }, { "target": "com.amazonaws.kinesis#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Writes multiple data records into a Kinesis data stream in a single call (also\n referred to as a PutRecords request). Use this operation to send data into\n the stream for data ingestion and processing.

\n

Each PutRecords request can support up to 500 records. Each record in\n the request can be as large as 1 MiB, up to a limit of 5 MiB for the entire request,\n including partition keys. Each shard can support writes up to 1,000 records per second,\n up to a maximum data write total of 1 MiB per second.

\n

You must specify the name of the stream that captures, stores, and transports the\n data; and an array of request Records, with each record in the array\n requiring a partition key and data blob. The record size limit applies to the total size\n of the partition key and data blob.

\n

The data blob can be any type of data; for example, a segment from a log file,\n geographic/location data, website clickstream data, and so on.

\n

The partition key is used by Kinesis Data Streams as input to a hash function that\n maps the partition key and associated data to a specific shard. An MD5 hash function is\n used to map partition keys to 128-bit integer values and to map associated data records\n to shards. As a result of this hashing mechanism, all data records with the same\n partition key map to the same shard within the stream. For more information, see Adding Data to a Stream in the Amazon Kinesis Data Streams\n Developer Guide.

\n

Each record in the Records array may include an optional parameter,\n ExplicitHashKey, which overrides the partition key to shard mapping.\n This parameter allows a data producer to determine explicitly the shard where the record\n is stored. For more information, see Adding Multiple Records with PutRecords in the Amazon Kinesis\n Data Streams Developer Guide.

\n

The PutRecords response includes an array of response\n Records. Each record in the response array directly correlates with a\n record in the request array using natural ordering, from the top to the bottom of the\n request and response. The response Records array always includes the same\n number of records as the request array.

\n

The response Records array includes both successfully and\n unsuccessfully processed records. Kinesis Data Streams attempts to process all records\n in each PutRecords request. A single record failure does not stop the\n processing of subsequent records. As a result, PutRecords doesn't guarantee the ordering\n of records. If you need to read records in the same order they are written to the\n stream, use PutRecord instead of PutRecords, and write to\n the same shard.

\n

A successfully processed record includes ShardId and\n SequenceNumber values. The ShardId parameter identifies\n the shard in the stream where the record is stored. The SequenceNumber\n parameter is an identifier assigned to the put record, unique to all records in the\n stream.

\n

An unsuccessfully processed record includes ErrorCode and\n ErrorMessage values. ErrorCode reflects the type of error\n and can be one of the following values:\n ProvisionedThroughputExceededException or InternalFailure.\n ErrorMessage provides more detailed information about the\n ProvisionedThroughputExceededException exception including the account\n ID, stream name, and shard ID of the record that was throttled. For more information\n about partially successful responses, see Adding Multiple Records with PutRecords in the Amazon Kinesis\n Data Streams Developer Guide.

\n \n

After you write a record to a stream, you cannot modify that record or its order\n within the stream.

\n
\n

By default, data records are accessible for 24 hours from the time that they are\n added to a stream. You can use IncreaseStreamRetentionPeriod or DecreaseStreamRetentionPeriod to modify this retention period.

" } }, "com.amazonaws.kinesis#PutRecordsInput": { "type": "structure", "members": { "Records": { "target": "com.amazonaws.kinesis#PutRecordsRequestEntryList", "traits": { "smithy.api#documentation": "

The records associated with the request.

", "smithy.api#required": {} } }, "StreamName": { "target": "com.amazonaws.kinesis#StreamName", "traits": { "smithy.api#documentation": "

The stream name associated with the request.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

A PutRecords request.

" } }, "com.amazonaws.kinesis#PutRecordsOutput": { "type": "structure", "members": { "FailedRecordCount": { "target": "com.amazonaws.kinesis#PositiveIntegerObject", "traits": { "smithy.api#documentation": "

The number of unsuccessfully processed records in a PutRecords\n request.

" } }, "Records": { "target": "com.amazonaws.kinesis#PutRecordsResultEntryList", "traits": { "smithy.api#documentation": "

An array of successfully and unsuccessfully processed record results, correlated\n with the request by natural ordering. A record that is successfully added to a stream\n includes SequenceNumber and ShardId in the result. A record\n that fails to be added to a stream includes ErrorCode and\n ErrorMessage in the result.

", "smithy.api#required": {} } }, "EncryptionType": { "target": "com.amazonaws.kinesis#EncryptionType", "traits": { "smithy.api#documentation": "

The encryption type used on the records. This parameter can be one of the following\n values:

\n " } } }, "traits": { "smithy.api#documentation": "

\n PutRecords results.

" } }, "com.amazonaws.kinesis#PutRecordsRequestEntry": { "type": "structure", "members": { "Data": { "target": "com.amazonaws.kinesis#Data", "traits": { "smithy.api#documentation": "

The data blob to put into the record, which is base64-encoded when the blob is\n serialized. When the data blob (the payload before base64-encoding) is added to the\n partition key size, the total size must not exceed the maximum record size (1\n MiB).

", "smithy.api#required": {} } }, "ExplicitHashKey": { "target": "com.amazonaws.kinesis#HashKey", "traits": { "smithy.api#documentation": "

The hash value used to determine explicitly the shard that the data record is\n assigned to by overriding the partition key hash.

" } }, "PartitionKey": { "target": "com.amazonaws.kinesis#PartitionKey", "traits": { "smithy.api#documentation": "

Determines which shard in the stream the data record is assigned to. Partition keys\n are Unicode strings with a maximum length limit of 256 characters for each key. Amazon\n Kinesis Data Streams uses the partition key as input to a hash function that maps the\n partition key and associated data to a specific shard. Specifically, an MD5 hash\n function is used to map partition keys to 128-bit integer values and to map associated\n data records to shards. As a result of this hashing mechanism, all data records with the\n same partition key map to the same shard within the stream.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

Represents the output for PutRecords.

" } }, "com.amazonaws.kinesis#PutRecordsRequestEntryList": { "type": "list", "member": { "target": "com.amazonaws.kinesis#PutRecordsRequestEntry" }, "traits": { "smithy.api#length": { "min": 1, "max": 500 } } }, "com.amazonaws.kinesis#PutRecordsResultEntry": { "type": "structure", "members": { "SequenceNumber": { "target": "com.amazonaws.kinesis#SequenceNumber", "traits": { "smithy.api#documentation": "

The sequence number for an individual record result.

" } }, "ShardId": { "target": "com.amazonaws.kinesis#ShardId", "traits": { "smithy.api#documentation": "

The shard ID for an individual record result.

" } }, "ErrorCode": { "target": "com.amazonaws.kinesis#ErrorCode", "traits": { "smithy.api#documentation": "

The error code for an individual record result. ErrorCodes can be\n either ProvisionedThroughputExceededException or\n InternalFailure.

" } }, "ErrorMessage": { "target": "com.amazonaws.kinesis#ErrorMessage", "traits": { "smithy.api#documentation": "

The error message for an individual record result. An ErrorCode value\n of ProvisionedThroughputExceededException has an error message that\n includes the account ID, stream name, and shard ID. An ErrorCode value of\n InternalFailure has the error message \"Internal Service\n Failure\".

" } } }, "traits": { "smithy.api#documentation": "

Represents the result of an individual record from a PutRecords\n request. A record that is successfully added to a stream includes\n SequenceNumber and ShardId in the result. A record that\n fails to be added to the stream includes ErrorCode and\n ErrorMessage in the result.

" } }, "com.amazonaws.kinesis#PutRecordsResultEntryList": { "type": "list", "member": { "target": "com.amazonaws.kinesis#PutRecordsResultEntry" }, "traits": { "smithy.api#length": { "min": 1, "max": 500 } } }, "com.amazonaws.kinesis#Record": { "type": "structure", "members": { "SequenceNumber": { "target": "com.amazonaws.kinesis#SequenceNumber", "traits": { "smithy.api#documentation": "

The unique identifier of the record within its shard.

", "smithy.api#required": {} } }, "ApproximateArrivalTimestamp": { "target": "com.amazonaws.kinesis#Timestamp", "traits": { "smithy.api#documentation": "

The approximate time that the record was inserted into the stream.

" } }, "Data": { "target": "com.amazonaws.kinesis#Data", "traits": { "smithy.api#documentation": "

The data blob. The data in the blob is both opaque and immutable to Kinesis Data\n Streams, which does not inspect, interpret, or change the data in the blob in any way.\n When the data blob (the payload before base64-encoding) is added to the partition key\n size, the total size must not exceed the maximum record size (1 MiB).

", "smithy.api#required": {} } }, "PartitionKey": { "target": "com.amazonaws.kinesis#PartitionKey", "traits": { "smithy.api#documentation": "

Identifies which shard in the stream the data record is assigned to.

", "smithy.api#required": {} } }, "EncryptionType": { "target": "com.amazonaws.kinesis#EncryptionType", "traits": { "smithy.api#documentation": "

The encryption type used on the record. This parameter can be one of the following\n values:

\n " } } }, "traits": { "smithy.api#documentation": "

The unit of data of the Kinesis data stream, which is composed of a sequence\n number, a partition key, and a data blob.

" } }, "com.amazonaws.kinesis#RecordList": { "type": "list", "member": { "target": "com.amazonaws.kinesis#Record" } }, "com.amazonaws.kinesis#RegisterStreamConsumer": { "type": "operation", "input": { "target": "com.amazonaws.kinesis#RegisterStreamConsumerInput" }, "output": { "target": "com.amazonaws.kinesis#RegisterStreamConsumerOutput" }, "errors": [ { "target": "com.amazonaws.kinesis#InvalidArgumentException" }, { "target": "com.amazonaws.kinesis#LimitExceededException" }, { "target": "com.amazonaws.kinesis#ResourceInUseException" }, { "target": "com.amazonaws.kinesis#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Registers a consumer with a Kinesis data stream. When you use this operation, the\n consumer you register can then call SubscribeToShard to receive data\n from the stream using enhanced fan-out, at a rate of up to 2 MiB per second for every\n shard you subscribe to. This rate is unaffected by the total number of consumers that\n read from the same stream.

\n

You can register up to 20 consumers per stream. A given consumer can only be\n registered with one stream at a time.

\n

For an example of how to use this operations, see Enhanced Fan-Out\n Using the Kinesis Data Streams API.

\n

The use of this operation has a limit of five transactions per second per account.\n Also, only 5 consumers can be created simultaneously. In other words, you cannot have\n more than 5 consumers in a CREATING status at the same time. Registering a\n 6th consumer while there are 5 in a CREATING status results in a\n LimitExceededException.

" } }, "com.amazonaws.kinesis#RegisterStreamConsumerInput": { "type": "structure", "members": { "StreamARN": { "target": "com.amazonaws.kinesis#StreamARN", "traits": { "smithy.api#documentation": "

The ARN of the Kinesis data stream that you want to register the consumer with. For\n more info, see Amazon Resource Names (ARNs) and AWS Service Namespaces.

", "smithy.api#required": {} } }, "ConsumerName": { "target": "com.amazonaws.kinesis#ConsumerName", "traits": { "smithy.api#documentation": "

For a given Kinesis data stream, each consumer must have a unique name. However,\n consumer names don't have to be unique across data streams.

", "smithy.api#required": {} } } } }, "com.amazonaws.kinesis#RegisterStreamConsumerOutput": { "type": "structure", "members": { "Consumer": { "target": "com.amazonaws.kinesis#Consumer", "traits": { "smithy.api#documentation": "

An object that represents the details of the consumer you registered. When you\n register a consumer, it gets an ARN that is generated by Kinesis Data Streams.

", "smithy.api#required": {} } } } }, "com.amazonaws.kinesis#RemoveTagsFromStream": { "type": "operation", "input": { "target": "com.amazonaws.kinesis#RemoveTagsFromStreamInput" }, "errors": [ { "target": "com.amazonaws.kinesis#InvalidArgumentException" }, { "target": "com.amazonaws.kinesis#LimitExceededException" }, { "target": "com.amazonaws.kinesis#ResourceInUseException" }, { "target": "com.amazonaws.kinesis#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Removes tags from the specified Kinesis data stream. Removed tags are deleted and\n cannot be recovered after this operation successfully completes.

\n

If you specify a tag that does not exist, it is ignored.

\n

\n RemoveTagsFromStream has a limit of five transactions per second per\n account.

" } }, "com.amazonaws.kinesis#RemoveTagsFromStreamInput": { "type": "structure", "members": { "StreamName": { "target": "com.amazonaws.kinesis#StreamName", "traits": { "smithy.api#documentation": "

The name of the stream.

", "smithy.api#required": {} } }, "TagKeys": { "target": "com.amazonaws.kinesis#TagKeyList", "traits": { "smithy.api#documentation": "

A list of tag keys. Each corresponding tag is removed from the stream.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

Represents the input for RemoveTagsFromStream.

" } }, "com.amazonaws.kinesis#ResourceInUseException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.kinesis#ErrorMessage", "traits": { "smithy.api#documentation": "

A message that provides information about the error.

" } } }, "traits": { "smithy.api#documentation": "

The resource is not available for this operation. For successful operation, the\n resource must be in the ACTIVE state.

", "smithy.api#error": "client" } }, "com.amazonaws.kinesis#ResourceNotFoundException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.kinesis#ErrorMessage", "traits": { "smithy.api#documentation": "

A message that provides information about the error.

" } } }, "traits": { "smithy.api#documentation": "

The requested resource could not be found. The stream might not be specified\n correctly.

", "smithy.api#error": "client" } }, "com.amazonaws.kinesis#RetentionPeriodHours": { "type": "integer", "traits": { "smithy.api#box": {} } }, "com.amazonaws.kinesis#ScalingType": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "UNIFORM_SCALING", "name": "UNIFORM_SCALING" } ] } }, "com.amazonaws.kinesis#SequenceNumber": { "type": "string", "traits": { "smithy.api#pattern": "0|([1-9]\\d{0,128})" } }, "com.amazonaws.kinesis#SequenceNumberRange": { "type": "structure", "members": { "StartingSequenceNumber": { "target": "com.amazonaws.kinesis#SequenceNumber", "traits": { "smithy.api#documentation": "

The starting sequence number for the range.

", "smithy.api#required": {} } }, "EndingSequenceNumber": { "target": "com.amazonaws.kinesis#SequenceNumber", "traits": { "smithy.api#documentation": "

The ending sequence number for the range. Shards that are in the OPEN state have an\n ending sequence number of null.

" } } }, "traits": { "smithy.api#documentation": "

The range of possible sequence numbers for the shard.

" } }, "com.amazonaws.kinesis#Shard": { "type": "structure", "members": { "ShardId": { "target": "com.amazonaws.kinesis#ShardId", "traits": { "smithy.api#documentation": "

The unique identifier of the shard within the stream.

", "smithy.api#required": {} } }, "ParentShardId": { "target": "com.amazonaws.kinesis#ShardId", "traits": { "smithy.api#documentation": "

The shard ID of the shard's parent.

" } }, "AdjacentParentShardId": { "target": "com.amazonaws.kinesis#ShardId", "traits": { "smithy.api#documentation": "

The shard ID of the shard adjacent to the shard's parent.

" } }, "HashKeyRange": { "target": "com.amazonaws.kinesis#HashKeyRange", "traits": { "smithy.api#documentation": "

The range of possible hash key values for the shard, which is a set of ordered\n contiguous positive integers.

", "smithy.api#required": {} } }, "SequenceNumberRange": { "target": "com.amazonaws.kinesis#SequenceNumberRange", "traits": { "smithy.api#documentation": "

The range of possible sequence numbers for the shard.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

A uniquely identified group of data records in a Kinesis data stream.

" } }, "com.amazonaws.kinesis#ShardCountObject": { "type": "integer", "traits": { "smithy.api#box": {}, "smithy.api#range": { "min": 0, "max": 1000000 } } }, "com.amazonaws.kinesis#ShardFilter": { "type": "structure", "members": { "Type": { "target": "com.amazonaws.kinesis#ShardFilterType", "traits": { "smithy.api#required": {} } }, "ShardId": { "target": "com.amazonaws.kinesis#ShardId" }, "Timestamp": { "target": "com.amazonaws.kinesis#Timestamp" } } }, "com.amazonaws.kinesis#ShardFilterType": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "AFTER_SHARD_ID", "name": "AFTER_SHARD_ID" }, { "value": "AT_TRIM_HORIZON", "name": "AT_TRIM_HORIZON" }, { "value": "FROM_TRIM_HORIZON", "name": "FROM_TRIM_HORIZON" }, { "value": "AT_LATEST", "name": "AT_LATEST" }, { "value": "AT_TIMESTAMP", "name": "AT_TIMESTAMP" }, { "value": "FROM_TIMESTAMP", "name": "FROM_TIMESTAMP" } ] } }, "com.amazonaws.kinesis#ShardId": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 128 }, "smithy.api#pattern": "[a-zA-Z0-9_.-]+" } }, "com.amazonaws.kinesis#ShardIdList": { "type": "list", "member": { "target": "com.amazonaws.kinesis#ShardId" } }, "com.amazonaws.kinesis#ShardIterator": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 512 } } }, "com.amazonaws.kinesis#ShardIteratorType": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "AT_SEQUENCE_NUMBER", "name": "AT_SEQUENCE_NUMBER" }, { "value": "AFTER_SEQUENCE_NUMBER", "name": "AFTER_SEQUENCE_NUMBER" }, { "value": "TRIM_HORIZON", "name": "TRIM_HORIZON" }, { "value": "LATEST", "name": "LATEST" }, { "value": "AT_TIMESTAMP", "name": "AT_TIMESTAMP" } ] } }, "com.amazonaws.kinesis#ShardList": { "type": "list", "member": { "target": "com.amazonaws.kinesis#Shard" } }, "com.amazonaws.kinesis#SplitShard": { "type": "operation", "input": { "target": "com.amazonaws.kinesis#SplitShardInput" }, "errors": [ { "target": "com.amazonaws.kinesis#InvalidArgumentException" }, { "target": "com.amazonaws.kinesis#LimitExceededException" }, { "target": "com.amazonaws.kinesis#ResourceInUseException" }, { "target": "com.amazonaws.kinesis#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Splits a shard into two new shards in the Kinesis data stream, to increase the\n stream's capacity to ingest and transport data. SplitShard is called when\n there is a need to increase the overall capacity of a stream because of an expected\n increase in the volume of data records being ingested.

\n

You can also use SplitShard when a shard appears to be approaching its\n maximum utilization; for example, the producers sending data into the specific shard are\n suddenly sending more than previously anticipated. You can also call\n SplitShard to increase stream capacity, so that more Kinesis Data\n Streams applications can simultaneously read data from the stream for real-time\n processing.

\n

You must specify the shard to be split and the new hash key, which is the position\n in the shard where the shard gets split in two. In many cases, the new hash key might be\n the average of the beginning and ending hash key, but it can be any hash key value in\n the range being mapped into the shard. For more information, see Split a\n Shard in the Amazon Kinesis Data Streams Developer\n Guide.

\n

You can use DescribeStream to determine the shard ID and hash key\n values for the ShardToSplit and NewStartingHashKey parameters\n that are specified in the SplitShard request.

\n

\n SplitShard is an asynchronous operation. Upon receiving a\n SplitShard request, Kinesis Data Streams immediately returns a response\n and sets the stream status to UPDATING. After the operation is completed,\n Kinesis Data Streams sets the stream status to ACTIVE. Read and write\n operations continue to work while the stream is in the UPDATING state.

\n

You can use DescribeStream to check the status of the stream, which is\n returned in StreamStatus. If the stream is in the ACTIVE\n state, you can call SplitShard. If a stream is in CREATING or\n UPDATING or DELETING states, DescribeStream\n returns a ResourceInUseException.

\n

If the specified stream does not exist, DescribeStream returns a\n ResourceNotFoundException. If you try to create more shards than are\n authorized for your account, you receive a LimitExceededException.

\n

For the default shard limit for an AWS account, see Kinesis Data Streams\n Limits in the Amazon Kinesis Data Streams Developer\n Guide. To increase this limit, contact AWS\n Support.

\n

If you try to operate on too many streams simultaneously using CreateStream, DeleteStream, MergeShards, and/or SplitShard, you receive a\n LimitExceededException.

\n

\n SplitShard has a limit of five transactions per second per\n account.

" } }, "com.amazonaws.kinesis#SplitShardInput": { "type": "structure", "members": { "StreamName": { "target": "com.amazonaws.kinesis#StreamName", "traits": { "smithy.api#documentation": "

The name of the stream for the shard split.

", "smithy.api#required": {} } }, "ShardToSplit": { "target": "com.amazonaws.kinesis#ShardId", "traits": { "smithy.api#documentation": "

The shard ID of the shard to split.

", "smithy.api#required": {} } }, "NewStartingHashKey": { "target": "com.amazonaws.kinesis#HashKey", "traits": { "smithy.api#documentation": "

A hash key value for the starting hash key of one of the child shards created by\n the split. The hash key range for a given shard constitutes a set of ordered contiguous\n positive integers. The value for NewStartingHashKey must be in the range of\n hash keys being mapped into the shard. The NewStartingHashKey hash key\n value and all higher hash key values in hash key range are distributed to one of the\n child shards. All the lower hash key values in the range are distributed to the other\n child shard.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

Represents the input for SplitShard.

" } }, "com.amazonaws.kinesis#StartStreamEncryption": { "type": "operation", "input": { "target": "com.amazonaws.kinesis#StartStreamEncryptionInput" }, "errors": [ { "target": "com.amazonaws.kinesis#InvalidArgumentException" }, { "target": "com.amazonaws.kinesis#KMSAccessDeniedException" }, { "target": "com.amazonaws.kinesis#KMSDisabledException" }, { "target": "com.amazonaws.kinesis#KMSInvalidStateException" }, { "target": "com.amazonaws.kinesis#KMSNotFoundException" }, { "target": "com.amazonaws.kinesis#KMSOptInRequired" }, { "target": "com.amazonaws.kinesis#KMSThrottlingException" }, { "target": "com.amazonaws.kinesis#LimitExceededException" }, { "target": "com.amazonaws.kinesis#ResourceInUseException" }, { "target": "com.amazonaws.kinesis#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Enables or updates server-side encryption using an AWS KMS key for a specified\n stream.

\n

Starting encryption is an asynchronous operation. Upon receiving the request,\n Kinesis Data Streams returns immediately and sets the status of the stream to\n UPDATING. After the update is complete, Kinesis Data Streams sets the\n status of the stream back to ACTIVE. Updating or applying encryption\n normally takes a few seconds to complete, but it can take minutes. You can continue to\n read and write data to your stream while its status is UPDATING. Once the\n status of the stream is ACTIVE, encryption begins for records written to\n the stream.

\n

API Limits: You can successfully apply a new AWS KMS key for server-side encryption\n 25 times in a rolling 24-hour period.

\n

Note: It can take up to 5 seconds after the stream is in an ACTIVE\n status before all records written to the stream are encrypted. After you enable\n encryption, you can verify that encryption is applied by inspecting the API response\n from PutRecord or PutRecords.

" } }, "com.amazonaws.kinesis#StartStreamEncryptionInput": { "type": "structure", "members": { "StreamName": { "target": "com.amazonaws.kinesis#StreamName", "traits": { "smithy.api#documentation": "

The name of the stream for which to start encrypting records.

", "smithy.api#required": {} } }, "EncryptionType": { "target": "com.amazonaws.kinesis#EncryptionType", "traits": { "smithy.api#documentation": "

The encryption type to use. The only valid value is KMS.

", "smithy.api#required": {} } }, "KeyId": { "target": "com.amazonaws.kinesis#KeyId", "traits": { "smithy.api#documentation": "

The GUID for the customer-managed AWS KMS key to use for encryption. This value can\n be a globally unique identifier, a fully specified Amazon Resource Name (ARN) to either\n an alias or a key, or an alias name prefixed by \"alias/\".You can also use a master key\n owned by Kinesis Data Streams by specifying the alias\n aws/kinesis.

\n ", "smithy.api#required": {} } } } }, "com.amazonaws.kinesis#StartingPosition": { "type": "structure", "members": { "Type": { "target": "com.amazonaws.kinesis#ShardIteratorType", "traits": { "smithy.api#documentation": "

You can set the starting position to one of the following values:

\n

\n AT_SEQUENCE_NUMBER: Start streaming from the position denoted by the\n sequence number specified in the SequenceNumber field.

\n

\n AFTER_SEQUENCE_NUMBER: Start streaming right after the position denoted\n by the sequence number specified in the SequenceNumber field.

\n

\n AT_TIMESTAMP: Start streaming from the position denoted by the time stamp\n specified in the Timestamp field.

\n

\n TRIM_HORIZON: Start streaming at the last untrimmed record in the shard,\n which is the oldest data record in the shard.

\n

\n LATEST: Start streaming just after the most recent record in the shard,\n so that you always read the most recent data in the shard.

", "smithy.api#required": {} } }, "SequenceNumber": { "target": "com.amazonaws.kinesis#SequenceNumber", "traits": { "smithy.api#documentation": "

The sequence number of the data record in the shard from which to start streaming. To\n specify a sequence number, set StartingPosition to\n AT_SEQUENCE_NUMBER or AFTER_SEQUENCE_NUMBER.

" } }, "Timestamp": { "target": "com.amazonaws.kinesis#Timestamp", "traits": { "smithy.api#documentation": "

The time stamp of the data record from which to start reading. To specify a time\n stamp, set StartingPosition to Type AT_TIMESTAMP. A time stamp\n is the Unix epoch date with precision in milliseconds. For example,\n 2016-04-04T19:58:46.480-00:00 or 1459799926.480. If a\n record with this exact time stamp does not exist, records will be streamed from the next\n (later) record. If the time stamp is older than the current trim horizon, records will\n be streamed from the oldest untrimmed data record (TRIM_HORIZON).

" } } }, "traits": { "smithy.api#documentation": "

" } }, "com.amazonaws.kinesis#StopStreamEncryption": { "type": "operation", "input": { "target": "com.amazonaws.kinesis#StopStreamEncryptionInput" }, "errors": [ { "target": "com.amazonaws.kinesis#InvalidArgumentException" }, { "target": "com.amazonaws.kinesis#LimitExceededException" }, { "target": "com.amazonaws.kinesis#ResourceInUseException" }, { "target": "com.amazonaws.kinesis#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Disables server-side encryption for a specified stream.

\n

Stopping encryption is an asynchronous operation. Upon receiving the request,\n Kinesis Data Streams returns immediately and sets the status of the stream to\n UPDATING. After the update is complete, Kinesis Data Streams sets the\n status of the stream back to ACTIVE. Stopping encryption normally takes a\n few seconds to complete, but it can take minutes. You can continue to read and write\n data to your stream while its status is UPDATING. Once the status of the\n stream is ACTIVE, records written to the stream are no longer encrypted by\n Kinesis Data Streams.

\n

API Limits: You can successfully disable server-side encryption 25 times in a\n rolling 24-hour period.

\n

Note: It can take up to 5 seconds after the stream is in an ACTIVE\n status before all records written to the stream are no longer subject to encryption.\n After you disabled encryption, you can verify that encryption is not applied by\n inspecting the API response from PutRecord or\n PutRecords.

" } }, "com.amazonaws.kinesis#StopStreamEncryptionInput": { "type": "structure", "members": { "StreamName": { "target": "com.amazonaws.kinesis#StreamName", "traits": { "smithy.api#documentation": "

The name of the stream on which to stop encrypting records.

", "smithy.api#required": {} } }, "EncryptionType": { "target": "com.amazonaws.kinesis#EncryptionType", "traits": { "smithy.api#documentation": "

The encryption type. The only valid value is KMS.

", "smithy.api#required": {} } }, "KeyId": { "target": "com.amazonaws.kinesis#KeyId", "traits": { "smithy.api#documentation": "

The GUID for the customer-managed AWS KMS key to use for encryption. This value can\n be a globally unique identifier, a fully specified Amazon Resource Name (ARN) to either\n an alias or a key, or an alias name prefixed by \"alias/\".You can also use a master key\n owned by Kinesis Data Streams by specifying the alias\n aws/kinesis.

\n ", "smithy.api#required": {} } } } }, "com.amazonaws.kinesis#StreamARN": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 2048 }, "smithy.api#pattern": "arn:aws.*:kinesis:.*:\\d{12}:stream/.+" } }, "com.amazonaws.kinesis#StreamDescription": { "type": "structure", "members": { "StreamName": { "target": "com.amazonaws.kinesis#StreamName", "traits": { "smithy.api#documentation": "

The name of the stream being described.

", "smithy.api#required": {} } }, "StreamARN": { "target": "com.amazonaws.kinesis#StreamARN", "traits": { "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the stream being described.

", "smithy.api#required": {} } }, "StreamStatus": { "target": "com.amazonaws.kinesis#StreamStatus", "traits": { "smithy.api#documentation": "

The current status of the stream being described. The stream status is one of the\n following states:

\n ", "smithy.api#required": {} } }, "Shards": { "target": "com.amazonaws.kinesis#ShardList", "traits": { "smithy.api#documentation": "

The shards that comprise the stream.

", "smithy.api#required": {} } }, "HasMoreShards": { "target": "com.amazonaws.kinesis#BooleanObject", "traits": { "smithy.api#documentation": "

If set to true, more shards in the stream are available to\n describe.

", "smithy.api#required": {} } }, "RetentionPeriodHours": { "target": "com.amazonaws.kinesis#RetentionPeriodHours", "traits": { "smithy.api#documentation": "

The current retention period, in hours. Minimum value of 24. Maximum value of\n 168.

", "smithy.api#required": {} } }, "StreamCreationTimestamp": { "target": "com.amazonaws.kinesis#Timestamp", "traits": { "smithy.api#documentation": "

The approximate time that the stream was created.

", "smithy.api#required": {} } }, "EnhancedMonitoring": { "target": "com.amazonaws.kinesis#EnhancedMonitoringList", "traits": { "smithy.api#documentation": "

Represents the current enhanced monitoring settings of the stream.

", "smithy.api#required": {} } }, "EncryptionType": { "target": "com.amazonaws.kinesis#EncryptionType", "traits": { "smithy.api#documentation": "

The server-side encryption type used on the stream. This parameter can be one of\n the following values:

\n " } }, "KeyId": { "target": "com.amazonaws.kinesis#KeyId", "traits": { "smithy.api#documentation": "

The GUID for the customer-managed AWS KMS key to use for encryption. This value can\n be a globally unique identifier, a fully specified ARN to either an alias or a key, or\n an alias name prefixed by \"alias/\".You can also use a master key owned by Kinesis Data\n Streams by specifying the alias aws/kinesis.

\n " } } }, "traits": { "smithy.api#documentation": "

Represents the output for DescribeStream.

" } }, "com.amazonaws.kinesis#StreamDescriptionSummary": { "type": "structure", "members": { "StreamName": { "target": "com.amazonaws.kinesis#StreamName", "traits": { "smithy.api#documentation": "

The name of the stream being described.

", "smithy.api#required": {} } }, "StreamARN": { "target": "com.amazonaws.kinesis#StreamARN", "traits": { "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the stream being described.

", "smithy.api#required": {} } }, "StreamStatus": { "target": "com.amazonaws.kinesis#StreamStatus", "traits": { "smithy.api#documentation": "

The current status of the stream being described. The stream status is one of the\n following states:

\n ", "smithy.api#required": {} } }, "RetentionPeriodHours": { "target": "com.amazonaws.kinesis#RetentionPeriodHours", "traits": { "smithy.api#documentation": "

The current retention period, in hours.

", "smithy.api#required": {} } }, "StreamCreationTimestamp": { "target": "com.amazonaws.kinesis#Timestamp", "traits": { "smithy.api#documentation": "

The approximate time that the stream was created.

", "smithy.api#required": {} } }, "EnhancedMonitoring": { "target": "com.amazonaws.kinesis#EnhancedMonitoringList", "traits": { "smithy.api#documentation": "

Represents the current enhanced monitoring settings of the stream.

", "smithy.api#required": {} } }, "EncryptionType": { "target": "com.amazonaws.kinesis#EncryptionType", "traits": { "smithy.api#documentation": "

The encryption type used. This value is one of the following:

\n " } }, "KeyId": { "target": "com.amazonaws.kinesis#KeyId", "traits": { "smithy.api#documentation": "

The GUID for the customer-managed AWS KMS key to use for encryption. This value can\n be a globally unique identifier, a fully specified ARN to either an alias or a key, or\n an alias name prefixed by \"alias/\".You can also use a master key owned by Kinesis Data\n Streams by specifying the alias aws/kinesis.

\n " } }, "OpenShardCount": { "target": "com.amazonaws.kinesis#ShardCountObject", "traits": { "smithy.api#documentation": "

The number of open shards in the stream.

", "smithy.api#required": {} } }, "ConsumerCount": { "target": "com.amazonaws.kinesis#ConsumerCountObject", "traits": { "smithy.api#documentation": "

The number of enhanced fan-out consumers registered with the stream.

" } } }, "traits": { "smithy.api#documentation": "

Represents the output for DescribeStreamSummary\n

" } }, "com.amazonaws.kinesis#StreamName": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 128 }, "smithy.api#pattern": "[a-zA-Z0-9_.-]+" } }, "com.amazonaws.kinesis#StreamNameList": { "type": "list", "member": { "target": "com.amazonaws.kinesis#StreamName" } }, "com.amazonaws.kinesis#StreamStatus": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "CREATING", "name": "CREATING" }, { "value": "DELETING", "name": "DELETING" }, { "value": "ACTIVE", "name": "ACTIVE" }, { "value": "UPDATING", "name": "UPDATING" } ] } }, "com.amazonaws.kinesis#SubscribeToShard": { "type": "operation", "input": { "target": "com.amazonaws.kinesis#SubscribeToShardInput" }, "output": { "target": "com.amazonaws.kinesis#SubscribeToShardOutput" }, "errors": [ { "target": "com.amazonaws.kinesis#InvalidArgumentException" }, { "target": "com.amazonaws.kinesis#LimitExceededException" }, { "target": "com.amazonaws.kinesis#ResourceInUseException" }, { "target": "com.amazonaws.kinesis#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

This operation establishes an HTTP/2 connection between the consumer you specify in\n the ConsumerARN parameter and the shard you specify in the\n ShardId parameter. After the connection is successfully established,\n Kinesis Data Streams pushes records from the shard to the consumer over this connection.\n Before you call this operation, call RegisterStreamConsumer to\n register the consumer with Kinesis Data Streams.

\n

When the SubscribeToShard call succeeds, your consumer starts receiving\n events of type SubscribeToShardEvent over the HTTP/2 connection for up\n to 5 minutes, after which time you need to call SubscribeToShard again to\n renew the subscription if you want to continue to receive records.

\n

You can make one call to SubscribeToShard per second per registered\n consumer per shard. For example, if you have a 4000 shard stream and two registered\n stream consumers, you can make one SubscribeToShard request per second for\n each combination of shard and registered consumer, allowing you to subscribe both\n consumers to all 4000 shards in one second.

\n

If you call SubscribeToShard again with the same ConsumerARN\n and ShardId within 5 seconds of a successful call, you'll get a\n ResourceInUseException. If you call SubscribeToShard 5\n seconds or more after a successful call, the first connection will expire and the second\n call will take over the subscription.

\n

For an example of how to use this operations, see Enhanced Fan-Out\n Using the Kinesis Data Streams API.

" } }, "com.amazonaws.kinesis#SubscribeToShardEvent": { "type": "structure", "members": { "Records": { "target": "com.amazonaws.kinesis#RecordList", "traits": { "smithy.api#documentation": "

", "smithy.api#required": {} } }, "ContinuationSequenceNumber": { "target": "com.amazonaws.kinesis#SequenceNumber", "traits": { "smithy.api#documentation": "

Use this as SequenceNumber in the next call to SubscribeToShard, with StartingPosition set to\n AT_SEQUENCE_NUMBER or AFTER_SEQUENCE_NUMBER. Use\n ContinuationSequenceNumber for checkpointing because it captures your\n shard progress even when no data is written to the shard.

", "smithy.api#required": {} } }, "MillisBehindLatest": { "target": "com.amazonaws.kinesis#MillisBehindLatest", "traits": { "smithy.api#documentation": "

The number of milliseconds the read records are from the tip of the stream, indicating\n how far behind current time the consumer is. A value of zero indicates that record\n processing is caught up, and there are no new records to process at this moment.

", "smithy.api#required": {} } }, "ChildShards": { "target": "com.amazonaws.kinesis#ChildShardList" } }, "traits": { "smithy.api#documentation": "

After you call SubscribeToShard, Kinesis Data Streams sends events\n of this type over an HTTP/2 connection to your consumer.

" } }, "com.amazonaws.kinesis#SubscribeToShardEventStream": { "type": "union", "members": { "SubscribeToShardEvent": { "target": "com.amazonaws.kinesis#SubscribeToShardEvent", "traits": { "smithy.api#documentation": "

After you call SubscribeToShard, Kinesis Data Streams sends events\n of this type to your consumer. For an example of how to handle these events, see Enhanced Fan-Out\n Using the Kinesis Data Streams API.

" } }, "ResourceNotFoundException": { "target": "com.amazonaws.kinesis#ResourceNotFoundException" }, "ResourceInUseException": { "target": "com.amazonaws.kinesis#ResourceInUseException" }, "KMSDisabledException": { "target": "com.amazonaws.kinesis#KMSDisabledException" }, "KMSInvalidStateException": { "target": "com.amazonaws.kinesis#KMSInvalidStateException" }, "KMSAccessDeniedException": { "target": "com.amazonaws.kinesis#KMSAccessDeniedException" }, "KMSNotFoundException": { "target": "com.amazonaws.kinesis#KMSNotFoundException" }, "KMSOptInRequired": { "target": "com.amazonaws.kinesis#KMSOptInRequired" }, "KMSThrottlingException": { "target": "com.amazonaws.kinesis#KMSThrottlingException" }, "InternalFailureException": { "target": "com.amazonaws.kinesis#InternalFailureException", "traits": { "smithy.api#documentation": "

The processing of the request failed because of an unknown error, exception, or\n failure.

" } } }, "traits": { "smithy.api#documentation": "

This is a tagged union for all of the types of events an enhanced fan-out consumer can\n receive over HTTP/2 after a call to SubscribeToShard.

", "smithy.api#streaming": {} } }, "com.amazonaws.kinesis#SubscribeToShardInput": { "type": "structure", "members": { "ConsumerARN": { "target": "com.amazonaws.kinesis#ConsumerARN", "traits": { "smithy.api#documentation": "

For this parameter, use the value you obtained when you called RegisterStreamConsumer.

", "smithy.api#required": {} } }, "ShardId": { "target": "com.amazonaws.kinesis#ShardId", "traits": { "smithy.api#documentation": "

The ID of the shard you want to subscribe to. To see a list of all the shards for a\n given stream, use ListShards.

", "smithy.api#required": {} } }, "StartingPosition": { "target": "com.amazonaws.kinesis#StartingPosition", "traits": { "smithy.api#documentation": "

", "smithy.api#required": {} } } } }, "com.amazonaws.kinesis#SubscribeToShardOutput": { "type": "structure", "members": { "EventStream": { "target": "com.amazonaws.kinesis#SubscribeToShardEventStream", "traits": { "smithy.api#documentation": "

The event stream that your consumer can use to read records from the shard.

", "smithy.api#required": {} } } } }, "com.amazonaws.kinesis#Tag": { "type": "structure", "members": { "Key": { "target": "com.amazonaws.kinesis#TagKey", "traits": { "smithy.api#documentation": "

A unique identifier for the tag. Maximum length: 128 characters. Valid characters:\n Unicode letters, digits, white space, _ . / = + - % @

", "smithy.api#required": {} } }, "Value": { "target": "com.amazonaws.kinesis#TagValue", "traits": { "smithy.api#documentation": "

An optional string, typically used to describe or define the tag. Maximum length:\n 256 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - %\n @

" } } }, "traits": { "smithy.api#documentation": "

Metadata assigned to the stream, consisting of a key-value pair.

" } }, "com.amazonaws.kinesis#TagKey": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 128 } } }, "com.amazonaws.kinesis#TagKeyList": { "type": "list", "member": { "target": "com.amazonaws.kinesis#TagKey" }, "traits": { "smithy.api#length": { "min": 1, "max": 50 } } }, "com.amazonaws.kinesis#TagList": { "type": "list", "member": { "target": "com.amazonaws.kinesis#Tag" }, "traits": { "smithy.api#length": { "min": 0, "max": 200 } } }, "com.amazonaws.kinesis#TagMap": { "type": "map", "key": { "target": "com.amazonaws.kinesis#TagKey" }, "value": { "target": "com.amazonaws.kinesis#TagValue" }, "traits": { "smithy.api#length": { "min": 1, "max": 200 } } }, "com.amazonaws.kinesis#TagValue": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 256 } } }, "com.amazonaws.kinesis#Timestamp": { "type": "timestamp" }, "com.amazonaws.kinesis#UpdateShardCount": { "type": "operation", "input": { "target": "com.amazonaws.kinesis#UpdateShardCountInput" }, "output": { "target": "com.amazonaws.kinesis#UpdateShardCountOutput" }, "errors": [ { "target": "com.amazonaws.kinesis#InvalidArgumentException" }, { "target": "com.amazonaws.kinesis#LimitExceededException" }, { "target": "com.amazonaws.kinesis#ResourceInUseException" }, { "target": "com.amazonaws.kinesis#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Updates the shard count of the specified stream to the specified number of\n shards.

\n

Updating the shard count is an asynchronous operation. Upon receiving the request,\n Kinesis Data Streams returns immediately and sets the status of the stream to\n UPDATING. After the update is complete, Kinesis Data Streams sets the\n status of the stream back to ACTIVE. Depending on the size of the stream,\n the scaling action could take a few minutes to complete. You can continue to read and\n write data to your stream while its status is UPDATING.

\n

To update the shard count, Kinesis Data Streams performs splits or merges on\n individual shards. This can cause short-lived shards to be created, in addition to the\n final shards. These short-lived shards count towards your total shard limit for your\n account in the Region.

\n

When using this operation, we recommend that you specify a target shard count that\n is a multiple of 25% (25%, 50%, 75%, 100%). You can specify any target value within your\n shard limit. However, if you specify a target that isn't a multiple of 25%, the scaling\n action might take longer to complete.

\n

This operation has the following default limits. By default, you cannot do the\n following:

\n \n

For the default limits for an AWS account, see Streams Limits in the\n Amazon Kinesis Data Streams Developer Guide. To request an\n increase in the call rate limit, the shard limit for this API, or your overall shard\n limit, use the limits form.

" } }, "com.amazonaws.kinesis#UpdateShardCountInput": { "type": "structure", "members": { "StreamName": { "target": "com.amazonaws.kinesis#StreamName", "traits": { "smithy.api#documentation": "

The name of the stream.

", "smithy.api#required": {} } }, "TargetShardCount": { "target": "com.amazonaws.kinesis#PositiveIntegerObject", "traits": { "smithy.api#documentation": "

The new number of shards. This value has the following default limits. By default,\n you cannot do the following:

\n ", "smithy.api#required": {} } }, "ScalingType": { "target": "com.amazonaws.kinesis#ScalingType", "traits": { "smithy.api#documentation": "

The scaling type. Uniform scaling creates shards of equal size.

", "smithy.api#required": {} } } } }, "com.amazonaws.kinesis#UpdateShardCountOutput": { "type": "structure", "members": { "StreamName": { "target": "com.amazonaws.kinesis#StreamName", "traits": { "smithy.api#documentation": "

The name of the stream.

" } }, "CurrentShardCount": { "target": "com.amazonaws.kinesis#PositiveIntegerObject", "traits": { "smithy.api#documentation": "

The current number of shards.

" } }, "TargetShardCount": { "target": "com.amazonaws.kinesis#PositiveIntegerObject", "traits": { "smithy.api#documentation": "

The updated number of shards.

" } } } } } }