amazonka-cognito-sync-2.0: Amazon Cognito Sync 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.CognitoSync.Types.RecordPatch

Description

 
Synopsis

Documentation

data RecordPatch Source #

An update operation for a record.

See: newRecordPatch smart constructor.

Constructors

RecordPatch' 

Fields

Instances

Instances details
ToJSON RecordPatch Source # 
Instance details

Defined in Amazonka.CognitoSync.Types.RecordPatch

Generic RecordPatch Source # 
Instance details

Defined in Amazonka.CognitoSync.Types.RecordPatch

Associated Types

type Rep RecordPatch :: Type -> Type #

Read RecordPatch Source # 
Instance details

Defined in Amazonka.CognitoSync.Types.RecordPatch

Show RecordPatch Source # 
Instance details

Defined in Amazonka.CognitoSync.Types.RecordPatch

NFData RecordPatch Source # 
Instance details

Defined in Amazonka.CognitoSync.Types.RecordPatch

Methods

rnf :: RecordPatch -> () #

Eq RecordPatch Source # 
Instance details

Defined in Amazonka.CognitoSync.Types.RecordPatch

Hashable RecordPatch Source # 
Instance details

Defined in Amazonka.CognitoSync.Types.RecordPatch

type Rep RecordPatch Source # 
Instance details

Defined in Amazonka.CognitoSync.Types.RecordPatch

type Rep RecordPatch = D1 ('MetaData "RecordPatch" "Amazonka.CognitoSync.Types.RecordPatch" "amazonka-cognito-sync-2.0-4eAo0O3jWiUGlkSwv2vKaB" 'False) (C1 ('MetaCons "RecordPatch'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "deviceLastModifiedDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "op") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Operation) :*: (S1 ('MetaSel ('Just "key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "syncCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Integer)))))

newRecordPatch Source #

Create a value of RecordPatch 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:deviceLastModifiedDate:RecordPatch', recordPatch_deviceLastModifiedDate - The last modified date of the client device.

$sel:value:RecordPatch', recordPatch_value - The value associated with the record patch.

$sel:op:RecordPatch', recordPatch_op - An operation, either replace or remove.

$sel:key:RecordPatch', recordPatch_key - The key associated with the record patch.

$sel:syncCount:RecordPatch', recordPatch_syncCount - Last known server sync count for this record. Set to 0 if unknown.

recordPatch_deviceLastModifiedDate :: Lens' RecordPatch (Maybe UTCTime) Source #

The last modified date of the client device.

recordPatch_value :: Lens' RecordPatch (Maybe Text) Source #

The value associated with the record patch.

recordPatch_op :: Lens' RecordPatch Operation Source #

An operation, either replace or remove.

recordPatch_key :: Lens' RecordPatch Text Source #

The key associated with the record patch.

recordPatch_syncCount :: Lens' RecordPatch Integer Source #

Last known server sync count for this record. Set to 0 if unknown.