libZSservicesZSamazonka-dynamodbZSamazonka-dynamodb
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.DynamoDB.Types.StreamSpecification

Description

 
Synopsis

Documentation

data StreamSpecification Source #

Represents the DynamoDB Streams configuration for a table in DynamoDB.

See: newStreamSpecification smart constructor.

Constructors

StreamSpecification' 

Fields

  • streamViewType :: Maybe StreamViewType

    When an item in the table is modified, StreamViewType determines what information is written to the stream for this table. Valid values for StreamViewType are:

    • KEYS_ONLY - Only the key attributes of the modified item are written to the stream.
    • NEW_IMAGE - The entire item, as it appears after it was modified, is written to the stream.
    • OLD_IMAGE - The entire item, as it appeared before it was modified, is written to the stream.
    • NEW_AND_OLD_IMAGES - Both the new and the old item images of the item are written to the stream.
  • streamEnabled :: Bool

    Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.

Instances

Instances details
Eq StreamSpecification Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.StreamSpecification

Read StreamSpecification Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.StreamSpecification

Show StreamSpecification Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.StreamSpecification

Generic StreamSpecification Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.StreamSpecification

Associated Types

type Rep StreamSpecification :: Type -> Type #

NFData StreamSpecification Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.StreamSpecification

Methods

rnf :: StreamSpecification -> () #

Hashable StreamSpecification Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.StreamSpecification

ToJSON StreamSpecification Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.StreamSpecification

FromJSON StreamSpecification Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.StreamSpecification

type Rep StreamSpecification Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.StreamSpecification

type Rep StreamSpecification = D1 ('MetaData "StreamSpecification" "Amazonka.DynamoDB.Types.StreamSpecification" "libZSservicesZSamazonka-dynamodbZSamazonka-dynamodb" 'False) (C1 ('MetaCons "StreamSpecification'" 'PrefixI 'True) (S1 ('MetaSel ('Just "streamViewType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe StreamViewType)) :*: S1 ('MetaSel ('Just "streamEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)))

newStreamSpecification Source #

Create a value of StreamSpecification 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:streamViewType:StreamSpecification', streamSpecification_streamViewType - When an item in the table is modified, StreamViewType determines what information is written to the stream for this table. Valid values for StreamViewType are:

  • KEYS_ONLY - Only the key attributes of the modified item are written to the stream.
  • NEW_IMAGE - The entire item, as it appears after it was modified, is written to the stream.
  • OLD_IMAGE - The entire item, as it appeared before it was modified, is written to the stream.
  • NEW_AND_OLD_IMAGES - Both the new and the old item images of the item are written to the stream.

$sel:streamEnabled:StreamSpecification', streamSpecification_streamEnabled - Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.

streamSpecification_streamViewType :: Lens' StreamSpecification (Maybe StreamViewType) Source #

When an item in the table is modified, StreamViewType determines what information is written to the stream for this table. Valid values for StreamViewType are:

  • KEYS_ONLY - Only the key attributes of the modified item are written to the stream.
  • NEW_IMAGE - The entire item, as it appears after it was modified, is written to the stream.
  • OLD_IMAGE - The entire item, as it appeared before it was modified, is written to the stream.
  • NEW_AND_OLD_IMAGES - Both the new and the old item images of the item are written to the stream.

streamSpecification_streamEnabled :: Lens' StreamSpecification Bool Source #

Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.