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

Description

TransactGetItems is a synchronous operation that atomically retrieves multiple items from one or more tables (but not from indexes) in a single account and Region. A TransactGetItems call can contain up to 25 TransactGetItem objects, each of which contains a Get structure that specifies an item to retrieve from a table in the account and Region. A call to TransactGetItems cannot retrieve items from tables in more than one AWS account or Region. The aggregate size of the items in the transaction cannot exceed 4 MB.

DynamoDB rejects the entire TransactGetItems request if any of the following is true:

  • A conflicting operation is in the process of updating an item to be read.
  • There is insufficient provisioned capacity for the transaction to be completed.
  • There is a user error, such as an invalid data format.
  • The aggregate size of the items in the transaction cannot exceed 4 MB.
Synopsis

Creating a Request

data TransactGetItems Source #

See: newTransactGetItems smart constructor.

Constructors

TransactGetItems' 

Fields

Instances

Instances details
Eq TransactGetItems Source # 
Instance details

Defined in Amazonka.DynamoDB.TransactGetItems

Read TransactGetItems Source # 
Instance details

Defined in Amazonka.DynamoDB.TransactGetItems

Show TransactGetItems Source # 
Instance details

Defined in Amazonka.DynamoDB.TransactGetItems

Generic TransactGetItems Source # 
Instance details

Defined in Amazonka.DynamoDB.TransactGetItems

Associated Types

type Rep TransactGetItems :: Type -> Type #

NFData TransactGetItems Source # 
Instance details

Defined in Amazonka.DynamoDB.TransactGetItems

Methods

rnf :: TransactGetItems -> () #

Hashable TransactGetItems Source # 
Instance details

Defined in Amazonka.DynamoDB.TransactGetItems

ToJSON TransactGetItems Source # 
Instance details

Defined in Amazonka.DynamoDB.TransactGetItems

AWSRequest TransactGetItems Source # 
Instance details

Defined in Amazonka.DynamoDB.TransactGetItems

Associated Types

type AWSResponse TransactGetItems #

ToHeaders TransactGetItems Source # 
Instance details

Defined in Amazonka.DynamoDB.TransactGetItems

ToPath TransactGetItems Source # 
Instance details

Defined in Amazonka.DynamoDB.TransactGetItems

ToQuery TransactGetItems Source # 
Instance details

Defined in Amazonka.DynamoDB.TransactGetItems

type Rep TransactGetItems Source # 
Instance details

Defined in Amazonka.DynamoDB.TransactGetItems

type Rep TransactGetItems = D1 ('MetaData "TransactGetItems" "Amazonka.DynamoDB.TransactGetItems" "libZSservicesZSamazonka-dynamodbZSamazonka-dynamodb" 'False) (C1 ('MetaCons "TransactGetItems'" 'PrefixI 'True) (S1 ('MetaSel ('Just "returnConsumedCapacity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ReturnConsumedCapacity)) :*: S1 ('MetaSel ('Just "transactItems") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty TransactGetItem))))
type AWSResponse TransactGetItems Source # 
Instance details

Defined in Amazonka.DynamoDB.TransactGetItems

newTransactGetItems Source #

Create a value of TransactGetItems 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:returnConsumedCapacity:TransactGetItems', transactGetItems_returnConsumedCapacity - A value of TOTAL causes consumed capacity information to be returned, and a value of NONE prevents that information from being returned. No other value is valid.

$sel:transactItems:TransactGetItems', transactGetItems_transactItems - An ordered array of up to 25 TransactGetItem objects, each of which contains a Get structure.

Request Lenses

transactGetItems_returnConsumedCapacity :: Lens' TransactGetItems (Maybe ReturnConsumedCapacity) Source #

A value of TOTAL causes consumed capacity information to be returned, and a value of NONE prevents that information from being returned. No other value is valid.

transactGetItems_transactItems :: Lens' TransactGetItems (NonEmpty TransactGetItem) Source #

An ordered array of up to 25 TransactGetItem objects, each of which contains a Get structure.

Destructuring the Response

data TransactGetItemsResponse Source #

See: newTransactGetItemsResponse smart constructor.

Constructors

TransactGetItemsResponse' 

Fields

  • responses :: Maybe (NonEmpty ItemResponse)

    An ordered array of up to 25 ItemResponse objects, each of which corresponds to the TransactGetItem object in the same position in the TransactItems array. Each ItemResponse object contains a Map of the name-value pairs that are the projected attributes of the requested item.

    If a requested item could not be retrieved, the corresponding ItemResponse object is Null, or if the requested item has no projected attributes, the corresponding ItemResponse object is an empty Map.

  • consumedCapacity :: Maybe [ConsumedCapacity]

    If the ReturnConsumedCapacity value was TOTAL, this is an array of ConsumedCapacity objects, one for each table addressed by TransactGetItem objects in the TransactItems parameter. These ConsumedCapacity objects report the read-capacity units consumed by the TransactGetItems call in that table.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq TransactGetItemsResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.TransactGetItems

Read TransactGetItemsResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.TransactGetItems

Show TransactGetItemsResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.TransactGetItems

Generic TransactGetItemsResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.TransactGetItems

Associated Types

type Rep TransactGetItemsResponse :: Type -> Type #

NFData TransactGetItemsResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.TransactGetItems

type Rep TransactGetItemsResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.TransactGetItems

type Rep TransactGetItemsResponse = D1 ('MetaData "TransactGetItemsResponse" "Amazonka.DynamoDB.TransactGetItems" "libZSservicesZSamazonka-dynamodbZSamazonka-dynamodb" 'False) (C1 ('MetaCons "TransactGetItemsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "responses") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty ItemResponse))) :*: (S1 ('MetaSel ('Just "consumedCapacity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ConsumedCapacity])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newTransactGetItemsResponse Source #

Create a value of TransactGetItemsResponse 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:responses:TransactGetItemsResponse', transactGetItemsResponse_responses - An ordered array of up to 25 ItemResponse objects, each of which corresponds to the TransactGetItem object in the same position in the TransactItems array. Each ItemResponse object contains a Map of the name-value pairs that are the projected attributes of the requested item.

If a requested item could not be retrieved, the corresponding ItemResponse object is Null, or if the requested item has no projected attributes, the corresponding ItemResponse object is an empty Map.

$sel:consumedCapacity:TransactGetItemsResponse', transactGetItemsResponse_consumedCapacity - If the ReturnConsumedCapacity value was TOTAL, this is an array of ConsumedCapacity objects, one for each table addressed by TransactGetItem objects in the TransactItems parameter. These ConsumedCapacity objects report the read-capacity units consumed by the TransactGetItems call in that table.

$sel:httpStatus:TransactGetItemsResponse', transactGetItemsResponse_httpStatus - The response's http status code.

Response Lenses

transactGetItemsResponse_responses :: Lens' TransactGetItemsResponse (Maybe (NonEmpty ItemResponse)) Source #

An ordered array of up to 25 ItemResponse objects, each of which corresponds to the TransactGetItem object in the same position in the TransactItems array. Each ItemResponse object contains a Map of the name-value pairs that are the projected attributes of the requested item.

If a requested item could not be retrieved, the corresponding ItemResponse object is Null, or if the requested item has no projected attributes, the corresponding ItemResponse object is an empty Map.

transactGetItemsResponse_consumedCapacity :: Lens' TransactGetItemsResponse (Maybe [ConsumedCapacity]) Source #

If the ReturnConsumedCapacity value was TOTAL, this is an array of ConsumedCapacity objects, one for each table addressed by TransactGetItem objects in the TransactItems parameter. These ConsumedCapacity objects report the read-capacity units consumed by the TransactGetItems call in that table.