aws-sdk-kinesis 1.26.0 → 1.27.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d48234542712cc8262bc84a6e99d5fc63718dc73b10d9d26ae94163fbfdd287
4
- data.tar.gz: 12b02c7cdf294a802f3ee54a953e6af4cffcaf1b4b347426cc8e9d5dbdfa7af2
3
+ metadata.gz: 402a2a96aba832c9e8b4df7f5619665770e471603260951ddcca0be5c4ecddad
4
+ data.tar.gz: dfa0a56f52c7e5ff3b8992c608b70bf2f0bbfe8e51bfd34ba5c6bcdfc4513734
5
5
  SHA512:
6
- metadata.gz: b08a5649b563e496585c8e43c76ded5ecbbe01e1102439a23b21971be70c51c2fc3a4087b60d3ec2eb3f6013762886d5275b0bba8123ada45a94937a0783f071
7
- data.tar.gz: be1f5a8d907a3ac3003ace463494cec2d5e46274dc1613ff0094f38f53b60bad083f3c58470a716b085c4f9cc7d8abf0fddeb08c9d7dfe96a964632f50b01a45
6
+ metadata.gz: fc909f9743f05544980d2ec71883265543b26e28c9cbf0ed0e6d2930f1734ee3f44f3063f808c550f4f99add4c7872f06c2b363d7357d629c48de220fcb28506
7
+ data.tar.gz: c7da65816c05722c6d6d25234cdc67df1f4f03075cfc17622c35378a493baf4c065103da2b62244fa9a99c6825bab0fa8a9fc51a908be32616b52507c97d72c6
@@ -50,6 +50,6 @@ require_relative 'aws-sdk-kinesis/event_streams'
50
50
  # @service
51
51
  module Aws::Kinesis
52
52
 
53
- GEM_VERSION = '1.26.0'
53
+ GEM_VERSION = '1.27.0'
54
54
 
55
55
  end
@@ -232,19 +232,36 @@ module Aws::Kinesis
232
232
 
233
233
  # @!group API Operations
234
234
 
235
- # Call this operation from your consumer after you call
235
+ # This operation establishes an HTTP/2 connection between the consumer
236
+ # you specify in the `ConsumerARN` parameter and the shard you specify
237
+ # in the `ShardId` parameter. After the connection is successfully
238
+ # established, Kinesis Data Streams pushes records from the shard to the
239
+ # consumer over this connection. Before you call this operation, call
236
240
  # RegisterStreamConsumer to register the consumer with Kinesis Data
237
- # Streams. If the call succeeds, your consumer starts receiving events
238
- # of type SubscribeToShardEvent for up to 5 minutes, after which time
239
- # you need to call `SubscribeToShard` again to renew the subscription if
240
- # you want to continue to receive records.
241
- #
242
- # You can make one call to `SubscribeToShard` per second per
243
- # `ConsumerARN`. If your call succeeds, and then you call the operation
244
- # again less than 5 seconds later, the second call generates a
245
- # ResourceInUseException. If you call the operation a second time more
246
- # than 5 seconds after the first call succeeds, the second call succeeds
247
- # and the first connection gets shut down.
241
+ # Streams.
242
+ #
243
+ # When the `SubscribeToShard` call succeeds, your consumer starts
244
+ # receiving events of type SubscribeToShardEvent over the HTTP/2
245
+ # connection for up to 5 minutes, after which time you need to call
246
+ # `SubscribeToShard` again to renew the subscription if you want to
247
+ # continue to receive records.
248
+ #
249
+ # You can make one call to `SubscribeToShard` per second per registered
250
+ # consumer per shard. For example, if you have a 4000 shard stream and
251
+ # two registered stream consumers, you can make one `SubscribeToShard`
252
+ # request per second for each combination of shard and registered
253
+ # consumer, allowing you to subscribe both consumers to all 4000 shards
254
+ # in one second.
255
+ #
256
+ # If you call `SubscribeToShard` again with the same `ConsumerARN` and
257
+ # `ShardId` within 5 seconds of a successful call, you'll get a
258
+ # `ResourceInUseException`. If you call `SubscribeToShard` 5 seconds or
259
+ # more after a successful call, the first connection will expire and the
260
+ # second call will take over the subscription.
261
+ #
262
+ # For an example of how to use this operations, see [Enhanced Fan-Out
263
+ # Using the Kinesis Data Streams
264
+ # API](/streams/latest/dev/building-enhanced-consumers-api.html).
248
265
  #
249
266
  # @option params [required, String] :consumer_arn
250
267
  # For this parameter, use the value you obtained when you called
@@ -456,6 +473,12 @@ module Aws::Kinesis
456
473
  # event.records[0].encryption_type #=> String, one of "NONE", "KMS"
457
474
  # event.continuation_sequence_number #=> String
458
475
  # event.millis_behind_latest #=> Integer
476
+ # event.child_shards #=> Array
477
+ # event.child_shards[0].shard_id #=> String
478
+ # event.child_shards[0].parent_shards #=> Array
479
+ # event.child_shards[0].parent_shards[0] #=> String
480
+ # event.child_shards[0].hash_key_range.starting_hash_key #=> String
481
+ # event.child_shards[0].hash_key_range.ending_hash_key #=> String
459
482
  #
460
483
  # For :resource_not_found_exception event available at #on_resource_not_found_exception_event callback and response eventstream enumerator:
461
484
  # event.message #=> String
@@ -520,7 +543,7 @@ module Aws::Kinesis
520
543
  http_response: Seahorse::Client::Http::AsyncResponse.new,
521
544
  config: config)
522
545
  context[:gem_name] = 'aws-sdk-kinesis'
523
- context[:gem_version] = '1.26.0'
546
+ context[:gem_version] = '1.27.0'
524
547
  Seahorse::Client::Request.new(handlers, context)
525
548
  end
526
549
 
@@ -379,9 +379,9 @@ module Aws::Kinesis
379
379
  #
380
380
  # You specify and control the number of shards that a stream is composed
381
381
  # of. Each shard can support reads up to five transactions per second,
382
- # up to a maximum data read total of 2 MB per second. Each shard can
382
+ # up to a maximum data read total of 2 MiB per second. Each shard can
383
383
  # support writes up to 1,000 records per second, up to a maximum data
384
- # write total of 1 MB per second. If the amount of data input increases
384
+ # write total of 1 MiB per second. If the amount of data input increases
385
385
  # or decreases, you can add or remove shards.
386
386
  #
387
387
  # The stream name identifies the stream. The name is scoped to the AWS
@@ -415,8 +415,8 @@ module Aws::Kinesis
415
415
  #
416
416
  #
417
417
  #
418
- # [1]: http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html
419
- # [2]: http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html
418
+ # [1]: https://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html
419
+ # [2]: https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html
420
420
  #
421
421
  # @option params [required, String] :stream_name
422
422
  # A name to identify the stream. The stream name is scoped to the AWS
@@ -430,8 +430,6 @@ module Aws::Kinesis
430
430
  # stream is a function of the number of shards; more shards are required
431
431
  # for greater provisioned throughput.
432
432
  #
433
- # DefaultShardLimit;
434
- #
435
433
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
436
434
  #
437
435
  # @example Request syntax with placeholder values
@@ -539,8 +537,7 @@ module Aws::Kinesis
539
537
  # all the consumers that are currently registered with a given data
540
538
  # stream. The description of a consumer contains its name and ARN.
541
539
  #
542
- # This operation has a limit of five transactions per second per
543
- # account.
540
+ # This operation has a limit of five transactions per second per stream.
544
541
  #
545
542
  # @option params [String] :stream_arn
546
543
  # The ARN of the Kinesis data stream that the consumer is registered
@@ -630,7 +627,7 @@ module Aws::Kinesis
630
627
  #
631
628
  #
632
629
  #
633
- # [1]: http://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-retrieve-shards.html
630
+ # [1]: https://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-retrieve-shards.html
634
631
  #
635
632
  # @option params [required, String] :stream_name
636
633
  # The name of the stream to describe.
@@ -703,7 +700,7 @@ module Aws::Kinesis
703
700
  # operation to get a list of the descriptions of all the consumers that
704
701
  # are currently registered with a given data stream.
705
702
  #
706
- # This operation has a limit of 20 transactions per second per account.
703
+ # This operation has a limit of 20 transactions per second per stream.
707
704
  #
708
705
  # @option params [String] :stream_arn
709
706
  # The ARN of the Kinesis data stream that the consumer is registered
@@ -757,6 +754,9 @@ module Aws::Kinesis
757
754
  # Name (ARN), status, record retention period, approximate creation
758
755
  # time, monitoring, encryption details, and open shard count.
759
756
  #
757
+ # DescribeStreamSummary has a limit of 20 transactions per second per
758
+ # account.
759
+ #
760
760
  # @option params [required, String] :stream_name
761
761
  # The name of the stream to describe.
762
762
  #
@@ -828,7 +828,7 @@ module Aws::Kinesis
828
828
  #
829
829
  #
830
830
  #
831
- # [1]: http://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html
831
+ # [1]: https://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html
832
832
  #
833
833
  # @return [Types::EnhancedMonitoringOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
834
834
  #
@@ -894,7 +894,7 @@ module Aws::Kinesis
894
894
  #
895
895
  #
896
896
  #
897
- # [1]: http://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html
897
+ # [1]: https://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html
898
898
  #
899
899
  # @return [Types::EnhancedMonitoringOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
900
900
  #
@@ -985,13 +985,12 @@ module Aws::Kinesis
985
985
  # always increasing. For example, records in a shard or across a stream
986
986
  # might have time stamps that are out of order.
987
987
  #
988
- # This operation has a limit of five transactions per second per
989
- # account.
988
+ # This operation has a limit of five transactions per second per shard.
990
989
  #
991
990
  #
992
991
  #
993
- # [1]: http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html
994
- # [2]: http://docs.aws.amazon.com/kinesis/latest/dev/monitoring.html
992
+ # [1]: https://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html
993
+ # [2]: https://docs.aws.amazon.com/kinesis/latest/dev/monitoring.html
995
994
  #
996
995
  # @option params [required, String] :shard_iterator
997
996
  # The position in the shard from which you want to start sequentially
@@ -1001,13 +1000,14 @@ module Aws::Kinesis
1001
1000
  # @option params [Integer] :limit
1002
1001
  # The maximum number of records to return. Specify a value of up to
1003
1002
  # 10,000. If you specify a value that is greater than 10,000, GetRecords
1004
- # throws `InvalidArgumentException`.
1003
+ # throws `InvalidArgumentException`. The default value is 10,000.
1005
1004
  #
1006
1005
  # @return [Types::GetRecordsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1007
1006
  #
1008
1007
  # * {Types::GetRecordsOutput#records #records} => Array<Types::Record>
1009
1008
  # * {Types::GetRecordsOutput#next_shard_iterator #next_shard_iterator} => String
1010
1009
  # * {Types::GetRecordsOutput#millis_behind_latest #millis_behind_latest} => Integer
1010
+ # * {Types::GetRecordsOutput#child_shards #child_shards} => Array<Types::ChildShard>
1011
1011
  #
1012
1012
  # @example Request syntax with placeholder values
1013
1013
  #
@@ -1026,6 +1026,12 @@ module Aws::Kinesis
1026
1026
  # resp.records[0].encryption_type #=> String, one of "NONE", "KMS"
1027
1027
  # resp.next_shard_iterator #=> String
1028
1028
  # resp.millis_behind_latest #=> Integer
1029
+ # resp.child_shards #=> Array
1030
+ # resp.child_shards[0].shard_id #=> String
1031
+ # resp.child_shards[0].parent_shards #=> Array
1032
+ # resp.child_shards[0].parent_shards[0] #=> String
1033
+ # resp.child_shards[0].hash_key_range.starting_hash_key #=> String
1034
+ # resp.child_shards[0].hash_key_range.ending_hash_key #=> String
1029
1035
  #
1030
1036
  # @see http://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/GetRecords AWS API Documentation
1031
1037
  #
@@ -1081,7 +1087,7 @@ module Aws::Kinesis
1081
1087
  #
1082
1088
  #
1083
1089
  #
1084
- # [1]: http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html
1090
+ # [1]: https://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html
1085
1091
  #
1086
1092
  # @option params [required, String] :stream_name
1087
1093
  # The name of the Amazon Kinesis data stream.
@@ -1252,7 +1258,7 @@ module Aws::Kinesis
1252
1258
  # @option params [Integer] :max_results
1253
1259
  # The maximum number of shards to return in a single call to
1254
1260
  # `ListShards`. The minimum value you can specify for this parameter is
1255
- # 1, and the maximum is 1,000, which is also the default.
1261
+ # 1, and the maximum is 10,000, which is also the default.
1256
1262
  #
1257
1263
  # When the number of shards to be listed is greater than the value of
1258
1264
  # `MaxResults`, the response contains a `NextToken` value that you can
@@ -1269,6 +1275,8 @@ module Aws::Kinesis
1269
1275
  # You cannot specify this parameter if you specify the `NextToken`
1270
1276
  # parameter.
1271
1277
  #
1278
+ # @option params [Types::ShardFilter] :shard_filter
1279
+ #
1272
1280
  # @return [Types::ListShardsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1273
1281
  #
1274
1282
  # * {Types::ListShardsOutput#shards #shards} => Array<Types::Shard>
@@ -1282,6 +1290,11 @@ module Aws::Kinesis
1282
1290
  # exclusive_start_shard_id: "ShardId",
1283
1291
  # max_results: 1,
1284
1292
  # stream_creation_timestamp: Time.now,
1293
+ # shard_filter: {
1294
+ # type: "AFTER_SHARD_ID", # required, accepts AFTER_SHARD_ID, AT_TRIM_HORIZON, FROM_TRIM_HORIZON, AT_LATEST, AT_TIMESTAMP, FROM_TIMESTAMP
1295
+ # shard_id: "ShardId",
1296
+ # timestamp: Time.now,
1297
+ # },
1285
1298
  # })
1286
1299
  #
1287
1300
  # @example Response structure
@@ -1308,7 +1321,7 @@ module Aws::Kinesis
1308
1321
  # Lists the consumers registered to receive data from a stream using
1309
1322
  # enhanced fan-out, and provides information about each consumer.
1310
1323
  #
1311
- # This operation has a limit of 10 transactions per second per account.
1324
+ # This operation has a limit of 5 transactions per second per stream.
1312
1325
  #
1313
1326
  # @option params [required, String] :stream_arn
1314
1327
  # The ARN of the Kinesis data stream for which you want to list the
@@ -1537,7 +1550,7 @@ module Aws::Kinesis
1537
1550
  #
1538
1551
  #
1539
1552
  #
1540
- # [1]: http://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-resharding-merge.html
1553
+ # [1]: https://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-resharding-merge.html
1541
1554
  #
1542
1555
  # @option params [required, String] :stream_name
1543
1556
  # The name of the stream for the merge.
@@ -1572,7 +1585,7 @@ module Aws::Kinesis
1572
1585
  # `PutRecord` to send data into the stream for real-time ingestion and
1573
1586
  # subsequent processing, one record at a time. Each shard can support
1574
1587
  # writes up to 1,000 records per second, up to a maximum data write
1575
- # total of 1 MB per second.
1588
+ # total of 1 MiB per second.
1576
1589
  #
1577
1590
  # You must specify the name of the stream that captures, stores, and
1578
1591
  # transports the data; a partition key; and the data blob itself.
@@ -1606,6 +1619,9 @@ module Aws::Kinesis
1606
1619
  # [Adding Data to a Stream][1] in the *Amazon Kinesis Data Streams
1607
1620
  # Developer Guide*.
1608
1621
  #
1622
+ # After you write a record to a stream, you cannot modify that record or
1623
+ # its order within the stream.
1624
+ #
1609
1625
  # If a `PutRecord` request cannot be processed because of insufficient
1610
1626
  # provisioned throughput on the shard involved in the request,
1611
1627
  # `PutRecord` throws `ProvisionedThroughputExceededException`.
@@ -1617,16 +1633,16 @@ module Aws::Kinesis
1617
1633
  #
1618
1634
  #
1619
1635
  #
1620
- # [1]: http://docs.aws.amazon.com/kinesis/latest/dev/developing-producers-with-sdk.html#kinesis-using-sdk-java-add-data-to-stream
1636
+ # [1]: https://docs.aws.amazon.com/kinesis/latest/dev/developing-producers-with-sdk.html#kinesis-using-sdk-java-add-data-to-stream
1621
1637
  #
1622
1638
  # @option params [required, String] :stream_name
1623
1639
  # The name of the stream to put the data record into.
1624
1640
  #
1625
- # @option params [required, String, IO] :data
1641
+ # @option params [required, String, StringIO, File] :data
1626
1642
  # The data blob to put into the record, which is base64-encoded when the
1627
1643
  # blob is serialized. When the data blob (the payload before
1628
1644
  # base64-encoding) is added to the partition key size, the total size
1629
- # must not exceed the maximum record size (1 MB).
1645
+ # must not exceed the maximum record size (1 MiB).
1630
1646
  #
1631
1647
  # @option params [required, String] :partition_key
1632
1648
  # Determines which shard in the stream the data record is assigned to.
@@ -1687,10 +1703,10 @@ module Aws::Kinesis
1687
1703
  # to send data into the stream for data ingestion and processing.
1688
1704
  #
1689
1705
  # Each `PutRecords` request can support up to 500 records. Each record
1690
- # in the request can be as large as 1 MB, up to a limit of 5 MB for the
1691
- # entire request, including partition keys. Each shard can support
1706
+ # in the request can be as large as 1 MiB, up to a limit of 5 MiB for
1707
+ # the entire request, including partition keys. Each shard can support
1692
1708
  # writes up to 1,000 records per second, up to a maximum data write
1693
- # total of 1 MB per second.
1709
+ # total of 1 MiB per second.
1694
1710
  #
1695
1711
  # You must specify the name of the stream that captures, stores, and
1696
1712
  # transports the data; and an array of request `Records`, with each
@@ -1727,7 +1743,10 @@ module Aws::Kinesis
1727
1743
  # The response `Records` array includes both successfully and
1728
1744
  # unsuccessfully processed records. Kinesis Data Streams attempts to
1729
1745
  # process all records in each `PutRecords` request. A single record
1730
- # failure does not stop the processing of subsequent records.
1746
+ # failure does not stop the processing of subsequent records. As a
1747
+ # result, PutRecords doesn't guarantee the ordering of records. If you
1748
+ # need to read records in the same order they are written to the stream,
1749
+ # use PutRecord instead of `PutRecords`, and write to the same shard.
1731
1750
  #
1732
1751
  # A successfully processed record includes `ShardId` and
1733
1752
  # `SequenceNumber` values. The `ShardId` parameter identifies the shard
@@ -1746,6 +1765,9 @@ module Aws::Kinesis
1746
1765
  # see [Adding Multiple Records with PutRecords][3] in the *Amazon
1747
1766
  # Kinesis Data Streams Developer Guide*.
1748
1767
  #
1768
+ # After you write a record to a stream, you cannot modify that record or
1769
+ # its order within the stream.
1770
+ #
1749
1771
  # By default, data records are accessible for 24 hours from the time
1750
1772
  # that they are added to a stream. You can use
1751
1773
  # IncreaseStreamRetentionPeriod or DecreaseStreamRetentionPeriod to
@@ -1753,9 +1775,9 @@ module Aws::Kinesis
1753
1775
  #
1754
1776
  #
1755
1777
  #
1756
- # [1]: http://docs.aws.amazon.com/kinesis/latest/dev/developing-producers-with-sdk.html#kinesis-using-sdk-java-add-data-to-stream
1757
- # [2]: http://docs.aws.amazon.com/kinesis/latest/dev/developing-producers-with-sdk.html#kinesis-using-sdk-java-putrecords
1758
- # [3]: http://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-add-data-to-stream.html#kinesis-using-sdk-java-putrecords
1778
+ # [1]: https://docs.aws.amazon.com/kinesis/latest/dev/developing-producers-with-sdk.html#kinesis-using-sdk-java-add-data-to-stream
1779
+ # [2]: https://docs.aws.amazon.com/kinesis/latest/dev/developing-producers-with-sdk.html#kinesis-using-sdk-java-putrecords
1780
+ # [3]: https://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-add-data-to-stream.html#kinesis-using-sdk-java-putrecords
1759
1781
  #
1760
1782
  # @option params [required, Array<Types::PutRecordsRequestEntry>] :records
1761
1783
  # The records associated with the request.
@@ -1802,15 +1824,24 @@ module Aws::Kinesis
1802
1824
  end
1803
1825
 
1804
1826
  # Registers a consumer with a Kinesis data stream. When you use this
1805
- # operation, the consumer you register can read data from the stream at
1806
- # a rate of up to 2 MiB per second. This rate is unaffected by the total
1807
- # number of consumers that read from the same stream.
1827
+ # operation, the consumer you register can then call SubscribeToShard to
1828
+ # receive data from the stream using enhanced fan-out, at a rate of up
1829
+ # to 2 MiB per second for every shard you subscribe to. This rate is
1830
+ # unaffected by the total number of consumers that read from the same
1831
+ # stream.
1808
1832
  #
1809
- # You can register up to 5 consumers per stream. A given consumer can
1810
- # only be registered with one stream.
1833
+ # You can register up to 20 consumers per stream. A given consumer can
1834
+ # only be registered with one stream at a time.
1811
1835
  #
1812
- # This operation has a limit of five transactions per second per
1813
- # account.
1836
+ # For an example of how to use this operations, see [Enhanced Fan-Out
1837
+ # Using the Kinesis Data Streams
1838
+ # API](/streams/latest/dev/building-enhanced-consumers-api.html).
1839
+ #
1840
+ # The use of this operation has a limit of five transactions per second
1841
+ # per account. Also, only 5 consumers can be created simultaneously. In
1842
+ # other words, you cannot have more than 5 consumers in a `CREATING`
1843
+ # status at the same time. Registering a 6th consumer while there are 5
1844
+ # in a `CREATING` status results in a `LimitExceededException`.
1814
1845
  #
1815
1846
  # @option params [required, String] :stream_arn
1816
1847
  # The ARN of the Kinesis data stream that you want to register the
@@ -1939,9 +1970,9 @@ module Aws::Kinesis
1939
1970
  #
1940
1971
  #
1941
1972
  #
1942
- # [1]: http://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-resharding-split.html
1943
- # [2]: http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html
1944
- # [3]: http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html
1973
+ # [1]: https://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-resharding-split.html
1974
+ # [2]: https://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html
1975
+ # [3]: https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html
1945
1976
  #
1946
1977
  # @option params [required, String] :stream_name
1947
1978
  # The name of the stream for the shard split.
@@ -2122,14 +2153,19 @@ module Aws::Kinesis
2122
2153
  #
2123
2154
  # To update the shard count, Kinesis Data Streams performs splits or
2124
2155
  # merges on individual shards. This can cause short-lived shards to be
2125
- # created, in addition to the final shards. We recommend that you double
2126
- # or halve the shard count, as this results in the fewest number of
2127
- # splits or merges.
2156
+ # created, in addition to the final shards. These short-lived shards
2157
+ # count towards your total shard limit for your account in the Region.
2158
+ #
2159
+ # When using this operation, we recommend that you specify a target
2160
+ # shard count that is a multiple of 25% (25%, 50%, 75%, 100%). You can
2161
+ # specify any target value within your shard limit. However, if you
2162
+ # specify a target that isn't a multiple of 25%, the scaling action
2163
+ # might take longer to complete.
2128
2164
  #
2129
2165
  # This operation has the following default limits. By default, you
2130
2166
  # cannot do the following:
2131
2167
  #
2132
- # * Scale more than twice per rolling 24-hour period per stream
2168
+ # * Scale more than ten times per rolling 24-hour period per stream
2133
2169
  #
2134
2170
  # * Scale up to more than double your current shard count for a stream
2135
2171
  #
@@ -2149,14 +2185,27 @@ module Aws::Kinesis
2149
2185
  #
2150
2186
  #
2151
2187
  #
2152
- # [1]: http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html
2188
+ # [1]: https://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html
2153
2189
  # [2]: https://console.aws.amazon.com/support/v1#/case/create?issueType=service-limit-increase&amp;limitType=service-code-kinesis
2154
2190
  #
2155
2191
  # @option params [required, String] :stream_name
2156
2192
  # The name of the stream.
2157
2193
  #
2158
2194
  # @option params [required, Integer] :target_shard_count
2159
- # The new number of shards.
2195
+ # The new number of shards. This value has the following default limits.
2196
+ # By default, you cannot do the following:
2197
+ #
2198
+ # * Set this value to more than double your current shard count for a
2199
+ # stream.
2200
+ #
2201
+ # * Set this value below half your current shard count for a stream.
2202
+ #
2203
+ # * Set this value to more than 500 shards in a stream (the default
2204
+ # limit for shard count per stream is 500 per account per region),
2205
+ # unless you request a limit increase.
2206
+ #
2207
+ # * Scale a stream with more than 500 shards down unless you set this
2208
+ # value to less than 500 shards.
2160
2209
  #
2161
2210
  # @option params [required, String] :scaling_type
2162
2211
  # The scaling type. Uniform scaling creates shards of equal size.
@@ -2203,7 +2252,7 @@ module Aws::Kinesis
2203
2252
  params: params,
2204
2253
  config: config)
2205
2254
  context[:gem_name] = 'aws-sdk-kinesis'
2206
- context[:gem_version] = '1.26.0'
2255
+ context[:gem_version] = '1.27.0'
2207
2256
  Seahorse::Client::Request.new(handlers, context)
2208
2257
  end
2209
2258
 
@@ -15,6 +15,8 @@ module Aws::Kinesis
15
15
 
16
16
  AddTagsToStreamInput = Shapes::StructureShape.new(name: 'AddTagsToStreamInput')
17
17
  BooleanObject = Shapes::BooleanShape.new(name: 'BooleanObject')
18
+ ChildShard = Shapes::StructureShape.new(name: 'ChildShard')
19
+ ChildShardList = Shapes::ListShape.new(name: 'ChildShardList')
18
20
  Consumer = Shapes::StructureShape.new(name: 'Consumer')
19
21
  ConsumerARN = Shapes::StringShape.new(name: 'ConsumerARN')
20
22
  ConsumerCountObject = Shapes::IntegerShape.new(name: 'ConsumerCountObject')
@@ -105,7 +107,10 @@ module Aws::Kinesis
105
107
  SequenceNumberRange = Shapes::StructureShape.new(name: 'SequenceNumberRange')
106
108
  Shard = Shapes::StructureShape.new(name: 'Shard')
107
109
  ShardCountObject = Shapes::IntegerShape.new(name: 'ShardCountObject')
110
+ ShardFilter = Shapes::StructureShape.new(name: 'ShardFilter')
111
+ ShardFilterType = Shapes::StringShape.new(name: 'ShardFilterType')
108
112
  ShardId = Shapes::StringShape.new(name: 'ShardId')
113
+ ShardIdList = Shapes::ListShape.new(name: 'ShardIdList')
109
114
  ShardIterator = Shapes::StringShape.new(name: 'ShardIterator')
110
115
  ShardIteratorType = Shapes::StringShape.new(name: 'ShardIteratorType')
111
116
  ShardList = Shapes::ListShape.new(name: 'ShardList')
@@ -137,6 +142,13 @@ module Aws::Kinesis
137
142
  AddTagsToStreamInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "Tags"))
138
143
  AddTagsToStreamInput.struct_class = Types::AddTagsToStreamInput
139
144
 
145
+ ChildShard.add_member(:shard_id, Shapes::ShapeRef.new(shape: ShardId, required: true, location_name: "ShardId"))
146
+ ChildShard.add_member(:parent_shards, Shapes::ShapeRef.new(shape: ShardIdList, required: true, location_name: "ParentShards"))
147
+ ChildShard.add_member(:hash_key_range, Shapes::ShapeRef.new(shape: HashKeyRange, required: true, location_name: "HashKeyRange"))
148
+ ChildShard.struct_class = Types::ChildShard
149
+
150
+ ChildShardList.member = Shapes::ShapeRef.new(shape: ChildShard)
151
+
140
152
  Consumer.add_member(:consumer_name, Shapes::ShapeRef.new(shape: ConsumerName, required: true, location_name: "ConsumerName"))
141
153
  Consumer.add_member(:consumer_arn, Shapes::ShapeRef.new(shape: ConsumerARN, required: true, location_name: "ConsumerARN"))
142
154
  Consumer.add_member(:consumer_status, Shapes::ShapeRef.new(shape: ConsumerStatus, required: true, location_name: "ConsumerStatus"))
@@ -228,6 +240,7 @@ module Aws::Kinesis
228
240
  GetRecordsOutput.add_member(:records, Shapes::ShapeRef.new(shape: RecordList, required: true, location_name: "Records"))
229
241
  GetRecordsOutput.add_member(:next_shard_iterator, Shapes::ShapeRef.new(shape: ShardIterator, location_name: "NextShardIterator"))
230
242
  GetRecordsOutput.add_member(:millis_behind_latest, Shapes::ShapeRef.new(shape: MillisBehindLatest, location_name: "MillisBehindLatest"))
243
+ GetRecordsOutput.add_member(:child_shards, Shapes::ShapeRef.new(shape: ChildShardList, location_name: "ChildShards"))
231
244
  GetRecordsOutput.struct_class = Types::GetRecordsOutput
232
245
 
233
246
  GetShardIteratorInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName"))
@@ -280,6 +293,7 @@ module Aws::Kinesis
280
293
  ListShardsInput.add_member(:exclusive_start_shard_id, Shapes::ShapeRef.new(shape: ShardId, location_name: "ExclusiveStartShardId"))
281
294
  ListShardsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ListShardsInputLimit, location_name: "MaxResults"))
282
295
  ListShardsInput.add_member(:stream_creation_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "StreamCreationTimestamp"))
296
+ ListShardsInput.add_member(:shard_filter, Shapes::ShapeRef.new(shape: ShardFilter, location_name: "ShardFilter"))
283
297
  ListShardsInput.struct_class = Types::ListShardsInput
284
298
 
285
299
  ListShardsOutput.add_member(:shards, Shapes::ShapeRef.new(shape: ShardList, location_name: "Shards"))
@@ -396,6 +410,13 @@ module Aws::Kinesis
396
410
  Shard.add_member(:sequence_number_range, Shapes::ShapeRef.new(shape: SequenceNumberRange, required: true, location_name: "SequenceNumberRange"))
397
411
  Shard.struct_class = Types::Shard
398
412
 
413
+ ShardFilter.add_member(:type, Shapes::ShapeRef.new(shape: ShardFilterType, required: true, location_name: "Type"))
414
+ ShardFilter.add_member(:shard_id, Shapes::ShapeRef.new(shape: ShardId, location_name: "ShardId"))
415
+ ShardFilter.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Timestamp"))
416
+ ShardFilter.struct_class = Types::ShardFilter
417
+
418
+ ShardIdList.member = Shapes::ShapeRef.new(shape: ShardId)
419
+
399
420
  ShardList.member = Shapes::ShapeRef.new(shape: Shard)
400
421
 
401
422
  SplitShardInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName"))
@@ -433,7 +454,7 @@ module Aws::Kinesis
433
454
  StreamDescriptionSummary.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName"))
434
455
  StreamDescriptionSummary.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamARN, required: true, location_name: "StreamARN"))
435
456
  StreamDescriptionSummary.add_member(:stream_status, Shapes::ShapeRef.new(shape: StreamStatus, required: true, location_name: "StreamStatus"))
436
- StreamDescriptionSummary.add_member(:retention_period_hours, Shapes::ShapeRef.new(shape: PositiveIntegerObject, required: true, location_name: "RetentionPeriodHours"))
457
+ StreamDescriptionSummary.add_member(:retention_period_hours, Shapes::ShapeRef.new(shape: RetentionPeriodHours, required: true, location_name: "RetentionPeriodHours"))
437
458
  StreamDescriptionSummary.add_member(:stream_creation_timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "StreamCreationTimestamp"))
438
459
  StreamDescriptionSummary.add_member(:enhanced_monitoring, Shapes::ShapeRef.new(shape: EnhancedMonitoringList, required: true, location_name: "EnhancedMonitoring"))
439
460
  StreamDescriptionSummary.add_member(:encryption_type, Shapes::ShapeRef.new(shape: EncryptionType, location_name: "EncryptionType"))
@@ -447,6 +468,7 @@ module Aws::Kinesis
447
468
  SubscribeToShardEvent.add_member(:records, Shapes::ShapeRef.new(shape: RecordList, required: true, location_name: "Records"))
448
469
  SubscribeToShardEvent.add_member(:continuation_sequence_number, Shapes::ShapeRef.new(shape: SequenceNumber, required: true, location_name: "ContinuationSequenceNumber"))
449
470
  SubscribeToShardEvent.add_member(:millis_behind_latest, Shapes::ShapeRef.new(shape: MillisBehindLatest, required: true, location_name: "MillisBehindLatest"))
471
+ SubscribeToShardEvent.add_member(:child_shards, Shapes::ShapeRef.new(shape: ChildShardList, location_name: "ChildShards"))
450
472
  SubscribeToShardEvent.struct_class = Types::SubscribeToShardEvent
451
473
 
452
474
  SubscribeToShardEventStream.add_member(:subscribe_to_shard_event, Shapes::ShapeRef.new(shape: SubscribeToShardEvent, required: true, event: true, location_name: "SubscribeToShardEvent"))
@@ -39,7 +39,29 @@ module Aws::Kinesis
39
39
  include Aws::Structure
40
40
  end
41
41
 
42
+ # @!attribute [rw] shard_id
43
+ # @return [String]
44
+ #
45
+ # @!attribute [rw] parent_shards
46
+ # @return [Array<String>]
47
+ #
48
+ # @!attribute [rw] hash_key_range
49
+ # The range of possible hash key values for the shard, which is a set
50
+ # of ordered contiguous positive integers.
51
+ # @return [Types::HashKeyRange]
52
+ #
53
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/ChildShard AWS API Documentation
54
+ #
55
+ class ChildShard < Struct.new(
56
+ :shard_id,
57
+ :parent_shards,
58
+ :hash_key_range)
59
+ SENSITIVE = []
60
+ include Aws::Structure
61
+ end
62
+
42
63
  # An object that represents the details of the consumer you registered.
64
+ # This type of object is returned by RegisterStreamConsumer.
43
65
  #
44
66
  # @!attribute [rw] consumer_name
45
67
  # The name of the consumer is something you choose when you register
@@ -75,7 +97,8 @@ module Aws::Kinesis
75
97
  include Aws::Structure
76
98
  end
77
99
 
78
- # An object that represents the details of a registered consumer.
100
+ # An object that represents the details of a registered consumer. This
101
+ # type of object is returned by DescribeStreamConsumer.
79
102
  #
80
103
  # @!attribute [rw] consumer_name
81
104
  # The name of the consumer is something you choose when you register
@@ -138,8 +161,6 @@ module Aws::Kinesis
138
161
  # The number of shards that the stream will use. The throughput of the
139
162
  # stream is a function of the number of shards; more shards are
140
163
  # required for greater provisioned throughput.
141
- #
142
- # DefaultShardLimit;
143
164
  # @return [Integer]
144
165
  #
145
166
  # @see http://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/CreateStreamInput AWS API Documentation
@@ -448,7 +469,7 @@ module Aws::Kinesis
448
469
  #
449
470
  #
450
471
  #
451
- # [1]: http://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html
472
+ # [1]: https://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html
452
473
  # @return [Array<String>]
453
474
  #
454
475
  # @see http://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/DisableEnhancedMonitoringInput AWS API Documentation
@@ -502,7 +523,7 @@ module Aws::Kinesis
502
523
  #
503
524
  #
504
525
  #
505
- # [1]: http://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html
526
+ # [1]: https://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html
506
527
  # @return [Array<String>]
507
528
  #
508
529
  # @see http://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/EnableEnhancedMonitoringInput AWS API Documentation
@@ -544,7 +565,7 @@ module Aws::Kinesis
544
565
  #
545
566
  #
546
567
  #
547
- # [1]: http://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html
568
+ # [1]: https://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html
548
569
  # @return [Array<String>]
549
570
  #
550
571
  # @see http://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/EnhancedMetrics AWS API Documentation
@@ -628,7 +649,8 @@ module Aws::Kinesis
628
649
  # @!attribute [rw] limit
629
650
  # The maximum number of records to return. Specify a value of up to
630
651
  # 10,000. If you specify a value that is greater than 10,000,
631
- # GetRecords throws `InvalidArgumentException`.
652
+ # GetRecords throws `InvalidArgumentException`. The default value is
653
+ # 10,000.
632
654
  # @return [Integer]
633
655
  #
634
656
  # @see http://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/GetRecordsInput AWS API Documentation
@@ -659,12 +681,16 @@ module Aws::Kinesis
659
681
  # and there are no new records to process at this moment.
660
682
  # @return [Integer]
661
683
  #
684
+ # @!attribute [rw] child_shards
685
+ # @return [Array<Types::ChildShard>]
686
+ #
662
687
  # @see http://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/GetRecordsOutput AWS API Documentation
663
688
  #
664
689
  class GetRecordsOutput < Struct.new(
665
690
  :records,
666
691
  :next_shard_iterator,
667
- :millis_behind_latest)
692
+ :millis_behind_latest,
693
+ :child_shards)
668
694
  SENSITIVE = []
669
695
  include Aws::Structure
670
696
  end
@@ -808,6 +834,9 @@ module Aws::Kinesis
808
834
  include Aws::Structure
809
835
  end
810
836
 
837
+ # The processing of the request failed because of an unknown error,
838
+ # exception, or failure.
839
+ #
811
840
  # @!attribute [rw] message
812
841
  # @return [String]
813
842
  #
@@ -874,7 +903,7 @@ module Aws::Kinesis
874
903
  #
875
904
  #
876
905
  #
877
- # [1]: http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html
906
+ # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html
878
907
  #
879
908
  # @!attribute [rw] message
880
909
  # A message that provides information about the error.
@@ -926,7 +955,7 @@ module Aws::Kinesis
926
955
  #
927
956
  #
928
957
  #
929
- # [1]: http://docs.aws.amazon.com/kms/latest/developerguide/limits.html#requests-per-second
958
+ # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/limits.html#requests-per-second
930
959
  #
931
960
  # @!attribute [rw] message
932
961
  # A message that provides information about the error.
@@ -966,6 +995,11 @@ module Aws::Kinesis
966
995
  # exclusive_start_shard_id: "ShardId",
967
996
  # max_results: 1,
968
997
  # stream_creation_timestamp: Time.now,
998
+ # shard_filter: {
999
+ # type: "AFTER_SHARD_ID", # required, accepts AFTER_SHARD_ID, AT_TRIM_HORIZON, FROM_TRIM_HORIZON, AT_LATEST, AT_TIMESTAMP, FROM_TIMESTAMP
1000
+ # shard_id: "ShardId",
1001
+ # timestamp: Time.now,
1002
+ # },
969
1003
  # }
970
1004
  #
971
1005
  # @!attribute [rw] stream_name
@@ -1015,7 +1049,7 @@ module Aws::Kinesis
1015
1049
  # @!attribute [rw] max_results
1016
1050
  # The maximum number of shards to return in a single call to
1017
1051
  # `ListShards`. The minimum value you can specify for this parameter
1018
- # is 1, and the maximum is 1,000, which is also the default.
1052
+ # is 1, and the maximum is 10,000, which is also the default.
1019
1053
  #
1020
1054
  # When the number of shards to be listed is greater than the value of
1021
1055
  # `MaxResults`, the response contains a `NextToken` value that you can
@@ -1034,6 +1068,9 @@ module Aws::Kinesis
1034
1068
  # parameter.
1035
1069
  # @return [Time]
1036
1070
  #
1071
+ # @!attribute [rw] shard_filter
1072
+ # @return [Types::ShardFilter]
1073
+ #
1037
1074
  # @see http://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/ListShardsInput AWS API Documentation
1038
1075
  #
1039
1076
  class ListShardsInput < Struct.new(
@@ -1041,7 +1078,8 @@ module Aws::Kinesis
1041
1078
  :next_token,
1042
1079
  :exclusive_start_shard_id,
1043
1080
  :max_results,
1044
- :stream_creation_timestamp)
1081
+ :stream_creation_timestamp,
1082
+ :shard_filter)
1045
1083
  SENSITIVE = []
1046
1084
  include Aws::Structure
1047
1085
  end
@@ -1337,8 +1375,8 @@ module Aws::Kinesis
1337
1375
  #
1338
1376
  #
1339
1377
  #
1340
- # [1]: http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html
1341
- # [2]: http://docs.aws.amazon.com/general/latest/gr/api-retries.html
1378
+ # [1]: https://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html
1379
+ # [2]: https://docs.aws.amazon.com/general/latest/gr/api-retries.html
1342
1380
  #
1343
1381
  # @!attribute [rw] message
1344
1382
  # A message that provides information about the error.
@@ -1373,7 +1411,7 @@ module Aws::Kinesis
1373
1411
  # The data blob to put into the record, which is base64-encoded when
1374
1412
  # the blob is serialized. When the data blob (the payload before
1375
1413
  # base64-encoding) is added to the partition key size, the total size
1376
- # must not exceed the maximum record size (1 MB).
1414
+ # must not exceed the maximum record size (1 MiB).
1377
1415
  # @return [String]
1378
1416
  #
1379
1417
  # @!attribute [rw] partition_key
@@ -1530,7 +1568,7 @@ module Aws::Kinesis
1530
1568
  # The data blob to put into the record, which is base64-encoded when
1531
1569
  # the blob is serialized. When the data blob (the payload before
1532
1570
  # base64-encoding) is added to the partition key size, the total size
1533
- # must not exceed the maximum record size (1 MB).
1571
+ # must not exceed the maximum record size (1 MiB).
1534
1572
  # @return [String]
1535
1573
  #
1536
1574
  # @!attribute [rw] explicit_hash_key
@@ -1615,7 +1653,7 @@ module Aws::Kinesis
1615
1653
  # Kinesis Data Streams, which does not inspect, interpret, or change
1616
1654
  # the data in the blob in any way. When the data blob (the payload
1617
1655
  # before base64-encoding) is added to the partition key size, the
1618
- # total size must not exceed the maximum record size (1 MB).
1656
+ # total size must not exceed the maximum record size (1 MiB).
1619
1657
  # @return [String]
1620
1658
  #
1621
1659
  # @!attribute [rw] partition_key
@@ -1806,6 +1844,34 @@ module Aws::Kinesis
1806
1844
  include Aws::Structure
1807
1845
  end
1808
1846
 
1847
+ # @note When making an API call, you may pass ShardFilter
1848
+ # data as a hash:
1849
+ #
1850
+ # {
1851
+ # type: "AFTER_SHARD_ID", # required, accepts AFTER_SHARD_ID, AT_TRIM_HORIZON, FROM_TRIM_HORIZON, AT_LATEST, AT_TIMESTAMP, FROM_TIMESTAMP
1852
+ # shard_id: "ShardId",
1853
+ # timestamp: Time.now,
1854
+ # }
1855
+ #
1856
+ # @!attribute [rw] type
1857
+ # @return [String]
1858
+ #
1859
+ # @!attribute [rw] shard_id
1860
+ # @return [String]
1861
+ #
1862
+ # @!attribute [rw] timestamp
1863
+ # @return [Time]
1864
+ #
1865
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/ShardFilter AWS API Documentation
1866
+ #
1867
+ class ShardFilter < Struct.new(
1868
+ :type,
1869
+ :shard_id,
1870
+ :timestamp)
1871
+ SENSITIVE = []
1872
+ include Aws::Structure
1873
+ end
1874
+
1809
1875
  # Represents the input for `SplitShard`.
1810
1876
  #
1811
1877
  # @note When making an API call, you may pass SplitShardInput
@@ -1904,12 +1970,41 @@ module Aws::Kinesis
1904
1970
  # }
1905
1971
  #
1906
1972
  # @!attribute [rw] type
1973
+ # You can set the starting position to one of the following values:
1974
+ #
1975
+ # `AT_SEQUENCE_NUMBER`\: Start streaming from the position denoted by
1976
+ # the sequence number specified in the `SequenceNumber` field.
1977
+ #
1978
+ # `AFTER_SEQUENCE_NUMBER`\: Start streaming right after the position
1979
+ # denoted by the sequence number specified in the `SequenceNumber`
1980
+ # field.
1981
+ #
1982
+ # `AT_TIMESTAMP`\: Start streaming from the position denoted by the
1983
+ # time stamp specified in the `Timestamp` field.
1984
+ #
1985
+ # `TRIM_HORIZON`\: Start streaming at the last untrimmed record in the
1986
+ # shard, which is the oldest data record in the shard.
1987
+ #
1988
+ # `LATEST`\: Start streaming just after the most recent record in the
1989
+ # shard, so that you always read the most recent data in the shard.
1907
1990
  # @return [String]
1908
1991
  #
1909
1992
  # @!attribute [rw] sequence_number
1993
+ # The sequence number of the data record in the shard from which to
1994
+ # start streaming. To specify a sequence number, set
1995
+ # `StartingPosition` to `AT_SEQUENCE_NUMBER` or
1996
+ # `AFTER_SEQUENCE_NUMBER`.
1910
1997
  # @return [String]
1911
1998
  #
1912
1999
  # @!attribute [rw] timestamp
2000
+ # The time stamp of the data record from which to start reading. To
2001
+ # specify a time stamp, set `StartingPosition` to `Type AT_TIMESTAMP`.
2002
+ # A time stamp is the Unix epoch date with precision in milliseconds.
2003
+ # For example, `2016-04-04T19:58:46.480-00:00` or `1459799926.480`. If
2004
+ # a record with this exact time stamp does not exist, records will be
2005
+ # streamed from the next (later) record. If the time stamp is older
2006
+ # than the current trim horizon, records will be streamed from the
2007
+ # oldest untrimmed data record (`TRIM_HORIZON`).
1913
2008
  # @return [Time]
1914
2009
  #
1915
2010
  # @see http://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/StartingPosition AWS API Documentation
@@ -2010,7 +2105,8 @@ module Aws::Kinesis
2010
2105
  # @return [Boolean]
2011
2106
  #
2012
2107
  # @!attribute [rw] retention_period_hours
2013
- # The current retention period, in hours.
2108
+ # The current retention period, in hours. Minimum value of 24. Maximum
2109
+ # value of 168.
2014
2110
  # @return [Integer]
2015
2111
  #
2016
2112
  # @!attribute [rw] stream_creation_timestamp
@@ -2166,14 +2262,17 @@ module Aws::Kinesis
2166
2262
  end
2167
2263
 
2168
2264
  # After you call SubscribeToShard, Kinesis Data Streams sends events of
2169
- # this type to your consumer.
2265
+ # this type over an HTTP/2 connection to your consumer.
2170
2266
  #
2171
2267
  # @!attribute [rw] records
2172
2268
  # @return [Array<Types::Record>]
2173
2269
  #
2174
2270
  # @!attribute [rw] continuation_sequence_number
2175
- # Use this as `StartingSequenceNumber` in the next call to
2176
- # SubscribeToShard.
2271
+ # Use this as `SequenceNumber` in the next call to SubscribeToShard,
2272
+ # with `StartingPosition` set to `AT_SEQUENCE_NUMBER` or
2273
+ # `AFTER_SEQUENCE_NUMBER`. Use `ContinuationSequenceNumber` for
2274
+ # checkpointing because it captures your shard progress even when no
2275
+ # data is written to the shard.
2177
2276
  # @return [String]
2178
2277
  #
2179
2278
  # @!attribute [rw] millis_behind_latest
@@ -2183,12 +2282,16 @@ module Aws::Kinesis
2183
2282
  # there are no new records to process at this moment.
2184
2283
  # @return [Integer]
2185
2284
  #
2285
+ # @!attribute [rw] child_shards
2286
+ # @return [Array<Types::ChildShard>]
2287
+ #
2186
2288
  # @see http://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/SubscribeToShardEvent AWS API Documentation
2187
2289
  #
2188
2290
  class SubscribeToShardEvent < Struct.new(
2189
2291
  :records,
2190
2292
  :continuation_sequence_number,
2191
2293
  :millis_behind_latest,
2294
+ :child_shards,
2192
2295
  :event_type)
2193
2296
  SENSITIVE = []
2194
2297
  include Aws::Structure
@@ -2280,7 +2383,20 @@ module Aws::Kinesis
2280
2383
  # @return [String]
2281
2384
  #
2282
2385
  # @!attribute [rw] target_shard_count
2283
- # The new number of shards.
2386
+ # The new number of shards. This value has the following default
2387
+ # limits. By default, you cannot do the following:
2388
+ #
2389
+ # * Set this value to more than double your current shard count for a
2390
+ # stream.
2391
+ #
2392
+ # * Set this value below half your current shard count for a stream.
2393
+ #
2394
+ # * Set this value to more than 500 shards in a stream (the default
2395
+ # limit for shard count per stream is 500 per account per region),
2396
+ # unless you request a limit increase.
2397
+ #
2398
+ # * Scale a stream with more than 500 shards down unless you set this
2399
+ # value to less than 500 shards.
2284
2400
  # @return [Integer]
2285
2401
  #
2286
2402
  # @!attribute [rw] scaling_type
@@ -2319,6 +2435,10 @@ module Aws::Kinesis
2319
2435
  include Aws::Structure
2320
2436
  end
2321
2437
 
2438
+ # This is a tagged union for all of the types of events an enhanced
2439
+ # fan-out consumer can receive over HTTP/2 after a call to
2440
+ # SubscribeToShard.
2441
+ #
2322
2442
  # EventStream is an Enumerator of Events.
2323
2443
  # #event_types #=> Array, returns all modeled event types in the stream
2324
2444
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-kinesis
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.26.0
4
+ version: 1.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-02 00:00:00.000000000 Z
11
+ date: 2020-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core