amazonka-sdb-2.0: Amazon SimpleDB SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.SDB.Types.UpdateCondition

Description

 
Synopsis

Documentation

data UpdateCondition Source #

Specifies the conditions under which data should be updated. If an update condition is specified for a request, the data will only be updated if the condition is satisfied. For example, if an attribute with a specific name and value exists, or if a specific attribute doesn't exist.

See: newUpdateCondition smart constructor.

Constructors

UpdateCondition' 

Fields

  • exists :: Maybe Bool

    A value specifying whether or not the specified attribute must exist with the specified value in order for the update condition to be satisfied. Specify true if the attribute must exist for the update condition to be satisfied. Specify false if the attribute should not exist in order for the update condition to be satisfied.

  • name :: Maybe Text

    The name of the attribute involved in the condition.

  • value :: Maybe Text

    The value of an attribute. This value can only be specified when the Exists parameter is equal to true.

Instances

Instances details
ToQuery UpdateCondition Source # 
Instance details

Defined in Amazonka.SDB.Types.UpdateCondition

Generic UpdateCondition Source # 
Instance details

Defined in Amazonka.SDB.Types.UpdateCondition

Associated Types

type Rep UpdateCondition :: Type -> Type #

Read UpdateCondition Source # 
Instance details

Defined in Amazonka.SDB.Types.UpdateCondition

Show UpdateCondition Source # 
Instance details

Defined in Amazonka.SDB.Types.UpdateCondition

NFData UpdateCondition Source # 
Instance details

Defined in Amazonka.SDB.Types.UpdateCondition

Methods

rnf :: UpdateCondition -> () #

Eq UpdateCondition Source # 
Instance details

Defined in Amazonka.SDB.Types.UpdateCondition

Hashable UpdateCondition Source # 
Instance details

Defined in Amazonka.SDB.Types.UpdateCondition

type Rep UpdateCondition Source # 
Instance details

Defined in Amazonka.SDB.Types.UpdateCondition

type Rep UpdateCondition = D1 ('MetaData "UpdateCondition" "Amazonka.SDB.Types.UpdateCondition" "amazonka-sdb-2.0-7a0e7nVPNy1GutfrhcqnW8" 'False) (C1 ('MetaCons "UpdateCondition'" 'PrefixI 'True) (S1 ('MetaSel ('Just "exists") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newUpdateCondition :: UpdateCondition Source #

Create a value of UpdateCondition 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:exists:UpdateCondition', updateCondition_exists - A value specifying whether or not the specified attribute must exist with the specified value in order for the update condition to be satisfied. Specify true if the attribute must exist for the update condition to be satisfied. Specify false if the attribute should not exist in order for the update condition to be satisfied.

$sel:name:UpdateCondition', updateCondition_name - The name of the attribute involved in the condition.

$sel:value:UpdateCondition', updateCondition_value - The value of an attribute. This value can only be specified when the Exists parameter is equal to true.

updateCondition_exists :: Lens' UpdateCondition (Maybe Bool) Source #

A value specifying whether or not the specified attribute must exist with the specified value in order for the update condition to be satisfied. Specify true if the attribute must exist for the update condition to be satisfied. Specify false if the attribute should not exist in order for the update condition to be satisfied.

updateCondition_name :: Lens' UpdateCondition (Maybe Text) Source #

The name of the attribute involved in the condition.

updateCondition_value :: Lens' UpdateCondition (Maybe Text) Source #

The value of an attribute. This value can only be specified when the Exists parameter is equal to true.