amazonka-dynamodb-streams 1.4.2 → 1.4.3
raw patch · 10 files changed
+106/−240 lines, 10 filesdep ~amazonka-coredep ~amazonka-dynamodb-streamsdep ~amazonka-testPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: amazonka-core, amazonka-dynamodb-streams, amazonka-test
API changes (from Hackage documentation)
- Network.AWS.DynamoDBStreams.DescribeStream: instance Data.Aeson.Types.Class.ToJSON Network.AWS.DynamoDBStreams.DescribeStream.DescribeStream
- Network.AWS.DynamoDBStreams.GetRecords: instance Data.Aeson.Types.Class.ToJSON Network.AWS.DynamoDBStreams.GetRecords.GetRecords
- Network.AWS.DynamoDBStreams.GetShardIterator: instance Data.Aeson.Types.Class.ToJSON Network.AWS.DynamoDBStreams.GetShardIterator.GetShardIterator
- Network.AWS.DynamoDBStreams.ListStreams: instance Data.Aeson.Types.Class.ToJSON Network.AWS.DynamoDBStreams.ListStreams.ListStreams
+ Network.AWS.DynamoDBStreams.DescribeStream: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.DynamoDBStreams.DescribeStream.DescribeStream
+ Network.AWS.DynamoDBStreams.GetRecords: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.DynamoDBStreams.GetRecords.GetRecords
+ Network.AWS.DynamoDBStreams.GetShardIterator: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.DynamoDBStreams.GetShardIterator.GetShardIterator
+ Network.AWS.DynamoDBStreams.ListStreams: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.DynamoDBStreams.ListStreams.ListStreams
Files
- README.md +7/−16
- amazonka-dynamodb-streams.cabal +11/−20
- gen/Network/AWS/DynamoDBStreams.hs +6/−15
- gen/Network/AWS/DynamoDBStreams/DescribeStream.hs +4/−16
- gen/Network/AWS/DynamoDBStreams/GetRecords.hs +6/−18
- gen/Network/AWS/DynamoDBStreams/GetShardIterator.hs +10/−27
- gen/Network/AWS/DynamoDBStreams/ListStreams.hs +7/−19
- gen/Network/AWS/DynamoDBStreams/Types.hs +6/−21
- gen/Network/AWS/DynamoDBStreams/Types/Product.hs +25/−64
- test/Test/AWS/Gen/DynamoDBStreams.hs +24/−24
README.md view
@@ -8,39 +8,30 @@ ## Version -`1.4.2`+`1.4.3` ## Description Amazon DynamoDB Streams -This is the Amazon DynamoDB Streams API Reference. This guide describes-the low-level API actions for accessing streams and processing stream-records. For information about application development with DynamoDB-Streams, see the-<http://docs.aws.amazon.com/amazondynamodb/latest/developerguide//Streams.html Amazon DynamoDB Developer Guide>.+This is the Amazon DynamoDB Streams API Reference. This guide describes the low-level API actions for accessing streams and processing stream records. For information about application development with DynamoDB Streams, see the <http://docs.aws.amazon.com/amazondynamodb/latest/developerguide//Streams.html Amazon DynamoDB Developer Guide>. -Note that this document is intended for use with the following DynamoDB-documentation:+Note that this document is intended for use with the following DynamoDB documentation: - <http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ Amazon DynamoDB Developer Guide> - <http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/ Amazon DynamoDB API Reference> -The following are short descriptions of each low-level DynamoDB Streams-API action, organized by function.+The following are short descriptions of each low-level DynamoDB Streams API action, organized by function. -- /DescribeStream/ - Returns detailed information about a particular- stream.+- /DescribeStream/ - Returns detailed information about a particular stream. - /GetRecords/ - Retrieves the stream records from within a shard. -- /GetShardIterator/ - Returns information on how to retrieve the- streams record from a shard with a given shard ID.+- /GetShardIterator/ - Returns information on how to retrieve the streams record from a shard with a given shard ID. -- /ListStreams/ - Returns a list of all the streams associated with- the current AWS account and endpoint.+- /ListStreams/ - Returns a list of all the streams associated with the current AWS account and endpoint. Documentation is available via [Hackage](http://hackage.haskell.org/package/amazonka-dynamodb-streams) and the [AWS API Reference](https://aws.amazon.com/documentation/).
amazonka-dynamodb-streams.cabal view
@@ -1,5 +1,5 @@ name: amazonka-dynamodb-streams-version: 1.4.2+version: 1.4.3 synopsis: Amazon DynamoDB Streams SDK. homepage: https://github.com/brendanhay/amazonka bug-reports: https://github.com/brendanhay/amazonka/issues@@ -15,32 +15,23 @@ description: Amazon DynamoDB Streams - This is the Amazon DynamoDB Streams API Reference. This guide describes- the low-level API actions for accessing streams and processing stream- records. For information about application development with DynamoDB- Streams, see the- <http://docs.aws.amazon.com/amazondynamodb/latest/developerguide//Streams.html Amazon DynamoDB Developer Guide>.+ This is the Amazon DynamoDB Streams API Reference. This guide describes the low-level API actions for accessing streams and processing stream records. For information about application development with DynamoDB Streams, see the <http://docs.aws.amazon.com/amazondynamodb/latest/developerguide//Streams.html Amazon DynamoDB Developer Guide>. - Note that this document is intended for use with the following DynamoDB- documentation:+ Note that this document is intended for use with the following DynamoDB documentation: - <http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ Amazon DynamoDB Developer Guide> - <http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/ Amazon DynamoDB API Reference> - The following are short descriptions of each low-level DynamoDB Streams- API action, organized by function.+ The following are short descriptions of each low-level DynamoDB Streams API action, organized by function. - - /DescribeStream/ - Returns detailed information about a particular- stream.+ - /DescribeStream/ - Returns detailed information about a particular stream. - /GetRecords/ - Retrieves the stream records from within a shard. - - /GetShardIterator/ - Returns information on how to retrieve the- streams record from a shard with a given shard ID.+ - /GetShardIterator/ - Returns information on how to retrieve the streams record from a shard with a given shard ID. - - /ListStreams/ - Returns a list of all the streams associated with- the current AWS account and endpoint.+ - /ListStreams/ - Returns a list of all the streams associated with the current AWS account and endpoint. . The types from this library are intended to be used with <http://hackage.haskell.org/package/amazonka amazonka>, which provides@@ -80,7 +71,7 @@ , Network.AWS.DynamoDBStreams.Types.Sum build-depends:- amazonka-core == 1.4.2.*+ amazonka-core == 1.4.3.* , base >= 4.7 && < 5 test-suite amazonka-dynamodb-streams-test@@ -100,9 +91,9 @@ , Test.AWS.DynamoDBStreams.Internal build-depends:- amazonka-core == 1.4.2.*- , amazonka-test == 1.4.2.*- , amazonka-dynamodb-streams == 1.4.2.*+ amazonka-core == 1.4.3.*+ , amazonka-test == 1.4.3.*+ , amazonka-dynamodb-streams == 1.4.3.* , base , bytestring , tasty
gen/Network/AWS/DynamoDBStreams.hs view
@@ -13,32 +13,23 @@ -- -- Amazon DynamoDB Streams ----- This is the Amazon DynamoDB Streams API Reference. This guide describes--- the low-level API actions for accessing streams and processing stream--- records. For information about application development with DynamoDB--- Streams, see the--- <http://docs.aws.amazon.com/amazondynamodb/latest/developerguide//Streams.html Amazon DynamoDB Developer Guide>.+-- This is the Amazon DynamoDB Streams API Reference. This guide describes the low-level API actions for accessing streams and processing stream records. For information about application development with DynamoDB Streams, see the <http://docs.aws.amazon.com/amazondynamodb/latest/developerguide//Streams.html Amazon DynamoDB Developer Guide>. ----- Note that this document is intended for use with the following DynamoDB--- documentation:+-- Note that this document is intended for use with the following DynamoDB documentation: -- -- - <http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ Amazon DynamoDB Developer Guide> -- -- - <http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/ Amazon DynamoDB API Reference> ----- The following are short descriptions of each low-level DynamoDB Streams--- API action, organized by function.+-- The following are short descriptions of each low-level DynamoDB Streams API action, organized by function. ----- - /DescribeStream/ - Returns detailed information about a particular--- stream.+-- - /DescribeStream/ - Returns detailed information about a particular stream. -- -- - /GetRecords/ - Retrieves the stream records from within a shard. ----- - /GetShardIterator/ - Returns information on how to retrieve the--- streams record from a shard with a given shard ID.+-- - /GetShardIterator/ - Returns information on how to retrieve the streams record from a shard with a given shard ID. ----- - /ListStreams/ - Returns a list of all the streams associated with--- the current AWS account and endpoint.+-- - /ListStreams/ - Returns a list of all the streams associated with the current AWS account and endpoint. -- module Network.AWS.DynamoDBStreams (
gen/Network/AWS/DynamoDBStreams/DescribeStream.hs view
@@ -18,18 +18,11 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns information about a stream, including the current status of the--- stream, its Amazon Resource Name (ARN), the composition of its shards,--- and its corresponding DynamoDB table.+-- Returns information about a stream, including the current status of the stream, its Amazon Resource Name (ARN), the composition of its shards, and its corresponding DynamoDB table. -- -- You can call /DescribeStream/ at a maximum rate of 10 times per second. ----- Each shard in the stream has a 'SequenceNumberRange' associated with it.--- If the 'SequenceNumberRange' has a 'StartingSequenceNumber' but no--- 'EndingSequenceNumber', then the shard is still open (able to receive--- more stream records). If both 'StartingSequenceNumber' and--- 'EndingSequenceNumber' are present, the that shared is closed and can no--- longer receive more data.+-- Each shard in the stream has a 'SequenceNumberRange' associated with it. If the 'SequenceNumberRange' has a 'StartingSequenceNumber' but no 'EndingSequenceNumber', then the shard is still open (able to receive more stream records). If both 'StartingSequenceNumber' and 'EndingSequenceNumber' are present, the that shared is closed and can no longer receive more data. module Network.AWS.DynamoDBStreams.DescribeStream ( -- * Creating a Request@@ -83,9 +76,7 @@ , _dsStreamARN = pStreamARN_ } --- | The shard ID of the first item that this operation will evaluate. Use--- the value that was returned for 'LastEvaluatedShardId' in the previous--- operation.+-- | The shard ID of the first item that this operation will evaluate. Use the value that was returned for 'LastEvaluatedShardId' in the previous operation. dsExclusiveStartShardId :: Lens' DescribeStream (Maybe Text) dsExclusiveStartShardId = lens _dsExclusiveStartShardId (\ s a -> s{_dsExclusiveStartShardId = a}); @@ -159,10 +150,7 @@ , _dsrsResponseStatus = pResponseStatus_ } --- | A complete description of the stream, including its creation date and--- time, the DynamoDB table associated with the stream, the shard IDs--- within the stream, and the beginning and ending sequence numbers of--- stream records within the shards.+-- | A complete description of the stream, including its creation date and time, the DynamoDB table associated with the stream, the shard IDs within the stream, and the beginning and ending sequence numbers of stream records within the shards. dsrsStreamDescription :: Lens' DescribeStreamResponse (Maybe StreamDescription) dsrsStreamDescription = lens _dsrsStreamDescription (\ s a -> s{_dsrsStreamDescription = a});
gen/Network/AWS/DynamoDBStreams/GetRecords.hs view
@@ -20,15 +20,9 @@ -- -- Retrieves the stream records from a given 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 stream records sequentially. If there are no stream--- 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 stream 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 stream records sequentially. If there are no stream 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 stream records. ----- GetRecords can retrieve a maximum of 1 MB of data or 2000 stream--- records, whichever comes first.+-- GetRecords can retrieve a maximum of 1 MB of data or 2000 stream records, whichever comes first. module Network.AWS.DynamoDBStreams.GetRecords ( -- * Creating a Request@@ -78,14 +72,11 @@ , _grShardIterator = pShardIterator_ } --- | The maximum number of records to return from the shard. The upper limit--- is 1000.+-- | The maximum number of records to return from the shard. The upper limit is 1000. grLimit :: Lens' GetRecords (Maybe Natural) grLimit = lens _grLimit (\ s a -> s{_grLimit = a}) . mapping _Nat; --- | A shard iterator that was retrieved from a previous GetShardIterator--- operation. This iterator can be used to access the stream records in--- this shard.+-- | A shard iterator that was retrieved from a previous GetShardIterator operation. This iterator can be used to access the stream records in this shard. grShardIterator :: Lens' GetRecords Text grShardIterator = lens _grShardIterator (\ s a -> s{_grShardIterator = a}); @@ -155,14 +146,11 @@ , _grrsResponseStatus = pResponseStatus_ } --- | The stream records from the shard, which were retrieved using the shard--- iterator.+-- | The stream records from the shard, which were retrieved using the shard iterator. grrsRecords :: Lens' GetRecordsResponse [Record] grrsRecords = lens _grrsRecords (\ s a -> s{_grrsRecords = a}) . _Default . _Coerce; --- | The next position in the shard from which to start sequentially reading--- stream 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 stream records. If set to 'null', the shard has been closed and the requested iterator will not return any more data. grrsNextShardIterator :: Lens' GetRecordsResponse (Maybe Text) grrsNextShardIterator = lens _grrsNextShardIterator (\ s a -> s{_grrsNextShardIterator = a});
gen/Network/AWS/DynamoDBStreams/GetShardIterator.hs view
@@ -18,13 +18,9 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns a shard iterator. A shard iterator provides information about--- how to retrieve the stream records from within a shard. Use the shard--- iterator in a subsequent 'GetRecords' request to read the stream records--- from the shard.+-- Returns a shard iterator. A shard iterator provides information about how to retrieve the stream records from within a shard. Use the shard iterator in a subsequent 'GetRecords' request to read the stream records from the shard. ----- A shard iterator expires 15 minutes after it is returned to the--- requester.+-- A shard iterator expires 15 minutes after it is returned to the requester. module Network.AWS.DynamoDBStreams.GetShardIterator ( -- * Creating a Request@@ -85,8 +81,7 @@ , _gsiShardIteratorType = pShardIteratorType_ } --- | The sequence number of a stream record in the shard from which to start--- reading.+-- | The sequence number of a stream record in the shard from which to start reading. gsiSequenceNumber :: Lens' GetShardIterator (Maybe Text) gsiSequenceNumber = lens _gsiSequenceNumber (\ s a -> s{_gsiSequenceNumber = a}); @@ -94,29 +89,19 @@ gsiStreamARN :: Lens' GetShardIterator Text gsiStreamARN = lens _gsiStreamARN (\ s a -> s{_gsiStreamARN = a}); --- | The identifier of the shard. The iterator will be returned for this--- shard ID.+-- | The identifier of the shard. The iterator will be returned for this shard ID. gsiShardId :: Lens' GetShardIterator Text gsiShardId = lens _gsiShardId (\ s a -> s{_gsiShardId = a}); --- | Determines how the shard iterator is used to start reading stream--- records from the shard:+-- | Determines how the shard iterator is used to start reading stream records from the shard: ----- - 'AT_SEQUENCE_NUMBER' - Start reading exactly from the position--- denoted by a specific sequence number.+-- - 'AT_SEQUENCE_NUMBER' - Start reading exactly from the position denoted by a specific sequence number. ----- - 'AFTER_SEQUENCE_NUMBER' - Start reading right after the position--- denoted by a specific sequence number.+-- - 'AFTER_SEQUENCE_NUMBER' - Start reading right after the position denoted by a specific sequence number. ----- - 'TRIM_HORIZON' - Start reading at the last (untrimmed) stream--- record, which is the oldest record in the shard. In DynamoDB--- Streams, there is a 24 hour limit on data retention. Stream records--- whose age exceeds this limit are subject to removal (trimming) from--- the stream.+-- - 'TRIM_HORIZON' - Start reading at the last (untrimmed) stream record, which is the oldest record in the shard. In DynamoDB Streams, there is a 24 hour limit on data retention. Stream records whose age exceeds this limit are subject to removal (trimming) from the stream. ----- - 'LATEST' - Start reading just after the most recent stream record in--- the shard, so that you always read the most recent data in the--- shard.+-- - 'LATEST' - Start reading just after the most recent stream 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});@@ -183,9 +168,7 @@ , _gsirsResponseStatus = pResponseStatus_ } --- | The position in the shard from which to start reading stream records--- sequentially. A shard iterator specifies this position using the--- sequence number of a stream record in a shard.+-- | The position in the shard from which to start reading stream records sequentially. A shard iterator specifies this position using the sequence number of a stream record in a shard. gsirsShardIterator :: Lens' GetShardIteratorResponse (Maybe Text) gsirsShardIterator = lens _gsirsShardIterator (\ s a -> s{_gsirsShardIterator = a});
gen/Network/AWS/DynamoDBStreams/ListStreams.hs view
@@ -18,9 +18,7 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns an array of stream ARNs associated with the current account and--- endpoint. If the 'TableName' parameter is present, then /ListStreams/--- will return only the streams ARNs for that table.+-- Returns an array of stream ARNs associated with the current account and endpoint. If the 'TableName' parameter is present, then /ListStreams/ will return only the streams ARNs for that table. -- -- You can call /ListStreams/ at a maximum rate of 5 times per second. module Network.AWS.DynamoDBStreams.ListStreams@@ -76,9 +74,7 @@ , _lsTableName = Nothing } --- | The ARN (Amazon Resource Name) of the first item that this operation--- will evaluate. Use the value that was returned for--- 'LastEvaluatedStreamArn' in the previous operation.+-- | The ARN (Amazon Resource Name) of the first item that this operation will evaluate. Use the value that was returned for 'LastEvaluatedStreamArn' in the previous operation. lsExclusiveStartStreamARN :: Lens' ListStreams (Maybe Text) lsExclusiveStartStreamARN = lens _lsExclusiveStartStreamARN (\ s a -> s{_lsExclusiveStartStreamARN = a}); @@ -86,8 +82,7 @@ lsLimit :: Lens' ListStreams (Maybe Natural) lsLimit = lens _lsLimit (\ s a -> s{_lsLimit = a}) . mapping _Nat; --- | If this parameter is provided, then only the streams associated with--- this table name are returned.+-- | If this parameter is provided, then only the streams associated with this table name are returned. lsTableName :: Lens' ListStreams (Maybe Text) lsTableName = lens _lsTableName (\ s a -> s{_lsTableName = a}); @@ -159,22 +154,15 @@ , _lsrsResponseStatus = pResponseStatus_ } --- | The stream ARN of the item where the operation stopped, inclusive of the--- previous result set. Use this value to start a new operation, excluding--- this value in the new request.+-- | The stream ARN of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request. ----- If 'LastEvaluatedStreamArn' is empty, then the \"last page\" of results--- has been processed and there is no more data to be retrieved.+-- If 'LastEvaluatedStreamArn' is empty, then the \"last page\" of results has been processed and there is no more data to be retrieved. ----- If 'LastEvaluatedStreamArn' is not empty, it does not necessarily mean--- that there is more data in the result set. The only way to know when you--- have reached the end of the result set is when 'LastEvaluatedStreamArn'--- is empty.+-- If 'LastEvaluatedStreamArn' is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is when 'LastEvaluatedStreamArn' is empty. lsrsLastEvaluatedStreamARN :: Lens' ListStreamsResponse (Maybe Text) lsrsLastEvaluatedStreamARN = lens _lsrsLastEvaluatedStreamARN (\ s a -> s{_lsrsLastEvaluatedStreamARN = a}); --- | A list of stream descriptors associated with the current account and--- endpoint.+-- | A list of stream descriptors associated with the current account and endpoint. lsrsStreams :: Lens' ListStreamsResponse [Stream] lsrsStreams = lens _lsrsStreams (\ s a -> s{_lsrsStreams = a}) . _Default . _Coerce;
gen/Network/AWS/DynamoDBStreams/Types.hs view
@@ -151,9 +151,7 @@ | has (hasStatus 509) e = Just "limit_exceeded" | otherwise = Nothing --- | The shard iterator has expired and can no longer be used to retrieve--- stream records. A shard iterator expires 15 minutes after it is--- retrieved using the /GetShardIterator/ action.+-- | The shard iterator has expired and can no longer be used to retrieve stream records. A shard iterator expires 15 minutes after it is retrieved using the /GetShardIterator/ action. _ExpiredIteratorException :: AsError a => Getting (First ServiceError) a ServiceError _ExpiredIteratorException = _ServiceError . hasCode "ExpiredIteratorException" @@ -161,19 +159,12 @@ _InternalServerError :: AsError a => Getting (First ServiceError) a ServiceError _InternalServerError = _ServiceError . hasCode "InternalServerError" --- | The operation attempted to read past the oldest stream record in a--- shard.+-- | The operation attempted to read past the oldest stream record in a shard. ----- In DynamoDB Streams, there is a 24 hour limit on data retention. Stream--- records whose age exceeds this limit are subject to removal (trimming)--- from the stream. You might receive a TrimmedDataAccessException if:+-- In DynamoDB Streams, there is a 24 hour limit on data retention. Stream records whose age exceeds this limit are subject to removal (trimming) from the stream. You might receive a TrimmedDataAccessException if: ----- - You request a shard iterator with a sequence number older than the--- trim point (24 hours).--- - You obtain a shard iterator, but before you use the iterator in a--- /GetRecords/ request, a stream record in the shard exceeds the 24--- hour period and is trimmed. This causes the iterator to access a--- record that no longer exists.+-- - You request a shard iterator with a sequence number older than the trim point (24 hours).+-- - You obtain a shard iterator, but before you use the iterator in a /GetRecords/ request, a stream record in the shard exceeds the 24 hour period and is trimmed. This causes the iterator to access a record that no longer exists. _TrimmedDataAccessException :: AsError a => Getting (First ServiceError) a ServiceError _TrimmedDataAccessException = _ServiceError . hasCode "TrimmedDataAccessException"@@ -183,12 +174,6 @@ _ResourceNotFoundException = _ServiceError . hasCode "ResourceNotFoundException" --- | Your request rate is too high. The AWS SDKs for DynamoDB automatically--- retry requests that receive this exception. Your request is eventually--- successful, unless your retry queue is too large to finish. Reduce the--- frequency of requests and use exponential backoff. For more information,--- go to--- <http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#APIRetries Error Retries and Exponential Backoff>--- in the /Amazon DynamoDB Developer Guide/.+-- | Your request rate is too high. The AWS SDKs for DynamoDB automatically retry requests that receive this exception. Your request is eventually successful, unless your retry queue is too large to finish. Reduce the frequency of requests and use exponential backoff. For more information, go to <http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#APIRetries Error Retries and Exponential Backoff> in the /Amazon DynamoDB Developer Guide/. _LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError _LimitExceededException = _ServiceError . hasCode "LimitExceededException"
gen/Network/AWS/DynamoDBStreams/Types/Product.hs view
@@ -21,14 +21,9 @@ import Network.AWS.Lens import Network.AWS.Prelude --- | Represents the data for an attribute. You can set one, and only one, of--- the elements.+-- | Represents the data for an attribute. You can set one, and only one, of the elements. ----- Each attribute in an item is a name-value pair. An attribute can be--- single-valued or multi-valued set. For example, a book item can have--- title and authors attributes. Each book has one title but can have many--- authors. The multi-valued attribute is a set; duplicate values are not--- allowed.+-- Each attribute in an item is a name-value pair. An attribute can be single-valued or multi-valued set. For example, a book item can have title and authors attributes. Each book has one title but can have many authors. The multi-valued attribute is a set; duplicate values are not allowed. -- -- /See:/ 'attributeValue' smart constructor. data AttributeValue = AttributeValue'@@ -148,15 +143,9 @@ instance NFData AttributeValue --- | Represents /a single element/ of a key schema. A key schema specifies--- the attributes that make up the primary key of a table, or the key--- attributes of an index.+-- | Represents /a single element/ of a key schema. A key schema specifies the attributes that make up the primary key of a table, or the key attributes of an index. ----- A /KeySchemaElement/ represents exactly one attribute of the primary--- key. For example, a hash type primary key would be represented by one--- /KeySchemaElement/. A hash-and-range type primary key would require one--- /KeySchemaElement/ for the hash attribute, and another--- /KeySchemaElement/ for the range attribute.+-- A /KeySchemaElement/ represents exactly one attribute of the primary key. For example, a hash type primary key would be represented by one /KeySchemaElement/. A hash-and-range type primary key would require one /KeySchemaElement/ for the hash attribute, and another /KeySchemaElement/ for the range attribute. -- -- /See:/ 'keySchemaElement' smart constructor. data KeySchemaElement = KeySchemaElement'@@ -185,8 +174,7 @@ kseAttributeName :: Lens' KeySchemaElement Text kseAttributeName = lens _kseAttributeName (\ s a -> s{_kseAttributeName = a}); --- | The attribute data, consisting of the data type and the attribute value--- itself.+-- | The attribute data, consisting of the data type and the attribute value itself. kseKeyType :: Lens' KeySchemaElement KeyType kseKeyType = lens _kseKeyType (\ s a -> s{_kseKeyType = a}); @@ -240,13 +228,11 @@ , _rEventId = Nothing } --- | The version number of the stream record format. Currently, this is--- /1.0/.+-- | The version number of the stream record format. Currently, this is /1.0/. rEventVersion :: Lens' Record (Maybe Text) rEventVersion = lens _rEventVersion (\ s a -> s{_rEventVersion = a}); --- | The main body of the stream record, containing all of the--- DynamoDB-specific fields.+-- | The main body of the stream record, containing all of the DynamoDB-specific fields. rDynamodb :: Lens' Record (Maybe StreamRecord) rDynamodb = lens _rDynamodb (\ s a -> s{_rDynamodb = a}); @@ -265,13 +251,11 @@ rEventName :: Lens' Record (Maybe OperationType) rEventName = lens _rEventName (\ s a -> s{_rEventName = a}); --- | The AWS service from which the stream record originated. For DynamoDB--- Streams, this is /aws:dynamodb/.+-- | The AWS service from which the stream record originated. For DynamoDB Streams, this is /aws:dynamodb/. rEventSource :: Lens' Record (Maybe Text) rEventSource = lens _rEventSource (\ s a -> s{_rEventSource = a}); --- | A globally unique identifier for the event that was recorded in this--- stream record.+-- | A globally unique identifier for the event that was recorded in this stream record. rEventId :: Lens' Record (Maybe Text) rEventId = lens _rEventId (\ s a -> s{_rEventId = a}); @@ -290,8 +274,7 @@ instance NFData Record --- | The beginning and ending sequence numbers for the stream records--- contained within a shard.+-- | The beginning and ending sequence numbers for the stream records contained within a shard. -- -- /See:/ 'sequenceNumberRange' smart constructor. data SequenceNumberRange = SequenceNumberRange'@@ -415,10 +398,7 @@ -- | A timestamp, in ISO 8601 format, for this stream. ----- Note that /LatestStreamLabel/ is not a unique identifier for the stream,--- because it is possible that a stream from another table might have the--- same timestamp. However, the combination of the following three elements--- is guaranteed to be unique:+-- Note that /LatestStreamLabel/ is not a unique identifier for the stream, because it is possible that a stream from another table might have the same timestamp. However, the combination of the following three elements is guaranteed to be unique: -- -- - the AWS customer ID. --@@ -500,26 +480,17 @@ , _sdCreationRequestDateTime = Nothing } --- | The shard ID of the item where the operation stopped, inclusive of the--- previous result set. Use this value to start a new operation, excluding--- this value in the new request.+-- | The shard ID of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request. ----- If 'LastEvaluatedShardId' is empty, then the \"last page\" of results--- has been processed and there is currently no more data to be retrieved.+-- If 'LastEvaluatedShardId' is empty, then the \"last page\" of results has been processed and there is currently no more data to be retrieved. ----- If 'LastEvaluatedShardId' is not empty, it does not necessarily mean--- that there is more data in the result set. The only way to know when you--- have reached the end of the result set is when 'LastEvaluatedShardId' is--- empty.+-- If 'LastEvaluatedShardId' is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is when 'LastEvaluatedShardId' is empty. sdLastEvaluatedShardId :: Lens' StreamDescription (Maybe Text) sdLastEvaluatedShardId = lens _sdLastEvaluatedShardId (\ s a -> s{_sdLastEvaluatedShardId = a}); -- | A timestamp, in ISO 8601 format, for this stream. ----- Note that /LatestStreamLabel/ is not a unique identifier for the stream,--- because it is possible that a stream from another table might have the--- same timestamp. However, the combination of the following three elements--- is guaranteed to be unique:+-- Note that /LatestStreamLabel/ is not a unique identifier for the stream, because it is possible that a stream from another table might have the same timestamp. However, the combination of the following three elements is guaranteed to be unique: -- -- - the AWS customer ID. --@@ -532,13 +503,11 @@ -- | Indicates the current status of the stream: ----- - 'ENABLING' - Streams is currently being enabled on the DynamoDB--- table.+-- - 'ENABLING' - Streams is currently being enabled on the DynamoDB table. -- -- - 'ENABLING' - the stream is enabled. ----- - 'DISABLING' - Streams is currently being disabled on the DynamoDB--- table.+-- - 'DISABLING' - Streams is currently being disabled on the DynamoDB table. -- -- - 'DISABLED' - the stream is disabled. --@@ -551,17 +520,13 @@ -- | Indicates the format of the records within this stream: ----- - 'KEYS_ONLY' - only the key attributes of items that were modified in--- the DynamoDB table.+-- - 'KEYS_ONLY' - only the key attributes of items that were modified in the DynamoDB table. ----- - 'NEW_IMAGE' - entire item from the table, as it appeared after they--- were modified.+-- - 'NEW_IMAGE' - entire item from the table, as it appeared after they were modified. ----- - 'OLD_IMAGE' - entire item from the table, as it appeared before they--- were modified.+-- - 'OLD_IMAGE' - entire item from the table, as it appeared before they were modified. ----- - 'NEW_AND_OLD_IMAGES' - both the new and the old images of the items--- from the table.+-- - 'NEW_AND_OLD_IMAGES' - both the new and the old images of the items from the table. -- sdStreamViewType :: Lens' StreamDescription (Maybe StreamViewType) sdStreamViewType = lens _sdStreamViewType (\ s a -> s{_sdStreamViewType = a});@@ -601,8 +566,7 @@ instance NFData StreamDescription --- | A description of a single data modification that was performed on an--- item in a DynamoDB table.+-- | A description of a single data modification that was performed on an item in a DynamoDB table. -- -- /See:/ 'streamRecord' smart constructor. data StreamRecord = StreamRecord'@@ -649,18 +613,15 @@ srSequenceNumber :: Lens' StreamRecord (Maybe Text) srSequenceNumber = lens _srSequenceNumber (\ s a -> s{_srSequenceNumber = a}); --- | The type of data from the modified DynamoDB item that was captured in--- this stream record:+-- | The type of data from the modified DynamoDB item that was captured in this stream record: -- -- - 'KEYS_ONLY' - only the key attributes of the modified item. -- -- - 'NEW_IMAGE' - the entire item, as it appears after it was modified. ----- - 'OLD_IMAGE' - the entire item, as it appeared before it was--- modified.+-- - 'OLD_IMAGE' - the entire item, as it appeared before it was modified. ----- - 'NEW_AND_OLD_IMAGES' — both the new and the old item images of the--- item.+-- - 'NEW_AND_OLD_IMAGES' — both the new and the old item images of the item. -- srStreamViewType :: Lens' StreamRecord (Maybe StreamViewType) srStreamViewType = lens _srStreamViewType (\ s a -> s{_srStreamViewType = a});
test/Test/AWS/Gen/DynamoDBStreams.hs view
@@ -28,31 +28,31 @@ -- fixtures :: TestTree -- fixtures = -- [ testGroup "request"--- [ testGetShardIterator $+-- [ requestGetShardIterator $ -- getShardIterator ----- , testGetRecords $+-- , requestGetRecords $ -- getRecords ----- , testListStreams $+-- , requestListStreams $ -- listStreams ----- , testDescribeStream $+-- , requestDescribeStream $ -- describeStream -- -- ] -- , testGroup "response"--- [ testGetShardIteratorResponse $+-- [ responseGetShardIterator $ -- getShardIteratorResponse ----- , testGetRecordsResponse $+-- , responseGetRecords $ -- getRecordsResponse ----- , testListStreamsResponse $+-- , responseListStreams $ -- listStreamsResponse ----- , testDescribeStreamResponse $+-- , responseDescribeStream $ -- describeStreamResponse -- -- ]@@ -60,51 +60,51 @@ -- Requests -testGetShardIterator :: GetShardIterator -> TestTree-testGetShardIterator = req+requestGetShardIterator :: GetShardIterator -> TestTree+requestGetShardIterator = req "GetShardIterator" "fixture/GetShardIterator.yaml" -testGetRecords :: GetRecords -> TestTree-testGetRecords = req+requestGetRecords :: GetRecords -> TestTree+requestGetRecords = req "GetRecords" "fixture/GetRecords.yaml" -testListStreams :: ListStreams -> TestTree-testListStreams = req+requestListStreams :: ListStreams -> TestTree+requestListStreams = req "ListStreams" "fixture/ListStreams.yaml" -testDescribeStream :: DescribeStream -> TestTree-testDescribeStream = req+requestDescribeStream :: DescribeStream -> TestTree+requestDescribeStream = req "DescribeStream" "fixture/DescribeStream.yaml" -- Responses -testGetShardIteratorResponse :: GetShardIteratorResponse -> TestTree-testGetShardIteratorResponse = res+responseGetShardIterator :: GetShardIteratorResponse -> TestTree+responseGetShardIterator = res "GetShardIteratorResponse" "fixture/GetShardIteratorResponse.proto" dynamoDBStreams (Proxy :: Proxy GetShardIterator) -testGetRecordsResponse :: GetRecordsResponse -> TestTree-testGetRecordsResponse = res+responseGetRecords :: GetRecordsResponse -> TestTree+responseGetRecords = res "GetRecordsResponse" "fixture/GetRecordsResponse.proto" dynamoDBStreams (Proxy :: Proxy GetRecords) -testListStreamsResponse :: ListStreamsResponse -> TestTree-testListStreamsResponse = res+responseListStreams :: ListStreamsResponse -> TestTree+responseListStreams = res "ListStreamsResponse" "fixture/ListStreamsResponse.proto" dynamoDBStreams (Proxy :: Proxy ListStreams) -testDescribeStreamResponse :: DescribeStreamResponse -> TestTree-testDescribeStreamResponse = res+responseDescribeStream :: DescribeStreamResponse -> TestTree+responseDescribeStream = res "DescribeStreamResponse" "fixture/DescribeStreamResponse.proto" dynamoDBStreams