Copyright | (c) 2013-2021 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) |
Safe Haskell | None |
Synopsis
- defaultService :: Service
- _ExpiredIteratorException :: AsError a => Getting (First ServiceError) a ServiceError
- _InternalServerError :: AsError a => Getting (First ServiceError) a ServiceError
- _TrimmedDataAccessException :: AsError a => Getting (First ServiceError) a ServiceError
- _ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
- _LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError
- newtype KeyType where
- KeyType' {
- fromKeyType :: Text
- pattern KeyType_HASH :: KeyType
- pattern KeyType_RANGE :: KeyType
- KeyType' {
- newtype OperationType where
- OperationType' { }
- pattern OperationType_INSERT :: OperationType
- pattern OperationType_MODIFY :: OperationType
- pattern OperationType_REMOVE :: OperationType
- newtype ShardIteratorType where
- newtype StreamStatus where
- StreamStatus' { }
- pattern StreamStatus_DISABLED :: StreamStatus
- pattern StreamStatus_DISABLING :: StreamStatus
- pattern StreamStatus_ENABLED :: StreamStatus
- pattern StreamStatus_ENABLING :: StreamStatus
- newtype StreamViewType where
- StreamViewType' { }
- pattern StreamViewType_KEYS_ONLY :: StreamViewType
- pattern StreamViewType_NEW_AND_OLD_IMAGES :: StreamViewType
- pattern StreamViewType_NEW_IMAGE :: StreamViewType
- pattern StreamViewType_OLD_IMAGE :: StreamViewType
- data AttributeValue = AttributeValue' {}
- newAttributeValue :: AttributeValue
- attributeValue_l :: Lens' AttributeValue (Maybe [AttributeValue])
- attributeValue_ns :: Lens' AttributeValue (Maybe [Text])
- attributeValue_m :: Lens' AttributeValue (Maybe (HashMap Text AttributeValue))
- attributeValue_null :: Lens' AttributeValue (Maybe Bool)
- attributeValue_n :: Lens' AttributeValue (Maybe Text)
- attributeValue_bs :: Lens' AttributeValue (Maybe [ByteString])
- attributeValue_b :: Lens' AttributeValue (Maybe ByteString)
- attributeValue_ss :: Lens' AttributeValue (Maybe [Text])
- attributeValue_s :: Lens' AttributeValue (Maybe Text)
- attributeValue_bool :: Lens' AttributeValue (Maybe Bool)
- data Identity = Identity' {}
- newIdentity :: Identity
- identity_principalId :: Lens' Identity (Maybe Text)
- identity_type :: Lens' Identity (Maybe Text)
- data KeySchemaElement = KeySchemaElement' {
- attributeName :: Text
- keyType :: KeyType
- newKeySchemaElement :: Text -> KeyType -> KeySchemaElement
- keySchemaElement_attributeName :: Lens' KeySchemaElement Text
- keySchemaElement_keyType :: Lens' KeySchemaElement KeyType
- data Record = Record' {}
- newRecord :: Record
- record_userIdentity :: Lens' Record (Maybe Identity)
- record_eventVersion :: Lens' Record (Maybe Text)
- record_dynamodb :: Lens' Record (Maybe StreamRecord)
- record_awsRegion :: Lens' Record (Maybe Text)
- record_eventName :: Lens' Record (Maybe OperationType)
- record_eventSource :: Lens' Record (Maybe Text)
- record_eventID :: Lens' Record (Maybe Text)
- data SequenceNumberRange = SequenceNumberRange' {}
- newSequenceNumberRange :: SequenceNumberRange
- sequenceNumberRange_startingSequenceNumber :: Lens' SequenceNumberRange (Maybe Text)
- sequenceNumberRange_endingSequenceNumber :: Lens' SequenceNumberRange (Maybe Text)
- data Shard = Shard' {}
- newShard :: Shard
- shard_parentShardId :: Lens' Shard (Maybe Text)
- shard_sequenceNumberRange :: Lens' Shard (Maybe SequenceNumberRange)
- shard_shardId :: Lens' Shard (Maybe Text)
- data Stream = Stream' {}
- newStream :: Stream
- stream_streamLabel :: Lens' Stream (Maybe Text)
- stream_streamArn :: Lens' Stream (Maybe Text)
- stream_tableName :: Lens' Stream (Maybe Text)
- data StreamDescription = StreamDescription' {}
- newStreamDescription :: StreamDescription
- streamDescription_lastEvaluatedShardId :: Lens' StreamDescription (Maybe Text)
- streamDescription_streamLabel :: Lens' StreamDescription (Maybe Text)
- streamDescription_streamStatus :: Lens' StreamDescription (Maybe StreamStatus)
- streamDescription_keySchema :: Lens' StreamDescription (Maybe (NonEmpty KeySchemaElement))
- streamDescription_streamViewType :: Lens' StreamDescription (Maybe StreamViewType)
- streamDescription_streamArn :: Lens' StreamDescription (Maybe Text)
- streamDescription_shards :: Lens' StreamDescription (Maybe [Shard])
- streamDescription_tableName :: Lens' StreamDescription (Maybe Text)
- streamDescription_creationRequestDateTime :: Lens' StreamDescription (Maybe UTCTime)
- data StreamRecord = StreamRecord' {}
- newStreamRecord :: StreamRecord
- streamRecord_sizeBytes :: Lens' StreamRecord (Maybe Natural)
- streamRecord_sequenceNumber :: Lens' StreamRecord (Maybe Text)
- streamRecord_approximateCreationDateTime :: Lens' StreamRecord (Maybe UTCTime)
- streamRecord_streamViewType :: Lens' StreamRecord (Maybe StreamViewType)
- streamRecord_keys :: Lens' StreamRecord (Maybe (HashMap Text AttributeValue))
- streamRecord_oldImage :: Lens' StreamRecord (Maybe (HashMap Text AttributeValue))
- streamRecord_newImage :: Lens' StreamRecord (Maybe (HashMap Text AttributeValue))
Service Configuration
defaultService :: Service Source #
API version 2012-08-10
of the Amazon DynamoDB Streams SDK configuration.
Errors
_ExpiredIteratorException :: AsError a => Getting (First ServiceError) a ServiceError Source #
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.
_InternalServerError :: AsError a => Getting (First ServiceError) a ServiceError Source #
An error occurred on the server side.
_TrimmedDataAccessException :: AsError a => Getting (First ServiceError) a ServiceError Source #
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:
- 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.
_ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The operation tried to access a nonexistent table or index. The resource
might not be specified correctly, or its status might not be ACTIVE
.
_LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError Source #
There is no limit to the number of daily on-demand backups that can be taken.
Up to 50 simultaneous table operations are allowed per account. These
operations include CreateTable
, UpdateTable
,
DeleteTable
,UpdateTimeToLive
, RestoreTableFromBackup
, and
RestoreTableToPointInTime
.
The only exception is when you are creating a table with one or more secondary indexes. You can have up to 25 such requests running at a time; however, if the table or index specifications are complex, DynamoDB might temporarily reduce the number of concurrent operations.
There is a soft account quota of 256 tables.
KeyType
pattern KeyType_HASH :: KeyType | |
pattern KeyType_RANGE :: KeyType |
Instances
OperationType
newtype OperationType Source #
pattern OperationType_INSERT :: OperationType | |
pattern OperationType_MODIFY :: OperationType | |
pattern OperationType_REMOVE :: OperationType |
Instances
ShardIteratorType
newtype ShardIteratorType Source #
pattern ShardIteratorType_AFTER_SEQUENCE_NUMBER :: ShardIteratorType | |
pattern ShardIteratorType_AT_SEQUENCE_NUMBER :: ShardIteratorType | |
pattern ShardIteratorType_LATEST :: ShardIteratorType | |
pattern ShardIteratorType_TRIM_HORIZON :: ShardIteratorType |
Instances
StreamStatus
newtype StreamStatus Source #
pattern StreamStatus_DISABLED :: StreamStatus | |
pattern StreamStatus_DISABLING :: StreamStatus | |
pattern StreamStatus_ENABLED :: StreamStatus | |
pattern StreamStatus_ENABLING :: StreamStatus |
Instances
StreamViewType
newtype StreamViewType Source #
pattern StreamViewType_KEYS_ONLY :: StreamViewType | |
pattern StreamViewType_NEW_AND_OLD_IMAGES :: StreamViewType | |
pattern StreamViewType_NEW_IMAGE :: StreamViewType | |
pattern StreamViewType_OLD_IMAGE :: StreamViewType |
Instances
AttributeValue
data AttributeValue Source #
Represents the data for an attribute.
Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.
For more information, see Data Types in the Amazon DynamoDB Developer Guide.
See: newAttributeValue
smart constructor.
AttributeValue' | |
|
Instances
newAttributeValue :: AttributeValue Source #
Create a value of AttributeValue
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:l:AttributeValue'
, attributeValue_l
- An attribute of type List. For example:
"L": [ {"S": "Cookies"} , {"S": "Coffee"}, {"N", "3.14159"}]
$sel:ns:AttributeValue'
, attributeValue_ns
- An attribute of type Number Set. For example:
"NS": ["42.2", "-19", "7.5", "3.14"]
Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.
$sel:m:AttributeValue'
, attributeValue_m
- An attribute of type Map. For example:
"M": {"Name": {"S": "Joe"}, "Age": {"N": "35"}}
$sel:null:AttributeValue'
, attributeValue_null
- An attribute of type Null. For example:
"NULL": true
$sel:n:AttributeValue'
, attributeValue_n
- An attribute of type Number. For example:
"N": "123.45"
Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.
$sel:bs:AttributeValue'
, attributeValue_bs
- An attribute of type Binary Set. For example:
"BS": ["U3Vubnk=", "UmFpbnk=", "U25vd3k="]
$sel:b:AttributeValue'
, attributeValue_b
- An attribute of type Binary. For example:
"B": "dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk"
--
-- 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.
$sel:ss:AttributeValue'
, attributeValue_ss
- An attribute of type String Set. For example:
"SS": ["Giraffe", "Hippo" ,"Zebra"]
$sel:s:AttributeValue'
, attributeValue_s
- An attribute of type String. For example:
"S": "Hello"
$sel:bool:AttributeValue'
, attributeValue_bool
- An attribute of type Boolean. For example:
"BOOL": true
attributeValue_l :: Lens' AttributeValue (Maybe [AttributeValue]) Source #
An attribute of type List. For example:
"L": [ {"S": "Cookies"} , {"S": "Coffee"}, {"N", "3.14159"}]
attributeValue_ns :: Lens' AttributeValue (Maybe [Text]) Source #
An attribute of type Number Set. For example:
"NS": ["42.2", "-19", "7.5", "3.14"]
Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.
attributeValue_m :: Lens' AttributeValue (Maybe (HashMap Text AttributeValue)) Source #
An attribute of type Map. For example:
"M": {"Name": {"S": "Joe"}, "Age": {"N": "35"}}
attributeValue_null :: Lens' AttributeValue (Maybe Bool) Source #
An attribute of type Null. For example:
"NULL": true
attributeValue_n :: Lens' AttributeValue (Maybe Text) Source #
An attribute of type Number. For example:
"N": "123.45"
Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.
attributeValue_bs :: Lens' AttributeValue (Maybe [ByteString]) Source #
An attribute of type Binary Set. For example:
"BS": ["U3Vubnk=", "UmFpbnk=", "U25vd3k="]
attributeValue_b :: Lens' AttributeValue (Maybe ByteString) Source #
An attribute of type Binary. For example:
"B": "dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk"
--
-- 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.
attributeValue_ss :: Lens' AttributeValue (Maybe [Text]) Source #
An attribute of type String Set. For example:
"SS": ["Giraffe", "Hippo" ,"Zebra"]
attributeValue_s :: Lens' AttributeValue (Maybe Text) Source #
An attribute of type String. For example:
"S": "Hello"
attributeValue_bool :: Lens' AttributeValue (Maybe Bool) Source #
An attribute of type Boolean. For example:
"BOOL": true
Identity
Contains details about the type of identity that made the request.
See: newIdentity
smart constructor.
Instances
Eq Identity Source # | |
Read Identity Source # | |
Show Identity Source # | |
Generic Identity Source # | |
NFData Identity Source # | |
Defined in Amazonka.DynamoDBStreams.Types.Identity | |
Hashable Identity Source # | |
Defined in Amazonka.DynamoDBStreams.Types.Identity | |
FromJSON Identity Source # | |
type Rep Identity Source # | |
Defined in Amazonka.DynamoDBStreams.Types.Identity type Rep Identity = D1 ('MetaData "Identity" "Amazonka.DynamoDBStreams.Types.Identity" "libZSservicesZSamazonka-dynamodb-streamsZSamazonka-dynamodb-streams" 'False) (C1 ('MetaCons "Identity'" 'PrefixI 'True) (S1 ('MetaSel ('Just "principalId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) |
newIdentity :: Identity Source #
Create a value of Identity
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:principalId:Identity'
, identity_principalId
- A unique identifier for the entity that made the call. For Time To Live,
the principalId is "dynamodb.amazonaws.com".
$sel:type':Identity'
, identity_type
- The type of the identity. For Time To Live, the type is "Service".
identity_principalId :: Lens' Identity (Maybe Text) Source #
A unique identifier for the entity that made the call. For Time To Live, the principalId is "dynamodb.amazonaws.com".
identity_type :: Lens' Identity (Maybe Text) Source #
The type of the identity. For Time To Live, the type is "Service".
KeySchemaElement
data KeySchemaElement Source #
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 simple primary key would be represented by one
KeySchemaElement
(for the partition key). A composite primary key
would require one KeySchemaElement
for the partition key, and another
KeySchemaElement
for the sort key.
A KeySchemaElement
must be a scalar, top-level attribute (not a nested
attribute). The data type must be one of String, Number, or Binary. The
attribute cannot be nested within a List or a Map.
See: newKeySchemaElement
smart constructor.
KeySchemaElement' | |
|
Instances
:: Text | |
-> KeyType | |
-> KeySchemaElement |
Create a value of KeySchemaElement
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:attributeName:KeySchemaElement'
, keySchemaElement_attributeName
- The name of a key attribute.
$sel:keyType:KeySchemaElement'
, keySchemaElement_keyType
- The role that this key attribute will assume:
HASH
- partition keyRANGE
- sort key
The partition key of an item is also known as its hash attribute. The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.
The sort key of an item is also known as its range attribute. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
keySchemaElement_attributeName :: Lens' KeySchemaElement Text Source #
The name of a key attribute.
keySchemaElement_keyType :: Lens' KeySchemaElement KeyType Source #
The role that this key attribute will assume:
HASH
- partition keyRANGE
- sort key
The partition key of an item is also known as its hash attribute. The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.
The sort key of an item is also known as its range attribute. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
Record
A description of a unique event within a stream.
See: newRecord
smart constructor.
Record' | |
|
Instances
Create a value of Record
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:userIdentity:Record'
, record_userIdentity
- Items that are deleted by the Time to Live process after expiration have
the following fields:
Records[].userIdentity.type
"Service"
Records[].userIdentity.principalId
"dynamodb.amazonaws.com"
$sel:eventVersion:Record'
, record_eventVersion
- The version number of the stream record format. This number is updated
whenever the structure of Record
is modified.
Client applications must not assume that eventVersion
will remain at a
particular value, as this number is subject to change at any time. In
general, eventVersion
will only increase as the low-level DynamoDB
Streams API evolves.
$sel:dynamodb:Record'
, record_dynamodb
- The main body of the stream record, containing all of the
DynamoDB-specific fields.
$sel:awsRegion:Record'
, record_awsRegion
- The region in which the GetRecords
request was received.
$sel:eventName:Record'
, record_eventName
- The type of data modification that was performed on the DynamoDB table:
INSERT
- a new item was added to the table.MODIFY
- one or more of an existing item's attributes were modified.REMOVE
- the item was deleted from the table
$sel:eventSource:Record'
, record_eventSource
- The AWS service from which the stream record originated. For DynamoDB
Streams, this is aws:dynamodb
.
$sel:eventID:Record'
, record_eventID
- A globally unique identifier for the event that was recorded in this
stream record.
record_userIdentity :: Lens' Record (Maybe Identity) Source #
Items that are deleted by the Time to Live process after expiration have the following fields:
Records[].userIdentity.type
"Service"
Records[].userIdentity.principalId
"dynamodb.amazonaws.com"
record_eventVersion :: Lens' Record (Maybe Text) Source #
The version number of the stream record format. This number is updated
whenever the structure of Record
is modified.
Client applications must not assume that eventVersion
will remain at a
particular value, as this number is subject to change at any time. In
general, eventVersion
will only increase as the low-level DynamoDB
Streams API evolves.
record_dynamodb :: Lens' Record (Maybe StreamRecord) Source #
The main body of the stream record, containing all of the DynamoDB-specific fields.
record_awsRegion :: Lens' Record (Maybe Text) Source #
The region in which the GetRecords
request was received.
record_eventName :: Lens' Record (Maybe OperationType) Source #
The type of data modification that was performed on the DynamoDB table:
INSERT
- a new item was added to the table.MODIFY
- one or more of an existing item's attributes were modified.REMOVE
- the item was deleted from the table
record_eventSource :: Lens' Record (Maybe Text) Source #
The AWS service from which the stream record originated. For DynamoDB
Streams, this is aws:dynamodb
.
record_eventID :: Lens' Record (Maybe Text) Source #
A globally unique identifier for the event that was recorded in this stream record.
SequenceNumberRange
data SequenceNumberRange Source #
The beginning and ending sequence numbers for the stream records contained within a shard.
See: newSequenceNumberRange
smart constructor.
SequenceNumberRange' | |
|
Instances
newSequenceNumberRange :: SequenceNumberRange Source #
Create a value of SequenceNumberRange
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:startingSequenceNumber:SequenceNumberRange'
, sequenceNumberRange_startingSequenceNumber
- The first sequence number for the stream records contained within a
shard. String contains numeric characters only.
$sel:endingSequenceNumber:SequenceNumberRange'
, sequenceNumberRange_endingSequenceNumber
- The last sequence number for the stream records contained within a
shard. String contains numeric characters only.
sequenceNumberRange_startingSequenceNumber :: Lens' SequenceNumberRange (Maybe Text) Source #
The first sequence number for the stream records contained within a shard. String contains numeric characters only.
sequenceNumberRange_endingSequenceNumber :: Lens' SequenceNumberRange (Maybe Text) Source #
The last sequence number for the stream records contained within a shard. String contains numeric characters only.
Shard
A uniquely identified group of stream records within a stream.
See: newShard
smart constructor.
Shard' | |
|
Instances
Eq Shard Source # | |
Read Shard Source # | |
Show Shard Source # | |
Generic Shard Source # | |
NFData Shard Source # | |
Defined in Amazonka.DynamoDBStreams.Types.Shard | |
Hashable Shard Source # | |
Defined in Amazonka.DynamoDBStreams.Types.Shard | |
FromJSON Shard Source # | |
type Rep Shard Source # | |
Defined in Amazonka.DynamoDBStreams.Types.Shard type Rep Shard = D1 ('MetaData "Shard" "Amazonka.DynamoDBStreams.Types.Shard" "libZSservicesZSamazonka-dynamodb-streamsZSamazonka-dynamodb-streams" 'False) (C1 ('MetaCons "Shard'" 'PrefixI 'True) (S1 ('MetaSel ('Just "parentShardId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "sequenceNumberRange") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SequenceNumberRange)) :*: S1 ('MetaSel ('Just "shardId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) |
Create a value of Shard
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:parentShardId:Shard'
, shard_parentShardId
- The shard ID of the current shard's parent.
$sel:sequenceNumberRange:Shard'
, shard_sequenceNumberRange
- The range of possible sequence numbers for the shard.
$sel:shardId:Shard'
, shard_shardId
- The system-generated identifier for this shard.
shard_sequenceNumberRange :: Lens' Shard (Maybe SequenceNumberRange) Source #
The range of possible sequence numbers for the shard.
Stream
Represents all of the data describing a particular stream.
See: newStream
smart constructor.
Stream' | |
|
Instances
Eq Stream Source # | |
Read Stream Source # | |
Show Stream Source # | |
Generic Stream Source # | |
NFData Stream Source # | |
Defined in Amazonka.DynamoDBStreams.Types.Stream | |
Hashable Stream Source # | |
Defined in Amazonka.DynamoDBStreams.Types.Stream | |
FromJSON Stream Source # | |
type Rep Stream Source # | |
Defined in Amazonka.DynamoDBStreams.Types.Stream type Rep Stream = D1 ('MetaData "Stream" "Amazonka.DynamoDBStreams.Types.Stream" "libZSservicesZSamazonka-dynamodb-streamsZSamazonka-dynamodb-streams" 'False) (C1 ('MetaCons "Stream'" 'PrefixI 'True) (S1 ('MetaSel ('Just "streamLabel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "streamArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tableName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) |
Create a value of Stream
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:streamLabel:Stream'
, stream_streamLabel
- 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:
- the AWS customer ID.
- the table name
- the
StreamLabel
$sel:streamArn:Stream'
, stream_streamArn
- The Amazon Resource Name (ARN) for the stream.
$sel:tableName:Stream'
, stream_tableName
- The DynamoDB table with which the stream is associated.
stream_streamLabel :: Lens' Stream (Maybe Text) Source #
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:
- the AWS customer ID.
- the table name
- the
StreamLabel
stream_streamArn :: Lens' Stream (Maybe Text) Source #
The Amazon Resource Name (ARN) for the stream.
stream_tableName :: Lens' Stream (Maybe Text) Source #
The DynamoDB table with which the stream is associated.
StreamDescription
data StreamDescription Source #
Represents all of the data describing a particular stream.
See: newStreamDescription
smart constructor.
StreamDescription' | |
|
Instances
newStreamDescription :: StreamDescription Source #
Create a value of StreamDescription
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:lastEvaluatedShardId:StreamDescription'
, streamDescription_lastEvaluatedShardId
- 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 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.
$sel:streamLabel:StreamDescription'
, streamDescription_streamLabel
- 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:
- the AWS customer ID.
- the table name
- the
StreamLabel
$sel:streamStatus:StreamDescription'
, streamDescription_streamStatus
- Indicates the current status of the stream:
ENABLING
- Streams is currently being enabled on the DynamoDB table.ENABLED
- the stream is enabled.DISABLING
- Streams is currently being disabled on the DynamoDB table.DISABLED
- the stream is disabled.
$sel:keySchema:StreamDescription'
, streamDescription_keySchema
- The key attribute(s) of the stream's DynamoDB table.
$sel:streamViewType:StreamDescription'
, streamDescription_streamViewType
- Indicates the format of the records within this stream:
KEYS_ONLY
- only the key attributes of items that were modified in the DynamoDB table.NEW_IMAGE
- entire items from the table, as they appeared after they were modified.OLD_IMAGE
- entire items from the table, as they appeared before they were modified.NEW_AND_OLD_IMAGES
- both the new and the old images of the items from the table.
$sel:streamArn:StreamDescription'
, streamDescription_streamArn
- The Amazon Resource Name (ARN) for the stream.
$sel:shards:StreamDescription'
, streamDescription_shards
- The shards that comprise the stream.
$sel:tableName:StreamDescription'
, streamDescription_tableName
- The DynamoDB table with which the stream is associated.
$sel:creationRequestDateTime:StreamDescription'
, streamDescription_creationRequestDateTime
- The date and time when the request to create this stream was issued.
streamDescription_lastEvaluatedShardId :: Lens' StreamDescription (Maybe Text) Source #
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 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.
streamDescription_streamLabel :: Lens' StreamDescription (Maybe Text) Source #
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:
- the AWS customer ID.
- the table name
- the
StreamLabel
streamDescription_streamStatus :: Lens' StreamDescription (Maybe StreamStatus) Source #
Indicates the current status of the stream:
ENABLING
- Streams is currently being enabled on the DynamoDB table.ENABLED
- the stream is enabled.DISABLING
- Streams is currently being disabled on the DynamoDB table.DISABLED
- the stream is disabled.
streamDescription_keySchema :: Lens' StreamDescription (Maybe (NonEmpty KeySchemaElement)) Source #
The key attribute(s) of the stream's DynamoDB table.
streamDescription_streamViewType :: Lens' StreamDescription (Maybe StreamViewType) Source #
Indicates the format of the records within this stream:
KEYS_ONLY
- only the key attributes of items that were modified in the DynamoDB table.NEW_IMAGE
- entire items from the table, as they appeared after they were modified.OLD_IMAGE
- entire items from the table, as they appeared before they were modified.NEW_AND_OLD_IMAGES
- both the new and the old images of the items from the table.
streamDescription_streamArn :: Lens' StreamDescription (Maybe Text) Source #
The Amazon Resource Name (ARN) for the stream.
streamDescription_shards :: Lens' StreamDescription (Maybe [Shard]) Source #
The shards that comprise the stream.
streamDescription_tableName :: Lens' StreamDescription (Maybe Text) Source #
The DynamoDB table with which the stream is associated.
streamDescription_creationRequestDateTime :: Lens' StreamDescription (Maybe UTCTime) Source #
The date and time when the request to create this stream was issued.
StreamRecord
data StreamRecord Source #
A description of a single data modification that was performed on an item in a DynamoDB table.
See: newStreamRecord
smart constructor.
StreamRecord' | |
|
Instances
newStreamRecord :: StreamRecord Source #
Create a value of StreamRecord
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:sizeBytes:StreamRecord'
, streamRecord_sizeBytes
- The size of the stream record, in bytes.
$sel:sequenceNumber:StreamRecord'
, streamRecord_sequenceNumber
- The sequence number of the stream record.
$sel:approximateCreationDateTime:StreamRecord'
, streamRecord_approximateCreationDateTime
- The approximate date and time when the stream record was created, in
UNIX epoch time format.
$sel:streamViewType:StreamRecord'
, streamRecord_streamViewType
- 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 appeared after 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.
$sel:keys:StreamRecord'
, streamRecord_keys
- The primary key attribute(s) for the DynamoDB item that was modified.
$sel:oldImage:StreamRecord'
, streamRecord_oldImage
- The item in the DynamoDB table as it appeared before it was modified.
$sel:newImage':StreamRecord'
, streamRecord_newImage
- The item in the DynamoDB table as it appeared after it was modified.
streamRecord_sizeBytes :: Lens' StreamRecord (Maybe Natural) Source #
The size of the stream record, in bytes.
streamRecord_sequenceNumber :: Lens' StreamRecord (Maybe Text) Source #
The sequence number of the stream record.
streamRecord_approximateCreationDateTime :: Lens' StreamRecord (Maybe UTCTime) Source #
The approximate date and time when the stream record was created, in UNIX epoch time format.
streamRecord_streamViewType :: Lens' StreamRecord (Maybe StreamViewType) Source #
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 appeared after 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.
streamRecord_keys :: Lens' StreamRecord (Maybe (HashMap Text AttributeValue)) Source #
The primary key attribute(s) for the DynamoDB item that was modified.
streamRecord_oldImage :: Lens' StreamRecord (Maybe (HashMap Text AttributeValue)) Source #
The item in the DynamoDB table as it appeared before it was modified.
streamRecord_newImage :: Lens' StreamRecord (Maybe (HashMap Text AttributeValue)) Source #
The item in the DynamoDB table as it appeared after it was modified.