You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::CognitoSync::Types::RecordPatch

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-cognitosync/lib/aws-sdk-cognitosync/types.rb

Overview

Note:

When making an API call, you may pass RecordPatch data as a hash:

{
  op: "replace", # required, accepts replace, remove
  key: "RecordKey", # required
  value: "RecordValue",
  sync_count: 1, # required
  device_last_modified_date: Time.now,
}

An update operation for a record.

Instance Attribute Summary collapse

Instance Attribute Details

#device_last_modified_dateTime

The last modified date of the client device.

Returns:

  • (Time)


875
876
877
878
879
880
881
882
# File 'gems/aws-sdk-cognitosync/lib/aws-sdk-cognitosync/types.rb', line 875

class RecordPatch < Struct.new(
  :op,
  :key,
  :value,
  :sync_count,
  :device_last_modified_date)
  include Aws::Structure
end

#keyString

The key associated with the record patch.

Returns:

  • (String)


875
876
877
878
879
880
881
882
# File 'gems/aws-sdk-cognitosync/lib/aws-sdk-cognitosync/types.rb', line 875

class RecordPatch < Struct.new(
  :op,
  :key,
  :value,
  :sync_count,
  :device_last_modified_date)
  include Aws::Structure
end

#opString

An operation, either replace or remove.

Returns:

  • (String)


875
876
877
878
879
880
881
882
# File 'gems/aws-sdk-cognitosync/lib/aws-sdk-cognitosync/types.rb', line 875

class RecordPatch < Struct.new(
  :op,
  :key,
  :value,
  :sync_count,
  :device_last_modified_date)
  include Aws::Structure
end

#sync_countInteger

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

Returns:

  • (Integer)


875
876
877
878
879
880
881
882
# File 'gems/aws-sdk-cognitosync/lib/aws-sdk-cognitosync/types.rb', line 875

class RecordPatch < Struct.new(
  :op,
  :key,
  :value,
  :sync_count,
  :device_last_modified_date)
  include Aws::Structure
end

#valueString

The value associated with the record patch.

Returns:

  • (String)


875
876
877
878
879
880
881
882
# File 'gems/aws-sdk-cognitosync/lib/aws-sdk-cognitosync/types.rb', line 875

class RecordPatch < Struct.new(
  :op,
  :key,
  :value,
  :sync_count,
  :device_last_modified_date)
  include Aws::Structure
end