summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrendanHay <>2018-05-16 15:13:00 (GMT)
committerhdiff <hdiff@hdiff.luite.com>2018-05-16 15:13:00 (GMT)
commit02c76f49b1607445b65a10eab43ea8a208ee18cf (patch)
tree3fbb8d411e459ff5723092560b985f21f90f4a7c
parent7862d2437ab23504af8a34ac287ba81a00bf25ad (diff)
version 1.6.0HEAD1.6.0master
-rw-r--r--README.md2
-rw-r--r--amazonka-kinesis.cabal12
-rw-r--r--fixture/DescribeStreamSummary.yaml10
-rw-r--r--fixture/DescribeStreamSummaryResponse.proto0
-rw-r--r--fixture/ListShards.yaml10
-rw-r--r--fixture/ListShardsResponse.proto0
-rw-r--r--gen/Network/AWS/Kinesis.hs30
-rw-r--r--gen/Network/AWS/Kinesis/AddTagsToStream.hs10
-rw-r--r--gen/Network/AWS/Kinesis/CreateStream.hs26
-rw-r--r--gen/Network/AWS/Kinesis/DecreaseStreamRetentionPeriod.hs14
-rw-r--r--gen/Network/AWS/Kinesis/DeleteStream.hs12
-rw-r--r--gen/Network/AWS/Kinesis/DescribeLimits.hs18
-rw-r--r--gen/Network/AWS/Kinesis/DescribeStream.hs34
-rw-r--r--gen/Network/AWS/Kinesis/DescribeStreamSummary.hs140
-rw-r--r--gen/Network/AWS/Kinesis/DisableEnhancedMonitoring.hs16
-rw-r--r--gen/Network/AWS/Kinesis/EnableEnhancedMonitoring.hs14
-rw-r--r--gen/Network/AWS/Kinesis/GetRecords.hs44
-rw-r--r--gen/Network/AWS/Kinesis/GetShardIterator.hs54
-rw-r--r--gen/Network/AWS/Kinesis/IncreaseStreamRetentionPeriod.hs16
-rw-r--r--gen/Network/AWS/Kinesis/ListShards.hs190
-rw-r--r--gen/Network/AWS/Kinesis/ListStreams.hs26
-rw-r--r--gen/Network/AWS/Kinesis/ListTagsForStream.hs32
-rw-r--r--gen/Network/AWS/Kinesis/MergeShards.hs26
-rw-r--r--gen/Network/AWS/Kinesis/PutRecord.hs62
-rw-r--r--gen/Network/AWS/Kinesis/PutRecords.hs42
-rw-r--r--gen/Network/AWS/Kinesis/RemoveTagsFromStream.hs12
-rw-r--r--gen/Network/AWS/Kinesis/SplitShard.hs28
-rw-r--r--gen/Network/AWS/Kinesis/StartStreamEncryption.hs30
-rw-r--r--gen/Network/AWS/Kinesis/StopStreamEncryption.hs30
-rw-r--r--gen/Network/AWS/Kinesis/Types.hs66
-rw-r--r--gen/Network/AWS/Kinesis/Types/Product.hs313
-rw-r--r--gen/Network/AWS/Kinesis/Types/Sum.hs2
-rw-r--r--gen/Network/AWS/Kinesis/UpdateShardCount.hs56
-rw-r--r--gen/Network/AWS/Kinesis/Waiters.hs32
-rw-r--r--test/Main.hs2
-rw-r--r--test/Test/AWS/Gen/Kinesis.hs38
-rw-r--r--test/Test/AWS/Kinesis.hs2
-rw-r--r--test/Test/AWS/Kinesis/Internal.hs2
38 files changed, 1004 insertions, 449 deletions
diff --git a/README.md b/README.md
index 27edec4..aa452af 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@
## Version
-`1.5.0`
+`1.6.0`
## Description
diff --git a/amazonka-kinesis.cabal b/amazonka-kinesis.cabal
index be3372e..ebafa54 100644
--- a/amazonka-kinesis.cabal
+++ b/amazonka-kinesis.cabal
@@ -1,5 +1,5 @@
name: amazonka-kinesis
-version: 1.5.0
+version: 1.6.0
synopsis: Amazon Kinesis SDK.
homepage: https://github.com/brendanhay/amazonka
bug-reports: https://github.com/brendanhay/amazonka/issues
@@ -7,7 +7,7 @@ license: MPL-2.0
license-file: LICENSE
author: Brendan Hay
maintainer: Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-copyright: Copyright (c) 2013-2017 Brendan Hay
+copyright: Copyright (c) 2013-2018 Brendan Hay
category: Network, AWS, Cloud, Distributed Computing
build-type: Simple
cabal-version: >= 1.10
@@ -51,11 +51,13 @@ library
, Network.AWS.Kinesis.DeleteStream
, Network.AWS.Kinesis.DescribeLimits
, Network.AWS.Kinesis.DescribeStream
+ , Network.AWS.Kinesis.DescribeStreamSummary
, Network.AWS.Kinesis.DisableEnhancedMonitoring
, Network.AWS.Kinesis.EnableEnhancedMonitoring
, Network.AWS.Kinesis.GetRecords
, Network.AWS.Kinesis.GetShardIterator
, Network.AWS.Kinesis.IncreaseStreamRetentionPeriod
+ , Network.AWS.Kinesis.ListShards
, Network.AWS.Kinesis.ListStreams
, Network.AWS.Kinesis.ListTagsForStream
, Network.AWS.Kinesis.MergeShards
@@ -74,7 +76,7 @@ library
, Network.AWS.Kinesis.Types.Sum
build-depends:
- amazonka-core == 1.5.0.*
+ amazonka-core == 1.6.0.*
, base >= 4.7 && < 5
test-suite amazonka-kinesis-test
@@ -94,8 +96,8 @@ test-suite amazonka-kinesis-test
, Test.AWS.Kinesis.Internal
build-depends:
- amazonka-core == 1.5.0.*
- , amazonka-test == 1.5.0.*
+ amazonka-core == 1.6.0.*
+ , amazonka-test == 1.6.0.*
, amazonka-kinesis
, base
, bytestring
diff --git a/fixture/DescribeStreamSummary.yaml b/fixture/DescribeStreamSummary.yaml
new file mode 100644
index 0000000..acc24a2
--- /dev/null
+++ b/fixture/DescribeStreamSummary.yaml
@@ -0,0 +1,10 @@
+---
+method: POST
+headers:
+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/kinesis/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?
+ Host: kinesis.us-east-1.amazonaws.com
+ Content-Type: application/x-www-form-urlencoded; charset=utf-8
+ X-Amz-Content-SHA256: abcdef
+ X-Amz-Date: 20091028T223200Z
+body:
+ ''
diff --git a/fixture/DescribeStreamSummaryResponse.proto b/fixture/DescribeStreamSummaryResponse.proto
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/fixture/DescribeStreamSummaryResponse.proto
diff --git a/fixture/ListShards.yaml b/fixture/ListShards.yaml
new file mode 100644
index 0000000..acc24a2
--- /dev/null
+++ b/fixture/ListShards.yaml
@@ -0,0 +1,10 @@
+---
+method: POST
+headers:
+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/kinesis/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?
+ Host: kinesis.us-east-1.amazonaws.com
+ Content-Type: application/x-www-form-urlencoded; charset=utf-8
+ X-Amz-Content-SHA256: abcdef
+ X-Amz-Date: 20091028T223200Z
+body:
+ ''
diff --git a/fixture/ListShardsResponse.proto b/fixture/ListShardsResponse.proto
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/fixture/ListShardsResponse.proto
diff --git a/gen/Network/AWS/Kinesis.hs b/gen/Network/AWS/Kinesis.hs
index c5f2016..b685d05 100644
--- a/gen/Network/AWS/Kinesis.hs
+++ b/gen/Network/AWS/Kinesis.hs
@@ -5,15 +5,15 @@
-- |
-- Module : Network.AWS.Kinesis
--- Copyright : (c) 2013-2017 Brendan Hay
+-- Copyright : (c) 2013-2018 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
--- __Amazon Kinesis Streams Service API Reference__
+-- __Amazon Kinesis Data Streams Service API Reference__
--
--- Amazon Kinesis Streams is a managed service that scales elastically for real time processing of streaming big data.
+-- Amazon Kinesis Data Streams is a managed service that scales elastically for real-time processing of streaming big data.
--
module Network.AWS.Kinesis
(
@@ -44,6 +44,9 @@ module Network.AWS.Kinesis
-- ** KMSNotFoundException
, _KMSNotFoundException
+ -- ** ExpiredNextTokenException
+ , _ExpiredNextTokenException
+
-- ** KMSDisabledException
, _KMSDisabledException
@@ -80,6 +83,9 @@ module Network.AWS.Kinesis
-- ** MergeShards
, module Network.AWS.Kinesis.MergeShards
+ -- ** DescribeStreamSummary
+ , module Network.AWS.Kinesis.DescribeStreamSummary
+
-- ** GetShardIterator
, module Network.AWS.Kinesis.GetShardIterator
@@ -110,6 +116,9 @@ module Network.AWS.Kinesis
-- ** PutRecords
, module Network.AWS.Kinesis.PutRecords
+ -- ** ListShards
+ , module Network.AWS.Kinesis.ListShards
+
-- ** DeleteStream
, module Network.AWS.Kinesis.DeleteStream
@@ -222,6 +231,19 @@ module Network.AWS.Kinesis
, sdStreamCreationTimestamp
, sdEnhancedMonitoring
+ -- ** StreamDescriptionSummary
+ , StreamDescriptionSummary
+ , streamDescriptionSummary
+ , sdsEncryptionType
+ , sdsKeyId
+ , sdsStreamName
+ , sdsStreamARN
+ , sdsStreamStatus
+ , sdsRetentionPeriodHours
+ , sdsStreamCreationTimestamp
+ , sdsEnhancedMonitoring
+ , sdsOpenShardCount
+
-- ** Tag
, Tag
, tag
@@ -235,11 +257,13 @@ import Network.AWS.Kinesis.DecreaseStreamRetentionPeriod
import Network.AWS.Kinesis.DeleteStream
import Network.AWS.Kinesis.DescribeLimits
import Network.AWS.Kinesis.DescribeStream
+import Network.AWS.Kinesis.DescribeStreamSummary
import Network.AWS.Kinesis.DisableEnhancedMonitoring
import Network.AWS.Kinesis.EnableEnhancedMonitoring
import Network.AWS.Kinesis.GetRecords
import Network.AWS.Kinesis.GetShardIterator
import Network.AWS.Kinesis.IncreaseStreamRetentionPeriod
+import Network.AWS.Kinesis.ListShards
import Network.AWS.Kinesis.ListStreams
import Network.AWS.Kinesis.ListTagsForStream
import Network.AWS.Kinesis.MergeShards
diff --git a/gen/Network/AWS/Kinesis/AddTagsToStream.hs b/gen/Network/AWS/Kinesis/AddTagsToStream.hs
index 6637d96..78114f6 100644
--- a/gen/Network/AWS/Kinesis/AddTagsToStream.hs
+++ b/gen/Network/AWS/Kinesis/AddTagsToStream.hs
@@ -12,17 +12,19 @@
-- |
-- Module : Network.AWS.Kinesis.AddTagsToStream
--- Copyright : (c) 2013-2017 Brendan Hay
+-- Copyright : (c) 2013-2018 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
--- Adds or updates tags for the specified Amazon Kinesis stream. Each stream can have up to 10 tags.
+-- Adds or updates tags for the specified Kinesis data stream. Each stream can have up to 10 tags.
--
--
-- If tags have already been assigned to the stream, @AddTagsToStream@ overwrites any existing tags that correspond to the specified tag keys.
--
+-- 'AddTagsToStream' has a limit of five transactions per second per account.
+--
module Network.AWS.Kinesis.AddTagsToStream
(
-- * Creating a Request
@@ -71,11 +73,11 @@ addTagsToStream pStreamName_ =
-- | The name of the stream.
attsStreamName :: Lens' AddTagsToStream Text
-attsStreamName = lens _attsStreamName (\ s a -> s{_attsStreamName = a});
+attsStreamName = lens _attsStreamName (\ s a -> s{_attsStreamName = a})
-- | The set of key-value pairs to use to create the tags.
attsTags :: Lens' AddTagsToStream (HashMap Text Text)
-attsTags = lens _attsTags (\ s a -> s{_attsTags = a}) . _Map;
+attsTags = lens _attsTags (\ s a -> s{_attsTags = a}) . _Map
instance AWSRequest AddTagsToStream where
type Rs AddTagsToStream = AddTagsToStreamResponse
diff --git a/gen/Network/AWS/Kinesis/CreateStream.hs b/gen/Network/AWS/Kinesis/CreateStream.hs
index 8cbfa08..f406716 100644
--- a/gen/Network/AWS/Kinesis/CreateStream.hs
+++ b/gen/Network/AWS/Kinesis/CreateStream.hs
@@ -12,22 +12,22 @@
-- |
-- Module : Network.AWS.Kinesis.CreateStream
--- Copyright : (c) 2013-2017 Brendan Hay
+-- Copyright : (c) 2013-2018 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
--- Creates an Amazon Kinesis stream. A stream captures and transports data records that are continuously emitted from different data sources or /producers/ . Scale-out within a stream is explicitly supported by means of shards, which are uniquely identified groups of data records in a stream.
+-- Creates a Kinesis data stream. A stream captures and transports data records that are continuously emitted from different data sources or /producers/ . Scale-out within a stream is explicitly supported by means of shards, which are uniquely identified groups of data records in a stream.
--
--
--- You specify and control the number of shards that a stream is composed of. Each shard can support reads up to 5 transactions per second, up to a maximum data read total of 2 MB per second. Each shard can support writes up to 1,000 records per second, up to a maximum data write total of 1 MB per second. You can add shards to a stream if the amount of data input increases and you can remove shards if the amount of data input decreases.
+-- You specify and control the number of shards that a stream is composed of. Each shard can support reads up to five transactions per second, up to a maximum data read total of 2 MB per second. Each shard can support writes up to 1,000 records per second, up to a maximum data write total of 1 MB per second. If the amount of data input increases or decreases, you can add or remove shards.
--
--- The stream name identifies the stream. The name is scoped to the AWS account used by the application. It is also scoped by region. That is, two streams in two different accounts can have the same name, and two streams in the same account, but in two different regions, can have the same name.
+-- The stream name identifies the stream. The name is scoped to the AWS account used by the application. It is also scoped by AWS Region. That is, two streams in two different accounts can have the same name, and two streams in the same account, but in two different Regions, can have the same name.
--
--- @CreateStream@ is an asynchronous operation. Upon receiving a @CreateStream@ request, Amazon Kinesis immediately returns and sets the stream status to @CREATING@ . After the stream is created, Amazon Kinesis sets the stream status to @ACTIVE@ . You should perform read and write operations only on an @ACTIVE@ stream.
+-- @CreateStream@ is an asynchronous operation. Upon receiving a @CreateStream@ request, Kinesis Data Streams immediately returns and sets the stream status to @CREATING@ . After the stream is created, Kinesis Data Streams sets the stream status to @ACTIVE@ . You should perform read and write operations only on an @ACTIVE@ stream.
--
--- You receive a @LimitExceededException@ when making a @CreateStream@ request if you try to do one of the following:
+-- You receive a @LimitExceededException@ when making a @CreateStream@ request when you try to do one of the following:
--
-- * Have more than five streams in the @CREATING@ state at any point in time.
--
@@ -35,11 +35,11 @@
--
--
--
--- For the default shard limit for an AWS account, see <http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html Streams Limits> in the /Amazon Kinesis Streams Developer Guide/ . If you need to increase this limit, <http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html contact AWS Support> .
+-- For the default shard limit for an AWS account, see <http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html Amazon Kinesis Data Streams Limits> in the /Amazon Kinesis Data Streams Developer Guide/ . To increase this limit, <http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html contact AWS Support> .
--
-- You can use @DescribeStream@ to check the stream status, which is returned in @StreamStatus@ .
--
--- 'CreateStream' has a limit of 5 transactions per second per account.
+-- 'CreateStream' has a limit of five transactions per second per account.
--
module Network.AWS.Kinesis.CreateStream
(
@@ -77,7 +77,7 @@ data CreateStream = CreateStream'
--
-- Use one of the following lenses to modify other fields as desired:
--
--- * 'csStreamName' - A name to identify the stream. The stream name is scoped to the AWS account used by the application that creates the stream. It is also scoped by region. That is, two streams in two different AWS accounts can have the same name, and two streams in the same AWS account but in two different regions can have the same name.
+-- * 'csStreamName' - A name to identify the stream. The stream name is scoped to the AWS account used by the application that creates the stream. It is also scoped by AWS Region. That is, two streams in two different AWS accounts can have the same name. Two streams in the same AWS account but in two different Regions can also have the same name.
--
-- * 'csShardCount' - The number of shards that the stream will use. The throughput of the stream is a function of the number of shards; more shards are required for greater provisioned throughput. DefaultShardLimit;
createStream
@@ -86,16 +86,16 @@ createStream
-> CreateStream
createStream pStreamName_ pShardCount_ =
CreateStream'
- {_csStreamName = pStreamName_, _csShardCount = _Nat # pShardCount_}
+ {_csStreamName = pStreamName_, _csShardCount = _Nat # pShardCount_}
--- | A name to identify the stream. The stream name is scoped to the AWS account used by the application that creates the stream. It is also scoped by region. That is, two streams in two different AWS accounts can have the same name, and two streams in the same AWS account but in two different regions can have the same name.
+-- | A name to identify the stream. The stream name is scoped to the AWS account used by the application that creates the stream. It is also scoped by AWS Region. That is, two streams in two different AWS accounts can have the same name. Two streams in the same AWS account but in two different Regions can also have the same name.
csStreamName :: Lens' CreateStream Text
-csStreamName = lens _csStreamName (\ s a -> s{_csStreamName = a});
+csStreamName = lens _csStreamName (\ s a -> s{_csStreamName = a})
-- | The number of shards that the stream will use. The throughput of the stream is a function of the number of shards; more shards are required for greater provisioned throughput. DefaultShardLimit;
csShardCount :: Lens' CreateStream Natural
-csShardCount = lens _csShardCount (\ s a -> s{_csShardCount = a}) . _Nat;
+csShardCount = lens _csShardCount (\ s a -> s{_csShardCount = a}) . _Nat
instance AWSRequest CreateStream where
type Rs CreateStream = CreateStreamResponse
diff --git a/gen/Network/AWS/Kinesis/DecreaseStreamRetentionPeriod.hs b/gen/Network/AWS/Kinesis/DecreaseStreamRetentionPeriod.hs
index 91a57ec..9e4da61 100644
--- a/gen/Network/AWS/Kinesis/DecreaseStreamRetentionPeriod.hs
+++ b/gen/Network/AWS/Kinesis/DecreaseStreamRetentionPeriod.hs
@@ -12,13 +12,13 @@
-- |
-- Module : Network.AWS.Kinesis.DecreaseStreamRetentionPeriod
--- Copyright : (c) 2013-2017 Brendan Hay
+-- Copyright : (c) 2013-2018 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
--- Decreases the Amazon Kinesis stream's retention period, which is the length of time data records are accessible after they are added to the stream. The minimum value of a stream's retention period is 24 hours.
+-- Decreases the Kinesis data stream's retention period, which is the length of time data records are accessible after they are added to the stream. The minimum value of a stream's retention period is 24 hours.
--
--
-- This operation may result in lost data. For example, if the stream's retention period is 48 hours and is decreased to 24 hours, any data already in the stream that is older than 24 hours is inaccessible.
@@ -68,18 +68,18 @@ decreaseStreamRetentionPeriod
-> DecreaseStreamRetentionPeriod
decreaseStreamRetentionPeriod pStreamName_ pRetentionPeriodHours_ =
DecreaseStreamRetentionPeriod'
- { _dsrpStreamName = pStreamName_
- , _dsrpRetentionPeriodHours = _Nat # pRetentionPeriodHours_
- }
+ { _dsrpStreamName = pStreamName_
+ , _dsrpRetentionPeriodHours = _Nat # pRetentionPeriodHours_
+ }
-- | The name of the stream to modify.
dsrpStreamName :: Lens' DecreaseStreamRetentionPeriod Text
-dsrpStreamName = lens _dsrpStreamName (\ s a -> s{_dsrpStreamName = a});
+dsrpStreamName = lens _dsrpStreamName (\ s a -> s{_dsrpStreamName = a})
-- | The new retention period of the stream, in hours. Must be less than the current retention period.
dsrpRetentionPeriodHours :: Lens' DecreaseStreamRetentionPeriod Natural
-dsrpRetentionPeriodHours = lens _dsrpRetentionPeriodHours (\ s a -> s{_dsrpRetentionPeriodHours = a}) . _Nat;
+dsrpRetentionPeriodHours = lens _dsrpRetentionPeriodHours (\ s a -> s{_dsrpRetentionPeriodHours = a}) . _Nat
instance AWSRequest DecreaseStreamRetentionPeriod
where
diff --git a/gen/Network/AWS/Kinesis/DeleteStream.hs b/gen/Network/AWS/Kinesis/DeleteStream.hs
index 76bb52b..300b6ce 100644
--- a/gen/Network/AWS/Kinesis/DeleteStream.hs
+++ b/gen/Network/AWS/Kinesis/DeleteStream.hs
@@ -12,24 +12,24 @@
-- |
-- Module : Network.AWS.Kinesis.DeleteStream
--- Copyright : (c) 2013-2017 Brendan Hay
+-- Copyright : (c) 2013-2018 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
--- Deletes an Amazon Kinesis stream and all its shards and data. You must shut down any applications that are operating on the stream before you delete the stream. If an application attempts to operate on a deleted stream, it will receive the exception @ResourceNotFoundException@ .
+-- Deletes a Kinesis data stream and all its shards and data. You must shut down any applications that are operating on the stream before you delete the stream. If an application attempts to operate on a deleted stream, it receives the exception @ResourceNotFoundException@ .
--
--
--- If the stream is in the @ACTIVE@ state, you can delete it. After a @DeleteStream@ request, the specified stream is in the @DELETING@ state until Amazon Kinesis completes the deletion.
+-- If the stream is in the @ACTIVE@ state, you can delete it. After a @DeleteStream@ request, the specified stream is in the @DELETING@ state until Kinesis Data Streams completes the deletion.
--
--- __Note:__ Amazon Kinesis might continue to accept data read and write operations, such as 'PutRecord' , 'PutRecords' , and 'GetRecords' , on a stream in the @DELETING@ state until the stream deletion is complete.
+-- __Note:__ Kinesis Data Streams might continue to accept data read and write operations, such as 'PutRecord' , 'PutRecords' , and 'GetRecords' , on a stream in the @DELETING@ state until the stream deletion is complete.
--
-- When you delete a stream, any shards in that stream are also deleted, and any tags are dissociated from the stream.
--
-- You can use the 'DescribeStream' operation to check the state of the stream, which is returned in @StreamStatus@ .
--
--- 'DeleteStream' has a limit of 5 transactions per second per account.
+-- 'DeleteStream' has a limit of five transactions per second per account.
--
module Network.AWS.Kinesis.DeleteStream
(
@@ -74,7 +74,7 @@ deleteStream pStreamName_ = DeleteStream' {_dsStreamName = pStreamName_}
-- | The name of the stream to delete.
dsStreamName :: Lens' DeleteStream Text
-dsStreamName = lens _dsStreamName (\ s a -> s{_dsStreamName = a});
+dsStreamName = lens _dsStreamName (\ s a -> s{_dsStreamName = a})
instance AWSRequest DeleteStream where
type Rs DeleteStream = DeleteStreamResponse
diff --git a/gen/Network/AWS/Kinesis/DescribeLimits.hs b/gen/Network/AWS/Kinesis/DescribeLimits.hs
index dcf8ae1..7a7bace 100644
--- a/gen/Network/AWS/Kinesis/DescribeLimits.hs
+++ b/gen/Network/AWS/Kinesis/DescribeLimits.hs
@@ -12,7 +12,7 @@
-- |
-- Module : Network.AWS.Kinesis.DescribeLimits
--- Copyright : (c) 2013-2017 Brendan Hay
+-- Copyright : (c) 2013-2018 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability : auto-generated
@@ -23,7 +23,7 @@
--
-- If you update your account limits, the old limits might be returned for a few minutes.
--
--- This operation has a limit of 1 transaction per second per account.
+-- This operation has a limit of one transaction per second per account.
--
module Network.AWS.Kinesis.DescribeLimits
(
@@ -116,22 +116,22 @@ describeLimitsResponse
-> DescribeLimitsResponse
describeLimitsResponse pResponseStatus_ pShardLimit_ pOpenShardCount_ =
DescribeLimitsResponse'
- { _dlrsResponseStatus = pResponseStatus_
- , _dlrsShardLimit = _Nat # pShardLimit_
- , _dlrsOpenShardCount = _Nat # pOpenShardCount_
- }
+ { _dlrsResponseStatus = pResponseStatus_
+ , _dlrsShardLimit = _Nat # pShardLimit_
+ , _dlrsOpenShardCount = _Nat # pOpenShardCount_
+ }
-- | -- | The response status code.
dlrsResponseStatus :: Lens' DescribeLimitsResponse Int
-dlrsResponseStatus = lens _dlrsResponseStatus (\ s a -> s{_dlrsResponseStatus = a});
+dlrsResponseStatus = lens _dlrsResponseStatus (\ s a -> s{_dlrsResponseStatus = a})
-- | The maximum number of shards.
dlrsShardLimit :: Lens' DescribeLimitsResponse Natural
-dlrsShardLimit = lens _dlrsShardLimit (\ s a -> s{_dlrsShardLimit = a}) . _Nat;
+dlrsShardLimit = lens _dlrsShardLimit (\ s a -> s{_dlrsShardLimit = a}) . _Nat
-- | The number of open shards.
dlrsOpenShardCount :: Lens' DescribeLimitsResponse Natural
-dlrsOpenShardCount = lens _dlrsOpenShardCount (\ s a -> s{_dlrsOpenShardCount = a}) . _Nat;
+dlrsOpenShardCount = lens _dlrsOpenShardCount (\ s a -> s{_dlrsOpenShardCount = a}) . _Nat
instance NFData DescribeLimitsResponse where
diff --git a/gen/Network/AWS/Kinesis/DescribeStream.hs b/gen/Network/AWS/Kinesis/DescribeStream.hs
index df1e01e..29d1cef 100644
--- a/gen/Network/AWS/Kinesis/DescribeStream.hs
+++ b/gen/Network/AWS/Kinesis/DescribeStream.hs
@@ -12,18 +12,18 @@
-- |
-- Module : Network.AWS.Kinesis.DescribeStream
--- Copyright : (c) 2013-2017 Brendan Hay
+-- Copyright : (c) 2013-2018 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
--- Describes the specified Amazon Kinesis stream.
+-- Describes the specified Kinesis data stream.
--
--
-- The information returned includes the stream name, Amazon Resource Name (ARN), creation time, enhanced metric configuration, and shard map. The shard map is an array of shard objects. For each shard object, there is the hash key and sequence number ranges that the shard spans, and the IDs of any earlier shards that played in a role in creating the shard. Every record ingested in the stream is identified by a sequence number, which is assigned when the record is put into the stream.
--
--- You can limit the number of shards returned by each call. For more information, see <http://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-retrieve-shards.html Retrieving Shards from a Stream> in the /Amazon Kinesis Streams Developer Guide/ .
+-- You can limit the number of shards returned by each call. For more information, see <http://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-retrieve-shards.html Retrieving Shards from a Stream> in the /Amazon Kinesis Data Streams Developer Guide/ .
--
-- There are no guarantees about the chronological order shards returned. To process shards in chronological order, use the ID of the parent shard to track the lineage to the oldest shard.
--
@@ -83,23 +83,23 @@ describeStream
-> DescribeStream
describeStream pStreamName_ =
DescribeStream'
- { _dExclusiveStartShardId = Nothing
- , _dLimit = Nothing
- , _dStreamName = pStreamName_
- }
+ { _dExclusiveStartShardId = Nothing
+ , _dLimit = Nothing
+ , _dStreamName = pStreamName_
+ }
-- | The shard ID of the shard to start with.
dExclusiveStartShardId :: Lens' DescribeStream (Maybe Text)
-dExclusiveStartShardId = lens _dExclusiveStartShardId (\ s a -> s{_dExclusiveStartShardId = a});
+dExclusiveStartShardId = lens _dExclusiveStartShardId (\ s a -> s{_dExclusiveStartShardId = a})
-- | The maximum number of shards to return in a single call. The default value is 100. If you specify a value greater than 100, at most 100 shards are returned.
dLimit :: Lens' DescribeStream (Maybe Natural)
-dLimit = lens _dLimit (\ s a -> s{_dLimit = a}) . mapping _Nat;
+dLimit = lens _dLimit (\ s a -> s{_dLimit = a}) . mapping _Nat
-- | The name of the stream to describe.
dStreamName :: Lens' DescribeStream Text
-dStreamName = lens _dStreamName (\ s a -> s{_dStreamName = a});
+dStreamName = lens _dStreamName (\ s a -> s{_dStreamName = a})
instance AWSPager DescribeStream where
page rq rs
@@ -170,24 +170,24 @@ data DescribeStreamResponse = DescribeStreamResponse'
--
-- * 'dsrsResponseStatus' - -- | The response status code.
--
--- * 'dsrsStreamDescription' - The current status of the stream, the stream ARN, an array of shard objects that comprise the stream, and whether there are more shards available.
+-- * 'dsrsStreamDescription' - The current status of the stream, the stream Amazon Resource Name (ARN), an array of shard objects that comprise the stream, and whether there are more shards available.
describeStreamResponse
:: Int -- ^ 'dsrsResponseStatus'
-> StreamDescription -- ^ 'dsrsStreamDescription'
-> DescribeStreamResponse
describeStreamResponse pResponseStatus_ pStreamDescription_ =
DescribeStreamResponse'
- { _dsrsResponseStatus = pResponseStatus_
- , _dsrsStreamDescription = pStreamDescription_
- }
+ { _dsrsResponseStatus = pResponseStatus_
+ , _dsrsStreamDescription = pStreamDescription_
+ }
-- | -- | The response status code.
dsrsResponseStatus :: Lens' DescribeStreamResponse Int
-dsrsResponseStatus = lens _dsrsResponseStatus (\ s a -> s{_dsrsResponseStatus = a});
+dsrsResponseStatus = lens _dsrsResponseStatus (\ s a -> s{_dsrsResponseStatus = a})
--- | The current status of the stream, the stream ARN, an array of shard objects that comprise the stream, and whether there are more shards available.
+-- | The current status of the stream, the stream Amazon Resource Name (ARN), an array of shard objects that comprise the stream, and whether there are more shards available.
dsrsStreamDescription :: Lens' DescribeStreamResponse StreamDescription
-dsrsStreamDescription = lens _dsrsStreamDescription (\ s a -> s{_dsrsStreamDescription = a});
+dsrsStreamDescription = lens _dsrsStreamDescription (\ s a -> s{_dsrsStreamDescription = a})
instance NFData DescribeStreamResponse where
diff --git a/gen/Network/AWS/Kinesis/DescribeStreamSummary.hs b/gen/Network/AWS/Kinesis/DescribeStreamSummary.hs
new file mode 100644
index 0000000..40791cc
--- /dev/null
+++ b/gen/Network/AWS/Kinesis/DescribeStreamSummary.hs
@@ -0,0 +1,140 @@
+{-# LANGUAGE DeriveDataTypeable #-}
+{-# LANGUAGE DeriveGeneric #-}
+{-# LANGUAGE OverloadedStrings #-}
+{-# LANGUAGE RecordWildCards #-}
+{-# LANGUAGE TypeFamilies #-}
+
+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
+{-# OPTIONS_GHC -fno-warn-unused-matches #-}
+
+-- Derived from AWS service descriptions, licensed under Apache 2.0.
+
+-- |
+-- Module : Network.AWS.Kinesis.DescribeStreamSummary
+-- Copyright : (c) 2013-2018 Brendan Hay
+-- License : Mozilla Public License, v. 2.0.
+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
+-- Stability : auto-generated
+-- Portability : non-portable (GHC extensions)
+--
+-- Provides a summarized description of the specified Kinesis data stream without the shard list.
+--
+--
+-- The information returned includes the stream name, Amazon Resource Name (ARN), status, record retention period, approximate creation time, monitoring, encryption details, and open shard count.
+--
+module Network.AWS.Kinesis.DescribeStreamSummary
+ (
+ -- * Creating a Request
+ describeStreamSummary
+ , DescribeStreamSummary
+ -- * Request Lenses
+ , dssStreamName
+
+ -- * Destructuring the Response
+ , describeStreamSummaryResponse
+ , DescribeStreamSummaryResponse
+ -- * Response Lenses
+ , dssrsResponseStatus
+ , dssrsStreamDescriptionSummary
+ ) where
+
+import Network.AWS.Kinesis.Types
+import Network.AWS.Kinesis.Types.Product
+import Network.AWS.Lens
+import Network.AWS.Prelude
+import Network.AWS.Request
+import Network.AWS.Response
+
+-- | /See:/ 'describeStreamSummary' smart constructor.
+newtype DescribeStreamSummary = DescribeStreamSummary'
+ { _dssStreamName :: Text
+ } deriving (Eq, Read, Show, Data, Typeable, Generic)
+
+
+-- | Creates a value of 'DescribeStreamSummary' with the minimum fields required to make a request.
+--
+-- Use one of the following lenses to modify other fields as desired:
+--
+-- * 'dssStreamName' - The name of the stream to describe.
+describeStreamSummary
+ :: Text -- ^ 'dssStreamName'
+ -> DescribeStreamSummary
+describeStreamSummary pStreamName_ =
+ DescribeStreamSummary' {_dssStreamName = pStreamName_}
+
+
+-- | The name of the stream to describe.
+dssStreamName :: Lens' DescribeStreamSummary Text
+dssStreamName = lens _dssStreamName (\ s a -> s{_dssStreamName = a})
+
+instance AWSRequest DescribeStreamSummary where
+ type Rs DescribeStreamSummary =
+ DescribeStreamSummaryResponse
+ request = postJSON kinesis
+ response
+ = receiveJSON
+ (\ s h x ->
+ DescribeStreamSummaryResponse' <$>
+ (pure (fromEnum s)) <*>
+ (x .:> "StreamDescriptionSummary"))
+
+instance Hashable DescribeStreamSummary where
+
+instance NFData DescribeStreamSummary where
+
+instance ToHeaders DescribeStreamSummary where
+ toHeaders
+ = const
+ (mconcat
+ ["X-Amz-Target" =#
+ ("Kinesis_20131202.DescribeStreamSummary" ::
+ ByteString),
+ "Content-Type" =#
+ ("application/x-amz-json-1.1" :: ByteString)])
+
+instance ToJSON DescribeStreamSummary where
+ toJSON DescribeStreamSummary'{..}
+ = object
+ (catMaybes [Just ("StreamName" .= _dssStreamName)])
+
+instance ToPath DescribeStreamSummary where
+ toPath = const "/"
+
+instance ToQuery DescribeStreamSummary where
+ toQuery = const mempty
+
+-- | /See:/ 'describeStreamSummaryResponse' smart constructor.
+data DescribeStreamSummaryResponse = DescribeStreamSummaryResponse'
+ { _dssrsResponseStatus :: !Int
+ , _dssrsStreamDescriptionSummary :: !StreamDescriptionSummary
+ } deriving (Eq, Read, Show, Data, Typeable, Generic)
+
+
+-- | Creates a value of 'DescribeStreamSummaryResponse' with the minimum fields required to make a request.
+--
+-- Use one of the following lenses to modify other fields as desired:
+--
+-- * 'dssrsResponseStatus' - -- | The response status code.
+--
+-- * 'dssrsStreamDescriptionSummary' - A 'StreamDescriptionSummary' containing information about the stream.
+describeStreamSummaryResponse
+ :: Int -- ^ 'dssrsResponseStatus'
+ -> StreamDescriptionSummary -- ^ 'dssrsStreamDescriptionSummary'
+ -> DescribeStreamSummaryResponse
+describeStreamSummaryResponse pResponseStatus_ pStreamDescriptionSummary_ =
+ DescribeStreamSummaryResponse'
+ { _dssrsResponseStatus = pResponseStatus_
+ , _dssrsStreamDescriptionSummary = pStreamDescriptionSummary_
+ }
+
+
+-- | -- | The response status code.
+dssrsResponseStatus :: Lens' DescribeStreamSummaryResponse Int
+dssrsResponseStatus = lens _dssrsResponseStatus (\ s a -> s{_dssrsResponseStatus = a})
+
+-- | A 'StreamDescriptionSummary' containing information about the stream.
+dssrsStreamDescriptionSummary :: Lens' DescribeStreamSummaryResponse StreamDescriptionSummary
+dssrsStreamDescriptionSummary = lens _dssrsStreamDescriptionSummary (\ s a -> s{_dssrsStreamDescriptionSummary = a})
+
+instance NFData DescribeStreamSummaryResponse where
diff --git a/gen/Network/AWS/Kinesis/DisableEnhancedMonitoring.hs b/gen/Network/AWS/Kinesis/DisableEnhancedMonitoring.hs
index e413e81..0f24f12 100644
--- a/gen/Network/AWS/Kinesis/DisableEnhancedMonitoring.hs
+++ b/gen/Network/AWS/Kinesis/DisableEnhancedMonitoring.hs
@@ -12,7 +12,7 @@
-- |
-- Module : Network.AWS.Kinesis.DisableEnhancedMonitoring
--- Copyright : (c) 2013-2017 Brendan Hay
+-- Copyright : (c) 2013-2018 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability : auto-generated
@@ -61,24 +61,24 @@ data DisableEnhancedMonitoring = DisableEnhancedMonitoring'
--
-- Use one of the following lenses to modify other fields as desired:
--
--- * 'demStreamName' - The name of the Amazon Kinesis stream for which to disable enhanced monitoring.
+-- * 'demStreamName' - The name of the Kinesis data stream for which to disable enhanced monitoring.
--
--- * 'demShardLevelMetrics' - List of shard-level metrics to disable. The following are the valid shard-level metrics. The value "@ALL@ " disables every metric. * @IncomingBytes@ * @IncomingRecords@ * @OutgoingBytes@ * @OutgoingRecords@ * @WriteProvisionedThroughputExceeded@ * @ReadProvisionedThroughputExceeded@ * @IteratorAgeMilliseconds@ * @ALL@ For more information, see <http://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html Monitoring the Amazon Kinesis Streams Service with Amazon CloudWatch> in the /Amazon Kinesis Streams Developer Guide/ .
+-- * 'demShardLevelMetrics' - List of shard-level metrics to disable. The following are the valid shard-level metrics. The value "@ALL@ " disables every metric. * @IncomingBytes@ * @IncomingRecords@ * @OutgoingBytes@ * @OutgoingRecords@ * @WriteProvisionedThroughputExceeded@ * @ReadProvisionedThroughputExceeded@ * @IteratorAgeMilliseconds@ * @ALL@ For more information, see <http://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html Monitoring the Amazon Kinesis Data Streams Service with Amazon CloudWatch> in the /Amazon Kinesis Data Streams Developer Guide/ .
disableEnhancedMonitoring
:: Text -- ^ 'demStreamName'
-> DisableEnhancedMonitoring
disableEnhancedMonitoring pStreamName_ =
DisableEnhancedMonitoring'
- {_demStreamName = pStreamName_, _demShardLevelMetrics = mempty}
+ {_demStreamName = pStreamName_, _demShardLevelMetrics = mempty}
--- | The name of the Amazon Kinesis stream for which to disable enhanced monitoring.
+-- | The name of the Kinesis data stream for which to disable enhanced monitoring.
demStreamName :: Lens' DisableEnhancedMonitoring Text
-demStreamName = lens _demStreamName (\ s a -> s{_demStreamName = a});
+demStreamName = lens _demStreamName (\ s a -> s{_demStreamName = a})
--- | List of shard-level metrics to disable. The following are the valid shard-level metrics. The value "@ALL@ " disables every metric. * @IncomingBytes@ * @IncomingRecords@ * @OutgoingBytes@ * @OutgoingRecords@ * @WriteProvisionedThroughputExceeded@ * @ReadProvisionedThroughputExceeded@ * @IteratorAgeMilliseconds@ * @ALL@ For more information, see <http://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html Monitoring the Amazon Kinesis Streams Service with Amazon CloudWatch> in the /Amazon Kinesis Streams Developer Guide/ .
+-- | List of shard-level metrics to disable. The following are the valid shard-level metrics. The value "@ALL@ " disables every metric. * @IncomingBytes@ * @IncomingRecords@ * @OutgoingBytes@ * @OutgoingRecords@ * @WriteProvisionedThroughputExceeded@ * @ReadProvisionedThroughputExceeded@ * @IteratorAgeMilliseconds@ * @ALL@ For more information, see <http://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html Monitoring the Amazon Kinesis Data Streams Service with Amazon CloudWatch> in the /Amazon Kinesis Data Streams Developer Guide/ .
demShardLevelMetrics :: Lens' DisableEnhancedMonitoring [MetricsName]
-demShardLevelMetrics = lens _demShardLevelMetrics (\ s a -> s{_demShardLevelMetrics = a}) . _Coerce;
+demShardLevelMetrics = lens _demShardLevelMetrics (\ s a -> s{_demShardLevelMetrics = a}) . _Coerce
instance AWSRequest DisableEnhancedMonitoring where
type Rs DisableEnhancedMonitoring =
diff --git a/gen/Network/AWS/Kinesis/EnableEnhancedMonitoring.hs b/gen/Network/AWS/Kinesis/EnableEnhancedMonitoring.hs
index 8a7a367..a63fddf 100644
--- a/gen/Network/AWS/Kinesis/EnableEnhancedMonitoring.hs
+++ b/gen/Network/AWS/Kinesis/EnableEnhancedMonitoring.hs
@@ -12,13 +12,13 @@
-- |
-- Module : Network.AWS.Kinesis.EnableEnhancedMonitoring
--- Copyright : (c) 2013-2017 Brendan Hay
+-- Copyright : (c) 2013-2018 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
--- Enables enhanced Amazon Kinesis stream monitoring for shard-level metrics.
+-- Enables enhanced Kinesis data stream monitoring for shard-level metrics.
--
--
module Network.AWS.Kinesis.EnableEnhancedMonitoring
@@ -63,22 +63,22 @@ data EnableEnhancedMonitoring = EnableEnhancedMonitoring'
--
-- * 'eemStreamName' - The name of the stream for which to enable enhanced monitoring.
--
--- * 'eemShardLevelMetrics' - List of shard-level metrics to enable. The following are the valid shard-level metrics. The value "@ALL@ " enables every metric. * @IncomingBytes@ * @IncomingRecords@ * @OutgoingBytes@ * @OutgoingRecords@ * @WriteProvisionedThroughputExceeded@ * @ReadProvisionedThroughputExceeded@ * @IteratorAgeMilliseconds@ * @ALL@ For more information, see <http://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html Monitoring the Amazon Kinesis Streams Service with Amazon CloudWatch> in the /Amazon Kinesis Streams Developer Guide/ .
+-- * 'eemShardLevelMetrics' - List of shard-level metrics to enable. The following are the valid shard-level metrics. The value "@ALL@ " enables every metric. * @IncomingBytes@ * @IncomingRecords@ * @OutgoingBytes@ * @OutgoingRecords@ * @WriteProvisionedThroughputExceeded@ * @ReadProvisionedThroughputExceeded@ * @IteratorAgeMilliseconds@ * @ALL@ For more information, see <http://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html Monitoring the Amazon Kinesis Data Streams Service with Amazon CloudWatch> in the /Amazon Kinesis Data Streams Developer Guide/ .
enableEnhancedMonitoring
:: Text -- ^ 'eemStreamName'
-> EnableEnhancedMonitoring
enableEnhancedMonitoring pStreamName_ =
EnableEnhancedMonitoring'
- {_eemStreamName = pStreamName_, _eemShardLevelMetrics = mempty}
+ {_eemStreamName = pStreamName_, _eemShardLevelMetrics = mempty}
-- | The name of the stream for which to enable enhanced monitoring.
eemStreamName :: Lens' EnableEnhancedMonitoring Text
-eemStreamName = lens _eemStreamName (\ s a -> s{_eemStreamName = a});
+eemStreamName = lens _eemStreamName (\ s a -> s{_eemStreamName = a})
--- | List of shard-level metrics to enable. The following are the valid shard-level metrics. The value "@ALL@ " enables every metric. * @IncomingBytes@ * @IncomingRecords@ * @OutgoingBytes@ * @OutgoingRecords@ * @WriteProvisionedThroughputExceeded@ * @ReadProvisionedThroughputExceeded@ * @IteratorAgeMilliseconds@ * @ALL@ For more information, see <http://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html Monitoring the Amazon Kinesis Streams Service with Amazon CloudWatch> in the /Amazon Kinesis Streams Developer Guide/ .
+-- | List of shard-level metrics to enable. The following are the valid shard-level metrics. The value "@ALL@ " enables every metric. * @IncomingBytes@ * @IncomingRecords@ * @OutgoingBytes@ * @OutgoingRecords@ * @WriteProvisionedThroughputExceeded@ * @ReadProvisionedThroughputExceeded@ * @IteratorAgeMilliseconds@ * @ALL@ For more information, see <http://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html Monitoring the Amazon Kinesis Data Streams Service with Amazon CloudWatch> in the /Amazon Kinesis Data Streams Developer Guide/ .
eemShardLevelMetrics :: Lens' EnableEnhancedMonitoring [MetricsName]
-eemShardLevelMetrics = lens _eemShardLevelMetrics (\ s a -> s{_eemShardLevelMetrics = a}) . _Coerce;
+eemShardLevelMetrics = lens _eemShardLevelMetrics (\ s a -> s{_eemShardLevelMetrics = a}) . _Coerce
instance AWSRequest EnableEnhancedMonitoring where
type Rs EnableEnhancedMonitoring =
diff --git a/gen/Network/AWS/Kinesis/GetRecords.hs b/gen/Network/AWS/Kinesis/GetRecords.hs
index a5d60bf..618960f 100644
--- a/gen/Network/AWS/Kinesis/GetRecords.hs
+++ b/gen/Network/AWS/Kinesis/GetRecords.hs
@@ -12,26 +12,26 @@
-- |
-- Module : Network.AWS.Kinesis.GetRecords
--- Copyright : (c) 2013-2017 Brendan Hay
+-- Copyright : (c) 2013-2018 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
--- Gets data records from an Amazon Kinesis stream's shard.
+-- Gets data records from a Kinesis data stream's shard.
--
--
--- Specify a shard iterator using the @ShardIterator@ parameter. The shard iterator specifies the position in the shard from which you want to start reading data records sequentially. If there are no records available in the portion of the shard that the iterator points to, 'GetRecords' returns an empty list. Note that it might take multiple calls to get to a portion of the shard that contains records.
+-- Specify a shard iterator using the @ShardIterator@ parameter. The shard iterator specifies the position in the shard from which you want to start reading data records sequentially. If there are no records available in the portion of the shard that the iterator points to, 'GetRecords' returns an empty list. It might take multiple calls to get to a portion of the shard that contains records.
--
--- You can scale by provisioning multiple shards per stream while considering service limits (for more information, see <http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html Streams Limits> in the /Amazon Kinesis Streams Developer Guide/ ). Your application should have one thread per shard, each reading continuously from its stream. To read from a stream continually, call 'GetRecords' in a loop. Use 'GetShardIterator' to get the shard iterator to specify in the first 'GetRecords' call. 'GetRecords' returns a new shard iterator in @NextShardIterator@ . Specify the shard iterator returned in @NextShardIterator@ in subsequent calls to 'GetRecords' . Note that if the shard has been closed, the shard iterator can't return more data and 'GetRecords' returns @null@ in @NextShardIterator@ . You can terminate the loop when the shard is closed, or when the shard iterator reaches the record with the sequence number or other attribute that marks it as the last record to process.
+-- You can scale by provisioning multiple shards per stream while considering service limits (for more information, see <http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html Amazon Kinesis Data Streams Limits> in the /Amazon Kinesis Data Streams Developer Guide/ ). Your application should have one thread per shard, each reading continuously from its stream. To read from a stream continually, call 'GetRecords' in a loop. Use 'GetShardIterator' to get the shard iterator to specify in the first 'GetRecords' call. 'GetRecords' returns a new shard iterator in @NextShardIterator@ . Specify the shard iterator returned in @NextShardIterator@ in subsequent calls to 'GetRecords' . If the shard has been closed, the shard iterator can't return more data and 'GetRecords' returns @null@ in @NextShardIterator@ . You can terminate the loop when the shard is closed, or when the shard iterator reaches the record with the sequence number or other attribute that marks it as the last record to process.
--
-- Each data record can be up to 1 MB in size, and each shard can read up to 2 MB per second. You can ensure that your calls don't exceed the maximum supported size or throughput by using the @Limit@ parameter to specify the maximum number of records that 'GetRecords' can return. Consider your average record size when determining this limit.
--
--- The size of the data returned by 'GetRecords' varies depending on the utilization of the shard. The maximum size of data that 'GetRecords' can return is 10 MB. If a call returns this amount of data, subsequent calls made within the next 5 seconds throw @ProvisionedThroughputExceededException@ . If there is insufficient provisioned throughput on the shard, subsequent calls made within the next 1 second throw @ProvisionedThroughputExceededException@ . Note that 'GetRecords' won't return any data when it throws an exception. For this reason, we recommend that you wait one second between calls to 'GetRecords' ; however, it's possible that the application will get exceptions for longer than 1 second.
+-- The size of the data returned by 'GetRecords' varies depending on the utilization of the shard. The maximum size of data that 'GetRecords' can return is 10 MB. If a call returns this amount of data, subsequent calls made within the next five seconds throw @ProvisionedThroughputExceededException@ . If there is insufficient provisioned throughput on the stream, subsequent calls made within the next one second throw @ProvisionedThroughputExceededException@ . 'GetRecords' won't return any data when it throws an exception. For this reason, we recommend that you wait one second between calls to 'GetRecords' ; however, it's possible that the application will get exceptions for longer than 1 second.
--
--- To detect whether the application is falling behind in processing, you can use the @MillisBehindLatest@ response attribute. You can also monitor the stream using CloudWatch metrics and other mechanisms (see <http://docs.aws.amazon.com/kinesis/latest/dev/monitoring.html Monitoring> in the /Amazon Kinesis Streams Developer Guide/ ).
+-- To detect whether the application is falling behind in processing, you can use the @MillisBehindLatest@ response attribute. You can also monitor the stream using CloudWatch metrics and other mechanisms (see <http://docs.aws.amazon.com/kinesis/latest/dev/monitoring.html Monitoring> in the /Amazon Kinesis Data Streams Developer Guide/ ).
--
--- Each Amazon Kinesis record includes a value, @ApproximateArrivalTimestamp@ , that is set when a stream successfully receives and stores a record. This is commonly referred to as a server-side timestamp, whereas a client-side timestamp is set when a data producer creates or sends the record to a stream (a data producer is any data source putting data records into a stream, for example with 'PutRecords' ). The timestamp has millisecond precision. There are no guarantees about the timestamp accuracy, or that the timestamp is always increasing. For example, records in a shard or across a stream might have timestamps that are out of order.
+-- Each Amazon Kinesis record includes a value, @ApproximateArrivalTimestamp@ , that is set when a stream successfully receives and stores a record. This is commonly referred to as a server-side time stamp, whereas a client-side time stamp is set when a data producer creates or sends the record to a stream (a data producer is any data source putting data records into a stream, for example with 'PutRecords' ). The time stamp has millisecond precision. There are no guarantees about the time stamp accuracy, or that the time stamp is always increasing. For example, records in a shard or across a stream might have time stamps that are out of order.
--
module Network.AWS.Kinesis.GetRecords
(
@@ -86,11 +86,11 @@ getRecords pShardIterator_ =
-- | The maximum number of records to return. Specify a value of up to 10,000. If you specify a value that is greater than 10,000, 'GetRecords' throws @InvalidArgumentException@ .
grLimit :: Lens' GetRecords (Maybe Natural)
-grLimit = lens _grLimit (\ s a -> s{_grLimit = a}) . mapping _Nat;
+grLimit = lens _grLimit (\ s a -> s{_grLimit = a}) . mapping _Nat
-- | The position in the shard from which you want to start sequentially reading data records. A shard iterator specifies this position using the sequence number of a data record in the shard.
grShardIterator :: Lens' GetRecords Text
-grShardIterator = lens _grShardIterator (\ s a -> s{_grShardIterator = a});
+grShardIterator = lens _grShardIterator (\ s a -> s{_grShardIterator = a})
instance AWSRequest GetRecords where
type Rs GetRecords = GetRecordsResponse
@@ -147,9 +147,9 @@ data GetRecordsResponse = GetRecordsResponse'
--
-- Use one of the following lenses to modify other fields as desired:
--
--- * 'grrsNextShardIterator' - The next position in the shard from which to start sequentially reading data records. If set to @null@ , the shard has been closed and the requested iterator will not return any more data.
+-- * 'grrsNextShardIterator' - The next position in the shard from which to start sequentially reading data records. If set to @null@ , the shard has been closed and the requested iterator does not return any more data.
--
--- * 'grrsMillisBehindLatest' - The number of milliseconds the 'GetRecords' response is from the tip of the stream, indicating how far behind current time the consumer is. A value of zero indicates record processing is caught up, and there are no new records to process at this moment.
+-- * 'grrsMillisBehindLatest' - The number of milliseconds the 'GetRecords' response is from the tip of the stream, indicating how far behind current time the consumer is. A value of zero indicates that record processing is caught up, and there are no new records to process at this moment.
--
-- * 'grrsResponseStatus' - -- | The response status code.
--
@@ -159,27 +159,27 @@ getRecordsResponse
-> GetRecordsResponse
getRecordsResponse pResponseStatus_ =
GetRecordsResponse'
- { _grrsNextShardIterator = Nothing
- , _grrsMillisBehindLatest = Nothing
- , _grrsResponseStatus = pResponseStatus_
- , _grrsRecords = mempty
- }
+ { _grrsNextShardIterator = Nothing
+ , _grrsMillisBehindLatest = Nothing
+ , _grrsResponseStatus = pResponseStatus_
+ , _grrsRecords = mempty
+ }
--- | The next position in the shard from which to start sequentially reading data records. If set to @null@ , the shard has been closed and the requested iterator will not return any more data.
+-- | The next position in the shard from which to start sequentially reading data records. If set to @null@ , the shard has been closed and the requested iterator does not return any more data.
grrsNextShardIterator :: Lens' GetRecordsResponse (Maybe Text)
-grrsNextShardIterator = lens _grrsNextShardIterator (\ s a -> s{_grrsNextShardIterator = a});
+grrsNextShardIterator = lens _grrsNextShardIterator (\ s a -> s{_grrsNextShardIterator = a})
--- | The number of milliseconds the 'GetRecords' response is from the tip of the stream, indicating how far behind current time the consumer is. A value of zero indicates record processing is caught up, and there are no new records to process at this moment.
+-- | The number of milliseconds the 'GetRecords' response is from the tip of the stream, indicating how far behind current time the consumer is. A value of zero indicates that record processing is caught up, and there are no new records to process at this moment.
grrsMillisBehindLatest :: Lens' GetRecordsResponse (Maybe Natural)
-grrsMillisBehindLatest = lens _grrsMillisBehindLatest (\ s a -> s{_grrsMillisBehindLatest = a}) . mapping _Nat;
+grrsMillisBehindLatest = lens _grrsMillisBehindLatest (\ s a -> s{_grrsMillisBehindLatest = a}) . mapping _Nat
-- | -- | The response status code.
grrsResponseStatus :: Lens' GetRecordsResponse Int
-grrsResponseStatus = lens _grrsResponseStatus (\ s a -> s{_grrsResponseStatus = a});
+grrsResponseStatus = lens _grrsResponseStatus (\ s a -> s{_grrsResponseStatus = a})
-- | The data records retrieved from the shard.
grrsRecords :: Lens' GetRecordsResponse [Record]
-grrsRecords = lens _grrsRecords (\ s a -> s{_grrsRecords = a}) . _Coerce;
+grrsRecords = lens _grrsRecords (\ s a -> s{_grrsRecords = a}) . _Coerce
instance NFData GetRecordsResponse where
diff --git a/gen/Network/AWS/Kinesis/GetShardIterator.hs b/gen/Network/AWS/Kinesis/GetShardIterator.hs
index 9cbb3b8..a713e3d 100644
--- a/gen/Network/AWS/Kinesis/GetShardIterator.hs
+++ b/gen/Network/AWS/Kinesis/GetShardIterator.hs
@@ -12,7 +12,7 @@
-- |
-- Module : Network.AWS.Kinesis.GetShardIterator
--- Copyright : (c) 2013-2017 Brendan Hay
+-- Copyright : (c) 2013-2018 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability : auto-generated
@@ -23,15 +23,15 @@
--
-- A shard iterator specifies the shard position from which to start reading data records sequentially. The position is specified using the sequence number of a data record in a shard. A sequence number is the identifier associated with every record ingested in the stream, and is assigned when a record is put into the stream. Each stream has one or more shards.
--
--- You must specify the shard iterator type. For example, you can set the @ShardIteratorType@ parameter to read exactly from the position denoted by a specific sequence number by using the @AT_SEQUENCE_NUMBER@ shard iterator type, or right after the sequence number by using the @AFTER_SEQUENCE_NUMBER@ shard iterator type, using sequence numbers returned by earlier calls to 'PutRecord' , 'PutRecords' , 'GetRecords' , or 'DescribeStream' . In the request, you can specify the shard iterator type @AT_TIMESTAMP@ to read records from an arbitrary point in time, @TRIM_HORIZON@ to cause @ShardIterator@ to point to the last untrimmed record in the shard in the system (the oldest data record in the shard), or @LATEST@ so that you always read the most recent data in the shard.
+-- You must specify the shard iterator type. For example, you can set the @ShardIteratorType@ parameter to read exactly from the position denoted by a specific sequence number by using the @AT_SEQUENCE_NUMBER@ shard iterator type. Alternatively, the parameter can read right after the sequence number by using the @AFTER_SEQUENCE_NUMBER@ shard iterator type, using sequence numbers returned by earlier calls to 'PutRecord' , 'PutRecords' , 'GetRecords' , or 'DescribeStream' . In the request, you can specify the shard iterator type @AT_TIMESTAMP@ to read records from an arbitrary point in time, @TRIM_HORIZON@ to cause @ShardIterator@ to point to the last untrimmed record in the shard in the system (the oldest data record in the shard), or @LATEST@ so that you always read the most recent data in the shard.
--
-- When you read repeatedly from a stream, use a 'GetShardIterator' 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 iterator is returned by every 'GetRecords' request in @NextShardIterator@ , which you use in the @ShardIterator@ parameter of the next 'GetRecords' request.
--
--- If a 'GetShardIterator' request is made too often, you receive a @ProvisionedThroughputExceededException@ . For more information about throughput limits, see 'GetRecords' , and <http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html Streams Limits> in the /Amazon Kinesis Streams Developer Guide/ .
+-- If a 'GetShardIterator' request is made too often, you receive a @ProvisionedThroughputExceededException@ . For more information about throughput limits, see 'GetRecords' , and <http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html Streams Limits> in the /Amazon Kinesis Data Streams Developer Guide/ .
--
--- If the shard is closed, 'GetShardIterator' returns a valid iterator for the last sequence number of the shard. Note that a shard can be closed as a result of using 'SplitShard' or 'MergeShards' .
+-- If the shard is closed, 'GetShardIterator' returns a valid iterator for the last sequence number of the shard. A shard can be closed as a result of using 'SplitShard' or 'MergeShards' .
--
--- 'GetShardIterator' has a limit of 5 transactions per second per account per open shard.
+-- 'GetShardIterator' has a limit of five transactions per second per account per open shard.
--
module Network.AWS.Kinesis.GetShardIterator
(
@@ -80,13 +80,13 @@ data GetShardIterator = GetShardIterator'
--
-- * 'gsiStartingSequenceNumber' - The sequence number of the data record in the shard from which to start reading. Used with shard iterator type AT_SEQUENCE_NUMBER and AFTER_SEQUENCE_NUMBER.
--
--- * 'gsiTimestamp' - The timestamp of the data record from which to start reading. Used with shard iterator type AT_TIMESTAMP. A timestamp is the Unix epoch date with precision in milliseconds. For example, @2016-04-04T19:58:46.480-00:00@ or @1459799926.480@ . If a record with this exact timestamp does not exist, the iterator returned is for the next (later) record. If the timestamp is older than the current trim horizon, the iterator returned is for the oldest untrimmed data record (TRIM_HORIZON).
+-- * 'gsiTimestamp' - The time stamp of the data record from which to start reading. Used with shard iterator type AT_TIMESTAMP. A time stamp is the Unix epoch date with precision in milliseconds. For example, @2016-04-04T19:58:46.480-00:00@ or @1459799926.480@ . If a record with this exact time stamp does not exist, the iterator returned is for the next (later) record. If the time stamp is older than the current trim horizon, the iterator returned is for the oldest untrimmed data record (TRIM_HORIZON).
--
--- * 'gsiStreamName' - The name of the Amazon Kinesis stream.
+-- * 'gsiStreamName' - The name of the Amazon Kinesis data stream.
--
--- * 'gsiShardId' - The shard ID of the Amazon Kinesis shard to get the iterator for.
+-- * 'gsiShardId' - The shard ID of the Kinesis Data Streams shard to get the iterator for.
--
--- * 'gsiShardIteratorType' - Determines how the shard iterator is used to start reading data records from the shard. The following are the valid Amazon Kinesis shard iterator types: * AT_SEQUENCE_NUMBER - Start reading from the position denoted by a specific sequence number, provided in the value @StartingSequenceNumber@ . * AFTER_SEQUENCE_NUMBER - Start reading right after the position denoted by a specific sequence number, provided in the value @StartingSequenceNumber@ . * AT_TIMESTAMP - Start reading from the position denoted by a specific timestamp, provided in the value @Timestamp@ . * TRIM_HORIZON - Start reading at the last untrimmed record in the shard in the system, which is the oldest data record in the shard. * LATEST - Start reading just after the most recent record in the shard, so that you always read the most recent data in the shard.
+-- * 'gsiShardIteratorType' - Determines how the shard iterator is used to start reading data records from the shard. The following are the valid Amazon Kinesis shard iterator types: * AT_SEQUENCE_NUMBER - Start reading from the position denoted by a specific sequence number, provided in the value @StartingSequenceNumber@ . * AFTER_SEQUENCE_NUMBER - Start reading right after the position denoted by a specific sequence number, provided in the value @StartingSequenceNumber@ . * AT_TIMESTAMP - Start reading from the position denoted by a specific time stamp, provided in the value @Timestamp@ . * TRIM_HORIZON - Start reading at the last untrimmed record in the shard in the system, which is the oldest data record in the shard. * LATEST - Start reading just after the most recent record in the shard, so that you always read the most recent data in the shard.
getShardIterator
:: Text -- ^ 'gsiStreamName'
-> Text -- ^ 'gsiShardId'
@@ -94,33 +94,33 @@ getShardIterator
-> GetShardIterator
getShardIterator pStreamName_ pShardId_ pShardIteratorType_ =
GetShardIterator'
- { _gsiStartingSequenceNumber = Nothing
- , _gsiTimestamp = Nothing
- , _gsiStreamName = pStreamName_
- , _gsiShardId = pShardId_
- , _gsiShardIteratorType = pShardIteratorType_
- }
+ { _gsiStartingSequenceNumber = Nothing
+ , _gsiTimestamp = Nothing
+ , _gsiStreamName = pStreamName_
+ , _gsiShardId = pShardId_
+ , _gsiShardIteratorType = pShardIteratorType_
+ }
-- | The sequence number of the data record in the shard from which to start reading. Used with shard iterator type AT_SEQUENCE_NUMBER and AFTER_SEQUENCE_NUMBER.
gsiStartingSequenceNumber :: Lens' GetShardIterator (Maybe Text)
-gsiStartingSequenceNumber = lens _gsiStartingSequenceNumber (\ s a -> s{_gsiStartingSequenceNumber = a});
+gsiStartingSequenceNumber = lens _gsiStartingSequenceNumber (\ s a -> s{_gsiStartingSequenceNumber = a})
--- | The timestamp of the data record from which to start reading. Used with shard iterator type AT_TIMESTAMP. A timestamp is the Unix epoch date with precision in milliseconds. For example, @2016-04-04T19:58:46.480-00:00@ or @1459799926.480@ . If a record with this exact timestamp does not exist, the iterator returned is for the next (later) record. If the timestamp is older than the current trim horizon, the iterator returned is for the oldest untrimmed data record (TRIM_HORIZON).
+-- | The time stamp of the data record from which to start reading. Used with shard iterator type AT_TIMESTAMP. A time stamp is the Unix epoch date with precision in milliseconds. For example, @2016-04-04T19:58:46.480-00:00@ or @1459799926.480@ . If a record with this exact time stamp does not exist, the iterator returned is for the next (later) record. If the time stamp is older than the current trim horizon, the iterator returned is for the oldest untrimmed data record (TRIM_HORIZON).
gsiTimestamp :: Lens' GetShardIterator (Maybe UTCTime)
-gsiTimestamp = lens _gsiTimestamp (\ s a -> s{_gsiTimestamp = a}) . mapping _Time;
+gsiTimestamp = lens _gsiTimestamp (\ s a -> s{_gsiTimestamp = a}) . mapping _Time
--- | The name of the Amazon Kinesis stream.
+-- | The name of the Amazon Kinesis data stream.
gsiStreamName :: Lens' GetShardIterator Text
-gsiStreamName = lens _gsiStreamName (\ s a -> s{_gsiStreamName = a});
+gsiStreamName = lens _gsiStreamName (\ s a -> s{_gsiStreamName = a})
--- | The shard ID of the Amazon Kinesis shard to get the iterator for.
+-- | The shard ID of the Kinesis Data Streams shard to get the iterator for.
gsiShardId :: Lens' GetShardIterator Text
-gsiShardId = lens _gsiShardId (\ s a -> s{_gsiShardId = a});
+gsiShardId = lens _gsiShardId (\ s a -> s{_gsiShardId = a})
--- | Determines how the shard iterator is used to start reading data records from the shard. The following are the valid Amazon Kinesis shard iterator types: * AT_SEQUENCE_NUMBER - Start reading from the position denoted by a specific sequence number, provided in the value @StartingSequenceNumber@ . * AFTER_SEQUENCE_NUMBER - Start reading right after the position denoted by a specific sequence number, provided in the value @StartingSequenceNumber@ . * AT_TIMESTAMP - Start reading from the position denoted by a specific timestamp, provided in the value @Timestamp@ . * TRIM_HORIZON - Start reading at the last untrimmed record in the shard in the system, which is the oldest data record in the shard. * LATEST - Start reading just after the most recent record in the shard, so that you always read the most recent data in the shard.
+-- | Determines how the shard iterator is used to start reading data records from the shard. The following are the valid Amazon Kinesis shard iterator types: * AT_SEQUENCE_NUMBER - Start reading from the position denoted by a specific sequence number, provided in the value @StartingSequenceNumber@ . * AFTER_SEQUENCE_NUMBER - Start reading right after the position denoted by a specific sequence number, provided in the value @StartingSequenceNumber@ . * AT_TIMESTAMP - Start reading from the position denoted by a specific time stamp, provided in the value @Timestamp@ . * TRIM_HORIZON - Start reading at the last untrimmed record in the shard in the system, which is the oldest data record in the shard. * LATEST - Start reading just after the most recent record in the shard, so that you always read the most recent data in the shard.
gsiShardIteratorType :: Lens' GetShardIterator ShardIteratorType
-gsiShardIteratorType = lens _gsiShardIteratorType (\ s a -> s{_gsiShardIteratorType = a});
+gsiShardIteratorType = lens _gsiShardIteratorType (\ s a -> s{_gsiShardIteratorType = a})
instance AWSRequest GetShardIterator where
type Rs GetShardIterator = GetShardIteratorResponse
@@ -184,15 +184,15 @@ getShardIteratorResponse
-> GetShardIteratorResponse
getShardIteratorResponse pResponseStatus_ =
GetShardIteratorResponse'
- {_gsirsShardIterator = Nothing, _gsirsResponseStatus = pResponseStatus_}
+ {_gsirsShardIterator = Nothing, _gsirsResponseStatus = pResponseStatus_}
-- | The position in the shard from which to start reading data records sequentially. A shard iterator specifies this position using the sequence number of a data record in a shard.
gsirsShardIterator :: Lens' GetShardIteratorResponse (Maybe Text)
-gsirsShardIterator = lens _gsirsShardIterator (\ s a -> s{_gsirsShardIterator = a});
+gsirsShardIterator = lens _gsirsShardIterator (\ s a -> s{_gsirsShardIterator = a})
-- | -- | The response status code.
gsirsResponseStatus :: Lens' GetShardIteratorResponse Int
-gsirsResponseStatus = lens _gsirsResponseStatus (\ s a -> s{_gsirsResponseStatus = a});
+gsirsResponseStatus = lens _gsirsResponseStatus (\ s a -> s{_gsirsResponseStatus = a})
instance NFData GetShardIteratorResponse where
diff --git a/gen/Network/AWS/Kinesis/IncreaseStreamRetentionPeriod.hs b/gen/Network/AWS/Kinesis/IncreaseStreamRetentionPeriod.hs
index 7216a25..3c18293 100644
--- a/gen/Network/AWS/Kinesis/IncreaseStreamRetentionPeriod.hs
+++ b/gen/Network/AWS/Kinesis/IncreaseStreamRetentionPeriod.hs
@@ -12,16 +12,16 @@
-- |
-- Module : Network.AWS.Kinesis.IncreaseStreamRetentionPeriod
--- Copyright : (c) 2013-2017 Brendan Hay
+-- Copyright : (c) 2013-2018 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
--- Increases the Amazon Kinesis stream's retention period, which is the length of time data records are accessible after they are added to the stream. The maximum value of a stream's retention period is 168 hours (7 days).
+-- Increases the Kinesis data stream's retention period, which is the length of time data records are accessible after they are added to the stream. The maximum value of a stream's retention period is 168 hours (7 days).
--
--
--- Upon choosing a longer stream retention period, this operation will increase the time period records are accessible that have not yet expired. However, it will not make previous data that has expired (older than the stream's previous retention period) accessible after the operation has been called. For example, if a stream's retention period is set to 24 hours and is increased to 168 hours, any data that is older than 24 hours will remain inaccessible to consumer applications.
+-- If you choose a longer stream retention period, this operation increases the time period during which records that have not yet expired are accessible. However, it does not make previous, expired data (older than the stream's previous retention period) accessible after the operation has been called. For example, if a stream's retention period is set to 24 hours and is increased to 168 hours, any data that is older than 24 hours remains inaccessible to consumer applications.
--
module Network.AWS.Kinesis.IncreaseStreamRetentionPeriod
(
@@ -68,18 +68,18 @@ increaseStreamRetentionPeriod
-> IncreaseStreamRetentionPeriod
increaseStreamRetentionPeriod pStreamName_ pRetentionPeriodHours_ =
IncreaseStreamRetentionPeriod'
- { _isrpStreamName = pStreamName_
- , _isrpRetentionPeriodHours = _Nat # pRetentionPeriodHours_
- }
+ { _isrpStreamName = pStreamName_
+ , _isrpRetentionPeriodHours = _Nat # pRetentionPeriodHours_
+ }
-- | The name of the stream to modify.
isrpStreamName :: Lens' IncreaseStreamRetentionPeriod Text
-isrpStreamName = lens _isrpStreamName (\ s a -> s{_isrpStreamName = a});
+isrpStreamName = lens _isrpStreamName (\ s a -> s{_isrpStreamName = a})
-- | The new retention period of the stream, in hours. Must be more than the current retention period.
isrpRetentionPeriodHours :: Lens' IncreaseStreamRetentionPeriod Natural
-isrpRetentionPeriodHours = lens _isrpRetentionPeriodHours (\ s a -> s{_isrpRetentionPeriodHours = a}) . _Nat;
+isrpRetentionPeriodHours = lens _isrpRetentionPeriodHours (\ s a -> s{_isrpRetentionPeriodHours = a}) . _Nat
instance AWSRequest IncreaseStreamRetentionPeriod
where
diff --git a/gen/Network/AWS/Kinesis/ListShards.hs b/gen/Network/AWS/Kinesis/ListShards.hs
new file mode 100644
index 0000000..85dcc58
--- /dev/null
+++ b/gen/Network/AWS/Kinesis/ListShards.hs
@@ -0,0 +1,190 @@
+{-# LANGUAGE DeriveDataTypeable #-}
+{-# LANGUAGE DeriveGeneric #-}
+{-# LANGUAGE OverloadedStrings #-}
+{-# LANGUAGE RecordWildCards #-}
+{-# LANGUAGE TypeFamilies #-}
+
+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
+{-# OPTIONS_GHC -fno-warn-unused-matches #-}
+
+-- Derived from AWS service descriptions, licensed under Apache 2.0.
+
+-- |
+-- Module : Network.AWS.Kinesis.ListShards
+-- Copyright : (c) 2013-2018 Brendan Hay
+-- License : Mozilla Public License, v. 2.0.
+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
+-- Stability : auto-generated
+-- Portability : non-portable (GHC extensions)
+--
+-- Lists the shards in a stream and provides information about each shard.
+--
+--
+-- /Important:/ This API is a new operation that is used by the Amazon Kinesis Client Library (KCL). If you have a fine-grained IAM policy that only allows specific operations, you must update your policy to allow calls to this API. For more information, see <https://docs.aws.amazon.com/streams/latest/dev/controlling-access.html Controlling Access to Amazon Kinesis Data Streams Resources Using IAM> .
+--
+module Network.AWS.Kinesis.ListShards
+ (
+ -- * Creating a Request
+ listShards
+ , ListShards
+ -- * Request Lenses
+ , lsNextToken
+ , lsExclusiveStartShardId
+ , lsStreamCreationTimestamp
+ , lsStreamName
+ , lsMaxResults
+
+ -- * Destructuring the Response
+ , listShardsResponse
+ , ListShardsResponse
+ -- * Response Lenses
+ , lrsNextToken
+ , lrsShards
+ , lrsResponseStatus
+ ) where
+
+import Network.AWS.Kinesis.Types
+import Network.AWS.Kinesis.Types.Product
+import Network.AWS.Lens
+import Network.AWS.Prelude
+import Network.AWS.Request
+import Network.AWS.Response
+
+-- | /See:/ 'listShards' smart constructor.
+data ListShards = ListShards'
+ { _lsNextToken :: !(Maybe Text)
+ , _lsExclusiveStartShardId :: !(Maybe Text)
+ , _lsStreamCreationTimestamp :: !(Maybe POSIX)
+ , _lsStreamName :: !(Maybe Text)
+ , _lsMaxResults :: !(Maybe Nat)
+ } deriving (Eq, Read, Show, Data, Typeable, Generic)
+
+
+-- | Creates a value of 'ListShards' with the minimum fields required to make a request.
+--
+-- Use one of the following lenses to modify other fields as desired:
+--
+-- * 'lsNextToken' - When the number of shards in the data stream is greater than the default value for the @MaxResults@ parameter, or if you explicitly specify a value for @MaxResults@ that is less than the number of shards in the data stream, the response includes a pagination token named @NextToken@ . You can specify this @NextToken@ value in a subsequent call to @ListShards@ to list the next set of shards. Don't specify @StreamName@ or @StreamCreationTimestamp@ if you specify @NextToken@ because the latter unambiguously identifies the stream. You can optionally specify a value for the @MaxResults@ parameter when you specify @NextToken@ . If you specify a @MaxResults@ value that is less than the number of shards that the operation returns if you don't specify @MaxResults@ , the response will contain a new @NextToken@ value. You can use the new @NextToken@ value in a subsequent call to the @ListShards@ operation. /Important:/ Tokens expire after 300 seconds. When you obtain a value for @NextToken@ in the response to a call to @ListShards@ , you have 300 seconds to use that value. If you specify an expired token in a call to @ListShards@ , you get @ExpiredNextTokenException@ .
+--
+-- * 'lsExclusiveStartShardId' - The ID of the shard to start the list with. If you don't specify this parameter, the default behavior is for @ListShards@ to list the shards starting with the first one in the stream. You cannot specify this parameter if you specify @NextToken@ .
+--
+-- * 'lsStreamCreationTimestamp' - Specify this input parameter to distinguish data streams that have the same name. For example, if you create a data stream and then delete it, and you later create another data stream with the same name, you can use this input parameter to specify which of the two streams you want to list the shards for. You cannot specify this parameter if you specify the @NextToken@ parameter.
+--
+-- * 'lsStreamName' - The name of the data stream whose shards you want to list. You cannot specify this parameter if you specify the @NextToken@ parameter.
+--
+-- * 'lsMaxResults' - The maximum number of shards to return in a single call to @ListShards@ . The minimum value you can specify for this parameter is 1, and the maximum is 1,000, which is also the default. When the number of shards to be listed is greater than the value of @MaxResults@ , the response contains a @NextToken@ value that you can use in a subsequent call to @ListShards@ to list the next set of shards.
+listShards
+ :: ListShards
+listShards =
+ ListShards'
+ { _lsNextToken = Nothing
+ , _lsExclusiveStartShardId = Nothing
+ , _lsStreamCreationTimestamp = Nothing
+ , _lsStreamName = Nothing
+ , _lsMaxResults = Nothing
+ }
+
+
+-- | When the number of shards in the data stream is greater than the default value for the @MaxResults@ parameter, or if you explicitly specify a value for @MaxResults@ that is less than the number of shards in the data stream, the response includes a pagination token named @NextToken@ . You can specify this @NextToken@ value in a subsequent call to @ListShards@ to list the next set of shards. Don't specify @StreamName@ or @StreamCreationTimestamp@ if you specify @NextToken@ because the latter unambiguously identifies the stream. You can optionally specify a value for the @MaxResults@ parameter when you specify @NextToken@ . If you specify a @MaxResults@ value that is less than the number of shards that the operation returns if you don't specify @MaxResults@ , the response will contain a new @NextToken@ value. You can use the new @NextToken@ value in a subsequent call to the @ListShards@ operation. /Important:/ Tokens expire after 300 seconds. When you obtain a value for @NextToken@ in the response to a call to @ListShards@ , you have 300 seconds to use that value. If you specify an expired token in a call to @ListShards@ , you get @ExpiredNextTokenException@ .
+lsNextToken :: Lens' ListShards (Maybe Text)
+lsNextToken = lens _lsNextToken (\ s a -> s{_lsNextToken = a})
+
+-- | The ID of the shard to start the list with. If you don't specify this parameter, the default behavior is for @ListShards@ to list the shards starting with the first one in the stream. You cannot specify this parameter if you specify @NextToken@ .
+lsExclusiveStartShardId :: Lens' ListShards (Maybe Text)
+lsExclusiveStartShardId = lens _lsExclusiveStartShardId (\ s a -> s{_lsExclusiveStartShardId = a})
+
+-- | Specify this input parameter to distinguish data streams that have the same name. For example, if you create a data stream and then delete it, and you later create another data stream with the same name, you can use this input parameter to specify which of the two streams you want to list the shards for. You cannot specify this parameter if you specify the @NextToken@ parameter.
+lsStreamCreationTimestamp :: Lens' ListShards (Maybe UTCTime)
+lsStreamCreationTimestamp = lens _lsStreamCreationTimestamp (\ s a -> s{_lsStreamCreationTimestamp = a}) . mapping _Time
+
+-- | The name of the data stream whose shards you want to list. You cannot specify this parameter if you specify the @NextToken@ parameter.
+lsStreamName :: Lens' ListShards (Maybe Text)
+lsStreamName = lens _lsStreamName (\ s a -> s{_lsStreamName = a})
+
+-- | The maximum number of shards to return in a single call to @ListShards@ . The minimum value you can specify for this parameter is 1, and the maximum is 1,000, which is also the default. When the number of shards to be listed is greater than the value of @MaxResults@ , the response contains a @NextToken@ value that you can use in a subsequent call to @ListShards@ to list the next set of shards.
+lsMaxResults :: Lens' ListShards (Maybe Natural)
+lsMaxResults = lens _lsMaxResults (\ s a -> s{_lsMaxResults = a}) . mapping _Nat
+
+instance AWSRequest ListShards where
+ type Rs ListShards = ListShardsResponse
+ request = postJSON kinesis
+ response
+ = receiveJSON
+ (\ s h x ->
+ ListShardsResponse' <$>
+ (x .?> "NextToken") <*> (x .?> "Shards" .!@ mempty)
+ <*> (pure (fromEnum s)))
+
+instance Hashable ListShards where
+
+instance NFData ListShards where
+
+instance ToHeaders ListShards where
+ toHeaders
+ = const
+ (mconcat
+ ["X-Amz-Target" =#
+ ("Kinesis_20131202.ListShards" :: ByteString),
+ "Content-Type" =#
+ ("application/x-amz-json-1.1" :: ByteString)])
+
+instance ToJSON ListShards where
+ toJSON ListShards'{..}
+ = object
+ (catMaybes
+ [("NextToken" .=) <$> _lsNextToken,
+ ("ExclusiveStartShardId" .=) <$>
+ _lsExclusiveStartShardId,
+ ("StreamCreationTimestamp" .=) <$>
+ _lsStreamCreationTimestamp,
+ ("StreamName" .=) <$> _lsStreamName,
+ ("MaxResults" .=) <$> _lsMaxResults])
+
+instance ToPath ListShards where
+ toPath = const "/"
+
+instance ToQuery ListShards where
+ toQuery = const mempty
+
+-- | /See:/ 'listShardsResponse' smart constructor.
+data ListShardsResponse = ListShardsResponse'
+ { _lrsNextToken :: !(Maybe Text)
+ , _lrsShards :: !(Maybe [Shard])
+ , _lrsResponseStatus :: !Int
+ } deriving (Eq, Read, Show, Data, Typeable, Generic)
+
+
+-- | Creates a value of 'ListShardsResponse' with the minimum fields required to make a request.
+--
+-- Use one of the following lenses to modify other fields as desired:
+--
+-- * 'lrsNextToken' - When the number of shards in the data stream is greater than the default value for the @MaxResults@ parameter, or if you explicitly specify a value for @MaxResults@ that is less than the number of shards in the data stream, the response includes a pagination token named @NextToken@ . You can specify this @NextToken@ value in a subsequent call to @ListShards@ to list the next set of shards. For more information about the use of this pagination token when calling the @ListShards@ operation, see 'ListShardsInput$NextToken' . /Important:/ Tokens expire after 300 seconds. When you obtain a value for @NextToken@ in the response to a call to @ListShards@ , you have 300 seconds to use that value. If you specify an expired token in a call to @ListShards@ , you get @ExpiredNextTokenException@ .
+--
+-- * 'lrsShards' - An array of JSON objects. Each object represents one shard and specifies the IDs of the shard, the shard's parent, and the shard that's adjacent to the shard's parent. Each object also contains the starting and ending hash keys and the starting and ending sequence numbers for the shard.
+--
+-- * 'lrsResponseStatus' - -- | The response status code.
+listShardsResponse
+ :: Int -- ^ 'lrsResponseStatus'
+ -> ListShardsResponse
+listShardsResponse pResponseStatus_ =
+ ListShardsResponse'
+ { _lrsNextToken = Nothing
+ , _lrsShards = Nothing
+ , _lrsResponseStatus = pResponseStatus_
+ }
+
+
+-- | When the number of shards in the data stream is greater than the default value for the @MaxResults@ parameter, or if you explicitly specify a value for @MaxResults@ that is less than the number of shards in the data stream, the response includes a pagination token named @NextToken@ . You can specify this @NextToken@ value in a subsequent call to @ListShards@ to list the next set of shards. For more information about the use of this pagination token when calling the @ListShards@ operation, see 'ListShardsInput$NextToken' . /Important:/ Tokens expire after 300 seconds. When you obtain a value for @NextToken@ in the response to a call to @ListShards@ , you have 300 seconds to use that value. If you specify an expired token in a call to @ListShards@ , you get @ExpiredNextTokenException@ .
+lrsNextToken :: Lens' ListShardsResponse (Maybe Text)
+lrsNextToken = lens _lrsNextToken (\ s a -> s{_lrsNextToken = a})
+
+-- | An array of JSON objects. Each object represents one shard and specifies the IDs of the shard, the shard's parent, and the shard that's adjacent to the shard's parent. Each object also contains the starting and ending hash keys and the starting and ending sequence numbers for the shard.
+lrsShards :: Lens' ListShardsResponse [Shard]
+lrsShards = lens _lrsShards (\ s a -> s{_lrsShards = a}) . _Default . _Coerce
+
+-- | -- | The response status code.
+lrsResponseStatus :: Lens' ListShardsResponse Int
+lrsResponseStatus = lens _lrsResponseStatus (\ s a -> s{_lrsResponseStatus = a})
+
+instance NFData ListShardsResponse where
diff --git a/gen/Network/AWS/Kinesis/ListStreams.hs b/gen/Network/AWS/Kinesis/ListStreams.hs
index 9d7639d..64f9332 100644
--- a/gen/Network/AWS/Kinesis/ListStreams.hs
+++ b/gen/Network/AWS/Kinesis/ListStreams.hs
@@ -12,20 +12,20 @@
-- |
-- Module : Network.AWS.Kinesis.ListStreams
--- Copyright : (c) 2013-2017 Brendan Hay
+-- Copyright : (c) 2013-2018 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
--- Lists your Amazon Kinesis streams.
+-- Lists your Kinesis data streams.
--
--
--- The number of streams may be too large to return from a single call to @ListStreams@ . You can limit the number of returned streams using the @Limit@ parameter. If you do not specify a value for the @Limit@ parameter, Amazon Kinesis uses the default limit, which is currently 10.
+-- The number of streams may be too large to return from a single call to @ListStreams@ . You can limit the number of returned streams using the @Limit@ parameter. If you do not specify a value for the @Limit@ parameter, Kinesis Data Streams uses the default limit, which is currently 10.
--
-- You can detect if there are more streams available to list by using the @HasMoreStreams@ flag from the returned output. If there are more streams available, you can request more streams by using the name of the last stream returned by the @ListStreams@ request in the @ExclusiveStartStreamName@ parameter in a subsequent request to @ListStreams@ . The group of stream names returned by the subsequent request is then added to the list. You can continue this process until all the stream names have been collected in the list.
--
--- 'ListStreams' has a limit of 5 transactions per second per account.
+-- 'ListStreams' has a limit of five transactions per second per account.
--
--
-- This operation returns paginated results.
@@ -81,11 +81,11 @@ listStreams =
-- | The maximum number of streams to list.
lsLimit :: Lens' ListStreams (Maybe Natural)
-lsLimit = lens _lsLimit (\ s a -> s{_lsLimit = a}) . mapping _Nat;
+lsLimit = lens _lsLimit (\ s a -> s{_lsLimit = a}) . mapping _Nat
-- | The name of the stream to start the list with.
lsExclusiveStartStreamName :: Lens' ListStreams (Maybe Text)
-lsExclusiveStartStreamName = lens _lsExclusiveStartStreamName (\ s a -> s{_lsExclusiveStartStreamName = a});
+lsExclusiveStartStreamName = lens _lsExclusiveStartStreamName (\ s a -> s{_lsExclusiveStartStreamName = a})
instance AWSPager ListStreams where
page rq rs
@@ -161,22 +161,22 @@ listStreamsResponse
-> ListStreamsResponse
listStreamsResponse pResponseStatus_ pHasMoreStreams_ =
ListStreamsResponse'
- { _lsrsResponseStatus = pResponseStatus_
- , _lsrsStreamNames = mempty
- , _lsrsHasMoreStreams = pHasMoreStreams_
- }
+ { _lsrsResponseStatus = pResponseStatus_
+ , _lsrsStreamNames = mempty
+ , _lsrsHasMoreStreams = pHasMoreStreams_
+ }
-- | -- | The response status code.
lsrsResponseStatus :: Lens' ListStreamsResponse Int
-lsrsResponseStatus = lens _lsrsResponseStatus (\ s a -> s{_lsrsResponseStatus = a});
+lsrsResponseStatus = lens _lsrsResponseStatus (\ s a -> s{_lsrsResponseStatus = a})
-- | The names of the streams that are associated with the AWS account making the @ListStreams@ request.
lsrsStreamNames :: Lens' ListStreamsResponse [Text]
-lsrsStreamNames = lens _lsrsStreamNames (\ s a -> s{_lsrsStreamNames = a}) . _Coerce;
+lsrsStreamNames = lens _lsrsStreamNames (\ s a -> s{_lsrsStreamNames = a}) . _Coerce
-- | If set to @true@ , there are more streams available to list.
lsrsHasMoreStreams :: Lens' ListStreamsResponse Bool
-lsrsHasMoreStreams = lens _lsrsHasMoreStreams (\ s a -> s{_lsrsHasMoreStreams = a});
+lsrsHasMoreStreams = lens _lsrsHasMoreStreams (\ s a -> s{_lsrsHasMoreStreams = a})
instance NFData ListStreamsResponse where
diff --git a/gen/Network/AWS/Kinesis/ListTagsForStream.hs b/gen/Network/AWS/Kinesis/ListTagsForStream.hs
index 82e726a..851c231 100644
--- a/gen/Network/AWS/Kinesis/ListTagsForStream.hs
+++ b/gen/Network/AWS/Kinesis/ListTagsForStream.hs
@@ -12,13 +12,13 @@
-- |
-- Module : Network.AWS.Kinesis.ListTagsForStream
--- Copyright : (c) 2013-2017 Brendan Hay
+-- Copyright : (c) 2013-2018 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
--- Lists the tags for the specified Amazon Kinesis stream.
+-- Lists the tags for the specified Kinesis data stream. This operation has a limit of five transactions per second per account.
--
--
module Network.AWS.Kinesis.ListTagsForStream
@@ -73,23 +73,23 @@ listTagsForStream
-> ListTagsForStream
listTagsForStream pStreamName_ =
ListTagsForStream'
- { _ltfsLimit = Nothing
- , _ltfsExclusiveStartTagKey = Nothing
- , _ltfsStreamName = pStreamName_
- }
+ { _ltfsLimit = Nothing
+ , _ltfsExclusiveStartTagKey = Nothing
+ , _ltfsStreamName = pStreamName_
+ }
-- | The number of tags to return. If this number is less than the total number of tags associated with the stream, @HasMoreTags@ is set to @true@ . To list additional tags, set @ExclusiveStartTagKey@ to the last key in the response.
ltfsLimit :: Lens' ListTagsForStream (Maybe Natural)
-ltfsLimit = lens _ltfsLimit (\ s a -> s{_ltfsLimit = a}) . mapping _Nat;
+ltfsLimit = lens _ltfsLimit (\ s a -> s{_ltfsLimit = a}) . mapping _Nat
-- | The key to use as the starting point for the list of tags. If this parameter is set, @ListTagsForStream@ gets all tags that occur after @ExclusiveStartTagKey@ .
ltfsExclusiveStartTagKey :: Lens' ListTagsForStream (Maybe Text)
-ltfsExclusiveStartTagKey = lens _ltfsExclusiveStartTagKey (\ s a -> s{_ltfsExclusiveStartTagKey = a});
+ltfsExclusiveStartTagKey = lens _ltfsExclusiveStartTagKey (\ s a -> s{_ltfsExclusiveStartTagKey = a})
-- | The name of the stream.
ltfsStreamName :: Lens' ListTagsForStream Text
-ltfsStreamName = lens _ltfsStreamName (\ s a -> s{_ltfsStreamName = a});
+ltfsStreamName = lens _ltfsStreamName (\ s a -> s{_ltfsStreamName = a})
instance AWSRequest ListTagsForStream where
type Rs ListTagsForStream = ListTagsForStreamResponse
@@ -156,22 +156,22 @@ listTagsForStreamResponse
-> ListTagsForStreamResponse
listTagsForStreamResponse pResponseStatus_ pHasMoreTags_ =
ListTagsForStreamResponse'
- { _ltfsrsResponseStatus = pResponseStatus_
- , _ltfsrsTags = mempty
- , _ltfsrsHasMoreTags = pHasMoreTags_
- }
+ { _ltfsrsResponseStatus = pResponseStatus_
+ , _ltfsrsTags = mempty
+ , _ltfsrsHasMoreTags = pHasMoreTags_
+ }
-- | -- | The response status code.
ltfsrsResponseStatus :: Lens' ListTagsForStreamResponse Int
-ltfsrsResponseStatus = lens _ltfsrsResponseStatus (\ s a -> s{_ltfsrsResponseStatus = a});
+ltfsrsResponseStatus = lens _ltfsrsResponseStatus (\ s a -> s{_ltfsrsResponseStatus = a})
-- | A list of tags associated with @StreamName@ , starting with the first tag after @ExclusiveStartTagKey@ and up to the specified @Limit@ .
ltfsrsTags :: Lens' ListTagsForStreamResponse [Tag]
-ltfsrsTags = lens _ltfsrsTags (\ s a -> s{_ltfsrsTags = a}) . _Coerce;
+ltfsrsTags = lens _ltfsrsTags (\ s a -> s{_ltfsrsTags = a}) . _Coerce
-- | If set to @true@ , more tags are available. To request additional tags, set @ExclusiveStartTagKey@ to the key of the last tag returned.
ltfsrsHasMoreTags :: Lens' ListTagsForStreamResponse Bool
-ltfsrsHasMoreTags = lens _ltfsrsHasMoreTags (\ s a -> s{_ltfsrsHasMoreTags = a});
+ltfsrsHasMoreTags = lens _ltfsrsHasMoreTags (\ s a -> s{_ltfsrsHasMoreTags = a})
instance NFData ListTagsForStreamResponse where
diff --git a/gen/Network/AWS/Kinesis/MergeShards.hs b/gen/Network/AWS/Kinesis/MergeShards.hs
index a518f03..3eb37ec 100644
--- a/gen/Network/AWS/Kinesis/MergeShards.hs
+++ b/gen/Network/AWS/Kinesis/MergeShards.hs
@@ -12,28 +12,28 @@
-- |
-- Module : Network.AWS.Kinesis.MergeShards
--- Copyright : (c) 2013-2017 Brendan Hay
+-- Copyright : (c) 2013-2018 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
--- Merges two adjacent shards in an Amazon Kinesis stream and combines them into a single shard to reduce the stream's capacity to ingest and transport data. Two shards are considered adjacent if the union of the hash key ranges for the two shards form a contiguous set with no gaps. For example, if you have two shards, one with a hash key range of 276...381 and the other with a hash key range of 382...454, then you could merge these two shards into a single shard that would have a hash key range of 276...454. After the merge, the single child shard receives data for all hash key values covered by the two parent shards.
+-- Merges two adjacent shards in a Kinesis data stream and combines them into a single shard to reduce the stream's capacity to ingest and transport data. Two shards are considered adjacent if the union of the hash key ranges for the two shards form a contiguous set with no gaps. For example, if you have two shards, one with a hash key range of 276...381 and the other with a hash key range of 382...454, then you could merge these two shards into a single shard that would have a hash key range of 276...454. After the merge, the single child shard receives data for all hash key values covered by the two parent shards.
--
--
--- @MergeShards@ is called when there is a need to reduce the overall capacity of a stream because of excess capacity that is not being used. You must specify the shard to be merged and the adjacent shard for a stream. For more information about merging shards, see <http://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-resharding-merge.html Merge Two Shards> in the /Amazon Kinesis Streams Developer Guide/ .
+-- @MergeShards@ is called when there is a need to reduce the overall capacity of a stream because of excess capacity that is not being used. You must specify the shard to be merged and the adjacent shard for a stream. For more information about merging shards, see <http://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-resharding-merge.html Merge Two Shards> in the /Amazon Kinesis Data Streams Developer Guide/ .
--
-- If the stream is in the @ACTIVE@ state, you can call @MergeShards@ . If a stream is in the @CREATING@ , @UPDATING@ , or @DELETING@ state, @MergeShards@ returns a @ResourceInUseException@ . If the specified stream does not exist, @MergeShards@ returns a @ResourceNotFoundException@ .
--
-- You can use 'DescribeStream' to check the state of the stream, which is returned in @StreamStatus@ .
--
--- @MergeShards@ is an asynchronous operation. Upon receiving a @MergeShards@ request, Amazon Kinesis immediately returns a response and sets the @StreamStatus@ to @UPDATING@ . After the operation is completed, Amazon Kinesis sets the @StreamStatus@ to @ACTIVE@ . Read and write operations continue to work while the stream is in the @UPDATING@ state.
+-- @MergeShards@ is an asynchronous operation. Upon receiving a @MergeShards@ request, Amazon Kinesis Data Streams immediately returns a response and sets the @StreamStatus@ to @UPDATING@ . After the operation is completed, Kinesis Data Streams sets the @StreamStatus@ to @ACTIVE@ . Read and write operations continue to work while the stream is in the @UPDATING@ state.
--
-- You use 'DescribeStream' to determine the shard IDs that are specified in the @MergeShards@ request.
--
--- If you try to operate on too many streams in parallel using 'CreateStream' , 'DeleteStream' , @MergeShards@ or 'SplitShard' , you will receive a @LimitExceededException@ .
+-- If you try to operate on too many streams in parallel using 'CreateStream' , 'DeleteStream' , @MergeShards@ , or 'SplitShard' , you receive a @LimitExceededException@ .
--
--- @MergeShards@ has limit of 5 transactions per second per account.
+-- @MergeShards@ has a limit of five transactions per second per account.
--
module Network.AWS.Kinesis.MergeShards
(
@@ -85,23 +85,23 @@ mergeShards
-> MergeShards
mergeShards pStreamName_ pShardToMerge_ pAdjacentShardToMerge_ =
MergeShards'
- { _msStreamName = pStreamName_
- , _msShardToMerge = pShardToMerge_
- , _msAdjacentShardToMerge = pAdjacentShardToMerge_
- }
+ { _msStreamName = pStreamName_
+ , _msShardToMerge = pShardToMerge_
+ , _msAdjacentShardToMerge = pAdjacentShardToMerge_
+ }
-- | The name of the stream for the merge.
msStreamName :: Lens' MergeShards Text
-msStreamName = lens _msStreamName (\ s a -> s{_msStreamName = a});
+msStreamName = lens _msStreamName (\ s a -> s{_msStreamName = a})
-- | The shard ID of the shard to combine with the adjacent shard for the merge.
msShardToMerge :: Lens' MergeShards Text
-msShardToMerge = lens _msShardToMerge (\ s a -> s{_msShardToMerge = a});
+msShardToMerge = lens _msShardToMerge (\ s a -> s{_msShardToMerge = a})
-- | The shard ID of the adjacent shard for the merge.
msAdjacentShardToMerge :: Lens' MergeShards Text
-msAdjacentShardToMerge = lens _msAdjacentShardToMerge (\ s a -> s{_msAdjacentShardToMerge = a});
+msAdjacentShardToMerge = lens _msAdjacentShardToMerge (\ s a -> s{_msAdjacentShardToMerge = a})
instance AWSRequest MergeShards where
type Rs MergeShards = MergeShardsResponse
diff --git a/gen/Network/AWS/Kinesis/PutRecord.hs b/gen/Network/AWS/Kinesis/PutRecord.hs
index b75d537..1cefe7f 100644
--- a/gen/Network/AWS/Kinesis/PutRecord.hs
+++ b/gen/Network/AWS/Kinesis/PutRecord.hs
@@ -12,26 +12,26 @@
-- |
-- Module : Network.AWS.Kinesis.PutRecord
--- Copyright : (c) 2013-2017 Brendan Hay
+-- Copyright : (c) 2013-2018 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
--- Writes a single data record into an Amazon Kinesis stream. Call @PutRecord@ to send data into the stream for real-time ingestion and subsequent processing, one record at a time. Each shard can support writes up to 1,000 records per second, up to a maximum data write total of 1 MB per second.
+-- Writes a single data record into an Amazon Kinesis data stream. Call @PutRecord@ to send data into the stream for real-time ingestion and subsequent processing, one record at a time. Each shard can support writes up to 1,000 records per second, up to a maximum data write total of 1 MB per second.
--
--
-- You must specify the name of the stream that captures, stores, and transports the data; a partition key; and the data blob itself.
--
-- The data blob can be any type of data; for example, a segment from a log file, geographic/location data, website clickstream data, and so on.
--
--- The partition key is used by Amazon Kinesis to distribute data across shards. Amazon Kinesis segregates the data records that belong to a stream into multiple shards, using the partition key associated with each data record to determine which shard a given data record belongs to.
+-- The partition key is used by Kinesis Data Streams to distribute data across shards. Kinesis Data Streams segregates the data records that belong to a stream into multiple shards, using the partition key associated with each data record to determine the shard to which a given data record belongs.
--
--- Partition keys are Unicode strings, with a maximum length limit of 256 characters for each key. An MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards using the hash key ranges of the shards. You can override hashing the partition key to determine the shard by explicitly specifying a hash value using the @ExplicitHashKey@ parameter. For more information, see <http://docs.aws.amazon.com/kinesis/latest/dev/developing-producers-with-sdk.html#kinesis-using-sdk-java-add-data-to-stream Adding Data to a Stream> in the /Amazon Kinesis Streams Developer Guide/ .
+-- Partition keys are Unicode strings, with a maximum length limit of 256 characters for each key. An MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards using the hash key ranges of the shards. You can override hashing the partition key to determine the shard by explicitly specifying a hash value using the @ExplicitHashKey@ parameter. For more information, see <http://docs.aws.amazon.com/kinesis/latest/dev/developing-producers-with-sdk.html#kinesis-using-sdk-java-add-data-to-stream Adding Data to a Stream> in the /Amazon Kinesis Data Streams Developer Guide/ .
--
-- @PutRecord@ returns the shard ID of where the data record was placed and the sequence number that was assigned to the data record.
--
--- Sequence numbers increase over time and are specific to a shard within a stream, not across all shards within a stream. To guarantee strictly increasing ordering, write serially to a shard and use the @SequenceNumberForOrdering@ parameter. For more information, see <http://docs.aws.amazon.com/kinesis/latest/dev/developing-producers-with-sdk.html#kinesis-using-sdk-java-add-data-to-stream Adding Data to a Stream> in the /Amazon Kinesis Streams Developer Guide/ .
+-- Sequence numbers increase over time and are specific to a shard within a stream, not across all shards within a stream. To guarantee strictly increasing ordering, write serially to a shard and use the @SequenceNumberForOrdering@ parameter. For more information, see <http://docs.aws.amazon.com/kinesis/latest/dev/developing-producers-with-sdk.html#kinesis-using-sdk-java-add-data-to-stream Adding Data to a Stream> in the /Amazon Kinesis Data Streams Developer Guide/ .
--
-- If a @PutRecord@ request cannot be processed because of insufficient provisioned throughput on the shard involved in the request, @PutRecord@ throws @ProvisionedThroughputExceededException@ .
--
@@ -86,13 +86,13 @@ data PutRecord = PutRecord'
--
-- * 'prExplicitHashKey' - The hash value used to explicitly determine the shard the data record is assigned to by overriding the partition key hash.
--
--- * 'prSequenceNumberForOrdering' - Guarantees strictly increasing sequence numbers, for puts from the same client and to the same partition key. Usage: set the @SequenceNumberForOrdering@ of record /n/ to the sequence number of record /n-1/ (as returned in the result when putting record /n-1/ ). If this parameter is not set, records will be coarsely ordered based on arrival time.
+-- * 'prSequenceNumberForOrdering' - Guarantees strictly increasing sequence numbers, for puts from the same client and to the same partition key. Usage: set the @SequenceNumberForOrdering@ of record /n/ to the sequence number of record /n-1/ (as returned in the result when putting record /n-1/ ). If this parameter is not set, records are coarsely ordered based on arrival time.
--
-- * 'prStreamName' - The name of the stream to put the data record into.
--
-- * 'prData' - The data blob to put into the record, which is base64-encoded when the blob is serialized. When the data blob (the payload before base64-encoding) is added to the partition key size, the total size must not exceed the maximum record size (1 MB).-- /Note:/ This 'Lens' automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This 'Lens' accepts and returns only raw unencoded data.
--
--- * 'prPartitionKey' - Determines which shard in the stream the data record is assigned to. Partition keys are Unicode strings with a maximum length limit of 256 characters for each key. Amazon Kinesis uses the partition key as input to a hash function that maps the partition key and associated data to a specific shard. Specifically, an MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards. As a result of this hashing mechanism, all data records with the same partition key map to the same shard within the stream.
+-- * 'prPartitionKey' - Determines which shard in the stream the data record is assigned to. Partition keys are Unicode strings with a maximum length limit of 256 characters for each key. Amazon Kinesis Data Streams uses the partition key as input to a hash function that maps the partition key and associated data to a specific shard. Specifically, an MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards. As a result of this hashing mechanism, all data records with the same partition key map to the same shard within the stream.
putRecord
:: Text -- ^ 'prStreamName'
-> ByteString -- ^ 'prData'
@@ -100,33 +100,33 @@ putRecord
-> PutRecord
putRecord pStreamName_ pData_ pPartitionKey_ =
PutRecord'
- { _prExplicitHashKey = Nothing
- , _prSequenceNumberForOrdering = Nothing
- , _prStreamName = pStreamName_
- , _prData = _Base64 # pData_
- , _prPartitionKey = pPartitionKey_
- }
+ { _prExplicitHashKey = Nothing
+ , _prSequenceNumberForOrdering = Nothing
+ , _prStreamName = pStreamName_
+ , _prData = _Base64 # pData_
+ , _prPartitionKey = pPartitionKey_
+ }
-- | The hash value used to explicitly determine the shard the data record is assigned to by overriding the partition key hash.
prExplicitHashKey :: Lens' PutRecord (Maybe Text)
-prExplicitHashKey = lens _prExplicitHashKey (\ s a -> s{_prExplicitHashKey = a});
+prExplicitHashKey = lens _prExplicitHashKey (\ s a -> s{_prExplicitHashKey = a})
--- | Guarantees strictly increasing sequence numbers, for puts from the same client and to the same partition key. Usage: set the @SequenceNumberForOrdering@ of record /n/ to the sequence number of record /n-1/ (as returned in the result when putting record /n-1/ ). If this parameter is not set, records will be coarsely ordered based on arrival time.
+-- | Guarantees strictly increasing sequence numbers, for puts from the same client and to the same partition key. Usage: set the @SequenceNumberForOrdering@ of record /n/ to the sequence number of record /n-1/ (as returned in the result when putting record /n-1/ ). If this parameter is not set, records are coarsely ordered based on arrival time.
prSequenceNumberForOrdering :: Lens' PutRecord (Maybe Text)
-prSequenceNumberForOrdering = lens _prSequenceNumberForOrdering (\ s a -> s{_prSequenceNumberForOrdering = a});
+prSequenceNumberForOrdering = lens _prSequenceNumberForOrdering (\ s a -> s{_prSequenceNumberForOrdering = a})
-- | The name of the stream to put the data record into.
prStreamName :: Lens' PutRecord Text
-prStreamName = lens _prStreamName (\ s a -> s{_prStreamName = a});
+prStreamName = lens _prStreamName (\ s a -> s{_prStreamName = a})
-- | The data blob to put into the record, which is base64-encoded when the blob is serialized. When the data blob (the payload before base64-encoding) is added to the partition key size, the total size must not exceed the maximum record size (1 MB).-- /Note:/ This 'Lens' automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This 'Lens' accepts and returns only raw unencoded data.
prData :: Lens' PutRecord ByteString
-prData = lens _prData (\ s a -> s{_prData = a}) . _Base64;
+prData = lens _prData (\ s a -> s{_prData = a}) . _Base64
--- | Determines which shard in the stream the data record is assigned to. Partition keys are Unicode strings with a maximum length limit of 256 characters for each key. Amazon Kinesis uses the partition key as input to a hash function that maps the partition key and associated data to a specific shard. Specifically, an MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards. As a result of this hashing mechanism, all data records with the same partition key map to the same shard within the stream.
+-- | Determines which shard in the stream the data record is assigned to. Partition keys are Unicode strings with a maximum length limit of 256 characters for each key. Amazon Kinesis Data Streams uses the partition key as input to a hash function that maps the partition key and associated data to a specific shard. Specifically, an MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards. As a result of this hashing mechanism, all data records with the same partition key map to the same shard within the stream.
prPartitionKey :: Lens' PutRecord Text
-prPartitionKey = lens _prPartitionKey (\ s a -> s{_prPartitionKey = a});
+prPartitionKey = lens _prPartitionKey (\ s a -> s{_prPartitionKey = a})
instance AWSRequest PutRecord where
type Rs PutRecord = PutRecordResponse
@@ -186,7 +186,7 @@ data PutRecordResponse = PutRecordResponse'
--
-- Use one of the following lenses to modify other fields as desired:
--
--- * 'prrsEncryptionType' - The encryption type to use on the record. This parameter can be one of the following values: * @NONE@ : Do not encrypt the records in the stream. * @KMS@ : Use server-side encryption on the records in the stream using a customer-managed KMS key.
+-- * 'prrsEncryptionType' - The encryption type to use on the record. This parameter can be one of the following values: * @NONE@ : Do not encrypt the records in the stream. * @KMS@ : Use server-side encryption on the records in the stream using a customer-managed AWS KMS key.
--
-- * 'prrsResponseStatus' - -- | The response status code.
--
@@ -200,27 +200,27 @@ putRecordResponse
-> PutRecordResponse
putRecordResponse pResponseStatus_ pShardId_ pSequenceNumber_ =
PutRecordResponse'
- { _prrsEncryptionType = Nothing
- , _prrsResponseStatus = pResponseStatus_
- , _prrsShardId = pShardId_
- , _prrsSequenceNumber = pSequenceNumber_
- }
+ { _prrsEncryptionType = Nothing
+ , _prrsResponseStatus = pResponseStatus_
+ , _prrsShardId = pShardId_
+ , _prrsSequenceNumber = pSequenceNumber_
+ }
--- | The encryption type to use on the record. This parameter can be one of the following values: * @NONE@ : Do not encrypt the records in the stream. * @KMS@ : Use server-side encryption on the records in the stream using a customer-managed KMS key.
+-- | The encryption type to use on the record. This parameter can be one of the following values: * @NONE@ : Do not encrypt the records in the stream. * @KMS@ : Use server-side encryption on the records in the stream using a customer-managed AWS KMS key.
prrsEncryptionType :: Lens' PutRecordResponse (Maybe EncryptionType)
-prrsEncryptionType = lens _prrsEncryptionType (\ s a -> s{_prrsEncryptionType = a});
+prrsEncryptionType = lens _prrsEncryptionType (\ s a -> s{_prrsEncryptionType = a})
-- | -- | The response status code.
prrsResponseStatus :: Lens' PutRecordResponse Int
-prrsResponseStatus = lens _prrsResponseStatus (\ s a -> s{_prrsResponseStatus = a});
+prrsResponseStatus = lens _prrsResponseStatus (\ s a -> s{_prrsResponseStatus = a})
-- | The shard ID of the shard where the data record was placed.
prrsShardId :: Lens' PutRecordResponse Text
-prrsShardId = lens _prrsShardId (\ s a -> s{_prrsShardId = a});
+prrsShardId = lens _prrsShardId (\ s a -> s{_prrsShardId = a})
-- | The sequence number identifier that was assigned to the put data record. The sequence number for the record is unique across all records in the stream. A sequence number is the identifier associated with every record put into the stream.
prrsSequenceNumber :: Lens' PutRecordResponse Text
-prrsSequenceNumber = lens _prrsSequenceNumber (\ s a -> s{_prrsSequenceNumber = a});
+prrsSequenceNumber = lens _prrsSequenceNumber (\ s a -> s{_prrsSequenceNumber = a})
instance NFData PutRecordResponse where
diff --git a/gen/Network/AWS/Kinesis/PutRecords.hs b/gen/Network/AWS/Kinesis/PutRecords.hs
index ad4918c..5082c9e 100644
--- a/gen/Network/AWS/Kinesis/PutRecords.hs
+++ b/gen/Network/AWS/Kinesis/PutRecords.hs
@@ -12,13 +12,13 @@
-- |
-- Module : Network.AWS.Kinesis.PutRecords
--- Copyright : (c) 2013-2017 Brendan Hay
+-- Copyright : (c) 2013-2018 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
--- Writes multiple data records into an Amazon Kinesis stream in a single call (also referred to as a @PutRecords@ request). Use this operation to send data into the stream for data ingestion and processing.
+-- Writes multiple data records into a Kinesis data stream in a single call (also referred to as a @PutRecords@ request). Use this operation to send data into the stream for data ingestion and processing.
--
--
-- Each @PutRecords@ request can support up to 500 records. Each record in the request can be as large as 1 MB, up to a limit of 5 MB for the entire request, including partition keys. Each shard can support writes up to 1,000 records per second, up to a maximum data write total of 1 MB per second.
@@ -27,17 +27,17 @@
--
-- The data blob can be any type of data; for example, a segment from a log file, geographic/location data, website clickstream data, and so on.
--
--- The partition key is used by Amazon Kinesis as input to a hash function that maps the partition key and associated data to a specific shard. An MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards. As a result of this hashing mechanism, all data records with the same partition key map to the same shard within the stream. For more information, see <http://docs.aws.amazon.com/kinesis/latest/dev/developing-producers-with-sdk.html#kinesis-using-sdk-java-add-data-to-stream Adding Data to a Stream> in the /Amazon Kinesis Streams Developer Guide/ .
+-- The partition key is used by Kinesis Data Streams as input to a hash function that maps the partition key and associated data to a specific shard. An MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards. As a result of this hashing mechanism, all data records with the same partition key map to the same shard within the stream. For more information, see <http://docs.aws.amazon.com/kinesis/latest/dev/developing-producers-with-sdk.html#kinesis-using-sdk-java-add-data-to-stream Adding Data to a Stream> in the /Amazon Kinesis Data Streams Developer Guide/ .
--
--- Each record in the @Records@ array may include an optional parameter, @ExplicitHashKey@ , which overrides the partition key to shard mapping. This parameter allows a data producer to determine explicitly the shard where the record is stored. For more information, see <http://docs.aws.amazon.com/kinesis/latest/dev/developing-producers-with-sdk.html#kinesis-using-sdk-java-putrecords Adding Multiple Records with PutRecords> in the /Amazon Kinesis Streams Developer Guide/ .
+-- Each record in the @Records@ array may include an optional parameter, @ExplicitHashKey@ , which overrides the partition key to shard mapping. This parameter allows a data producer to determine explicitly the shard where the record is stored. For more information, see <http://docs.aws.amazon.com/kinesis/latest/dev/developing-producers-with-sdk.html#kinesis-using-sdk-java-putrecords Adding Multiple Records with PutRecords> in the /Amazon Kinesis Data Streams Developer Guide/ .
--
-- The @PutRecords@ response includes an array of response @Records@ . Each record in the response array directly correlates with a record in the request array using natural ordering, from the top to the bottom of the request and response. The response @Records@ array always includes the same number of records as the request array.
--
--- The response @Records@ array includes both successfully and unsuccessfully processed records. Amazon Kinesis attempts to process all records in each @PutRecords@ request. A single record failure does not stop the processing of subsequent records.
+-- The response @Records@ array includes both successfully and unsuccessfully processed records. Kinesis Data Streams attempts to process all records in each @PutRecords@ request. A single record failure does not stop the processing of subsequent records.
--
--- A successfully-processed record includes @ShardId@ and @SequenceNumber@ values. The @ShardId@ parameter identifies the shard in the stream where the record is stored. The @SequenceNumber@ parameter is an identifier assigned to the put record, unique to all records in the stream.
+-- A successfully processed record includes @ShardId@ and @SequenceNumber@ values. The @ShardId@ parameter identifies the shard in the stream where the record is stored. The @SequenceNumber@ parameter is an identifier assigned to the put record, unique to all records in the stream.
--
--- An unsuccessfully-processed record includes @ErrorCode@ and @ErrorMessage@ values. @ErrorCode@ reflects the type of error and can be one of the following values: @ProvisionedThroughputExceededException@ or @InternalFailure@ . @ErrorMessage@ provides more detailed information about the @ProvisionedThroughputExceededException@ exception including the account ID, stream name, and shard ID of the record that was throttled. For more information about partially successful responses, see <http://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-add-data-to-stream.html#kinesis-using-sdk-java-putrecords Adding Multiple Records with PutRecords> in the /Amazon Kinesis Streams Developer Guide/ .
+-- An unsuccessfully processed record includes @ErrorCode@ and @ErrorMessage@ values. @ErrorCode@ reflects the type of error and can be one of the following values: @ProvisionedThroughputExceededException@ or @InternalFailure@ . @ErrorMessage@ provides more detailed information about the @ProvisionedThroughputExceededException@ exception including the account ID, stream name, and shard ID of the record that was throttled. For more information about partially successful responses, see <http://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-add-data-to-stream.html#kinesis-using-sdk-java-putrecords Adding Multiple Records with PutRecords> in the /Amazon Kinesis Data Streams Developer Guide/ .
--
-- By default, data records are accessible for 24 hours from the time that they are added to a stream. You can use 'IncreaseStreamRetentionPeriod' or 'DecreaseStreamRetentionPeriod' to modify this retention period.
--
@@ -91,16 +91,16 @@ putRecords
-> PutRecords
putRecords pRecordEntries_ pStreamName_ =
PutRecords'
- {_pRecordEntries = _List1 # pRecordEntries_, _pStreamName = pStreamName_}
+ {_pRecordEntries = _List1 # pRecordEntries_, _pStreamName = pStreamName_}
-- | The records associated with the request.
pRecordEntries :: Lens' PutRecords (NonEmpty PutRecordsRequestEntry)
-pRecordEntries = lens _pRecordEntries (\ s a -> s{_pRecordEntries = a}) . _List1;
+pRecordEntries = lens _pRecordEntries (\ s a -> s{_pRecordEntries = a}) . _List1
-- | The stream name associated with the request.
pStreamName :: Lens' PutRecords Text
-pStreamName = lens _pStreamName (\ s a -> s{_pStreamName = a});
+pStreamName = lens _pStreamName (\ s a -> s{_pStreamName = a})
instance AWSRequest PutRecords where
type Rs PutRecords = PutRecordsResponse
@@ -157,7 +157,7 @@ data PutRecordsResponse = PutRecordsResponse'
--
-- Use one of the following lenses to modify other fields as desired:
--
--- * 'prsEncryptionType' - The encryption type used on the records. This parameter can be one of the following values: * @NONE@ : Do not encrypt the records. * @KMS@ : Use server-side encryption on the records using a customer-managed KMS key.
+-- * 'prsEncryptionType' - The encryption type used on the records. This parameter can be one of the following values: * @NONE@ : Do not encrypt the records. * @KMS@ : Use server-side encryption on the records using a customer-managed AWS KMS key.
--
-- * 'prsFailedRecordCount' - The number of unsuccessfully processed records in a @PutRecords@ request.
--
@@ -170,27 +170,27 @@ putRecordsResponse
-> PutRecordsResponse
putRecordsResponse pResponseStatus_ pRecords_ =
PutRecordsResponse'
- { _prsEncryptionType = Nothing
- , _prsFailedRecordCount = Nothing
- , _prsResponseStatus = pResponseStatus_
- , _prsRecords = _List1 # pRecords_
- }
+ { _prsEncryptionType = Nothing
+ , _prsFailedRecordCount = Nothing
+ , _prsResponseStatus = pResponseStatus_
+ , _prsRecords = _List1 # pRecords_
+ }
--- | The encryption type used on the records. This parameter can be one of the following values: * @NONE@ : Do not encrypt the records. * @KMS@ : Use server-side encryption on the records using a customer-managed KMS key.
+-- | The encryption type used on the records. This parameter can be one of the following values: * @NONE@ : Do not encrypt the records. * @KMS@ : Use server-side encryption on the records using a customer-managed AWS KMS key.
prsEncryptionType :: Lens' PutRecordsResponse (Maybe EncryptionType)
-prsEncryptionType = lens _prsEncryptionType (\ s a -> s{_prsEncryptionType = a});
+prsEncryptionType = lens _prsEncryptionType (\ s a -> s{_prsEncryptionType = a})
-- | The number of unsuccessfully processed records in a @PutRecords@ request.
prsFailedRecordCount :: Lens' PutRecordsResponse (Maybe Natural)
-prsFailedRecordCount = lens _prsFailedRecordCount (\ s a -> s{_prsFailedRecordCount = a}) . mapping _Nat;
+prsFailedRecordCount = lens _prsFailedRecordCount (\ s a -> s{_prsFailedRecordCount = a}) . mapping _Nat
-- | -- | The response status code.
prsResponseStatus :: Lens' PutRecordsResponse Int
-prsResponseStatus = lens _prsResponseStatus (\ s a -> s{_prsResponseStatus = a});
+prsResponseStatus = lens _prsResponseStatus (\ s a -> s{_prsResponseStatus = a})
-- | An array of successfully and unsuccessfully processed record results, correlated with the request by natural ordering. A record that is successfully added to a stream includes @SequenceNumber@ and @ShardId@ in the result. A record that fails to be added to a stream includes @ErrorCode@ and @ErrorMessage@ in the result.
prsRecords :: Lens' PutRecordsResponse (NonEmpty PutRecordsResultEntry)
-prsRecords = lens _prsRecords (\ s a -> s{_prsRecords = a}) . _List1;
+prsRecords = lens _prsRecords (\ s a -> s{_prsRecords = a}) . _List1
instance NFData PutRecordsResponse where
diff --git a/gen/Network/AWS/Kinesis/RemoveTagsFromStream.hs b/gen/Network/AWS/Kinesis/RemoveTagsFromStream.hs
index 47dd0b9..c341952 100644
--- a/gen/Network/AWS/Kinesis/RemoveTagsFromStream.hs
+++ b/gen/Network/AWS/Kinesis/RemoveTagsFromStream.hs
@@ -12,17 +12,19 @@
-- |
-- Module : Network.AWS.Kinesis.RemoveTagsFromStream
--- Copyright : (c) 2013-2017 Brendan Hay
+-- Copyright : (c) 2013-2018 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
--- Removes tags from the specified Amazon Kinesis stream. Removed tags are deleted and cannot be recovered after this operation successfully completes.
+-- Removes tags from the specified Kinesis data stream. Removed tags are deleted and cannot be recovered after this operation successfully completes.
--
--
-- If you specify a tag that does not exist, it is ignored.
--
+-- 'RemoveTagsFromStream' has a limit of five transactions per second per account.
+--
module Network.AWS.Kinesis.RemoveTagsFromStream
(
-- * Creating a Request
@@ -68,16 +70,16 @@ removeTagsFromStream
-> RemoveTagsFromStream
removeTagsFromStream pStreamName_ pTagKeys_ =
RemoveTagsFromStream'
- {_rtfsStreamName = pStreamName_, _rtfsTagKeys = _List1 # pTagKeys_}
+ {_rtfsStreamName = pStreamName_, _rtfsTagKeys = _List1 # pTagKeys_}
-- | The name of the stream.
rtfsStreamName :: Lens' RemoveTagsFromStream Text
-rtfsStreamName = lens _rtfsStreamName (\ s a -> s{_rtfsStreamName = a});
+rtfsStreamName = lens _rtfsStreamName (\ s a -> s{_rtfsStreamName = a})
-- | A list of tag keys. Each corresponding tag is removed from the stream.
rtfsTagKeys :: Lens' RemoveTagsFromStream (NonEmpty Text)
-rtfsTagKeys = lens _rtfsTagKeys (\ s a -> s{_rtfsTagKeys = a}) . _List1;
+rtfsTagKeys = lens _rtfsTagKeys (\ s a -> s{_rtfsTagKeys = a}) . _List1
instance AWSRequest RemoveTagsFromStream where
type Rs RemoveTagsFromStream =
diff --git a/gen/Network/AWS/Kinesis/SplitShard.hs b/gen/Network/AWS/Kinesis/SplitShard.hs
index 7f2f370..2fc1321 100644
--- a/gen/Network/AWS/Kinesis/SplitShard.hs
+++ b/gen/Network/AWS/Kinesis/SplitShard.hs
@@ -12,32 +12,32 @@
-- |
-- Module : Network.AWS.Kinesis.SplitShard
--- Copyright : (c) 2013-2017 Brendan Hay
+-- Copyright : (c) 2013-2018 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
--- Splits a shard into two new shards in the Amazon Kinesis stream to increase the stream's capacity to ingest and transport data. @SplitShard@ is called when there is a need to increase the overall capacity of a stream because of an expected increase in the volume of data records being ingested.
+-- Splits a shard into two new shards in the Kinesis data stream, to increase the stream's capacity to ingest and transport data. @SplitShard@ is called when there is a need to increase the overall capacity of a stream because of an expected increase in the volume of data records being ingested.
--
--
--- You can also use @SplitShard@ when a shard appears to be approaching its maximum utilization; for example, the producers sending data into the specific shard are suddenly sending more than previously anticipated. You can also call @SplitShard@ to increase stream capacity, so that more Amazon Kinesis applications can simultaneously read data from the stream for real-time processing.
+-- You can also use @SplitShard@ when a shard appears to be approaching its maximum utilization; for example, the producers sending data into the specific shard are suddenly sending more than previously anticipated. You can also call @SplitShard@ to increase stream capacity, so that more Kinesis Data Streams applications can simultaneously read data from the stream for real-time processing.
--
--- You must specify the shard to be split and the new hash key, which is the position in the shard where the shard gets split in two. In many cases, the new hash key might simply be the average of the beginning and ending hash key, but it can be any hash key value in the range being mapped into the shard. For more information about splitting shards, see <http://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-resharding-split.html Split a Shard> in the /Amazon Kinesis Streams Developer Guide/ .
+-- You must specify the shard to be split and the new hash key, which is the position in the shard where the shard gets split in two. In many cases, the new hash key might be the average of the beginning and ending hash key, but it can be any hash key value in the range being mapped into the shard. For more information, see <http://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-resharding-split.html Split a Shard> in the /Amazon Kinesis Data Streams Developer Guide/ .
--
-- You can use 'DescribeStream' to determine the shard ID and hash key values for the @ShardToSplit@ and @NewStartingHashKey@ parameters that are specified in the @SplitShard@ request.
--
--- @SplitShard@ is an asynchronous operation. Upon receiving a @SplitShard@ request, Amazon Kinesis immediately returns a response and sets the stream status to @UPDATING@ . After the operation is completed, Amazon Kinesis sets the stream status to @ACTIVE@ . Read and write operations continue to work while the stream is in the @UPDATING@ state.
+-- @SplitShard@ is an asynchronous operation. Upon receiving a @SplitShard@ request, Kinesis Data Streams immediately returns a response and sets the stream status to @UPDATING@ . After the operation is completed, Kinesis Data Streams sets the stream status to @ACTIVE@ . Read and write operations continue to work while the stream is in the @UPDATING@ state.
--
-- You can use @DescribeStream@ to check the status of the stream, which is returned in @StreamStatus@ . If the stream is in the @ACTIVE@ state, you can call @SplitShard@ . If a stream is in @CREATING@ or @UPDATING@ or @DELETING@ states, @DescribeStream@ returns a @ResourceInUseException@ .
--
-- If the specified stream does not exist, @DescribeStream@ returns a @ResourceNotFoundException@ . If you try to create more shards than are authorized for your account, you receive a @LimitExceededException@ .
--
--- For the default shard limit for an AWS account, see <http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html Streams Limits> in the /Amazon Kinesis Streams Developer Guide/ . If you need to increase this limit, <http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html contact AWS Support> .
+-- For the default shard limit for an AWS account, see <http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html Streams Limits> in the /Amazon Kinesis Data Streams Developer Guide/ . To increase this limit, <http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html contact AWS Support> .
--
-- If you try to operate on too many streams simultaneously using 'CreateStream' , 'DeleteStream' , 'MergeShards' , and/or 'SplitShard' , you receive a @LimitExceededException@ .
--
--- @SplitShard@ has limit of 5 transactions per second per account.
+-- @SplitShard@ has a limit of five transactions per second per account.
--
module Network.AWS.Kinesis.SplitShard
(
@@ -89,23 +89,23 @@ splitShard
-> SplitShard
splitShard pStreamName_ pShardToSplit_ pNewStartingHashKey_ =
SplitShard'
- { _ssStreamName = pStreamName_
- , _ssShardToSplit = pShardToSplit_
- , _ssNewStartingHashKey = pNewStartingHashKey_
- }
+ { _ssStreamName = pStreamName_
+ , _ssShardToSplit = pShardToSplit_
+ , _ssNewStartingHashKey = pNewStartingHashKey_
+ }
-- | The name of the stream for the shard split.
ssStreamName :: Lens' SplitShard Text
-ssStreamName = lens _ssStreamName (\ s a -> s{_ssStreamName = a});
+ssStreamName = lens _ssStreamName (\ s a -> s{_ssStreamName = a})
-- | The shard ID of the shard to split.
ssShardToSplit :: Lens' SplitShard Text
-ssShardToSplit = lens _ssShardToSplit (\ s a -> s{_ssShardToSplit = a});
+ssShardToSplit = lens _ssShardToSplit (\ s a -> s{_ssShardToSplit = a})
-- | A hash key value for the starting hash key of one of the child shards created by the split. The hash key range for a given shard constitutes a set of ordered contiguous positive integers. The value for @NewStartingHashKey@ must be in the range of hash keys being mapped into the shard. The @NewStartingHashKey@ hash key value and all higher hash key values in hash key range are distributed to one of the child shards. All the lower hash key values in the range are distributed to the other child shard.
ssNewStartingHashKey :: Lens' SplitShard Text
-ssNewStartingHashKey = lens _ssNewStartingHashKey (\ s a -> s{_ssNewStartingHashKey = a});
+ssNewStartingHashKey = lens _ssNewStartingHashKey (\ s a -> s{_ssNewStartingHashKey = a})
instance AWSRequest SplitShard where
type Rs SplitShard = SplitShardResponse
diff --git a/gen/Network/AWS/Kinesis/StartStreamEncryption.hs b/gen/Network/AWS/Kinesis/StartStreamEncryption.hs
index 7c1a2b6..df5aa86 100644
--- a/gen/Network/AWS/Kinesis/StartStreamEncryption.hs
+++ b/gen/Network/AWS/Kinesis/StartStreamEncryption.hs
@@ -12,7 +12,7 @@
-- |
-- Module : Network.AWS.Kinesis.StartStreamEncryption
--- Copyright : (c) 2013-2017 Brendan Hay
+-- Copyright : (c) 2013-2018 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability : auto-generated
@@ -21,11 +21,11 @@
-- Enables or updates server-side encryption using an AWS KMS key for a specified stream.
--
--
--- Starting encryption is an asynchronous operation. Upon receiving the request, Amazon Kinesis returns immediately and sets the status of the stream to @UPDATING@ . After the update is complete, Amazon Kinesis sets the status of the stream back to @ACTIVE@ . Updating or applying encryption normally takes a few seconds to complete but it can take minutes. You can continue to read and write data to your stream while its status is @UPDATING@ . Once the status of the stream is @ACTIVE@ , records written to the stream will begin to be encrypted.
+-- Starting encryption is an asynchronous operation. Upon receiving the request, Kinesis Data Streams returns immediately and sets the status of the stream to @UPDATING@ . After the update is complete, Kinesis Data Streams sets the status of the stream back to @ACTIVE@ . Updating or applying encryption normally takes a few seconds to complete, but it can take minutes. You can continue to read and write data to your stream while its status is @UPDATING@ . Once the status of the stream is @ACTIVE@ , encryption begins for records written to the stream.
--
--- API Limits: You can successfully apply a new AWS KMS key for server-side encryption 25 times in a rolling 24 hour period.
+-- API Limits: You can successfully apply a new AWS KMS key for server-side encryption 25 times in a rolling 24-hour period.
--
--- Note: It can take up to 5 seconds after the stream is in an @ACTIVE@ status before all records written to the stream are encrypted. After you’ve enabled encryption, you can verify encryption was applied by inspecting the API response from @PutRecord@ or @PutRecords@ .
+-- Note: It can take up to five seconds after the stream is in an @ACTIVE@ status before all records written to the stream are encrypted. After you enable encryption, you can verify that encryption is applied by inspecting the API response from @PutRecord@ or @PutRecords@ .
--
module Network.AWS.Kinesis.StartStreamEncryption
(
@@ -63,9 +63,9 @@ data StartStreamEncryption = StartStreamEncryption'
--
-- * 'sStreamName' - The name of the stream for which to start encrypting records.
--
--- * 'sEncryptionType' - The encryption type to use. This parameter can be one of the following values: * @NONE@ : Not valid for this operation. An @InvalidOperationException@ will be thrown. * @KMS@ : Use server-side encryption on the records in the stream using a customer-managed KMS key.
+-- * 'sEncryptionType' - The encryption type to use. The only valid value is @KMS@ .
--
--- * 'sKeyId' - The GUID for the customer-managed KMS key to use for encryption. You can also use a Kinesis-owned master key by specifying the alias @aws/kinesis@ .
+-- * 'sKeyId' - The GUID for the customer-managed AWS KMS key to use for encryption. This value can be a globally unique identifier, a fully specified Amazon Resource Name (ARN) to either an alias or a key, or an alias name prefixed by "alias/".You can also use a master key owned by Kinesis Data Streams by specifying the alias @aws/kinesis@ . * Key ARN example: @arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012@ * Alias ARN example: @arn:aws:kms:us-east-1:123456789012:alias/MyAliasName@ * Globally unique key ID example: @12345678-1234-1234-1234-123456789012@ * Alias name example: @alias/MyAliasName@ * Master key owned by Kinesis Data Streams: @alias/aws/kinesis@
startStreamEncryption
:: Text -- ^ 'sStreamName'
-> EncryptionType -- ^ 'sEncryptionType'
@@ -73,23 +73,23 @@ startStreamEncryption
-> StartStreamEncryption
startStreamEncryption pStreamName_ pEncryptionType_ pKeyId_ =
StartStreamEncryption'
- { _sStreamName = pStreamName_
- , _sEncryptionType = pEncryptionType_
- , _sKeyId = pKeyId_
- }
+ { _sStreamName = pStreamName_
+ , _sEncryptionType = pEncryptionType_
+ , _sKeyId = pKeyId_
+ }
-- | The name of the stream for which to start encrypting records.
sStreamName :: Lens' StartStreamEncryption Text
-sStreamName = lens _sStreamName (\ s a -> s{_sStreamName = a});
+sStreamName = lens _sStreamName (\ s a -> s{_sStreamName = a})
--- | The encryption type to use. This parameter can be one of the following values: * @NONE@ : Not valid for this operation. An @InvalidOperationException@ will be thrown. * @KMS@ : Use server-side encryption on the records in the stream using a customer-managed KMS key.
+-- | The encryption type to use. The only valid value is @KMS@ .
sEncryptionType :: Lens' StartStreamEncryption EncryptionType
-sEncryptionType = lens _sEncryptionType (\ s a -> s{_sEncryptionType = a});
+sEncryptionType = lens _sEncryptionType (\ s a -> s{_sEncryptionType = a})
--- | The GUID for the customer-managed KMS key to use for encryption. You can also use a Kinesis-owned master key by specifying the alias @aws/kinesis@ .
+-- | The GUID for the customer-managed AWS KMS key to use for encryption. This value can be a globally unique identifier, a fully specified Amazon Resource Name (ARN) to either an alias or a key, or an alias name prefixed by "alias/".You can also use a master key owned by Kinesis Data Streams by specifying the alias @aws/kinesis@ . * Key ARN example: @arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012@ * Alias ARN example: @arn:aws:kms:us-east-1:123456789012:alias/MyAliasName@ * Globally unique key ID example: @12345678-1234-1234-1234-123456789012@ * Alias name example: @alias/MyAliasName@ * Master key owned by Kinesis Data Streams: @alias/aws/kinesis@
sKeyId :: Lens' StartStreamEncryption Text
-sKeyId = lens _sKeyId (\ s a -> s{_sKeyId = a});
+sKeyId = lens _sKeyId (\ s a -> s{_sKeyId = a})
instance AWSRequest StartStreamEncryption where
type Rs StartStreamEncryption =
diff --git a/gen/Network/AWS/Kinesis/StopStreamEncryption.hs b/gen/Network/AWS/Kinesis/StopStreamEncryption.hs
index 15849c8..5ae4710 100644
--- a/gen/Network/AWS/Kinesis/StopStreamEncryption.hs
+++ b/gen/Network/AWS/Kinesis/StopStreamEncryption.hs
@@ -12,7 +12,7 @@
-- |
-- Module : Network.AWS.Kinesis.StopStreamEncryption
--- Copyright : (c) 2013-2017 Brendan Hay
+-- Copyright : (c) 2013-2018 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability : auto-generated
@@ -21,11 +21,11 @@
-- Disables server-side encryption for a specified stream.
--
--
--- Stopping encryption is an asynchronous operation. Upon receiving the request, Amazon Kinesis returns immediately and sets the status of the stream to @UPDATING@ . After the update is complete, Amazon Kinesis sets the status of the stream back to @ACTIVE@ . Stopping encryption normally takes a few seconds to complete but it can take minutes. You can continue to read and write data to your stream while its status is @UPDATING@ . Once the status of the stream is @ACTIVE@ records written to the stream will no longer be encrypted by the Amazon Kinesis Streams service.
+-- Stopping encryption is an asynchronous operation. Upon receiving the request, Kinesis Data Streams returns immediately and sets the status of the stream to @UPDATING@ . After the update is complete, Kinesis Data Streams sets the status of the stream back to @ACTIVE@ . Stopping encryption normally takes a few seconds to complete, but it can take minutes. You can continue to read and write data to your stream while its status is @UPDATING@ . Once the status of the stream is @ACTIVE@ , records written to the stream are no longer encrypted by Kinesis Data Streams.
--
--- API Limits: You can successfully disable server-side encryption 25 times in a rolling 24 hour period.
+-- API Limits: You can successfully disable server-side encryption 25 times in a rolling 24-hour period.
--
--- Note: It can take up to 5 seconds after the stream is in an @ACTIVE@ status before all records written to the stream are no longer subject to encryption. After you’ve disabled encryption, you can verify encryption was not applied by inspecting the API response from @PutRecord@ or @PutRecords@ .
+-- Note: It can take up to five seconds after the stream is in an @ACTIVE@ status before all records written to the stream are no longer subject to encryption. After you disabled encryption, you can verify that encryption is not applied by inspecting the API response from @PutRecord@ or @PutRecords@ .
--
module Network.AWS.Kinesis.StopStreamEncryption
(
@@ -63,9 +63,9 @@ data StopStreamEncryption = StopStreamEncryption'
--
-- * 'sseStreamName' - The name of the stream on which to stop encrypting records.
--
--- * 'sseEncryptionType' - The encryption type. This parameter can be one of the following values: * @NONE@ : Not valid for this operation. An @InvalidOperationException@ will be thrown. * @KMS@ : Use server-side encryption on the records in the stream using a customer-managed KMS key.
+-- * 'sseEncryptionType' - The encryption type. The only valid value is @KMS@ .
--
--- * 'sseKeyId' - The GUID for the customer-managed key that was used for encryption.
+-- * 'sseKeyId' - The GUID for the customer-managed AWS KMS key to use for encryption. This value can be a globally unique identifier, a fully specified Amazon Resource Name (ARN) to either an alias or a key, or an alias name prefixed by "alias/".You can also use a master key owned by Kinesis Data Streams by specifying the alias @aws/kinesis@ . * Key ARN example: @arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012@ * Alias ARN example: @arn:aws:kms:us-east-1:123456789012:alias/MyAliasName@ * Globally unique key ID example: @12345678-1234-1234-1234-123456789012@ * Alias name example: @alias/MyAliasName@ * Master key owned by Kinesis Data Streams: @alias/aws/kinesis@
stopStreamEncryption
:: Text -- ^ 'sseStreamName'
-> EncryptionType -- ^ 'sseEncryptionType'
@@ -73,23 +73,23 @@ stopStreamEncryption
-> StopStreamEncryption
stopStreamEncryption pStreamName_ pEncryptionType_ pKeyId_ =
StopStreamEncryption'
- { _sseStreamName = pStreamName_
- , _sseEncryptionType = pEncryptionType_
- , _sseKeyId = pKeyId_
- }
+ { _sseStreamName = pStreamName_
+ , _sseEncryptionType = pEncryptionType_
+ , _sseKeyId = pKeyId_
+ }
-- | The name of the stream on which to stop encrypting records.
sseStreamName :: Lens' StopStreamEncryption Text
-sseStreamName = lens _sseStreamName (\ s a -> s{_sseStreamName = a});
+sseStreamName = lens _sseStreamName (\ s a -> s{_sseStreamName = a})
--- | The encryption type. This parameter can be one of the following values: * @NONE@ : Not valid for this operation. An @InvalidOperationException@ will be thrown. * @KMS@ : Use server-side encryption on the records in the stream using a customer-managed KMS key.
+-- | The encryption type. The only valid value is @KMS@ .
sseEncryptionType :: Lens' StopStreamEncryption EncryptionType
-sseEncryptionType = lens _sseEncryptionType (\ s a -> s{_sseEncryptionType = a});
+sseEncryptionType = lens _sseEncryptionType (\ s a -> s{_sseEncryptionType = a})
--- | The GUID for the customer-managed key that was used for encryption.
+-- | The GUID for the customer-managed AWS KMS key to use for encryption. This value can be a globally unique identifier, a fully specified Amazon Resource Name (ARN) to either an alias or a key, or an alias name prefixed by "alias/".You can also use a master key owned by Kinesis Data Streams by specifying the alias @aws/kinesis@ . * Key ARN example: @arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012@ * Alias ARN example: @arn:aws:kms:us-east-1:123456789012:alias/MyAliasName@ * Globally unique key ID example: @12345678-1234-1234-1234-123456789012@ * Alias name example: @alias/MyAliasName@ * Master key owned by Kinesis Data Streams: @alias/aws/kinesis@
sseKeyId :: Lens' StopStreamEncryption Text
-sseKeyId = lens _sseKeyId (\ s a -> s{_sseKeyId = a});
+sseKeyId = lens _sseKeyId (\ s a -> s{_sseKeyId = a})
instance AWSRequest StopStreamEncryption where
type Rs StopStreamEncryption =
diff --git a/gen/Network/AWS/Kinesis/Types.hs b/gen/Network/AWS/Kinesis/Types.hs
index d18c1f2..5143305 100644
--- a/gen/Network/AWS/Kinesis/Types.hs
+++ b/gen/Network/AWS/Kinesis/Types.hs
@@ -4,7 +4,7 @@
-- |
-- Module : Network.AWS.Kinesis.Types
--- Copyright : (c) 2013-2017 Brendan Hay
+-- Copyright : (c) 2013-2018 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability : auto-generated
@@ -23,6 +23,7 @@ module Network.AWS.Kinesis.Types
, _KMSOptInRequired
, _ProvisionedThroughputExceededException
, _KMSNotFoundException
+ , _ExpiredNextTokenException
, _KMSDisabledException
, _ResourceNotFoundException
, _KMSAccessDeniedException
@@ -115,6 +116,19 @@ module Network.AWS.Kinesis.Types
, sdStreamCreationTimestamp
, sdEnhancedMonitoring
+ -- * StreamDescriptionSummary
+ , StreamDescriptionSummary
+ , streamDescriptionSummary
+ , sdsEncryptionType
+ , sdsKeyId
+ , sdsStreamName
+ , sdsStreamARN
+ , sdsStreamStatus
+ , sdsRetentionPeriodHours
+ , sdsStreamCreationTimestamp
+ , sdsEnhancedMonitoring
+ , sdsOpenShardCount
+
-- * Tag
, Tag
, tag
@@ -132,24 +146,24 @@ import Network.AWS.Sign.V4
kinesis :: Service
kinesis =
Service
- { _svcAbbrev = "Kinesis"
- , _svcSigner = v4
- , _svcPrefix = "kinesis"
- , _svcVersion = "2013-12-02"
- , _svcEndpoint = defaultEndpoint kinesis
- , _svcTimeout = Just 70
- , _svcCheck = statusSuccess
- , _svcError = parseJSONError "Kinesis"
- , _svcRetry = retry
- }
+ { _svcAbbrev = "Kinesis"
+ , _svcSigner = v4
+ , _svcPrefix = "kinesis"
+ , _svcVersion = "2013-12-02"
+ , _svcEndpoint = defaultEndpoint kinesis
+ , _svcTimeout = Just 70
+ , _svcCheck = statusSuccess
+ , _svcError = parseJSONError "Kinesis"
+ , _svcRetry = retry
+ }
where
retry =
Exponential
- { _retryBase = 5.0e-2
- , _retryGrowth = 2
- , _retryAttempts = 5
- , _retryCheck = check
- }
+ { _retryBase = 5.0e-2
+ , _retryGrowth = 2
+ , _retryAttempts = 5
+ , _retryCheck = check
+ }
check e
| has (hasCode "ThrottledException" . hasStatus 400) e =
Just "throttled_exception"
@@ -158,6 +172,8 @@ kinesis =
Just "throttling_exception"
| has (hasCode "Throttling" . hasStatus 400) e = Just "throttling"
| has (hasStatus 504) e = Just "gateway_timeout"
+ | has (hasCode "RequestThrottledException" . hasStatus 400) e =
+ Just "request_throttled_exception"
| has (hasStatus 502) e = Just "bad_gateway"
| has (hasStatus 503) e = Just "service_unavailable"
| has (hasStatus 500) e = Just "general_server_error"
@@ -203,7 +219,7 @@ _KMSOptInRequired :: AsError a => Getting (First ServiceError) a ServiceError
_KMSOptInRequired = _MatchServiceError kinesis "KMSOptInRequired"
--- | The request rate for the stream is too high, or the requested data is too large for the available throughput. Reduce the frequency or size of your requests. For more information, see <http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html Streams Limits> in the /Amazon Kinesis Streams Developer Guide/ , and <http://docs.aws.amazon.com/general/latest/gr/api-retries.html Error Retries and Exponential Backoff in AWS> in the /AWS General Reference/ .
+-- | The request rate for the stream is too high, or the requested data is too large for the available throughput. Reduce the frequency or size of your requests. For more information, see <http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html Streams Limits> in the /Amazon Kinesis Data Streams Developer Guide/ , and <http://docs.aws.amazon.com/general/latest/gr/api-retries.html Error Retries and Exponential Backoff in AWS> in the /AWS General Reference/ .
--
--
_ProvisionedThroughputExceededException :: AsError a => Getting (First ServiceError) a ServiceError
@@ -211,14 +227,22 @@ _ProvisionedThroughputExceededException =
_MatchServiceError kinesis "ProvisionedThroughputExceededException"
--- | The request was rejected because the specified entity or resource couldn't be found.
+-- | The request was rejected because the specified entity or resource can't be found.
--
--
_KMSNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
_KMSNotFoundException = _MatchServiceError kinesis "KMSNotFoundException"
--- | The request was rejected because the specified CMK isn't enabled.
+-- | The pagination token passed to the @ListShards@ operation is expired. For more information, see 'ListShardsInput$NextToken' .
+--
+--
+_ExpiredNextTokenException :: AsError a => Getting (First ServiceError) a ServiceError
+_ExpiredNextTokenException =
+ _MatchServiceError kinesis "ExpiredNextTokenException"
+
+
+-- | The request was rejected because the specified customer master key (CMK) isn't enabled.
--
--
_KMSDisabledException :: AsError a => Getting (First ServiceError) a ServiceError
@@ -241,14 +265,14 @@ _KMSAccessDeniedException =
_MatchServiceError kinesis "KMSAccessDeniedException"
--- | The requested resource exceeds the maximum number allowed, or the number of concurrent stream requests exceeds the maximum number allowed (5).
+-- | The requested resource exceeds the maximum number allowed, or the number of concurrent stream requests exceeds the maximum number allowed.
--
--
_LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError
_LimitExceededException = _MatchServiceError kinesis "LimitExceededException"
--- | The resource is not available for this operation. For successful operation, the resource needs to be in the @ACTIVE@ state.
+-- | The resource is not available for this operation. For successful operation, the resource must be in the @ACTIVE@ state.
--
--
_ResourceInUseException :: AsError a => Getting (First ServiceError) a ServiceError
diff --git a/gen/Network/AWS/Kinesis/Types/Product.hs b/gen/Network/AWS/Kinesis/Types/Product.hs
index 0b366df..433129f 100644
--- a/gen/Network/AWS/Kinesis/Types/Product.hs
+++ b/gen/Network/AWS/Kinesis/Types/Product.hs
@@ -9,7 +9,7 @@
-- |
-- Module : Network.AWS.Kinesis.Types.Product
--- Copyright : (c) 2013-2017 Brendan Hay
+-- Copyright : (c) 2013-2018 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability : auto-generated
@@ -35,15 +35,15 @@ newtype EnhancedMetrics = EnhancedMetrics'
--
-- Use one of the following lenses to modify other fields as desired:
--
--- * 'emShardLevelMetrics' - List of shard-level metrics. The following are the valid shard-level metrics. The value "@ALL@ " enhances every metric. * @IncomingBytes@ * @IncomingRecords@ * @OutgoingBytes@ * @OutgoingRecords@ * @WriteProvisionedThroughputExceeded@ * @ReadProvisionedThroughputExceeded@ * @IteratorAgeMilliseconds@ * @ALL@ For more information, see <http://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html Monitoring the Amazon Kinesis Streams Service with Amazon CloudWatch> in the /Amazon Kinesis Streams Developer Guide/ .
+-- * 'emShardLevelMetrics' - List of shard-level metrics. The following are the valid shard-level metrics. The value "@ALL@ " enhances every metric. * @IncomingBytes@ * @IncomingRecords@ * @OutgoingBytes@ * @OutgoingRecords@ * @WriteProvisionedThroughputExceeded@ * @ReadProvisionedThroughputExceeded@ * @IteratorAgeMilliseconds@ * @ALL@ For more information, see <http://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html Monitoring the Amazon Kinesis Data Streams Service with Amazon CloudWatch> in the /Amazon Kinesis Data Streams Developer Guide/ .
enhancedMetrics
:: EnhancedMetrics
enhancedMetrics = EnhancedMetrics' {_emShardLevelMetrics = Nothing}
--- | List of shard-level metrics. The following are the valid shard-level metrics. The value "@ALL@ " enhances every metric. * @IncomingBytes@ * @IncomingRecords@ * @OutgoingBytes@ * @OutgoingRecords@ * @WriteProvisionedThroughputExceeded@ * @ReadProvisionedThroughputExceeded@ * @IteratorAgeMilliseconds@ * @ALL@ For more information, see <http://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html Monitoring the Amazon Kinesis Streams Service with Amazon CloudWatch> in the /Amazon Kinesis Streams Developer Guide/ .
+-- | List of shard-level metrics. The following are the valid shard-level metrics. The value "@ALL@ " enhances every metric. * @IncomingBytes@ * @IncomingRecords@ * @OutgoingBytes@ * @OutgoingRecords@ * @WriteProvisionedThroughputExceeded@ * @ReadProvisionedThroughputExceeded@ * @IteratorAgeMilliseconds@ * @ALL@ For more information, see <http://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html Monitoring the Amazon Kinesis Data Streams Service with Amazon CloudWatch> in the /Amazon Kinesis Data Streams Developer Guide/ .
emShardLevelMetrics :: Lens' EnhancedMetrics [MetricsName]
-emShardLevelMetrics = lens _emShardLevelMetrics (\ s a -> s{_emShardLevelMetrics = a}) . _Default . _Coerce;
+emShardLevelMetrics = lens _emShardLevelMetrics (\ s a -> s{_emShardLevelMetrics = a}) . _Default . _Coerce
instance FromJSON EnhancedMetrics where
parseJSON
@@ -76,28 +76,28 @@ data EnhancedMonitoringOutput = EnhancedMonitoringOutput'
--
-- * 'emoCurrentShardLevelMetrics' - Represents the current state of the metrics that are in the enhanced state before the operation.
--
--- * 'emoStreamName' - The name of the Amazon Kinesis stream.
+-- * 'emoStreamName' - The name of the Kinesis data stream.
enhancedMonitoringOutput
:: EnhancedMonitoringOutput
enhancedMonitoringOutput =
EnhancedMonitoringOutput'
- { _emoDesiredShardLevelMetrics = Nothing
- , _emoCurrentShardLevelMetrics = Nothing
- , _emoStreamName = Nothing
- }
+ { _emoDesiredShardLevelMetrics = Nothing
+ , _emoCurrentShardLevelMetrics = Nothing
+ , _emoStreamName = Nothing
+ }
-- | Represents the list of all the metrics that would be in the enhanced state after the operation.
emoDesiredShardLevelMetrics :: Lens' EnhancedMonitoringOutput [MetricsName]
-emoDesiredShardLevelMetrics = lens _emoDesiredShardLevelMetrics (\ s a -> s{_emoDesiredShardLevelMetrics = a}) . _Default . _Coerce;
+emoDesiredShardLevelMetrics = lens _emoDesiredShardLevelMetrics (\ s a -> s{_emoDesiredShardLevelMetrics = a}) . _Default . _Coerce
-- | Represents the current state of the metrics that are in the enhanced state before the operation.
emoCurrentShardLevelMetrics :: Lens' EnhancedMonitoringOutput [MetricsName]
-emoCurrentShardLevelMetrics = lens _emoCurrentShardLevelMetrics (\ s a -> s{_emoCurrentShardLevelMetrics = a}) . _Default . _Coerce;
+emoCurrentShardLevelMetrics = lens _emoCurrentShardLevelMetrics (\ s a -> s{_emoCurrentShardLevelMetrics = a}) . _Default . _Coerce
--- | The name of the Amazon Kinesis stream.
+-- | The name of the Kinesis data stream.
emoStreamName :: Lens' EnhancedMonitoringOutput (Maybe Text)
-emoStreamName = lens _emoStreamName (\ s a -> s{_emoStreamName = a});
+emoStreamName = lens _emoStreamName (\ s a -> s{_emoStreamName = a})
instance FromJSON EnhancedMonitoringOutput where
parseJSON
@@ -136,16 +136,18 @@ hashKeyRange
-> HashKeyRange
hashKeyRange pStartingHashKey_ pEndingHashKey_ =
HashKeyRange'
- {_hkrStartingHashKey = pStartingHashKey_, _hkrEndingHashKey = pEndingHashKey_}
+ { _hkrStartingHashKey = pStartingHashKey_
+ , _hkrEndingHashKey = pEndingHashKey_
+ }
-- | The starting hash key of the hash key range.
hkrStartingHashKey :: Lens' HashKeyRange Text
-hkrStartingHashKey = lens _hkrStartingHashKey (\ s a -> s{_hkrStartingHashKey = a});
+hkrStartingHashKey = lens _hkrStartingHashKey (\ s a -> s{_hkrStartingHashKey = a})
-- | The ending hash key of the hash key range.
hkrEndingHashKey :: Lens' HashKeyRange Text
-hkrEndingHashKey = lens _hkrEndingHashKey (\ s a -> s{_hkrEndingHashKey = a});
+hkrEndingHashKey = lens _hkrEndingHashKey (\ s a -> s{_hkrEndingHashKey = a})
instance FromJSON HashKeyRange where
parseJSON
@@ -178,30 +180,30 @@ data PutRecordsRequestEntry = PutRecordsRequestEntry'
--
-- * 'prreData' - The data blob to put into the record, which is base64-encoded when the blob is serialized. When the data blob (the payload before base64-encoding) is added to the partition key size, the total size must not exceed the maximum record size (1 MB).-- /Note:/ This 'Lens' automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This 'Lens' accepts and returns only raw unencoded data.
--
--- * 'prrePartitionKey' - Determines which shard in the stream the data record is assigned to. Partition keys are Unicode strings with a maximum length limit of 256 characters for each key. Amazon Kinesis uses the partition key as input to a hash function that maps the partition key and associated data to a specific shard. Specifically, an MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards. As a result of this hashing mechanism, all data records with the same partition key map to the same shard within the stream.
+-- * 'prrePartitionKey' - Determines which shard in the stream the data record is assigned to. Partition keys are Unicode strings with a maximum length limit of 256 characters for each key. Amazon Kinesis Data Streams uses the partition key as input to a hash function that maps the partition key and associated data to a specific shard. Specifically, an MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards. As a result of this hashing mechanism, all data records with the same partition key map to the same shard within the stream.
putRecordsRequestEntry
:: ByteString -- ^ 'prreData'
-> Text -- ^ 'prrePartitionKey'
-> PutRecordsRequestEntry
putRecordsRequestEntry pData_ pPartitionKey_ =
PutRecordsRequestEntry'
- { _prreExplicitHashKey = Nothing
- , _prreData = _Base64 # pData_
- , _prrePartitionKey = pPartitionKey_
- }
+ { _prreExplicitHashKey = Nothing
+ , _prreData = _Base64 # pData_
+ , _prrePartitionKey = pPartitionKey_
+ }
-- | The hash value used to determine explicitly the shard that the data record is assigned to by overriding the partition key hash.
prreExplicitHashKey :: Lens' PutRecordsRequestEntry (Maybe Text)
-prreExplicitHashKey = lens _prreExplicitHashKey (\ s a -> s{_prreExplicitHashKey = a});
+prreExplicitHashKey = lens _prreExplicitHashKey (\ s a -> s{_prreExplicitHashKey = a})
-- | The data blob to put into the record, which is base64-encoded when the blob is serialized. When the data blob (the payload before base64-encoding) is added to the partition key size, the total size must not exceed the maximum record size (1 MB).-- /Note:/ This 'Lens' automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This 'Lens' accepts and returns only raw unencoded data.
prreData :: Lens' PutRecordsRequestEntry ByteString
-prreData = lens _prreData (\ s a -> s{_prreData = a}) . _Base64;
+prreData = lens _prreData (\ s a -> s{_prreData = a}) . _Base64
--- | Determines which shard in the stream the data record is assigned to. Partition keys are Unicode strings with a maximum length limit of 256 characters for each key. Amazon Kinesis uses the partition key as input to a hash function that maps the partition key and associated data to a specific shard. Specifically, an MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards. As a result of this hashing mechanism, all data records with the same partition key map to the same shard within the stream.
+-- | Determines which shard in the stream the data record is assigned to. Partition keys are Unicode strings with a maximum length limit of 256 characters for each key. Amazon Kinesis Data Streams uses the partition key as input to a hash function that maps the partition key and associated data to a specific shard. Specifically, an MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards. As a result of this hashing mechanism, all data records with the same partition key map to the same shard within the stream.
prrePartitionKey :: Lens' PutRecordsRequestEntry Text
-prrePartitionKey = lens _prrePartitionKey (\ s a -> s{_prrePartitionKey = a});
+prrePartitionKey = lens _prrePartitionKey (\ s a -> s{_prrePartitionKey = a})
instance Hashable PutRecordsRequestEntry where
@@ -243,28 +245,28 @@ putRecordsResultEntry
:: PutRecordsResultEntry
putRecordsResultEntry =
PutRecordsResultEntry'
- { _prreSequenceNumber = Nothing
- , _prreErrorCode = Nothing
- , _prreErrorMessage = Nothing
- , _prreShardId = Nothing
- }
+ { _prreSequenceNumber = Nothing
+ , _prreErrorCode = Nothing
+ , _prreErrorMessage = Nothing
+ , _prreShardId = Nothing
+ }
-- | The sequence number for an individual record result.
prreSequenceNumber :: Lens' PutRecordsResultEntry (Maybe Text)
-prreSequenceNumber = lens _prreSequenceNumber (\ s a -> s{_prreSequenceNumber = a});
+prreSequenceNumber = lens _prreSequenceNumber (\ s a -> s{_prreSequenceNumber = a})
-- | The error code for an individual record result. @ErrorCodes@ can be either @ProvisionedThroughputExceededException@ or @InternalFailure@ .
prreErrorCode :: Lens' PutRecordsResultEntry (Maybe Text)
-prreErrorCode = lens _prreErrorCode (\ s a -> s{_prreErrorCode = a});
+prreErrorCode = lens _prreErrorCode (\ s a -> s{_prreErrorCode = a})
-- | The error message for an individual record result. An @ErrorCode@ value of @ProvisionedThroughputExceededException@ has an error message that includes the account ID, stream name, and shard ID. An @ErrorCode@ value of @InternalFailure@ has the error message @"Internal Service Failure"@ .
prreErrorMessage :: Lens' PutRecordsResultEntry (Maybe Text)
-prreErrorMessage = lens _prreErrorMessage (\ s a -> s{_prreErrorMessage = a});
+prreErrorMessage = lens _prreErrorMessage (\ s a -> s{_prreErrorMessage = a})
-- | The shard ID for an individual record result.
prreShardId :: Lens' PutRecordsResultEntry (Maybe Text)
-prreShardId = lens _prreShardId (\ s a -> s{_prreShardId = a});
+prreShardId = lens _prreShardId (\ s a -> s{_prreShardId = a})
instance FromJSON PutRecordsResultEntry where
parseJSON
@@ -279,7 +281,7 @@ instance Hashable PutRecordsResultEntry where
instance NFData PutRecordsResultEntry where
--- | The unit of data of the Amazon Kinesis stream, which is composed of a sequence number, a partition key, and a data blob.
+-- | The unit of data of the Kinesis data stream, which is composed of a sequence number, a partition key, and a data blob.
--
--
--
@@ -297,13 +299,13 @@ data Record = Record'
--
-- Use one of the following lenses to modify other fields as desired:
--
--- * 'rEncryptionType' - The encryption type used on the record. This parameter can be one of the following values: * @NONE@ : Do not encrypt the records in the stream. * @KMS@ : Use server-side encryption on the records in the stream using a customer-managed KMS key.
+-- * 'rEncryptionType' - The encryption type used on the record. This parameter can be one of the following values: * @NONE@ : Do not encrypt the records in the stream. * @KMS@ : Use server-side encryption on the records in the stream using a customer-managed AWS KMS key.
--
-- * 'rApproximateArrivalTimestamp' - The approximate time that the record was inserted into the stream.
--
-- * 'rSequenceNumber' - The unique identifier of the record within its shard.
--
--- * 'rData' - The data blob. The data in the blob is both opaque and immutable to the Amazon Kinesis service, which does not inspect, interpret, or change the data in the blob in any way. When the data blob (the payload before base64-encoding) is added to the partition key size, the total size must not exceed the maximum record size (1 MB).-- /Note:/ This 'Lens' automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This 'Lens' accepts and returns only raw unencoded data.
+-- * 'rData' - The data blob. The data in the blob is both opaque and immutable to Kinesis Data Streams, which does not inspect, interpret, or change the data in the blob in any way. When the data blob (the payload before base64-encoding) is added to the partition key size, the total size must not exceed the maximum record size (1 MB).-- /Note:/ This 'Lens' automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This 'Lens' accepts and returns only raw unencoded data.
--
-- * 'rPartitionKey' - Identifies which shard in the stream the data record is assigned to.
record
@@ -313,33 +315,33 @@ record
-> Record
record pSequenceNumber_ pData_ pPartitionKey_ =
Record'
- { _rEncryptionType = Nothing
- , _rApproximateArrivalTimestamp = Nothing
- , _rSequenceNumber = pSequenceNumber_
- , _rData = _Base64 # pData_
- , _rPartitionKey = pPartitionKey_
- }
+ { _rEncryptionType = Nothing
+ , _rApproximateArrivalTimestamp = Nothing
+ , _rSequenceNumber = pSequenceNumber_
+ , _rData = _Base64 # pData_
+ , _rPartitionKey = pPartitionKey_
+ }
--- | The encryption type used on the record. This parameter can be one of the following values: * @NONE@ : Do not encrypt the records in the stream. * @KMS@ : Use server-side encryption on the records in the stream using a customer-managed KMS key.
+-- | The encryption type used on the record. This parameter can be one of the following values: * @NONE@ : Do not encrypt the records in the stream. * @KMS@ : Use server-side encryption on the records in the stream using a customer-managed AWS KMS key.
rEncryptionType :: Lens' Record (Maybe EncryptionType)
-rEncryptionType = lens _rEncryptionType (\ s a -> s{_rEncryptionType = a});
+rEncryptionType = lens _rEncryptionType (\ s a -> s{_rEncryptionType = a})
-- | The approximate time that the record was inserted into the stream.
rApproximateArrivalTimestamp :: Lens' Record (Maybe UTCTime)
-rApproximateArrivalTimestamp = lens _rApproximateArrivalTimestamp (\ s a -> s{_rApproximateArrivalTimestamp = a}) . mapping _Time;
+rApproximateArrivalTimestamp = lens _rApproximateArrivalTimestamp (\ s a -> s{_rApproximateArrivalTimestamp = a}) . mapping _Time
-- | The unique identifier of the record within its shard.
rSequenceNumber :: Lens' Record Text
-rSequenceNumber = lens _rSequenceNumber (\ s a -> s{_rSequenceNumber = a});
+rSequenceNumber = lens _rSequenceNumber (\ s a -> s{_rSequenceNumber = a})
--- | The data blob. The data in the blob is both opaque and immutable to the Amazon Kinesis service, which does not inspect, interpret, or change the data in the blob in any way. When the data blob (the payload before base64-encoding) is added to the partition key size, the total size must not exceed the maximum record size (1 MB).-- /Note:/ This 'Lens' automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This 'Lens' accepts and returns only raw unencoded data.
+-- | The data blob. The data in the blob is both opaque and immutable to Kinesis Data Streams, which does not inspect, interpret, or change the data in the blob in any way. When the data blob (the payload before base64-encoding) is added to the partition key size, the total size must not exceed the maximum record size (1 MB).-- /Note:/ This 'Lens' automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This 'Lens' accepts and returns only raw unencoded data.
rData :: Lens' Record ByteString
-rData = lens _rData (\ s a -> s{_rData = a}) . _Base64;
+rData = lens _rData (\ s a -> s{_rData = a}) . _Base64
-- | Identifies which shard in the stream the data record is assigned to.
rPartitionKey :: Lens' Record Text
-rPartitionKey = lens _rPartitionKey (\ s a -> s{_rPartitionKey = a});
+rPartitionKey = lens _rPartitionKey (\ s a -> s{_rPartitionKey = a})
instance FromJSON Record where
parseJSON
@@ -379,18 +381,18 @@ sequenceNumberRange
-> SequenceNumberRange
sequenceNumberRange pStartingSequenceNumber_ =
SequenceNumberRange'
- { _snrEndingSequenceNumber = Nothing
- , _snrStartingSequenceNumber = pStartingSequenceNumber_
- }
+ { _snrEndingSequenceNumber = Nothing
+ , _snrStartingSequenceNumber = pStartingSequenceNumber_
+ }
-- | The ending sequence number for the range. Shards that are in the OPEN state have an ending sequence number of @null@ .
snrEndingSequenceNumber :: Lens' SequenceNumberRange (Maybe Text)
-snrEndingSequenceNumber = lens _snrEndingSequenceNumber (\ s a -> s{_snrEndingSequenceNumber = a});
+snrEndingSequenceNumber = lens _snrEndingSequenceNumber (\ s a -> s{_snrEndingSequenceNumber = a})
-- | The starting sequence number for the range.
snrStartingSequenceNumber :: Lens' SequenceNumberRange Text
-snrStartingSequenceNumber = lens _snrStartingSequenceNumber (\ s a -> s{_snrStartingSequenceNumber = a});
+snrStartingSequenceNumber = lens _snrStartingSequenceNumber (\ s a -> s{_snrStartingSequenceNumber = a})
instance FromJSON SequenceNumberRange where
parseJSON
@@ -404,7 +406,7 @@ instance Hashable SequenceNumberRange where
instance NFData SequenceNumberRange where
--- | A uniquely identified group of data records in an Amazon Kinesis stream.
+-- | A uniquely identified group of data records in a Kinesis data stream.
--
--
--
@@ -438,33 +440,33 @@ shard
-> Shard
shard pShardId_ pHashKeyRange_ pSequenceNumberRange_ =
Shard'
- { _sAdjacentParentShardId = Nothing
- , _sParentShardId = Nothing
- , _sShardId = pShardId_
- , _sHashKeyRange = pHashKeyRange_
- , _sSequenceNumberRange = pSequenceNumberRange_
- }
+ { _sAdjacentParentShardId = Nothing
+ , _sParentShardId = Nothing
+ , _sShardId = pShardId_
+ , _sHashKeyRange = pHashKeyRange_
+ , _sSequenceNumberRange = pSequenceNumberRange_
+ }
-- | The shard ID of the shard adjacent to the shard's parent.
sAdjacentParentShardId :: Lens' Shard (Maybe Text)
-sAdjacentParentShardId = lens _sAdjacentParentShardId (\ s a -> s{_sAdjacentParentShardId = a});
+sAdjacentParentShardId = lens _sAdjacentParentShardId (\ s a -> s{_sAdjacentParentShardId = a})
-- | The shard ID of the shard's parent.
sParentShardId :: Lens' Shard (Maybe Text)
-sParentShardId = lens _sParentShardId (\ s a -> s{_sParentShardId = a});
+sParentShardId = lens _sParentShardId (\ s a -> s{_sParentShardId = a})
-- | The unique identifier of the shard within the stream.
sShardId :: Lens' Shard Text
-sShardId = lens _sShardId (\ s a -> s{_sShardId = a});
+sShardId = lens _sShardId (\ s a -> s{_sShardId = a})
-- | The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
sHashKeyRange :: Lens' Shard HashKeyRange
-sHashKeyRange = lens _sHashKeyRange (\ s a -> s{_sHashKeyRange = a});
+sHashKeyRange = lens _sHashKeyRange (\ s a -> s{_sHashKeyRange = a})
-- | The range of possible sequence numbers for the shard.
sSequenceNumberRange :: Lens' Shard SequenceNumberRange
-sSequenceNumberRange = lens _sSequenceNumberRange (\ s a -> s{_sSequenceNumberRange = a});
+sSequenceNumberRange = lens _sSequenceNumberRange (\ s a -> s{_sSequenceNumberRange = a})
instance FromJSON Shard where
parseJSON
@@ -504,15 +506,15 @@ data StreamDescription = StreamDescription'
--
-- Use one of the following lenses to modify other fields as desired:
--
--- * 'sdEncryptionType' - The server-side encryption type used on the stream. This parameter can be one of the following values: * @NONE@ : Do not encrypt the records in the stream. * @KMS@ : Use server-side encryption on the records in the stream using a customer-managed KMS key.
+-- * 'sdEncryptionType' - The server-side encryption type used on the stream. This parameter can be one of the following values: * @NONE@ : Do not encrypt the records in the stream. * @KMS@ : Use server-side encryption on the records in the stream using a customer-managed AWS KMS key.
--
--- * 'sdKeyId' - The GUID for the customer-managed KMS key used for encryption on the stream.
+-- * 'sdKeyId' - The GUID for the customer-managed AWS KMS key to use for encryption. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by "alias/".You can also use a master key owned by Kinesis Data Streams by specifying the alias @aws/kinesis@ . * Key ARN example: @arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012@ * Alias ARN example: @arn:aws:kms:us-east-1:123456789012:alias/MyAliasName@ * Globally unique key ID example: @12345678-1234-1234-1234-123456789012@ * Alias name example: @alias/MyAliasName@ * Master key owned by Kinesis Data Streams: @alias/aws/kinesis@
--
-- * 'sdStreamName' - The name of the stream being described.
--
-- * 'sdStreamARN' - The Amazon Resource Name (ARN) for the stream being described.
--
--- * 'sdStreamStatus' - The current status of the stream being described. The stream status is one of the following states: * @CREATING@ - The stream is being created. Amazon Kinesis immediately returns and sets @StreamStatus@ to @CREATING@ . * @DELETING@ - The stream is being deleted. The specified stream is in the @DELETING@ state until Amazon Kinesis completes the deletion. * @ACTIVE@ - The stream exists and is ready for read and write operations or deletion. You should perform read and write operations only on an @ACTIVE@ stream. * @UPDATING@ - Shards in the stream are being merged or split. Read and write operations continue to work while the stream is in the @UPDATING@ state.
+-- * 'sdStreamStatus' - The current status of the stream being described. The stream status is one of the following states: * @CREATING@ - The stream is being created. Kinesis Data Streams immediately returns and sets @StreamStatus@ to @CREATING@ . * @DELETING@ - The stream is being deleted. The specified stream is in the @DELETING@ state until Kinesis Data Streams completes the deletion. * @ACTIVE@ - The stream exists and is ready for read and write operations or deletion. You should perform read and write operations only on an @ACTIVE@ stream. * @UPDATING@ - Shards in the stream are being merged or split. Read and write operations continue to work while the stream is in the @UPDATING@ state.
--
-- * 'sdShards' - The shards that comprise the stream.
--
@@ -533,58 +535,58 @@ streamDescription
-> StreamDescription
streamDescription pStreamName_ pStreamARN_ pStreamStatus_ pHasMoreShards_ pRetentionPeriodHours_ pStreamCreationTimestamp_ =
StreamDescription'
- { _sdEncryptionType = Nothing
- , _sdKeyId = Nothing
- , _sdStreamName = pStreamName_
- , _sdStreamARN = pStreamARN_
- , _sdStreamStatus = pStreamStatus_
- , _sdShards = mempty
- , _sdHasMoreShards = pHasMoreShards_
- , _sdRetentionPeriodHours = _Nat # pRetentionPeriodHours_
- , _sdStreamCreationTimestamp = _Time # pStreamCreationTimestamp_
- , _sdEnhancedMonitoring = mempty
- }
-
-
--- | The server-side encryption type used on the stream. This parameter can be one of the following values: * @NONE@ : Do not encrypt the records in the stream. * @KMS@ : Use server-side encryption on the records in the stream using a customer-managed KMS key.
+ { _sdEncryptionType = Nothing
+ , _sdKeyId = Nothing
+ , _sdStreamName = pStreamName_
+ , _sdStreamARN = pStreamARN_
+ , _sdStreamStatus = pStreamStatus_
+ , _sdShards = mempty
+ , _sdHasMoreShards = pHasMoreShards_
+ , _sdRetentionPeriodHours = _Nat # pRetentionPeriodHours_
+ , _sdStreamCreationTimestamp = _Time # pStreamCreationTimestamp_
+ , _sdEnhancedMonitoring = mempty
+ }
+
+
+-- | The server-side encryption type used on the stream. This parameter can be one of the following values: * @NONE@ : Do not encrypt the records in the stream. * @KMS@ : Use server-side encryption on the records in the stream using a customer-managed AWS KMS key.
sdEncryptionType :: Lens' StreamDescription (Maybe EncryptionType)
-sdEncryptionType = lens _sdEncryptionType (\ s a -> s{_sdEncryptionType = a});
+sdEncryptionType = lens _sdEncryptionType (\ s a -> s{_sdEncryptionType = a})
--- | The GUID for the customer-managed KMS key used for encryption on the stream.
+-- | The GUID for the customer-managed AWS KMS key to use for encryption. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by "alias/".You can also use a master key owned by Kinesis Data Streams by specifying the alias @aws/kinesis@ . * Key ARN example: @arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012@ * Alias ARN example: @arn:aws:kms:us-east-1:123456789012:alias/MyAliasName@ * Globally unique key ID example: @12345678-1234-1234-1234-123456789012@ * Alias name example: @alias/MyAliasName@ * Master key owned by Kinesis Data Streams: @alias/aws/kinesis@
sdKeyId :: Lens' StreamDescription (Maybe Text)
-sdKeyId = lens _sdKeyId (\ s a -> s{_sdKeyId = a});
+sdKeyId = lens _sdKeyId (\ s a -> s{_sdKeyId = a})
-- | The name of the stream being described.
sdStreamName :: Lens' StreamDescription Text
-sdStreamName = lens _sdStreamName (\ s a -> s{_sdStreamName = a});
+sdStreamName = lens _sdStreamName (\ s a -> s{_sdStreamName = a})
-- | The Amazon Resource Name (ARN) for the stream being described.
sdStreamARN :: Lens' StreamDescription Text
-sdStreamARN = lens _sdStreamARN (\ s a -> s{_sdStreamARN = a});
+sdStreamARN = lens _sdStreamARN (\ s a -> s{_sdStreamARN = a})
--- | The current status of the stream being described. The stream status is one of the following states: * @CREATING@ - The stream is being created. Amazon Kinesis immediately returns and sets @StreamStatus@ to @CREATING@ . * @DELETING@ - The stream is being deleted. The specified stream is in the @DELETING@ state until Amazon Kinesis completes the deletion. * @ACTIVE@ - The stream exists and is ready for read and write operations or deletion. You should perform read and write operations only on an @ACTIVE@ stream. * @UPDATING@ - Shards in the stream are being merged or split. Read and write operations continue to work while the stream is in the @UPDATING@ state.
+-- | The current status of the stream being described. The stream status is one of the following states: * @CREATING@ - The stream is being created. Kinesis Data Streams immediately returns and sets @StreamStatus@ to @CREATING@ . * @DELETING@ - The stream is being deleted. The specified stream is in the @DELETING@ state until Kinesis Data Streams completes the deletion. * @ACTIVE@ - The stream exists and is ready for read and write operations or deletion. You should perform read and write operations only on an @ACTIVE@ stream. * @UPDATING@ - Shards in the stream are being merged or split. Read and write operations continue to work while the stream is in the @UPDATING@ state.
sdStreamStatus :: Lens' StreamDescription StreamStatus
-sdStreamStatus = lens _sdStreamStatus (\ s a -> s{_sdStreamStatus = a});
+sdStreamStatus = lens _sdStreamStatus (\ s a -> s{_sdStreamStatus = a})
-- | The shards that comprise the stream.
sdShards :: Lens' StreamDescription [Shard]
-sdShards = lens _sdShards (\ s a -> s{_sdShards = a}) . _Coerce;
+sdShards = lens _sdShards (\ s a -> s{_sdShards = a}) . _Coerce
-- | If set to @true@ , more shards in the stream are available to describe.
sdHasMoreShards :: Lens' StreamDescription Bool
-sdHasMoreShards = lens _sdHasMoreShards (\ s a -> s{_sdHasMoreShards = a});
+sdHasMoreShards = lens _sdHasMoreShards (\ s a -> s{_sdHasMoreShards = a})
-- | The current retention period, in hours.
sdRetentionPeriodHours :: Lens' StreamDescription Natural
-sdRetentionPeriodHours = lens _sdRetentionPeriodHours (\ s a -> s{_sdRetentionPeriodHours = a}) . _Nat;
+sdRetentionPeriodHours = lens _sdRetentionPeriodHours (\ s a -> s{_sdRetentionPeriodHours = a}) . _Nat
-- | The approximate time that the stream was created.
sdStreamCreationTimestamp :: Lens' StreamDescription UTCTime
-sdStreamCreationTimestamp = lens _sdStreamCreationTimestamp (\ s a -> s{_sdStreamCreationTimestamp = a}) . _Time;
+sdStreamCreationTimestamp = lens _sdStreamCreationTimestamp (\ s a -> s{_sdStreamCreationTimestamp = a}) . _Time
-- | Represents the current enhanced monitoring settings of the stream.
sdEnhancedMonitoring :: Lens' StreamDescription [EnhancedMetrics]
-sdEnhancedMonitoring = lens _sdEnhancedMonitoring (\ s a -> s{_sdEnhancedMonitoring = a}) . _Coerce;
+sdEnhancedMonitoring = lens _sdEnhancedMonitoring (\ s a -> s{_sdEnhancedMonitoring = a}) . _Coerce
instance FromJSON StreamDescription where
parseJSON
@@ -605,6 +607,121 @@ instance Hashable StreamDescription where
instance NFData StreamDescription where
+-- | Represents the output for 'DescribeStreamSummary'
+--
+--
+--
+-- /See:/ 'streamDescriptionSummary' smart constructor.
+data StreamDescriptionSummary = StreamDescriptionSummary'
+ { _sdsEncryptionType :: !(Maybe EncryptionType)
+ , _sdsKeyId :: !(Maybe Text)
+ , _sdsStreamName :: !Text
+ , _sdsStreamARN :: !Text
+ , _sdsStreamStatus :: !StreamStatus
+ , _sdsRetentionPeriodHours :: !Nat
+ , _sdsStreamCreationTimestamp :: !POSIX
+ , _sdsEnhancedMonitoring :: ![EnhancedMetrics]
+ , _sdsOpenShardCount :: !Nat
+ } deriving (Eq, Read, Show, Data, Typeable, Generic)
+
+
+-- | Creates a value of 'StreamDescriptionSummary' with the minimum fields required to make a request.
+--
+-- Use one of the following lenses to modify other fields as desired:
+--
+-- * 'sdsEncryptionType' - The encryption type used. This value is one of the following: * @KMS@ * @NONE@
+--
+-- * 'sdsKeyId' - The GUID for the customer-managed AWS KMS key to use for encryption. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by "alias/".You can also use a master key owned by Kinesis Data Streams by specifying the alias @aws/kinesis@ . * Key ARN example: @arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012@ * Alias ARN example: @arn:aws:kms:us-east-1:123456789012:alias/MyAliasName@ * Globally unique key ID example: @12345678-1234-1234-1234-123456789012@ * Alias name example: @alias/MyAliasName@ * Master key owned by Kinesis Data Streams: @alias/aws/kinesis@
+--
+-- * 'sdsStreamName' - The name of the stream being described.
+--
+-- * 'sdsStreamARN' - The Amazon Resource Name (ARN) for the stream being described.
+--
+-- * 'sdsStreamStatus' - The current status of the stream being described. The stream status is one of the following states: * @CREATING@ - The stream is being created. Kinesis Data Streams immediately returns and sets @StreamStatus@ to @CREATING@ . * @DELETING@ - The stream is being deleted. The specified stream is in the @DELETING@ state until Kinesis Data Streams completes the deletion. * @ACTIVE@ - The stream exists and is ready for read and write operations or deletion. You should perform read and write operations only on an @ACTIVE@ stream. * @UPDATING@ - Shards in the stream are being merged or split. Read and write operations continue to work while the stream is in the @UPDATING@ state.
+--
+-- * 'sdsRetentionPeriodHours' - The current retention period, in hours.
+--
+-- * 'sdsStreamCreationTimestamp' - The approximate time that the stream was created.
+--
+-- * 'sdsEnhancedMonitoring' - Represents the current enhanced monitoring settings of the stream.
+--
+-- * 'sdsOpenShardCount' - The number of open shards in the stream.
+streamDescriptionSummary
+ :: Text -- ^ 'sdsStreamName'
+ -> Text -- ^ 'sdsStreamARN'
+ -> StreamStatus -- ^ 'sdsStreamStatus'
+ -> Natural -- ^ 'sdsRetentionPeriodHours'
+ -> UTCTime -- ^ 'sdsStreamCreationTimestamp'
+ -> Natural -- ^ 'sdsOpenShardCount'
+ -> StreamDescriptionSummary
+streamDescriptionSummary pStreamName_ pStreamARN_ pStreamStatus_ pRetentionPeriodHours_ pStreamCreationTimestamp_ pOpenShardCount_ =
+ StreamDescriptionSummary'
+ { _sdsEncryptionType = Nothing
+ , _sdsKeyId = Nothing
+ , _sdsStreamName = pStreamName_
+ , _sdsStreamARN = pStreamARN_
+ , _sdsStreamStatus = pStreamStatus_
+ , _sdsRetentionPeriodHours = _Nat # pRetentionPeriodHours_
+ , _sdsStreamCreationTimestamp = _Time # pStreamCreationTimestamp_
+ , _sdsEnhancedMonitoring = mempty
+ , _sdsOpenShardCount = _Nat # pOpenShardCount_
+ }
+
+
+-- | The encryption type used. This value is one of the following: * @KMS@ * @NONE@
+sdsEncryptionType :: Lens' StreamDescriptionSummary (Maybe EncryptionType)
+sdsEncryptionType = lens _sdsEncryptionType (\ s a -> s{_sdsEncryptionType = a})
+
+-- | The GUID for the customer-managed AWS KMS key to use for encryption. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by "alias/".You can also use a master key owned by Kinesis Data Streams by specifying the alias @aws/kinesis@ . * Key ARN example: @arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012@ * Alias ARN example: @arn:aws:kms:us-east-1:123456789012:alias/MyAliasName@ * Globally unique key ID example: @12345678-1234-1234-1234-123456789012@ * Alias name example: @alias/MyAliasName@ * Master key owned by Kinesis Data Streams: @alias/aws/kinesis@
+sdsKeyId :: Lens' StreamDescriptionSummary (Maybe Text)
+sdsKeyId = lens _sdsKeyId (\ s a -> s{_sdsKeyId = a})
+
+-- | The name of the stream being described.
+sdsStreamName :: Lens' StreamDescriptionSummary Text
+sdsStreamName = lens _sdsStreamName (\ s a -> s{_sdsStreamName = a})
+
+-- | The Amazon Resource Name (ARN) for the stream being described.
+sdsStreamARN :: Lens' StreamDescriptionSummary Text
+sdsStreamARN = lens _sdsStreamARN (\ s a -> s{_sdsStreamARN = a})
+
+-- | The current status of the stream being described. The stream status is one of the following states: * @CREATING@ - The stream is being created. Kinesis Data Streams immediately returns and sets @StreamStatus@ to @CREATING@ . * @DELETING@ - The stream is being deleted. The specified stream is in the @DELETING@ state until Kinesis Data Streams completes the deletion. * @ACTIVE@ - The stream exists and is ready for read and write operations or deletion. You should perform read and write operations only on an @ACTIVE@ stream. * @UPDATING@ - Shards in the stream are being merged or split. Read and write operations continue to work while the stream is in the @UPDATING@ state.
+sdsStreamStatus :: Lens' StreamDescriptionSummary StreamStatus
+sdsStreamStatus = lens _sdsStreamStatus (\ s a -> s{_sdsStreamStatus = a})
+
+-- | The current retention period, in hours.
+sdsRetentionPeriodHours :: Lens' StreamDescriptionSummary Natural
+sdsRetentionPeriodHours = lens _sdsRetentionPeriodHours (\ s a -> s{_sdsRetentionPeriodHours = a}) . _Nat
+
+-- | The approximate time that the stream was created.
+sdsStreamCreationTimestamp :: Lens' StreamDescriptionSummary UTCTime
+sdsStreamCreationTimestamp = lens _sdsStreamCreationTimestamp (\ s a -> s{_sdsStreamCreationTimestamp = a}) . _Time
+
+-- | Represents the current enhanced monitoring settings of the stream.
+sdsEnhancedMonitoring :: Lens' StreamDescriptionSummary [EnhancedMetrics]
+sdsEnhancedMonitoring = lens _sdsEnhancedMonitoring (\ s a -> s{_sdsEnhancedMonitoring = a}) . _Coerce
+
+-- | The number of open shards in the stream.
+sdsOpenShardCount :: Lens' StreamDescriptionSummary Natural
+sdsOpenShardCount = lens _sdsOpenShardCount (\ s a -> s{_sdsOpenShardCount = a}) . _Nat
+
+instance FromJSON StreamDescriptionSummary where
+ parseJSON
+ = withObject "StreamDescriptionSummary"
+ (\ x ->
+ StreamDescriptionSummary' <$>
+ (x .:? "EncryptionType") <*> (x .:? "KeyId") <*>
+ (x .: "StreamName")
+ <*> (x .: "StreamARN")
+ <*> (x .: "StreamStatus")
+ <*> (x .: "RetentionPeriodHours")
+ <*> (x .: "StreamCreationTimestamp")
+ <*> (x .:? "EnhancedMonitoring" .!= mempty)
+ <*> (x .: "OpenShardCount"))
+
+instance Hashable StreamDescriptionSummary where
+
+instance NFData StreamDescriptionSummary where
+
-- | Metadata assigned to the stream, consisting of a key-value pair.
--
--
@@ -631,11 +748,11 @@ tag pKey_ = Tag' {_tagValue = Nothing, _tagKey = pKey_}
-- | An optional string, typically used to describe or define the tag. Maximum length: 256 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
tagValue :: Lens' Tag (Maybe Text)
-tagValue = lens _tagValue (\ s a -> s{_tagValue = a});
+tagValue = lens _tagValue (\ s a -> s{_tagValue = a})
-- | A unique identifier for the tag. Maximum length: 128 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
tagKey :: Lens' Tag Text
-tagKey = lens _tagKey (\ s a -> s{_tagKey = a});
+tagKey = lens _tagKey (\ s a -> s{_tagKey = a})
instance FromJSON Tag where
parseJSON
diff --git a/gen/Network/AWS/Kinesis/Types/Sum.hs b/gen/Network/AWS/Kinesis/Types/Sum.hs
index ef2ebb0..28fef23 100644
--- a/gen/Network/AWS/Kinesis/Types/Sum.hs
+++ b/gen/Network/AWS/Kinesis/Types/Sum.hs
@@ -9,7 +9,7 @@
-- |
-- Module : Network.AWS.Kinesis.Types.Sum
--- Copyright : (c) 2013-2017 Brendan Hay
+-- Copyright : (c) 2013-2018 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability : auto-generated
diff --git a/gen/Network/AWS/Kinesis/UpdateShardCount.hs b/gen/Network/AWS/Kinesis/UpdateShardCount.hs
index 34df0cc..196e2b5 100644
--- a/gen/Network/AWS/Kinesis/UpdateShardCount.hs
+++ b/gen/Network/AWS/Kinesis/UpdateShardCount.hs
@@ -12,7 +12,7 @@
-- |
-- Module : Network.AWS.Kinesis.UpdateShardCount
--- Copyright : (c) 2013-2017 Brendan Hay
+-- Copyright : (c) 2013-2018 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability : auto-generated
@@ -21,29 +21,27 @@
-- Updates the shard count of the specified stream to the specified number of shards.
--
--
--- Updating the shard count is an asynchronous operation. Upon receiving the request, Amazon Kinesis returns immediately and sets the status of the stream to @UPDATING@ . After the update is complete, Amazon Kinesis sets the status of the stream back to @ACTIVE@ . Depending on the size of the stream, the scaling action could take a few minutes to complete. You can continue to read and write data to your stream while its status is @UPDATING@ .
+-- Updating the shard count is an asynchronous operation. Upon receiving the request, Kinesis Data Streams returns immediately and sets the status of the stream to @UPDATING@ . After the update is complete, Kinesis Data Streams sets the status of the stream back to @ACTIVE@ . Depending on the size of the stream, the scaling action could take a few minutes to complete. You can continue to read and write data to your stream while its status is @UPDATING@ .
--
--- To update the shard count, Amazon Kinesis performs splits or merges on individual shards. This can cause short-lived shards to be created, in addition to the final shards. We recommend that you double or halve the shard count, as this results in the fewest number of splits or merges.
+-- To update the shard count, Kinesis Data Streams performs splits or merges on individual shards. This can cause short-lived shards to be created, in addition to the final shards. We recommend that you double or halve the shard count, as this results in the fewest number of splits or merges.
--
--- This operation has the following limits, which are per region per account unless otherwise noted:
+-- This operation has the following limits. You cannot do the following:
--
--- * scale more than twice per rolling 24 hour period
+-- * Scale more than twice per rolling 24-hour period per stream
--
--- * scale up above double your current shard count
+-- * Scale up to more than double your current shard count for a stream
--
--- * scale down below half your current shard count
+-- * Scale down below half your current shard count for a stream
--
--- * scale up above 200 shards in a stream
+-- * Scale up to more than 500 shards in a stream
--
--- * scale a stream with more than 200 shards down unless the result is less than 200 shards
+-- * Scale a stream with more than 500 shards down unless the result is less than 500 shards
--
--- * scale up above the shard limits for your account
+-- * Scale up to more than the shard limit for your account
--
--- *
--
--
---
--- For the default limits for an AWS account, see <http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html Streams Limits> in the /Amazon Kinesis Streams Developer Guide/ . If you need to increase a limit, <http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html contact AWS Support> .
+-- For the default limits for an AWS account, see <http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html Streams Limits> in the /Amazon Kinesis Data Streams Developer Guide/ . To request an increase in the call rate limit, the shard limit for this API, or your overall shard limit, use the <https://console.aws.amazon.com/support/v1#/case/create?issueType=service-limit-increase&amp;limitType=service-code-kinesis limits form> .
--
module Network.AWS.Kinesis.UpdateShardCount
(
@@ -96,23 +94,23 @@ updateShardCount
-> UpdateShardCount
updateShardCount pStreamName_ pTargetShardCount_ pScalingType_ =
UpdateShardCount'
- { _uscStreamName = pStreamName_
- , _uscTargetShardCount = _Nat # pTargetShardCount_
- , _uscScalingType = pScalingType_
- }
+ { _uscStreamName = pStreamName_
+ , _uscTargetShardCount = _Nat # pTargetShardCount_
+ , _uscScalingType = pScalingType_
+ }
-- | The name of the stream.
uscStreamName :: Lens' UpdateShardCount Text
-uscStreamName = lens _uscStreamName (\ s a -> s{_uscStreamName = a});
+uscStreamName = lens _uscStreamName (\ s a -> s{_uscStreamName = a})
-- | The new number of shards.
uscTargetShardCount :: Lens' UpdateShardCount Natural
-uscTargetShardCount = lens _uscTargetShardCount (\ s a -> s{_uscTargetShardCount = a}) . _Nat;
+uscTargetShardCount = lens _uscTargetShardCount (\ s a -> s{_uscTargetShardCount = a}) . _Nat
-- | The scaling type. Uniform scaling creates shards of equal size.
uscScalingType :: Lens' UpdateShardCount ScalingType
-uscScalingType = lens _uscScalingType (\ s a -> s{_uscScalingType = a});
+uscScalingType = lens _uscScalingType (\ s a -> s{_uscScalingType = a})
instance AWSRequest UpdateShardCount where
type Rs UpdateShardCount = UpdateShardCountResponse
@@ -177,27 +175,27 @@ updateShardCountResponse
-> UpdateShardCountResponse
updateShardCountResponse pResponseStatus_ =
UpdateShardCountResponse'
- { _uscrsTargetShardCount = Nothing
- , _uscrsStreamName = Nothing
- , _uscrsCurrentShardCount = Nothing
- , _uscrsResponseStatus = pResponseStatus_
- }
+ { _uscrsTargetShardCount = Nothing
+ , _uscrsStreamName = Nothing
+ , _uscrsCurrentShardCount = Nothing
+ , _uscrsResponseStatus = pResponseStatus_
+ }
-- | The updated number of shards.
uscrsTargetShardCount :: Lens' UpdateShardCountResponse (Maybe Natural)
-uscrsTargetShardCount = lens _uscrsTargetShardCount (\ s a -> s{_uscrsTargetShardCount = a}) . mapping _Nat;
+uscrsTargetShardCount = lens _uscrsTargetShardCount (\ s a -> s{_uscrsTargetShardCount = a}) . mapping _Nat
-- | The name of the stream.
uscrsStreamName :: Lens' UpdateShardCountResponse (Maybe Text)
-uscrsStreamName = lens _uscrsStreamName (\ s a -> s{_uscrsStreamName = a});
+uscrsStreamName = lens _uscrsStreamName (\ s a -> s{_uscrsStreamName = a})
-- | The current number of shards.
uscrsCurrentShardCount :: Lens' UpdateShardCountResponse (Maybe Natural)
-uscrsCurrentShardCount = lens _uscrsCurrentShardCount (\ s a -> s{_uscrsCurrentShardCount = a}) . mapping _Nat;
+uscrsCurrentShardCount = lens _uscrsCurrentShardCount (\ s a -> s{_uscrsCurrentShardCount = a}) . mapping _Nat
-- | -- | The response status code.
uscrsResponseStatus :: Lens' UpdateShardCountResponse Int
-uscrsResponseStatus = lens _uscrsResponseStatus (\ s a -> s{_uscrsResponseStatus = a});
+uscrsResponseStatus = lens _uscrsResponseStatus (\ s a -> s{_uscrsResponseStatus = a})
instance NFData UpdateShardCountResponse where
diff --git a/gen/Network/AWS/Kinesis/Waiters.hs b/gen/Network/AWS/Kinesis/Waiters.hs
index 0bdec28..730a835 100644
--- a/gen/Network/AWS/Kinesis/Waiters.hs
+++ b/gen/Network/AWS/Kinesis/Waiters.hs
@@ -7,7 +7,7 @@
-- |
-- Module : Network.AWS.Kinesis.Waiters
--- Copyright : (c) 2013-2017 Brendan Hay
+-- Copyright : (c) 2013-2018 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability : auto-generated
@@ -26,25 +26,25 @@ import Network.AWS.Waiter
streamExists :: Wait DescribeStream
streamExists =
Wait
- { _waitName = "StreamExists"
- , _waitAttempts = 18
- , _waitDelay = 10
- , _waitAcceptors =
- [ matchAll
- "ACTIVE"
- AcceptSuccess
- (dsrsStreamDescription . sdStreamStatus . to toTextCI)
- ]
- }
+ { _waitName = "StreamExists"
+ , _waitAttempts = 18
+ , _waitDelay = 10
+ , _waitAcceptors =
+ [ matchAll
+ "ACTIVE"
+ AcceptSuccess
+ (dsrsStreamDescription . sdStreamStatus . to toTextCI)
+ ]
+ }
-- | Polls 'Network.AWS.Kinesis.DescribeStream' every 10 seconds until a successful state is reached. An error is returned after 18 failed checks.
streamNotExists :: Wait DescribeStream
streamNotExists =
Wait
- { _waitName = "StreamNotExists"
- , _waitAttempts = 18
- , _waitDelay = 10
- , _waitAcceptors = [matchError "ResourceNotFoundException" AcceptSuccess]
- }
+ { _waitName = "StreamNotExists"
+ , _waitAttempts = 18
+ , _waitDelay = 10
+ , _waitAcceptors = [matchError "ResourceNotFoundException" AcceptSuccess]
+ }
diff --git a/test/Main.hs b/test/Main.hs
index 1554cb7..7b26890 100644
--- a/test/Main.hs
+++ b/test/Main.hs
@@ -2,7 +2,7 @@
-- |
-- Module : Main
--- Copyright : (c) 2013-2017 Brendan Hay
+-- Copyright : (c) 2013-2018 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability : auto-generated
diff --git a/test/Test/AWS/Gen/Kinesis.hs b/test/Test/AWS/Gen/Kinesis.hs
index a45adaa..c9ab0cc 100644
--- a/test/Test/AWS/Gen/Kinesis.hs
+++ b/test/Test/AWS/Gen/Kinesis.hs
@@ -5,7 +5,7 @@
-- |
-- Module : Test.AWS.Gen.Kinesis
--- Copyright : (c) 2013-2017 Brendan Hay
+-- Copyright : (c) 2013-2018 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability : auto-generated
@@ -37,6 +37,9 @@ import Test.Tasty
-- , requestMergeShards $
-- mergeShards
--
+-- , requestDescribeStreamSummary $
+-- describeStreamSummary
+--
-- , requestGetShardIterator $
-- getShardIterator
--
@@ -67,6 +70,9 @@ import Test.Tasty
-- , requestPutRecords $
-- putRecords
--
+-- , requestListShards $
+-- listShards
+--
-- , requestDeleteStream $
-- deleteStream
--
@@ -103,6 +109,9 @@ import Test.Tasty
-- , responseMergeShards $
-- mergeShardsResponse
--
+-- , responseDescribeStreamSummary $
+-- describeStreamSummaryResponse
+--
-- , responseGetShardIterator $
-- getShardIteratorResponse
--
@@ -133,6 +142,9 @@ import Test.Tasty
-- , responsePutRecords $
-- putRecordsResponse
--
+-- , responseListShards $
+-- listShardsResponse
+--
-- , responseDeleteStream $
-- deleteStreamResponse
--
@@ -177,6 +189,11 @@ requestMergeShards = req
"MergeShards"
"fixture/MergeShards.yaml"
+requestDescribeStreamSummary :: DescribeStreamSummary -> TestTree
+requestDescribeStreamSummary = req
+ "DescribeStreamSummary"
+ "fixture/DescribeStreamSummary.yaml"
+
requestGetShardIterator :: GetShardIterator -> TestTree
requestGetShardIterator = req
"GetShardIterator"
@@ -227,6 +244,11 @@ requestPutRecords = req
"PutRecords"
"fixture/PutRecords.yaml"
+requestListShards :: ListShards -> TestTree
+requestListShards = req
+ "ListShards"
+ "fixture/ListShards.yaml"
+
requestDeleteStream :: DeleteStream -> TestTree
requestDeleteStream = req
"DeleteStream"
@@ -290,6 +312,13 @@ responseMergeShards = res
kinesis
(Proxy :: Proxy MergeShards)
+responseDescribeStreamSummary :: DescribeStreamSummaryResponse -> TestTree
+responseDescribeStreamSummary = res
+ "DescribeStreamSummaryResponse"
+ "fixture/DescribeStreamSummaryResponse.proto"
+ kinesis
+ (Proxy :: Proxy DescribeStreamSummary)
+
responseGetShardIterator :: GetShardIteratorResponse -> TestTree
responseGetShardIterator = res
"GetShardIteratorResponse"
@@ -360,6 +389,13 @@ responsePutRecords = res
kinesis
(Proxy :: Proxy PutRecords)
+responseListShards :: ListShardsResponse -> TestTree
+responseListShards = res
+ "ListShardsResponse"
+ "fixture/ListShardsResponse.proto"
+ kinesis
+ (Proxy :: Proxy ListShards)
+
responseDeleteStream :: DeleteStreamResponse -> TestTree
responseDeleteStream = res
"DeleteStreamResponse"
diff --git a/test/Test/AWS/Kinesis.hs b/test/Test/AWS/Kinesis.hs
index d8dc08e..ccc32c2 100644
--- a/test/Test/AWS/Kinesis.hs
+++ b/test/Test/AWS/Kinesis.hs
@@ -1,7 +1,7 @@
{-# LANGUAGE OverloadedStrings #-}
-- Module : Test.AWS.Kinesis
--- Copyright : (c) 2013-2016 Brendan Hay
+-- Copyright : (c) 2013-2018 Brendan Hay
-- License : This Source Code Form is subject to the terms of
-- the Mozilla Public License, v. 2.0.
-- A copy of the MPL can be found in the LICENSE file or
diff --git a/test/Test/AWS/Kinesis/Internal.hs b/test/Test/AWS/Kinesis/Internal.hs
index 2070157..36fb243 100644
--- a/test/Test/AWS/Kinesis/Internal.hs
+++ b/test/Test/AWS/Kinesis/Internal.hs
@@ -2,7 +2,7 @@
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- Module : Test.AWS.Kinesis.Internal
--- Copyright : (c) 2013-2016 Brendan Hay
+-- Copyright : (c) 2013-2018 Brendan Hay
-- License : This Source Code Form is subject to the terms of
-- the Mozilla Public License, v. 2.0.
-- A copy of the MPL can be found in the LICENSE file or