line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Paws::CognitoSync; |
2
|
1
|
|
|
1
|
|
10382
|
use Moose; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
11
|
|
3
|
|
|
|
|
|
|
sub service { 'cognito-sync' } |
4
|
|
|
|
|
|
|
sub version { '2014-06-30' } |
5
|
|
|
|
|
|
|
sub flattened_arrays { 0 } |
6
|
|
|
|
|
|
|
has max_attempts => (is => 'ro', isa => 'Int', default => 5); |
7
|
|
|
|
|
|
|
has retry => (is => 'ro', isa => 'HashRef', default => sub { |
8
|
|
|
|
|
|
|
{ base => 'rand', type => 'exponential', growth_factor => 2 } |
9
|
|
|
|
|
|
|
}); |
10
|
|
|
|
|
|
|
has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [ |
11
|
|
|
|
|
|
|
] }); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::RestJsonCaller', 'Paws::Net::RestJsonResponse'; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub BulkPublish { |
17
|
|
|
|
|
|
|
my $self = shift; |
18
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::CognitoSync::BulkPublish', @_); |
19
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
sub DeleteDataset { |
22
|
|
|
|
|
|
|
my $self = shift; |
23
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::CognitoSync::DeleteDataset', @_); |
24
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
sub DescribeDataset { |
27
|
|
|
|
|
|
|
my $self = shift; |
28
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::CognitoSync::DescribeDataset', @_); |
29
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
sub DescribeIdentityPoolUsage { |
32
|
|
|
|
|
|
|
my $self = shift; |
33
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::CognitoSync::DescribeIdentityPoolUsage', @_); |
34
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
sub DescribeIdentityUsage { |
37
|
|
|
|
|
|
|
my $self = shift; |
38
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::CognitoSync::DescribeIdentityUsage', @_); |
39
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
sub GetBulkPublishDetails { |
42
|
|
|
|
|
|
|
my $self = shift; |
43
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::CognitoSync::GetBulkPublishDetails', @_); |
44
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
sub GetCognitoEvents { |
47
|
|
|
|
|
|
|
my $self = shift; |
48
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::CognitoSync::GetCognitoEvents', @_); |
49
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
sub GetIdentityPoolConfiguration { |
52
|
|
|
|
|
|
|
my $self = shift; |
53
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::CognitoSync::GetIdentityPoolConfiguration', @_); |
54
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
55
|
|
|
|
|
|
|
} |
56
|
|
|
|
|
|
|
sub ListDatasets { |
57
|
|
|
|
|
|
|
my $self = shift; |
58
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::CognitoSync::ListDatasets', @_); |
59
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
60
|
|
|
|
|
|
|
} |
61
|
|
|
|
|
|
|
sub ListIdentityPoolUsage { |
62
|
|
|
|
|
|
|
my $self = shift; |
63
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::CognitoSync::ListIdentityPoolUsage', @_); |
64
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
65
|
|
|
|
|
|
|
} |
66
|
|
|
|
|
|
|
sub ListRecords { |
67
|
|
|
|
|
|
|
my $self = shift; |
68
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::CognitoSync::ListRecords', @_); |
69
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
70
|
|
|
|
|
|
|
} |
71
|
|
|
|
|
|
|
sub RegisterDevice { |
72
|
|
|
|
|
|
|
my $self = shift; |
73
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::CognitoSync::RegisterDevice', @_); |
74
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
75
|
|
|
|
|
|
|
} |
76
|
|
|
|
|
|
|
sub SetCognitoEvents { |
77
|
|
|
|
|
|
|
my $self = shift; |
78
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::CognitoSync::SetCognitoEvents', @_); |
79
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
80
|
|
|
|
|
|
|
} |
81
|
|
|
|
|
|
|
sub SetIdentityPoolConfiguration { |
82
|
|
|
|
|
|
|
my $self = shift; |
83
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::CognitoSync::SetIdentityPoolConfiguration', @_); |
84
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
85
|
|
|
|
|
|
|
} |
86
|
|
|
|
|
|
|
sub SubscribeToDataset { |
87
|
|
|
|
|
|
|
my $self = shift; |
88
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::CognitoSync::SubscribeToDataset', @_); |
89
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
90
|
|
|
|
|
|
|
} |
91
|
|
|
|
|
|
|
sub UnsubscribeFromDataset { |
92
|
|
|
|
|
|
|
my $self = shift; |
93
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::CognitoSync::UnsubscribeFromDataset', @_); |
94
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
95
|
|
|
|
|
|
|
} |
96
|
|
|
|
|
|
|
sub UpdateRecords { |
97
|
|
|
|
|
|
|
my $self = shift; |
98
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::CognitoSync::UpdateRecords', @_); |
99
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
100
|
|
|
|
|
|
|
} |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
sub operations { qw/BulkPublish DeleteDataset DescribeDataset DescribeIdentityPoolUsage DescribeIdentityUsage GetBulkPublishDetails GetCognitoEvents GetIdentityPoolConfiguration ListDatasets ListIdentityPoolUsage ListRecords RegisterDevice SetCognitoEvents SetIdentityPoolConfiguration SubscribeToDataset UnsubscribeFromDataset UpdateRecords / } |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
1; |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
### main pod documentation begin ### |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
=head1 NAME |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
Paws::CognitoSync - Perl Interface to AWS Amazon Cognito Sync |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=head1 SYNOPSIS |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
use Paws; |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
my $obj = Paws->service('CognitoSync'); |
119
|
|
|
|
|
|
|
my $res = $obj->Method( |
120
|
|
|
|
|
|
|
Arg1 => $val1, |
121
|
|
|
|
|
|
|
Arg2 => [ 'V1', 'V2' ], |
122
|
|
|
|
|
|
|
# if Arg3 is an object, the HashRef will be used as arguments to the constructor |
123
|
|
|
|
|
|
|
# of the arguments type |
124
|
|
|
|
|
|
|
Arg3 => { Att1 => 'Val1' }, |
125
|
|
|
|
|
|
|
# if Arg4 is an array of objects, the HashRefs will be passed as arguments to |
126
|
|
|
|
|
|
|
# the constructor of the arguments type |
127
|
|
|
|
|
|
|
Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ], |
128
|
|
|
|
|
|
|
); |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
=head1 DESCRIPTION |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
Amazon Cognito Sync |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
Amazon Cognito Sync provides an AWS service and client library that |
135
|
|
|
|
|
|
|
enable cross-device syncing of application-related user data. |
136
|
|
|
|
|
|
|
High-level client libraries are available for both iOS and Android. You |
137
|
|
|
|
|
|
|
can use these libraries to persist data locally so that it's available |
138
|
|
|
|
|
|
|
even if the device is offline. Developer credentials don't need to be |
139
|
|
|
|
|
|
|
stored on the mobile device to access the service. You can use Amazon |
140
|
|
|
|
|
|
|
Cognito to obtain a normalized user ID and credentials. User data is |
141
|
|
|
|
|
|
|
persisted in a dataset that can store up to 1 MB of key-value pairs, |
142
|
|
|
|
|
|
|
and you can have up to 20 datasets per user identity. |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
With Amazon Cognito Sync, the data stored for each identity is |
145
|
|
|
|
|
|
|
accessible only to credentials assigned to that identity. In order to |
146
|
|
|
|
|
|
|
use the Cognito Sync service, you need to make API calls using |
147
|
|
|
|
|
|
|
credentials retrieved with Amazon Cognito Identity service. |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
If you want to use Cognito Sync in an Android or iOS application, you |
150
|
|
|
|
|
|
|
will probably want to make API calls via the AWS Mobile SDK. To learn |
151
|
|
|
|
|
|
|
more, see the Developer Guide for Android and the Developer Guide for |
152
|
|
|
|
|
|
|
iOS. |
153
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
=head1 METHODS |
155
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
=head2 BulkPublish(IdentityPoolId => Str) |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::CognitoSync::BulkPublish> |
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
Returns: a L<Paws::CognitoSync::BulkPublishResponse> instance |
161
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
Initiates a bulk publish of all existing datasets for an Identity Pool |
163
|
|
|
|
|
|
|
to the configured stream. Customers are limited to one successful bulk |
164
|
|
|
|
|
|
|
publish per 24 hours. Bulk publish is an asynchronous request, |
165
|
|
|
|
|
|
|
customers can see the status of the request via the |
166
|
|
|
|
|
|
|
GetBulkPublishDetails operation. |
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
This API can only be called with developer credentials. You cannot call |
169
|
|
|
|
|
|
|
this API with the temporary user credentials provided by Cognito |
170
|
|
|
|
|
|
|
Identity. |
171
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
=head2 DeleteDataset(DatasetName => Str, IdentityId => Str, IdentityPoolId => Str) |
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::CognitoSync::DeleteDataset> |
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
Returns: a L<Paws::CognitoSync::DeleteDatasetResponse> instance |
178
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
Deletes the specific dataset. The dataset will be deleted permanently, |
180
|
|
|
|
|
|
|
and the action can't be undone. Datasets that this dataset was merged |
181
|
|
|
|
|
|
|
with will no longer report the merge. Any subsequent operation on this |
182
|
|
|
|
|
|
|
dataset will result in a ResourceNotFoundException. |
183
|
|
|
|
|
|
|
|
184
|
|
|
|
|
|
|
This API can be called with temporary user credentials provided by |
185
|
|
|
|
|
|
|
Cognito Identity or with developer credentials. |
186
|
|
|
|
|
|
|
|
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
=head2 DescribeDataset(DatasetName => Str, IdentityId => Str, IdentityPoolId => Str) |
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::CognitoSync::DescribeDataset> |
191
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
Returns: a L<Paws::CognitoSync::DescribeDatasetResponse> instance |
193
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
Gets meta data about a dataset by identity and dataset name. With |
195
|
|
|
|
|
|
|
Amazon Cognito Sync, each identity has access only to its own data. |
196
|
|
|
|
|
|
|
Thus, the credentials used to make this API call need to have access to |
197
|
|
|
|
|
|
|
the identity data. |
198
|
|
|
|
|
|
|
|
199
|
|
|
|
|
|
|
This API can be called with temporary user credentials provided by |
200
|
|
|
|
|
|
|
Cognito Identity or with developer credentials. You should use Cognito |
201
|
|
|
|
|
|
|
Identity credentials to make this API call. |
202
|
|
|
|
|
|
|
|
203
|
|
|
|
|
|
|
|
204
|
|
|
|
|
|
|
=head2 DescribeIdentityPoolUsage(IdentityPoolId => Str) |
205
|
|
|
|
|
|
|
|
206
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::CognitoSync::DescribeIdentityPoolUsage> |
207
|
|
|
|
|
|
|
|
208
|
|
|
|
|
|
|
Returns: a L<Paws::CognitoSync::DescribeIdentityPoolUsageResponse> instance |
209
|
|
|
|
|
|
|
|
210
|
|
|
|
|
|
|
Gets usage details (for example, data storage) about a particular |
211
|
|
|
|
|
|
|
identity pool. |
212
|
|
|
|
|
|
|
|
213
|
|
|
|
|
|
|
This API can only be called with developer credentials. You cannot call |
214
|
|
|
|
|
|
|
this API with the temporary user credentials provided by Cognito |
215
|
|
|
|
|
|
|
Identity. |
216
|
|
|
|
|
|
|
|
217
|
|
|
|
|
|
|
|
218
|
|
|
|
|
|
|
=head2 DescribeIdentityUsage(IdentityId => Str, IdentityPoolId => Str) |
219
|
|
|
|
|
|
|
|
220
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::CognitoSync::DescribeIdentityUsage> |
221
|
|
|
|
|
|
|
|
222
|
|
|
|
|
|
|
Returns: a L<Paws::CognitoSync::DescribeIdentityUsageResponse> instance |
223
|
|
|
|
|
|
|
|
224
|
|
|
|
|
|
|
Gets usage information for an identity, including number of datasets |
225
|
|
|
|
|
|
|
and data usage. |
226
|
|
|
|
|
|
|
|
227
|
|
|
|
|
|
|
This API can be called with temporary user credentials provided by |
228
|
|
|
|
|
|
|
Cognito Identity or with developer credentials. |
229
|
|
|
|
|
|
|
|
230
|
|
|
|
|
|
|
|
231
|
|
|
|
|
|
|
=head2 GetBulkPublishDetails(IdentityPoolId => Str) |
232
|
|
|
|
|
|
|
|
233
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::CognitoSync::GetBulkPublishDetails> |
234
|
|
|
|
|
|
|
|
235
|
|
|
|
|
|
|
Returns: a L<Paws::CognitoSync::GetBulkPublishDetailsResponse> instance |
236
|
|
|
|
|
|
|
|
237
|
|
|
|
|
|
|
Get the status of the last BulkPublish operation for an identity pool. |
238
|
|
|
|
|
|
|
|
239
|
|
|
|
|
|
|
This API can only be called with developer credentials. You cannot call |
240
|
|
|
|
|
|
|
this API with the temporary user credentials provided by Cognito |
241
|
|
|
|
|
|
|
Identity. |
242
|
|
|
|
|
|
|
|
243
|
|
|
|
|
|
|
|
244
|
|
|
|
|
|
|
=head2 GetCognitoEvents(IdentityPoolId => Str) |
245
|
|
|
|
|
|
|
|
246
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::CognitoSync::GetCognitoEvents> |
247
|
|
|
|
|
|
|
|
248
|
|
|
|
|
|
|
Returns: a L<Paws::CognitoSync::GetCognitoEventsResponse> instance |
249
|
|
|
|
|
|
|
|
250
|
|
|
|
|
|
|
Gets the events and the corresponding Lambda functions associated with |
251
|
|
|
|
|
|
|
an identity pool. |
252
|
|
|
|
|
|
|
|
253
|
|
|
|
|
|
|
This API can only be called with developer credentials. You cannot call |
254
|
|
|
|
|
|
|
this API with the temporary user credentials provided by Cognito |
255
|
|
|
|
|
|
|
Identity. |
256
|
|
|
|
|
|
|
|
257
|
|
|
|
|
|
|
|
258
|
|
|
|
|
|
|
=head2 GetIdentityPoolConfiguration(IdentityPoolId => Str) |
259
|
|
|
|
|
|
|
|
260
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::CognitoSync::GetIdentityPoolConfiguration> |
261
|
|
|
|
|
|
|
|
262
|
|
|
|
|
|
|
Returns: a L<Paws::CognitoSync::GetIdentityPoolConfigurationResponse> instance |
263
|
|
|
|
|
|
|
|
264
|
|
|
|
|
|
|
Gets the configuration settings of an identity pool. |
265
|
|
|
|
|
|
|
|
266
|
|
|
|
|
|
|
This API can only be called with developer credentials. You cannot call |
267
|
|
|
|
|
|
|
this API with the temporary user credentials provided by Cognito |
268
|
|
|
|
|
|
|
Identity. |
269
|
|
|
|
|
|
|
|
270
|
|
|
|
|
|
|
|
271
|
|
|
|
|
|
|
=head2 ListDatasets(IdentityId => Str, IdentityPoolId => Str, [MaxResults => Int, NextToken => Str]) |
272
|
|
|
|
|
|
|
|
273
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::CognitoSync::ListDatasets> |
274
|
|
|
|
|
|
|
|
275
|
|
|
|
|
|
|
Returns: a L<Paws::CognitoSync::ListDatasetsResponse> instance |
276
|
|
|
|
|
|
|
|
277
|
|
|
|
|
|
|
Lists datasets for an identity. With Amazon Cognito Sync, each identity |
278
|
|
|
|
|
|
|
has access only to its own data. Thus, the credentials used to make |
279
|
|
|
|
|
|
|
this API call need to have access to the identity data. |
280
|
|
|
|
|
|
|
|
281
|
|
|
|
|
|
|
ListDatasets can be called with temporary user credentials provided by |
282
|
|
|
|
|
|
|
Cognito Identity or with developer credentials. You should use the |
283
|
|
|
|
|
|
|
Cognito Identity credentials to make this API call. |
284
|
|
|
|
|
|
|
|
285
|
|
|
|
|
|
|
|
286
|
|
|
|
|
|
|
=head2 ListIdentityPoolUsage([MaxResults => Int, NextToken => Str]) |
287
|
|
|
|
|
|
|
|
288
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::CognitoSync::ListIdentityPoolUsage> |
289
|
|
|
|
|
|
|
|
290
|
|
|
|
|
|
|
Returns: a L<Paws::CognitoSync::ListIdentityPoolUsageResponse> instance |
291
|
|
|
|
|
|
|
|
292
|
|
|
|
|
|
|
Gets a list of identity pools registered with Cognito. |
293
|
|
|
|
|
|
|
|
294
|
|
|
|
|
|
|
ListIdentityPoolUsage can only be called with developer credentials. |
295
|
|
|
|
|
|
|
You cannot make this API call with the temporary user credentials |
296
|
|
|
|
|
|
|
provided by Cognito Identity. |
297
|
|
|
|
|
|
|
|
298
|
|
|
|
|
|
|
|
299
|
|
|
|
|
|
|
=head2 ListRecords(DatasetName => Str, IdentityId => Str, IdentityPoolId => Str, [LastSyncCount => Int, MaxResults => Int, NextToken => Str, SyncSessionToken => Str]) |
300
|
|
|
|
|
|
|
|
301
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::CognitoSync::ListRecords> |
302
|
|
|
|
|
|
|
|
303
|
|
|
|
|
|
|
Returns: a L<Paws::CognitoSync::ListRecordsResponse> instance |
304
|
|
|
|
|
|
|
|
305
|
|
|
|
|
|
|
Gets paginated records, optionally changed after a particular sync |
306
|
|
|
|
|
|
|
count for a dataset and identity. With Amazon Cognito Sync, each |
307
|
|
|
|
|
|
|
identity has access only to its own data. Thus, the credentials used to |
308
|
|
|
|
|
|
|
make this API call need to have access to the identity data. |
309
|
|
|
|
|
|
|
|
310
|
|
|
|
|
|
|
ListRecords can be called with temporary user credentials provided by |
311
|
|
|
|
|
|
|
Cognito Identity or with developer credentials. You should use Cognito |
312
|
|
|
|
|
|
|
Identity credentials to make this API call. |
313
|
|
|
|
|
|
|
|
314
|
|
|
|
|
|
|
|
315
|
|
|
|
|
|
|
=head2 RegisterDevice(IdentityId => Str, IdentityPoolId => Str, Platform => Str, Token => Str) |
316
|
|
|
|
|
|
|
|
317
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::CognitoSync::RegisterDevice> |
318
|
|
|
|
|
|
|
|
319
|
|
|
|
|
|
|
Returns: a L<Paws::CognitoSync::RegisterDeviceResponse> instance |
320
|
|
|
|
|
|
|
|
321
|
|
|
|
|
|
|
Registers a device to receive push sync notifications. |
322
|
|
|
|
|
|
|
|
323
|
|
|
|
|
|
|
This API can only be called with temporary credentials provided by |
324
|
|
|
|
|
|
|
Cognito Identity. You cannot call this API with developer credentials. |
325
|
|
|
|
|
|
|
|
326
|
|
|
|
|
|
|
|
327
|
|
|
|
|
|
|
=head2 SetCognitoEvents(Events => L<Paws::CognitoSync::Events>, IdentityPoolId => Str) |
328
|
|
|
|
|
|
|
|
329
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::CognitoSync::SetCognitoEvents> |
330
|
|
|
|
|
|
|
|
331
|
|
|
|
|
|
|
Returns: nothing |
332
|
|
|
|
|
|
|
|
333
|
|
|
|
|
|
|
Sets the AWS Lambda function for a given event type for an identity |
334
|
|
|
|
|
|
|
pool. This request only updates the key/value pair specified. Other |
335
|
|
|
|
|
|
|
key/values pairs are not updated. To remove a key value pair, pass a |
336
|
|
|
|
|
|
|
empty value for the particular key. |
337
|
|
|
|
|
|
|
|
338
|
|
|
|
|
|
|
This API can only be called with developer credentials. You cannot call |
339
|
|
|
|
|
|
|
this API with the temporary user credentials provided by Cognito |
340
|
|
|
|
|
|
|
Identity. |
341
|
|
|
|
|
|
|
|
342
|
|
|
|
|
|
|
|
343
|
|
|
|
|
|
|
=head2 SetIdentityPoolConfiguration(IdentityPoolId => Str, [CognitoStreams => L<Paws::CognitoSync::CognitoStreams>, PushSync => L<Paws::CognitoSync::PushSync>]) |
344
|
|
|
|
|
|
|
|
345
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::CognitoSync::SetIdentityPoolConfiguration> |
346
|
|
|
|
|
|
|
|
347
|
|
|
|
|
|
|
Returns: a L<Paws::CognitoSync::SetIdentityPoolConfigurationResponse> instance |
348
|
|
|
|
|
|
|
|
349
|
|
|
|
|
|
|
Sets the necessary configuration for push sync. |
350
|
|
|
|
|
|
|
|
351
|
|
|
|
|
|
|
This API can only be called with developer credentials. You cannot call |
352
|
|
|
|
|
|
|
this API with the temporary user credentials provided by Cognito |
353
|
|
|
|
|
|
|
Identity. |
354
|
|
|
|
|
|
|
|
355
|
|
|
|
|
|
|
|
356
|
|
|
|
|
|
|
=head2 SubscribeToDataset(DatasetName => Str, DeviceId => Str, IdentityId => Str, IdentityPoolId => Str) |
357
|
|
|
|
|
|
|
|
358
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::CognitoSync::SubscribeToDataset> |
359
|
|
|
|
|
|
|
|
360
|
|
|
|
|
|
|
Returns: a L<Paws::CognitoSync::SubscribeToDatasetResponse> instance |
361
|
|
|
|
|
|
|
|
362
|
|
|
|
|
|
|
Subscribes to receive notifications when a dataset is modified by |
363
|
|
|
|
|
|
|
another device. |
364
|
|
|
|
|
|
|
|
365
|
|
|
|
|
|
|
This API can only be called with temporary credentials provided by |
366
|
|
|
|
|
|
|
Cognito Identity. You cannot call this API with developer credentials. |
367
|
|
|
|
|
|
|
|
368
|
|
|
|
|
|
|
|
369
|
|
|
|
|
|
|
=head2 UnsubscribeFromDataset(DatasetName => Str, DeviceId => Str, IdentityId => Str, IdentityPoolId => Str) |
370
|
|
|
|
|
|
|
|
371
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::CognitoSync::UnsubscribeFromDataset> |
372
|
|
|
|
|
|
|
|
373
|
|
|
|
|
|
|
Returns: a L<Paws::CognitoSync::UnsubscribeFromDatasetResponse> instance |
374
|
|
|
|
|
|
|
|
375
|
|
|
|
|
|
|
Unsubscribes from receiving notifications when a dataset is modified by |
376
|
|
|
|
|
|
|
another device. |
377
|
|
|
|
|
|
|
|
378
|
|
|
|
|
|
|
This API can only be called with temporary credentials provided by |
379
|
|
|
|
|
|
|
Cognito Identity. You cannot call this API with developer credentials. |
380
|
|
|
|
|
|
|
|
381
|
|
|
|
|
|
|
|
382
|
|
|
|
|
|
|
=head2 UpdateRecords(DatasetName => Str, IdentityId => Str, IdentityPoolId => Str, SyncSessionToken => Str, [ClientContext => Str, DeviceId => Str, RecordPatches => ArrayRef[L<Paws::CognitoSync::RecordPatch>]]) |
383
|
|
|
|
|
|
|
|
384
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::CognitoSync::UpdateRecords> |
385
|
|
|
|
|
|
|
|
386
|
|
|
|
|
|
|
Returns: a L<Paws::CognitoSync::UpdateRecordsResponse> instance |
387
|
|
|
|
|
|
|
|
388
|
|
|
|
|
|
|
Posts updates to records and adds and deletes records for a dataset and |
389
|
|
|
|
|
|
|
user. |
390
|
|
|
|
|
|
|
|
391
|
|
|
|
|
|
|
The sync count in the record patch is your last known sync count for |
392
|
|
|
|
|
|
|
that record. The server will reject an UpdateRecords request with a |
393
|
|
|
|
|
|
|
ResourceConflictException if you try to patch a record with a new value |
394
|
|
|
|
|
|
|
but a stale sync count. |
395
|
|
|
|
|
|
|
|
396
|
|
|
|
|
|
|
For example, if the sync count on the server is 5 for a key called |
397
|
|
|
|
|
|
|
highScore and you try and submit a new highScore with sync count of 4, |
398
|
|
|
|
|
|
|
the request will be rejected. To obtain the current sync count for a |
399
|
|
|
|
|
|
|
record, call ListRecords. On a successful update of the record, the |
400
|
|
|
|
|
|
|
response returns the new sync count for that record. You should present |
401
|
|
|
|
|
|
|
that sync count the next time you try to update that same record. When |
402
|
|
|
|
|
|
|
the record does not exist, specify the sync count as 0. |
403
|
|
|
|
|
|
|
|
404
|
|
|
|
|
|
|
This API can be called with temporary user credentials provided by |
405
|
|
|
|
|
|
|
Cognito Identity or with developer credentials. |
406
|
|
|
|
|
|
|
|
407
|
|
|
|
|
|
|
|
408
|
|
|
|
|
|
|
|
409
|
|
|
|
|
|
|
|
410
|
|
|
|
|
|
|
=head1 PAGINATORS |
411
|
|
|
|
|
|
|
|
412
|
|
|
|
|
|
|
Paginator methods are helpers that repetively call methods that return partial results |
413
|
|
|
|
|
|
|
|
414
|
|
|
|
|
|
|
|
415
|
|
|
|
|
|
|
|
416
|
|
|
|
|
|
|
|
417
|
|
|
|
|
|
|
=head1 SEE ALSO |
418
|
|
|
|
|
|
|
|
419
|
|
|
|
|
|
|
This service class forms part of L<Paws> |
420
|
|
|
|
|
|
|
|
421
|
|
|
|
|
|
|
=head1 BUGS and CONTRIBUTIONS |
422
|
|
|
|
|
|
|
|
423
|
|
|
|
|
|
|
The source code is located here: https://github.com/pplu/aws-sdk-perl |
424
|
|
|
|
|
|
|
|
425
|
|
|
|
|
|
|
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues |
426
|
|
|
|
|
|
|
|
427
|
|
|
|
|
|
|
=cut |
428
|
|
|
|
|
|
|
|