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

Description

 
Synopsis

Documentation

data Update Source #

Represents a request to perform an UpdateItem operation.

See: newUpdate smart constructor.

Constructors

Update' 

Fields

Instances

Instances details
Eq Update Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.Update

Methods

(==) :: Update -> Update -> Bool #

(/=) :: Update -> Update -> Bool #

Read Update Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.Update

Show Update Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.Update

Generic Update Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.Update

Associated Types

type Rep Update :: Type -> Type #

Methods

from :: Update -> Rep Update x #

to :: Rep Update x -> Update #

NFData Update Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.Update

Methods

rnf :: Update -> () #

Hashable Update Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.Update

Methods

hashWithSalt :: Int -> Update -> Int #

hash :: Update -> Int #

ToJSON Update Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.Update

type Rep Update Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.Update

type Rep Update = D1 ('MetaData "Update" "Amazonka.DynamoDB.Types.Update" "libZSservicesZSamazonka-dynamodbZSamazonka-dynamodb" 'False) (C1 ('MetaCons "Update'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "expressionAttributeNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: (S1 ('MetaSel ('Just "expressionAttributeValues") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text AttributeValue))) :*: S1 ('MetaSel ('Just "returnValuesOnConditionCheckFailure") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ReturnValuesOnConditionCheckFailure)))) :*: ((S1 ('MetaSel ('Just "conditionExpression") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap Text AttributeValue))) :*: (S1 ('MetaSel ('Just "updateExpression") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "tableName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newUpdate Source #

Create a value of Update 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:expressionAttributeNames:Update', update_expressionAttributeNames - One or more substitution tokens for attribute names in an expression.

$sel:expressionAttributeValues:Update', update_expressionAttributeValues - One or more values that can be substituted in an expression.

$sel:returnValuesOnConditionCheckFailure:Update', update_returnValuesOnConditionCheckFailure - Use ReturnValuesOnConditionCheckFailure to get the item attributes if the Update condition fails. For ReturnValuesOnConditionCheckFailure, the valid values are: NONE, ALL_OLD, UPDATED_OLD, ALL_NEW, UPDATED_NEW.

$sel:conditionExpression:Update', update_conditionExpression - A condition that must be satisfied in order for a conditional update to succeed.

$sel:key:Update', update_key - The primary key of the item to be updated. Each element consists of an attribute name and a value for that attribute.

$sel:updateExpression:Update', update_updateExpression - An expression that defines one or more attributes to be updated, the action to be performed on them, and new value(s) for them.

$sel:tableName:Update', update_tableName - Name of the table for the UpdateItem request.

update_expressionAttributeNames :: Lens' Update (Maybe (HashMap Text Text)) Source #

One or more substitution tokens for attribute names in an expression.

update_expressionAttributeValues :: Lens' Update (Maybe (HashMap Text AttributeValue)) Source #

One or more values that can be substituted in an expression.

update_returnValuesOnConditionCheckFailure :: Lens' Update (Maybe ReturnValuesOnConditionCheckFailure) Source #

Use ReturnValuesOnConditionCheckFailure to get the item attributes if the Update condition fails. For ReturnValuesOnConditionCheckFailure, the valid values are: NONE, ALL_OLD, UPDATED_OLD, ALL_NEW, UPDATED_NEW.

update_conditionExpression :: Lens' Update (Maybe Text) Source #

A condition that must be satisfied in order for a conditional update to succeed.

update_key :: Lens' Update (HashMap Text AttributeValue) Source #

The primary key of the item to be updated. Each element consists of an attribute name and a value for that attribute.

update_updateExpression :: Lens' Update Text Source #

An expression that defines one or more attributes to be updated, the action to be performed on them, and new value(s) for them.

update_tableName :: Lens' Update Text Source #

Name of the table for the UpdateItem request.