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

Description

This operation allows you to perform reads and singleton writes on data stored in DynamoDB, using PartiQL.

Synopsis

Creating a Request

data ExecuteStatement Source #

See: newExecuteStatement smart constructor.

Constructors

ExecuteStatement' 

Fields

Instances

Instances details
Eq ExecuteStatement Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteStatement

Read ExecuteStatement Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteStatement

Show ExecuteStatement Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteStatement

Generic ExecuteStatement Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteStatement

Associated Types

type Rep ExecuteStatement :: Type -> Type #

NFData ExecuteStatement Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteStatement

Methods

rnf :: ExecuteStatement -> () #

Hashable ExecuteStatement Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteStatement

ToJSON ExecuteStatement Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteStatement

AWSRequest ExecuteStatement Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteStatement

Associated Types

type AWSResponse ExecuteStatement #

ToHeaders ExecuteStatement Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteStatement

ToPath ExecuteStatement Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteStatement

ToQuery ExecuteStatement Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteStatement

type Rep ExecuteStatement Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteStatement

type Rep ExecuteStatement = D1 ('MetaData "ExecuteStatement" "Amazonka.DynamoDB.ExecuteStatement" "libZSservicesZSamazonka-dynamodbZSamazonka-dynamodb" 'False) (C1 ('MetaCons "ExecuteStatement'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "consistentRead") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "parameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty AttributeValue))) :*: S1 ('MetaSel ('Just "statement") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse ExecuteStatement Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteStatement

newExecuteStatement Source #

Create a value of ExecuteStatement 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:consistentRead:ExecuteStatement', executeStatement_consistentRead - The consistency of a read operation. If set to true, then a strongly consistent read is used; otherwise, an eventually consistent read is used.

$sel:nextToken:ExecuteStatement', executeStatement_nextToken - Set this value to get remaining results, if NextToken was returned in the statement response.

$sel:parameters:ExecuteStatement', executeStatement_parameters - The parameters for the PartiQL statement, if any.

$sel:statement:ExecuteStatement', executeStatement_statement - The PartiQL statement representing the operation to run.

Request Lenses

executeStatement_consistentRead :: Lens' ExecuteStatement (Maybe Bool) Source #

The consistency of a read operation. If set to true, then a strongly consistent read is used; otherwise, an eventually consistent read is used.

executeStatement_nextToken :: Lens' ExecuteStatement (Maybe Text) Source #

Set this value to get remaining results, if NextToken was returned in the statement response.

executeStatement_parameters :: Lens' ExecuteStatement (Maybe (NonEmpty AttributeValue)) Source #

The parameters for the PartiQL statement, if any.

executeStatement_statement :: Lens' ExecuteStatement Text Source #

The PartiQL statement representing the operation to run.

Destructuring the Response

data ExecuteStatementResponse Source #

See: newExecuteStatementResponse smart constructor.

Constructors

ExecuteStatementResponse' 

Fields

  • items :: Maybe [HashMap Text AttributeValue]

    If a read operation was used, this property will contain the result of the reade operation; a map of attribute names and their values. For the write operations this value will be empty.

  • nextToken :: Maybe Text

    If the response of a read request exceeds the response payload limit DynamoDB will set this value in the response. If set, you can use that this value in the subsequent request to get the remaining results.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ExecuteStatementResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteStatement

Read ExecuteStatementResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteStatement

Show ExecuteStatementResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteStatement

Generic ExecuteStatementResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteStatement

Associated Types

type Rep ExecuteStatementResponse :: Type -> Type #

NFData ExecuteStatementResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteStatement

type Rep ExecuteStatementResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteStatement

type Rep ExecuteStatementResponse = D1 ('MetaData "ExecuteStatementResponse" "Amazonka.DynamoDB.ExecuteStatement" "libZSservicesZSamazonka-dynamodbZSamazonka-dynamodb" 'False) (C1 ('MetaCons "ExecuteStatementResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "items") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [HashMap Text AttributeValue])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newExecuteStatementResponse Source #

Create a value of ExecuteStatementResponse 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:items:ExecuteStatementResponse', executeStatementResponse_items - If a read operation was used, this property will contain the result of the reade operation; a map of attribute names and their values. For the write operations this value will be empty.

$sel:nextToken:ExecuteStatement', executeStatementResponse_nextToken - If the response of a read request exceeds the response payload limit DynamoDB will set this value in the response. If set, you can use that this value in the subsequent request to get the remaining results.

$sel:httpStatus:ExecuteStatementResponse', executeStatementResponse_httpStatus - The response's http status code.

Response Lenses

executeStatementResponse_items :: Lens' ExecuteStatementResponse (Maybe [HashMap Text AttributeValue]) Source #

If a read operation was used, this property will contain the result of the reade operation; a map of attribute names and their values. For the write operations this value will be empty.

executeStatementResponse_nextToken :: Lens' ExecuteStatementResponse (Maybe Text) Source #

If the response of a read request exceeds the response payload limit DynamoDB will set this value in the response. If set, you can use that this value in the subsequent request to get the remaining results.