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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#device_last_modified_dateTime

The last modified date of the client device.

Returns:

  • (Time)


1049
1050
1051
1052
1053
1054
1055
1056
1057
# File 'gems/aws-sdk-cognitosync/lib/aws-sdk-cognitosync/types.rb', line 1049

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

#keyString

The key associated with the record patch.

Returns:

  • (String)


1049
1050
1051
1052
1053
1054
1055
1056
1057
# File 'gems/aws-sdk-cognitosync/lib/aws-sdk-cognitosync/types.rb', line 1049

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

#opString

An operation, either replace or remove.

Returns:

  • (String)


1049
1050
1051
1052
1053
1054
1055
1056
1057
# File 'gems/aws-sdk-cognitosync/lib/aws-sdk-cognitosync/types.rb', line 1049

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

#sync_countInteger

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

Returns:

  • (Integer)


1049
1050
1051
1052
1053
1054
1055
1056
1057
# File 'gems/aws-sdk-cognitosync/lib/aws-sdk-cognitosync/types.rb', line 1049

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

#valueString

The value associated with the record patch.

Returns:

  • (String)


1049
1050
1051
1052
1053
1054
1055
1056
1057
# File 'gems/aws-sdk-cognitosync/lib/aws-sdk-cognitosync/types.rb', line 1049

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