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.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.

See: newWriteRequest smart constructor.

Constructors

WriteRequest' 

Fields

Instances

Instances details
Eq WriteRequest Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.WriteRequest

Read WriteRequest Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.WriteRequest

Show 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 #

NFData WriteRequest Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.WriteRequest

Methods

rnf :: WriteRequest -> () #

Hashable WriteRequest Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.WriteRequest

ToJSON WriteRequest Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.WriteRequest

FromJSON 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" "libZSservicesZSamazonka-dynamodbZSamazonka-dynamodb" 'False) (C1 ('MetaCons "WriteRequest'" 'PrefixI 'True) (S1 ('MetaSel ('Just "deleteRequest") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DeleteRequest)) :*: S1 ('MetaSel ('Just "putRequest") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PutRequest))))

newWriteRequest :: WriteRequest Source #

Create a value of WriteRequest 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:deleteRequest:WriteRequest', writeRequest_deleteRequest - A request to perform a DeleteItem operation.

$sel:putRequest:WriteRequest', writeRequest_putRequest - A request to perform a PutItem operation.

writeRequest_deleteRequest :: Lens' WriteRequest (Maybe DeleteRequest) Source #

A request to perform a DeleteItem operation.

writeRequest_putRequest :: Lens' WriteRequest (Maybe PutRequest) Source #

A request to perform a PutItem operation.