amazonka-dynamodb-2.0: Amazon DynamoDB SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka.com>
Stabilityexperimental
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.DynamoDB.Types.WriteRequest

Description

 
Synopsis

Documentation

data WriteRequest Source #

Represents an operation to perform - either DeleteItem or PutItem. You can only request one of these operations, not both, in a single WriteRequest. If you do need to perform both of these operations, you need to provide two separate WriteRequest objects.

For more information, see WriteRequest in the Amazon DynamoDB Developer Guide.

Constructors

DeleteRequest (Map Text AttributeValue)

A request to perform a DeleteItem operation.

A map of attribute name to attribute values, representing the primary key of the item to delete. All of the table's primary key attributes must be specified, and their data types must match those of the table's key schema.

PutRequest (Map Text AttributeValue)

A request to perform a PutItem operation.

A map of attribute name to attribute values, representing the primary key of an item to be processed by PutItem. All of the table's primary key attributes must be specified, and their data types must match those of the table's key schema. If any attributes are present in the item that are part of an index key schema for the table, their types must match the index key schema.

Instances

Instances details
FromJSON WriteRequest Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.WriteRequest

ToJSON WriteRequest Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.WriteRequest

Generic WriteRequest Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.WriteRequest

Associated Types

type Rep WriteRequest :: Type -> Type #

Read WriteRequest Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.WriteRequest

Show WriteRequest Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.WriteRequest

NFData WriteRequest Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.WriteRequest

Methods

rnf :: WriteRequest -> () #

Eq WriteRequest Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.WriteRequest

Hashable WriteRequest Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.WriteRequest

type Rep WriteRequest Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.WriteRequest

type Rep WriteRequest = D1 ('MetaData "WriteRequest" "Amazonka.DynamoDB.Types.WriteRequest" "amazonka-dynamodb-2.0-GNxlseyeFiu302JKQwQrUS" 'False) (C1 ('MetaCons "DeleteRequest" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Map Text AttributeValue))) :+: C1 ('MetaCons "PutRequest" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Map Text AttributeValue))))