aws-sdk-cognitosync 1.0.0.rc1 → 1.0.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,847 +1,555 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
3
+ # This file is generated. See the contributing guide for more information:
4
4
  # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
5
  #
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
- module Aws
9
- module CognitoSync
10
- # @api private
11
- module ClientApi
12
-
13
- include Seahorse::Model
14
-
15
- AlreadyStreamedException = Shapes::StructureShape.new(name: 'AlreadyStreamedException')
16
- ApplicationArn = Shapes::StringShape.new(name: 'ApplicationArn')
17
- ApplicationArnList = Shapes::ListShape.new(name: 'ApplicationArnList')
18
- AssumeRoleArn = Shapes::StringShape.new(name: 'AssumeRoleArn')
19
- Boolean = Shapes::BooleanShape.new(name: 'Boolean')
20
- BulkPublishRequest = Shapes::StructureShape.new(name: 'BulkPublishRequest')
21
- BulkPublishResponse = Shapes::StructureShape.new(name: 'BulkPublishResponse')
22
- BulkPublishStatus = Shapes::StringShape.new(name: 'BulkPublishStatus')
23
- ClientContext = Shapes::StringShape.new(name: 'ClientContext')
24
- CognitoEventType = Shapes::StringShape.new(name: 'CognitoEventType')
25
- CognitoStreams = Shapes::StructureShape.new(name: 'CognitoStreams')
26
- ConcurrentModificationException = Shapes::StructureShape.new(name: 'ConcurrentModificationException')
27
- Dataset = Shapes::StructureShape.new(name: 'Dataset')
28
- DatasetList = Shapes::ListShape.new(name: 'DatasetList')
29
- DatasetName = Shapes::StringShape.new(name: 'DatasetName')
30
- Date = Shapes::TimestampShape.new(name: 'Date')
31
- DeleteDatasetRequest = Shapes::StructureShape.new(name: 'DeleteDatasetRequest')
32
- DeleteDatasetResponse = Shapes::StructureShape.new(name: 'DeleteDatasetResponse')
33
- DescribeDatasetRequest = Shapes::StructureShape.new(name: 'DescribeDatasetRequest')
34
- DescribeDatasetResponse = Shapes::StructureShape.new(name: 'DescribeDatasetResponse')
35
- DescribeIdentityPoolUsageRequest = Shapes::StructureShape.new(name: 'DescribeIdentityPoolUsageRequest')
36
- DescribeIdentityPoolUsageResponse = Shapes::StructureShape.new(name: 'DescribeIdentityPoolUsageResponse')
37
- DescribeIdentityUsageRequest = Shapes::StructureShape.new(name: 'DescribeIdentityUsageRequest')
38
- DescribeIdentityUsageResponse = Shapes::StructureShape.new(name: 'DescribeIdentityUsageResponse')
39
- DeviceId = Shapes::StringShape.new(name: 'DeviceId')
40
- DuplicateRequestException = Shapes::StructureShape.new(name: 'DuplicateRequestException')
41
- Events = Shapes::MapShape.new(name: 'Events')
42
- ExceptionMessage = Shapes::StringShape.new(name: 'ExceptionMessage')
43
- GetBulkPublishDetailsRequest = Shapes::StructureShape.new(name: 'GetBulkPublishDetailsRequest')
44
- GetBulkPublishDetailsResponse = Shapes::StructureShape.new(name: 'GetBulkPublishDetailsResponse')
45
- GetCognitoEventsRequest = Shapes::StructureShape.new(name: 'GetCognitoEventsRequest')
46
- GetCognitoEventsResponse = Shapes::StructureShape.new(name: 'GetCognitoEventsResponse')
47
- GetIdentityPoolConfigurationRequest = Shapes::StructureShape.new(name: 'GetIdentityPoolConfigurationRequest')
48
- GetIdentityPoolConfigurationResponse = Shapes::StructureShape.new(name: 'GetIdentityPoolConfigurationResponse')
49
- IdentityId = Shapes::StringShape.new(name: 'IdentityId')
50
- IdentityPoolId = Shapes::StringShape.new(name: 'IdentityPoolId')
51
- IdentityPoolUsage = Shapes::StructureShape.new(name: 'IdentityPoolUsage')
52
- IdentityPoolUsageList = Shapes::ListShape.new(name: 'IdentityPoolUsageList')
53
- IdentityUsage = Shapes::StructureShape.new(name: 'IdentityUsage')
54
- Integer = Shapes::IntegerShape.new(name: 'Integer')
55
- IntegerString = Shapes::IntegerShape.new(name: 'IntegerString')
56
- InternalErrorException = Shapes::StructureShape.new(name: 'InternalErrorException')
57
- InvalidConfigurationException = Shapes::StructureShape.new(name: 'InvalidConfigurationException')
58
- InvalidLambdaFunctionOutputException = Shapes::StructureShape.new(name: 'InvalidLambdaFunctionOutputException')
59
- InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
60
- LambdaFunctionArn = Shapes::StringShape.new(name: 'LambdaFunctionArn')
61
- LambdaThrottledException = Shapes::StructureShape.new(name: 'LambdaThrottledException')
62
- LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
63
- ListDatasetsRequest = Shapes::StructureShape.new(name: 'ListDatasetsRequest')
64
- ListDatasetsResponse = Shapes::StructureShape.new(name: 'ListDatasetsResponse')
65
- ListIdentityPoolUsageRequest = Shapes::StructureShape.new(name: 'ListIdentityPoolUsageRequest')
66
- ListIdentityPoolUsageResponse = Shapes::StructureShape.new(name: 'ListIdentityPoolUsageResponse')
67
- ListRecordsRequest = Shapes::StructureShape.new(name: 'ListRecordsRequest')
68
- ListRecordsResponse = Shapes::StructureShape.new(name: 'ListRecordsResponse')
69
- Long = Shapes::IntegerShape.new(name: 'Long')
70
- MergedDatasetNameList = Shapes::ListShape.new(name: 'MergedDatasetNameList')
71
- NotAuthorizedException = Shapes::StructureShape.new(name: 'NotAuthorizedException')
72
- Operation = Shapes::StringShape.new(name: 'Operation')
73
- Platform = Shapes::StringShape.new(name: 'Platform')
74
- PushSync = Shapes::StructureShape.new(name: 'PushSync')
75
- PushToken = Shapes::StringShape.new(name: 'PushToken')
76
- Record = Shapes::StructureShape.new(name: 'Record')
77
- RecordKey = Shapes::StringShape.new(name: 'RecordKey')
78
- RecordList = Shapes::ListShape.new(name: 'RecordList')
79
- RecordPatch = Shapes::StructureShape.new(name: 'RecordPatch')
80
- RecordPatchList = Shapes::ListShape.new(name: 'RecordPatchList')
81
- RecordValue = Shapes::StringShape.new(name: 'RecordValue')
82
- RegisterDeviceRequest = Shapes::StructureShape.new(name: 'RegisterDeviceRequest')
83
- RegisterDeviceResponse = Shapes::StructureShape.new(name: 'RegisterDeviceResponse')
84
- ResourceConflictException = Shapes::StructureShape.new(name: 'ResourceConflictException')
85
- ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
86
- SetCognitoEventsRequest = Shapes::StructureShape.new(name: 'SetCognitoEventsRequest')
87
- SetIdentityPoolConfigurationRequest = Shapes::StructureShape.new(name: 'SetIdentityPoolConfigurationRequest')
88
- SetIdentityPoolConfigurationResponse = Shapes::StructureShape.new(name: 'SetIdentityPoolConfigurationResponse')
89
- StreamName = Shapes::StringShape.new(name: 'StreamName')
90
- StreamingStatus = Shapes::StringShape.new(name: 'StreamingStatus')
91
- String = Shapes::StringShape.new(name: 'String')
92
- SubscribeToDatasetRequest = Shapes::StructureShape.new(name: 'SubscribeToDatasetRequest')
93
- SubscribeToDatasetResponse = Shapes::StructureShape.new(name: 'SubscribeToDatasetResponse')
94
- SyncSessionToken = Shapes::StringShape.new(name: 'SyncSessionToken')
95
- TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
96
- UnsubscribeFromDatasetRequest = Shapes::StructureShape.new(name: 'UnsubscribeFromDatasetRequest')
97
- UnsubscribeFromDatasetResponse = Shapes::StructureShape.new(name: 'UnsubscribeFromDatasetResponse')
98
- UpdateRecordsRequest = Shapes::StructureShape.new(name: 'UpdateRecordsRequest')
99
- UpdateRecordsResponse = Shapes::StructureShape.new(name: 'UpdateRecordsResponse')
100
-
101
- ApplicationArnList.member = Shapes::ShapeRef.new(shape: ApplicationArn)
102
-
103
- BulkPublishRequest.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location: "uri", location_name: "IdentityPoolId"))
104
- BulkPublishRequest.struct_class = Types::BulkPublishRequest
105
-
106
- BulkPublishResponse.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, location_name: "IdentityPoolId"))
107
- BulkPublishResponse.struct_class = Types::BulkPublishResponse
108
-
109
- CognitoStreams.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, location_name: "StreamName"))
110
- CognitoStreams.add_member(:role_arn, Shapes::ShapeRef.new(shape: AssumeRoleArn, location_name: "RoleArn"))
111
- CognitoStreams.add_member(:streaming_status, Shapes::ShapeRef.new(shape: StreamingStatus, location_name: "StreamingStatus"))
112
- CognitoStreams.struct_class = Types::CognitoStreams
113
-
114
- Dataset.add_member(:identity_id, Shapes::ShapeRef.new(shape: IdentityId, location_name: "IdentityId"))
115
- Dataset.add_member(:dataset_name, Shapes::ShapeRef.new(shape: DatasetName, location_name: "DatasetName"))
116
- Dataset.add_member(:creation_date, Shapes::ShapeRef.new(shape: Date, location_name: "CreationDate"))
117
- Dataset.add_member(:last_modified_date, Shapes::ShapeRef.new(shape: Date, location_name: "LastModifiedDate"))
118
- Dataset.add_member(:last_modified_by, Shapes::ShapeRef.new(shape: String, location_name: "LastModifiedBy"))
119
- Dataset.add_member(:data_storage, Shapes::ShapeRef.new(shape: Long, location_name: "DataStorage"))
120
- Dataset.add_member(:num_records, Shapes::ShapeRef.new(shape: Long, location_name: "NumRecords"))
121
- Dataset.struct_class = Types::Dataset
122
-
123
- DatasetList.member = Shapes::ShapeRef.new(shape: Dataset)
124
-
125
- DeleteDatasetRequest.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location: "uri", location_name: "IdentityPoolId"))
126
- DeleteDatasetRequest.add_member(:identity_id, Shapes::ShapeRef.new(shape: IdentityId, required: true, location: "uri", location_name: "IdentityId"))
127
- DeleteDatasetRequest.add_member(:dataset_name, Shapes::ShapeRef.new(shape: DatasetName, required: true, location: "uri", location_name: "DatasetName"))
128
- DeleteDatasetRequest.struct_class = Types::DeleteDatasetRequest
129
-
130
- DeleteDatasetResponse.add_member(:dataset, Shapes::ShapeRef.new(shape: Dataset, location_name: "Dataset"))
131
- DeleteDatasetResponse.struct_class = Types::DeleteDatasetResponse
132
-
133
- DescribeDatasetRequest.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location: "uri", location_name: "IdentityPoolId"))
134
- DescribeDatasetRequest.add_member(:identity_id, Shapes::ShapeRef.new(shape: IdentityId, required: true, location: "uri", location_name: "IdentityId"))
135
- DescribeDatasetRequest.add_member(:dataset_name, Shapes::ShapeRef.new(shape: DatasetName, required: true, location: "uri", location_name: "DatasetName"))
136
- DescribeDatasetRequest.struct_class = Types::DescribeDatasetRequest
137
-
138
- DescribeDatasetResponse.add_member(:dataset, Shapes::ShapeRef.new(shape: Dataset, location_name: "Dataset"))
139
- DescribeDatasetResponse.struct_class = Types::DescribeDatasetResponse
140
-
141
- DescribeIdentityPoolUsageRequest.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location: "uri", location_name: "IdentityPoolId"))
142
- DescribeIdentityPoolUsageRequest.struct_class = Types::DescribeIdentityPoolUsageRequest
143
-
144
- DescribeIdentityPoolUsageResponse.add_member(:identity_pool_usage, Shapes::ShapeRef.new(shape: IdentityPoolUsage, location_name: "IdentityPoolUsage"))
145
- DescribeIdentityPoolUsageResponse.struct_class = Types::DescribeIdentityPoolUsageResponse
146
-
147
- DescribeIdentityUsageRequest.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location: "uri", location_name: "IdentityPoolId"))
148
- DescribeIdentityUsageRequest.add_member(:identity_id, Shapes::ShapeRef.new(shape: IdentityId, required: true, location: "uri", location_name: "IdentityId"))
149
- DescribeIdentityUsageRequest.struct_class = Types::DescribeIdentityUsageRequest
150
-
151
- DescribeIdentityUsageResponse.add_member(:identity_usage, Shapes::ShapeRef.new(shape: IdentityUsage, location_name: "IdentityUsage"))
152
- DescribeIdentityUsageResponse.struct_class = Types::DescribeIdentityUsageResponse
153
-
154
- Events.key = Shapes::ShapeRef.new(shape: CognitoEventType)
155
- Events.value = Shapes::ShapeRef.new(shape: LambdaFunctionArn)
156
-
157
- GetBulkPublishDetailsRequest.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location: "uri", location_name: "IdentityPoolId"))
158
- GetBulkPublishDetailsRequest.struct_class = Types::GetBulkPublishDetailsRequest
159
-
160
- GetBulkPublishDetailsResponse.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, location_name: "IdentityPoolId"))
161
- GetBulkPublishDetailsResponse.add_member(:bulk_publish_start_time, Shapes::ShapeRef.new(shape: Date, location_name: "BulkPublishStartTime"))
162
- GetBulkPublishDetailsResponse.add_member(:bulk_publish_complete_time, Shapes::ShapeRef.new(shape: Date, location_name: "BulkPublishCompleteTime"))
163
- GetBulkPublishDetailsResponse.add_member(:bulk_publish_status, Shapes::ShapeRef.new(shape: BulkPublishStatus, location_name: "BulkPublishStatus"))
164
- GetBulkPublishDetailsResponse.add_member(:failure_message, Shapes::ShapeRef.new(shape: String, location_name: "FailureMessage"))
165
- GetBulkPublishDetailsResponse.struct_class = Types::GetBulkPublishDetailsResponse
166
-
167
- GetCognitoEventsRequest.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location: "uri", location_name: "IdentityPoolId"))
168
- GetCognitoEventsRequest.struct_class = Types::GetCognitoEventsRequest
169
-
170
- GetCognitoEventsResponse.add_member(:events, Shapes::ShapeRef.new(shape: Events, location_name: "Events"))
171
- GetCognitoEventsResponse.struct_class = Types::GetCognitoEventsResponse
172
-
173
- GetIdentityPoolConfigurationRequest.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location: "uri", location_name: "IdentityPoolId"))
174
- GetIdentityPoolConfigurationRequest.struct_class = Types::GetIdentityPoolConfigurationRequest
175
-
176
- GetIdentityPoolConfigurationResponse.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, location_name: "IdentityPoolId"))
177
- GetIdentityPoolConfigurationResponse.add_member(:push_sync, Shapes::ShapeRef.new(shape: PushSync, location_name: "PushSync"))
178
- GetIdentityPoolConfigurationResponse.add_member(:cognito_streams, Shapes::ShapeRef.new(shape: CognitoStreams, location_name: "CognitoStreams"))
179
- GetIdentityPoolConfigurationResponse.struct_class = Types::GetIdentityPoolConfigurationResponse
180
-
181
- IdentityPoolUsage.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, location_name: "IdentityPoolId"))
182
- IdentityPoolUsage.add_member(:sync_sessions_count, Shapes::ShapeRef.new(shape: Long, location_name: "SyncSessionsCount"))
183
- IdentityPoolUsage.add_member(:data_storage, Shapes::ShapeRef.new(shape: Long, location_name: "DataStorage"))
184
- IdentityPoolUsage.add_member(:last_modified_date, Shapes::ShapeRef.new(shape: Date, location_name: "LastModifiedDate"))
185
- IdentityPoolUsage.struct_class = Types::IdentityPoolUsage
186
-
187
- IdentityPoolUsageList.member = Shapes::ShapeRef.new(shape: IdentityPoolUsage)
188
-
189
- IdentityUsage.add_member(:identity_id, Shapes::ShapeRef.new(shape: IdentityId, location_name: "IdentityId"))
190
- IdentityUsage.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, location_name: "IdentityPoolId"))
191
- IdentityUsage.add_member(:last_modified_date, Shapes::ShapeRef.new(shape: Date, location_name: "LastModifiedDate"))
192
- IdentityUsage.add_member(:dataset_count, Shapes::ShapeRef.new(shape: Integer, location_name: "DatasetCount"))
193
- IdentityUsage.add_member(:data_storage, Shapes::ShapeRef.new(shape: Long, location_name: "DataStorage"))
194
- IdentityUsage.struct_class = Types::IdentityUsage
195
-
196
- ListDatasetsRequest.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location: "uri", location_name: "IdentityPoolId"))
197
- ListDatasetsRequest.add_member(:identity_id, Shapes::ShapeRef.new(shape: IdentityId, required: true, location: "uri", location_name: "IdentityId"))
198
- ListDatasetsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "nextToken"))
199
- ListDatasetsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: IntegerString, location: "querystring", location_name: "maxResults"))
200
- ListDatasetsRequest.struct_class = Types::ListDatasetsRequest
201
-
202
- ListDatasetsResponse.add_member(:datasets, Shapes::ShapeRef.new(shape: DatasetList, location_name: "Datasets"))
203
- ListDatasetsResponse.add_member(:count, Shapes::ShapeRef.new(shape: Integer, location_name: "Count"))
204
- ListDatasetsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
205
- ListDatasetsResponse.struct_class = Types::ListDatasetsResponse
206
-
207
- ListIdentityPoolUsageRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "nextToken"))
208
- ListIdentityPoolUsageRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: IntegerString, location: "querystring", location_name: "maxResults"))
209
- ListIdentityPoolUsageRequest.struct_class = Types::ListIdentityPoolUsageRequest
210
-
211
- ListIdentityPoolUsageResponse.add_member(:identity_pool_usages, Shapes::ShapeRef.new(shape: IdentityPoolUsageList, location_name: "IdentityPoolUsages"))
212
- ListIdentityPoolUsageResponse.add_member(:max_results, Shapes::ShapeRef.new(shape: Integer, location_name: "MaxResults"))
213
- ListIdentityPoolUsageResponse.add_member(:count, Shapes::ShapeRef.new(shape: Integer, location_name: "Count"))
214
- ListIdentityPoolUsageResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
215
- ListIdentityPoolUsageResponse.struct_class = Types::ListIdentityPoolUsageResponse
216
-
217
- ListRecordsRequest.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location: "uri", location_name: "IdentityPoolId"))
218
- ListRecordsRequest.add_member(:identity_id, Shapes::ShapeRef.new(shape: IdentityId, required: true, location: "uri", location_name: "IdentityId"))
219
- ListRecordsRequest.add_member(:dataset_name, Shapes::ShapeRef.new(shape: DatasetName, required: true, location: "uri", location_name: "DatasetName"))
220
- ListRecordsRequest.add_member(:last_sync_count, Shapes::ShapeRef.new(shape: Long, location: "querystring", location_name: "lastSyncCount"))
221
- ListRecordsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "nextToken"))
222
- ListRecordsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: IntegerString, location: "querystring", location_name: "maxResults"))
223
- ListRecordsRequest.add_member(:sync_session_token, Shapes::ShapeRef.new(shape: SyncSessionToken, location: "querystring", location_name: "syncSessionToken"))
224
- ListRecordsRequest.struct_class = Types::ListRecordsRequest
225
-
226
- ListRecordsResponse.add_member(:records, Shapes::ShapeRef.new(shape: RecordList, location_name: "Records"))
227
- ListRecordsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
228
- ListRecordsResponse.add_member(:count, Shapes::ShapeRef.new(shape: Integer, location_name: "Count"))
229
- ListRecordsResponse.add_member(:dataset_sync_count, Shapes::ShapeRef.new(shape: Long, location_name: "DatasetSyncCount"))
230
- ListRecordsResponse.add_member(:last_modified_by, Shapes::ShapeRef.new(shape: String, location_name: "LastModifiedBy"))
231
- ListRecordsResponse.add_member(:merged_dataset_names, Shapes::ShapeRef.new(shape: MergedDatasetNameList, location_name: "MergedDatasetNames"))
232
- ListRecordsResponse.add_member(:dataset_exists, Shapes::ShapeRef.new(shape: Boolean, location_name: "DatasetExists"))
233
- ListRecordsResponse.add_member(:dataset_deleted_after_requested_sync_count, Shapes::ShapeRef.new(shape: Boolean, location_name: "DatasetDeletedAfterRequestedSyncCount"))
234
- ListRecordsResponse.add_member(:sync_session_token, Shapes::ShapeRef.new(shape: String, location_name: "SyncSessionToken"))
235
- ListRecordsResponse.struct_class = Types::ListRecordsResponse
236
-
237
- MergedDatasetNameList.member = Shapes::ShapeRef.new(shape: String)
238
-
239
- PushSync.add_member(:application_arns, Shapes::ShapeRef.new(shape: ApplicationArnList, location_name: "ApplicationArns"))
240
- PushSync.add_member(:role_arn, Shapes::ShapeRef.new(shape: AssumeRoleArn, location_name: "RoleArn"))
241
- PushSync.struct_class = Types::PushSync
242
-
243
- Record.add_member(:key, Shapes::ShapeRef.new(shape: RecordKey, location_name: "Key"))
244
- Record.add_member(:value, Shapes::ShapeRef.new(shape: RecordValue, location_name: "Value"))
245
- Record.add_member(:sync_count, Shapes::ShapeRef.new(shape: Long, location_name: "SyncCount"))
246
- Record.add_member(:last_modified_date, Shapes::ShapeRef.new(shape: Date, location_name: "LastModifiedDate"))
247
- Record.add_member(:last_modified_by, Shapes::ShapeRef.new(shape: String, location_name: "LastModifiedBy"))
248
- Record.add_member(:device_last_modified_date, Shapes::ShapeRef.new(shape: Date, location_name: "DeviceLastModifiedDate"))
249
- Record.struct_class = Types::Record
250
-
251
- RecordList.member = Shapes::ShapeRef.new(shape: Record)
252
-
253
- RecordPatch.add_member(:op, Shapes::ShapeRef.new(shape: Operation, required: true, location_name: "Op"))
254
- RecordPatch.add_member(:key, Shapes::ShapeRef.new(shape: RecordKey, required: true, location_name: "Key"))
255
- RecordPatch.add_member(:value, Shapes::ShapeRef.new(shape: RecordValue, location_name: "Value"))
256
- RecordPatch.add_member(:sync_count, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "SyncCount"))
257
- RecordPatch.add_member(:device_last_modified_date, Shapes::ShapeRef.new(shape: Date, location_name: "DeviceLastModifiedDate"))
258
- RecordPatch.struct_class = Types::RecordPatch
259
-
260
- RecordPatchList.member = Shapes::ShapeRef.new(shape: RecordPatch)
261
-
262
- RegisterDeviceRequest.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location: "uri", location_name: "IdentityPoolId"))
263
- RegisterDeviceRequest.add_member(:identity_id, Shapes::ShapeRef.new(shape: IdentityId, required: true, location: "uri", location_name: "IdentityId"))
264
- RegisterDeviceRequest.add_member(:platform, Shapes::ShapeRef.new(shape: Platform, required: true, location_name: "Platform"))
265
- RegisterDeviceRequest.add_member(:token, Shapes::ShapeRef.new(shape: PushToken, required: true, location_name: "Token"))
266
- RegisterDeviceRequest.struct_class = Types::RegisterDeviceRequest
267
-
268
- RegisterDeviceResponse.add_member(:device_id, Shapes::ShapeRef.new(shape: DeviceId, location_name: "DeviceId"))
269
- RegisterDeviceResponse.struct_class = Types::RegisterDeviceResponse
270
-
271
- SetCognitoEventsRequest.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location: "uri", location_name: "IdentityPoolId"))
272
- SetCognitoEventsRequest.add_member(:events, Shapes::ShapeRef.new(shape: Events, required: true, location_name: "Events"))
273
- SetCognitoEventsRequest.struct_class = Types::SetCognitoEventsRequest
274
-
275
- SetIdentityPoolConfigurationRequest.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location: "uri", location_name: "IdentityPoolId"))
276
- SetIdentityPoolConfigurationRequest.add_member(:push_sync, Shapes::ShapeRef.new(shape: PushSync, location_name: "PushSync"))
277
- SetIdentityPoolConfigurationRequest.add_member(:cognito_streams, Shapes::ShapeRef.new(shape: CognitoStreams, location_name: "CognitoStreams"))
278
- SetIdentityPoolConfigurationRequest.struct_class = Types::SetIdentityPoolConfigurationRequest
279
-
280
- SetIdentityPoolConfigurationResponse.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, location_name: "IdentityPoolId"))
281
- SetIdentityPoolConfigurationResponse.add_member(:push_sync, Shapes::ShapeRef.new(shape: PushSync, location_name: "PushSync"))
282
- SetIdentityPoolConfigurationResponse.add_member(:cognito_streams, Shapes::ShapeRef.new(shape: CognitoStreams, location_name: "CognitoStreams"))
283
- SetIdentityPoolConfigurationResponse.struct_class = Types::SetIdentityPoolConfigurationResponse
284
-
285
- SubscribeToDatasetRequest.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location: "uri", location_name: "IdentityPoolId"))
286
- SubscribeToDatasetRequest.add_member(:identity_id, Shapes::ShapeRef.new(shape: IdentityId, required: true, location: "uri", location_name: "IdentityId"))
287
- SubscribeToDatasetRequest.add_member(:dataset_name, Shapes::ShapeRef.new(shape: DatasetName, required: true, location: "uri", location_name: "DatasetName"))
288
- SubscribeToDatasetRequest.add_member(:device_id, Shapes::ShapeRef.new(shape: DeviceId, required: true, location: "uri", location_name: "DeviceId"))
289
- SubscribeToDatasetRequest.struct_class = Types::SubscribeToDatasetRequest
290
-
291
- SubscribeToDatasetResponse.struct_class = Types::SubscribeToDatasetResponse
292
-
293
- UnsubscribeFromDatasetRequest.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location: "uri", location_name: "IdentityPoolId"))
294
- UnsubscribeFromDatasetRequest.add_member(:identity_id, Shapes::ShapeRef.new(shape: IdentityId, required: true, location: "uri", location_name: "IdentityId"))
295
- UnsubscribeFromDatasetRequest.add_member(:dataset_name, Shapes::ShapeRef.new(shape: DatasetName, required: true, location: "uri", location_name: "DatasetName"))
296
- UnsubscribeFromDatasetRequest.add_member(:device_id, Shapes::ShapeRef.new(shape: DeviceId, required: true, location: "uri", location_name: "DeviceId"))
297
- UnsubscribeFromDatasetRequest.struct_class = Types::UnsubscribeFromDatasetRequest
298
-
299
- UnsubscribeFromDatasetResponse.struct_class = Types::UnsubscribeFromDatasetResponse
300
-
301
- UpdateRecordsRequest.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location: "uri", location_name: "IdentityPoolId"))
302
- UpdateRecordsRequest.add_member(:identity_id, Shapes::ShapeRef.new(shape: IdentityId, required: true, location: "uri", location_name: "IdentityId"))
303
- UpdateRecordsRequest.add_member(:dataset_name, Shapes::ShapeRef.new(shape: DatasetName, required: true, location: "uri", location_name: "DatasetName"))
304
- UpdateRecordsRequest.add_member(:device_id, Shapes::ShapeRef.new(shape: DeviceId, location_name: "DeviceId"))
305
- UpdateRecordsRequest.add_member(:record_patches, Shapes::ShapeRef.new(shape: RecordPatchList, location_name: "RecordPatches"))
306
- UpdateRecordsRequest.add_member(:sync_session_token, Shapes::ShapeRef.new(shape: SyncSessionToken, required: true, location_name: "SyncSessionToken"))
307
- UpdateRecordsRequest.add_member(:client_context, Shapes::ShapeRef.new(shape: ClientContext, location: "header", location_name: "x-amz-Client-Context"))
308
- UpdateRecordsRequest.struct_class = Types::UpdateRecordsRequest
309
-
310
- UpdateRecordsResponse.add_member(:records, Shapes::ShapeRef.new(shape: RecordList, location_name: "Records"))
311
- UpdateRecordsResponse.struct_class = Types::UpdateRecordsResponse
312
-
313
-
314
- # @api private
315
- API = Seahorse::Model::Api.new.tap do |api|
316
-
317
- api.version = "2014-06-30"
318
-
319
- api.metadata = {
320
- "endpointPrefix" => "cognito-sync",
321
- "jsonVersion" => "1.1",
322
- "protocol" => "rest-json",
323
- "serviceFullName" => "Amazon Cognito Sync",
324
- "signatureVersion" => "v4",
325
- }
326
-
327
- api.add_operation(:bulk_publish, Seahorse::Model::Operation.new.tap do |o|
328
- o.name = "BulkPublish"
329
- o.http_method = "POST"
330
- o.http_request_uri = "/identitypools/{IdentityPoolId}/bulkpublish"
331
- o.input = Shapes::ShapeRef.new(shape: BulkPublishRequest)
332
- o.output = Shapes::ShapeRef.new(shape: BulkPublishResponse)
333
- o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException, metadata: {
334
- "error" => {"code"=>"NotAuthorizedError", "httpStatusCode"=>403, "senderFault"=>true},
335
- "exception" => true
336
- })
337
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException, metadata: {
338
- "error" => {"code"=>"InvalidParameter", "httpStatusCode"=>400, "senderFault"=>true},
339
- "exception" => true
340
- })
341
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException, metadata: {
342
- "error" => {"code"=>"ResourceNotFound", "httpStatusCode"=>404, "senderFault"=>true},
343
- "exception" => true
344
- })
345
- o.errors << Shapes::ShapeRef.new(shape: InternalErrorException, metadata: {
346
- "error" => {"code"=>"InternalError", "httpStatusCode"=>500},
347
- "exception" => true,
348
- "fault" => true
349
- })
350
- o.errors << Shapes::ShapeRef.new(shape: DuplicateRequestException, metadata: {
351
- "error" => {"code"=>"DuplicateRequest", "httpStatusCode"=>400, "senderFault"=>true},
352
- "exception" => true
353
- })
354
- o.errors << Shapes::ShapeRef.new(shape: AlreadyStreamedException, metadata: {
355
- "error" => {"code"=>"AlreadyStreamed", "httpStatusCode"=>400, "senderFault"=>true},
356
- "exception" => true
357
- })
358
- end)
359
-
360
- api.add_operation(:delete_dataset, Seahorse::Model::Operation.new.tap do |o|
361
- o.name = "DeleteDataset"
362
- o.http_method = "DELETE"
363
- o.http_request_uri = "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}"
364
- o.input = Shapes::ShapeRef.new(shape: DeleteDatasetRequest)
365
- o.output = Shapes::ShapeRef.new(shape: DeleteDatasetResponse)
366
- o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException, metadata: {
367
- "error" => {"code"=>"NotAuthorizedError", "httpStatusCode"=>403, "senderFault"=>true},
368
- "exception" => true
369
- })
370
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException, metadata: {
371
- "error" => {"code"=>"InvalidParameter", "httpStatusCode"=>400, "senderFault"=>true},
372
- "exception" => true
373
- })
374
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException, metadata: {
375
- "error" => {"code"=>"ResourceNotFound", "httpStatusCode"=>404, "senderFault"=>true},
376
- "exception" => true
377
- })
378
- o.errors << Shapes::ShapeRef.new(shape: InternalErrorException, metadata: {
379
- "error" => {"code"=>"InternalError", "httpStatusCode"=>500},
380
- "exception" => true,
381
- "fault" => true
382
- })
383
- o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException, metadata: {
384
- "error" => {"code"=>"TooManyRequests", "httpStatusCode"=>429, "senderFault"=>true},
385
- "exception" => true
386
- })
387
- o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException, metadata: {
388
- "error" => {"code"=>"ResourceConflict", "httpStatusCode"=>409, "senderFault"=>true},
389
- "exception" => true
390
- })
391
- end)
392
-
393
- api.add_operation(:describe_dataset, Seahorse::Model::Operation.new.tap do |o|
394
- o.name = "DescribeDataset"
395
- o.http_method = "GET"
396
- o.http_request_uri = "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}"
397
- o.input = Shapes::ShapeRef.new(shape: DescribeDatasetRequest)
398
- o.output = Shapes::ShapeRef.new(shape: DescribeDatasetResponse)
399
- o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException, metadata: {
400
- "error" => {"code"=>"NotAuthorizedError", "httpStatusCode"=>403, "senderFault"=>true},
401
- "exception" => true
402
- })
403
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException, metadata: {
404
- "error" => {"code"=>"InvalidParameter", "httpStatusCode"=>400, "senderFault"=>true},
405
- "exception" => true
406
- })
407
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException, metadata: {
408
- "error" => {"code"=>"ResourceNotFound", "httpStatusCode"=>404, "senderFault"=>true},
409
- "exception" => true
410
- })
411
- o.errors << Shapes::ShapeRef.new(shape: InternalErrorException, metadata: {
412
- "error" => {"code"=>"InternalError", "httpStatusCode"=>500},
413
- "exception" => true,
414
- "fault" => true
415
- })
416
- o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException, metadata: {
417
- "error" => {"code"=>"TooManyRequests", "httpStatusCode"=>429, "senderFault"=>true},
418
- "exception" => true
419
- })
420
- end)
421
-
422
- api.add_operation(:describe_identity_pool_usage, Seahorse::Model::Operation.new.tap do |o|
423
- o.name = "DescribeIdentityPoolUsage"
424
- o.http_method = "GET"
425
- o.http_request_uri = "/identitypools/{IdentityPoolId}"
426
- o.input = Shapes::ShapeRef.new(shape: DescribeIdentityPoolUsageRequest)
427
- o.output = Shapes::ShapeRef.new(shape: DescribeIdentityPoolUsageResponse)
428
- o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException, metadata: {
429
- "error" => {"code"=>"NotAuthorizedError", "httpStatusCode"=>403, "senderFault"=>true},
430
- "exception" => true
431
- })
432
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException, metadata: {
433
- "error" => {"code"=>"InvalidParameter", "httpStatusCode"=>400, "senderFault"=>true},
434
- "exception" => true
435
- })
436
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException, metadata: {
437
- "error" => {"code"=>"ResourceNotFound", "httpStatusCode"=>404, "senderFault"=>true},
438
- "exception" => true
439
- })
440
- o.errors << Shapes::ShapeRef.new(shape: InternalErrorException, metadata: {
441
- "error" => {"code"=>"InternalError", "httpStatusCode"=>500},
442
- "exception" => true,
443
- "fault" => true
444
- })
445
- o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException, metadata: {
446
- "error" => {"code"=>"TooManyRequests", "httpStatusCode"=>429, "senderFault"=>true},
447
- "exception" => true
448
- })
449
- end)
450
-
451
- api.add_operation(:describe_identity_usage, Seahorse::Model::Operation.new.tap do |o|
452
- o.name = "DescribeIdentityUsage"
453
- o.http_method = "GET"
454
- o.http_request_uri = "/identitypools/{IdentityPoolId}/identities/{IdentityId}"
455
- o.input = Shapes::ShapeRef.new(shape: DescribeIdentityUsageRequest)
456
- o.output = Shapes::ShapeRef.new(shape: DescribeIdentityUsageResponse)
457
- o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException, metadata: {
458
- "error" => {"code"=>"NotAuthorizedError", "httpStatusCode"=>403, "senderFault"=>true},
459
- "exception" => true
460
- })
461
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException, metadata: {
462
- "error" => {"code"=>"InvalidParameter", "httpStatusCode"=>400, "senderFault"=>true},
463
- "exception" => true
464
- })
465
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException, metadata: {
466
- "error" => {"code"=>"ResourceNotFound", "httpStatusCode"=>404, "senderFault"=>true},
467
- "exception" => true
468
- })
469
- o.errors << Shapes::ShapeRef.new(shape: InternalErrorException, metadata: {
470
- "error" => {"code"=>"InternalError", "httpStatusCode"=>500},
471
- "exception" => true,
472
- "fault" => true
473
- })
474
- o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException, metadata: {
475
- "error" => {"code"=>"TooManyRequests", "httpStatusCode"=>429, "senderFault"=>true},
476
- "exception" => true
477
- })
478
- end)
479
-
480
- api.add_operation(:get_bulk_publish_details, Seahorse::Model::Operation.new.tap do |o|
481
- o.name = "GetBulkPublishDetails"
482
- o.http_method = "POST"
483
- o.http_request_uri = "/identitypools/{IdentityPoolId}/getBulkPublishDetails"
484
- o.input = Shapes::ShapeRef.new(shape: GetBulkPublishDetailsRequest)
485
- o.output = Shapes::ShapeRef.new(shape: GetBulkPublishDetailsResponse)
486
- o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException, metadata: {
487
- "error" => {"code"=>"NotAuthorizedError", "httpStatusCode"=>403, "senderFault"=>true},
488
- "exception" => true
489
- })
490
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException, metadata: {
491
- "error" => {"code"=>"InvalidParameter", "httpStatusCode"=>400, "senderFault"=>true},
492
- "exception" => true
493
- })
494
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException, metadata: {
495
- "error" => {"code"=>"ResourceNotFound", "httpStatusCode"=>404, "senderFault"=>true},
496
- "exception" => true
497
- })
498
- o.errors << Shapes::ShapeRef.new(shape: InternalErrorException, metadata: {
499
- "error" => {"code"=>"InternalError", "httpStatusCode"=>500},
500
- "exception" => true,
501
- "fault" => true
502
- })
503
- end)
504
-
505
- api.add_operation(:get_cognito_events, Seahorse::Model::Operation.new.tap do |o|
506
- o.name = "GetCognitoEvents"
507
- o.http_method = "GET"
508
- o.http_request_uri = "/identitypools/{IdentityPoolId}/events"
509
- o.input = Shapes::ShapeRef.new(shape: GetCognitoEventsRequest)
510
- o.output = Shapes::ShapeRef.new(shape: GetCognitoEventsResponse)
511
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException, metadata: {
512
- "error" => {"code"=>"InvalidParameter", "httpStatusCode"=>400, "senderFault"=>true},
513
- "exception" => true
514
- })
515
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException, metadata: {
516
- "error" => {"code"=>"ResourceNotFound", "httpStatusCode"=>404, "senderFault"=>true},
517
- "exception" => true
518
- })
519
- o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException, metadata: {
520
- "error" => {"code"=>"NotAuthorizedError", "httpStatusCode"=>403, "senderFault"=>true},
521
- "exception" => true
522
- })
523
- o.errors << Shapes::ShapeRef.new(shape: InternalErrorException, metadata: {
524
- "error" => {"code"=>"InternalError", "httpStatusCode"=>500},
525
- "exception" => true,
526
- "fault" => true
527
- })
528
- o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException, metadata: {
529
- "error" => {"code"=>"TooManyRequests", "httpStatusCode"=>429, "senderFault"=>true},
530
- "exception" => true
531
- })
532
- end)
533
-
534
- api.add_operation(:get_identity_pool_configuration, Seahorse::Model::Operation.new.tap do |o|
535
- o.name = "GetIdentityPoolConfiguration"
536
- o.http_method = "GET"
537
- o.http_request_uri = "/identitypools/{IdentityPoolId}/configuration"
538
- o.input = Shapes::ShapeRef.new(shape: GetIdentityPoolConfigurationRequest)
539
- o.output = Shapes::ShapeRef.new(shape: GetIdentityPoolConfigurationResponse)
540
- o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException, metadata: {
541
- "error" => {"code"=>"NotAuthorizedError", "httpStatusCode"=>403, "senderFault"=>true},
542
- "exception" => true
543
- })
544
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException, metadata: {
545
- "error" => {"code"=>"InvalidParameter", "httpStatusCode"=>400, "senderFault"=>true},
546
- "exception" => true
547
- })
548
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException, metadata: {
549
- "error" => {"code"=>"ResourceNotFound", "httpStatusCode"=>404, "senderFault"=>true},
550
- "exception" => true
551
- })
552
- o.errors << Shapes::ShapeRef.new(shape: InternalErrorException, metadata: {
553
- "error" => {"code"=>"InternalError", "httpStatusCode"=>500},
554
- "exception" => true,
555
- "fault" => true
556
- })
557
- o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException, metadata: {
558
- "error" => {"code"=>"TooManyRequests", "httpStatusCode"=>429, "senderFault"=>true},
559
- "exception" => true
560
- })
561
- end)
562
-
563
- api.add_operation(:list_datasets, Seahorse::Model::Operation.new.tap do |o|
564
- o.name = "ListDatasets"
565
- o.http_method = "GET"
566
- o.http_request_uri = "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets"
567
- o.input = Shapes::ShapeRef.new(shape: ListDatasetsRequest)
568
- o.output = Shapes::ShapeRef.new(shape: ListDatasetsResponse)
569
- o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException, metadata: {
570
- "error" => {"code"=>"NotAuthorizedError", "httpStatusCode"=>403, "senderFault"=>true},
571
- "exception" => true
572
- })
573
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException, metadata: {
574
- "error" => {"code"=>"InvalidParameter", "httpStatusCode"=>400, "senderFault"=>true},
575
- "exception" => true
576
- })
577
- o.errors << Shapes::ShapeRef.new(shape: InternalErrorException, metadata: {
578
- "error" => {"code"=>"InternalError", "httpStatusCode"=>500},
579
- "exception" => true,
580
- "fault" => true
581
- })
582
- o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException, metadata: {
583
- "error" => {"code"=>"TooManyRequests", "httpStatusCode"=>429, "senderFault"=>true},
584
- "exception" => true
585
- })
586
- end)
587
-
588
- api.add_operation(:list_identity_pool_usage, Seahorse::Model::Operation.new.tap do |o|
589
- o.name = "ListIdentityPoolUsage"
590
- o.http_method = "GET"
591
- o.http_request_uri = "/identitypools"
592
- o.input = Shapes::ShapeRef.new(shape: ListIdentityPoolUsageRequest)
593
- o.output = Shapes::ShapeRef.new(shape: ListIdentityPoolUsageResponse)
594
- o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException, metadata: {
595
- "error" => {"code"=>"NotAuthorizedError", "httpStatusCode"=>403, "senderFault"=>true},
596
- "exception" => true
597
- })
598
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException, metadata: {
599
- "error" => {"code"=>"InvalidParameter", "httpStatusCode"=>400, "senderFault"=>true},
600
- "exception" => true
601
- })
602
- o.errors << Shapes::ShapeRef.new(shape: InternalErrorException, metadata: {
603
- "error" => {"code"=>"InternalError", "httpStatusCode"=>500},
604
- "exception" => true,
605
- "fault" => true
606
- })
607
- o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException, metadata: {
608
- "error" => {"code"=>"TooManyRequests", "httpStatusCode"=>429, "senderFault"=>true},
609
- "exception" => true
610
- })
611
- end)
612
-
613
- api.add_operation(:list_records, Seahorse::Model::Operation.new.tap do |o|
614
- o.name = "ListRecords"
615
- o.http_method = "GET"
616
- o.http_request_uri = "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/records"
617
- o.input = Shapes::ShapeRef.new(shape: ListRecordsRequest)
618
- o.output = Shapes::ShapeRef.new(shape: ListRecordsResponse)
619
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException, metadata: {
620
- "error" => {"code"=>"InvalidParameter", "httpStatusCode"=>400, "senderFault"=>true},
621
- "exception" => true
622
- })
623
- o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException, metadata: {
624
- "error" => {"code"=>"NotAuthorizedError", "httpStatusCode"=>403, "senderFault"=>true},
625
- "exception" => true
626
- })
627
- o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException, metadata: {
628
- "error" => {"code"=>"TooManyRequests", "httpStatusCode"=>429, "senderFault"=>true},
629
- "exception" => true
630
- })
631
- o.errors << Shapes::ShapeRef.new(shape: InternalErrorException, metadata: {
632
- "error" => {"code"=>"InternalError", "httpStatusCode"=>500},
633
- "exception" => true,
634
- "fault" => true
635
- })
636
- end)
637
-
638
- api.add_operation(:register_device, Seahorse::Model::Operation.new.tap do |o|
639
- o.name = "RegisterDevice"
640
- o.http_method = "POST"
641
- o.http_request_uri = "/identitypools/{IdentityPoolId}/identity/{IdentityId}/device"
642
- o.input = Shapes::ShapeRef.new(shape: RegisterDeviceRequest)
643
- o.output = Shapes::ShapeRef.new(shape: RegisterDeviceResponse)
644
- o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException, metadata: {
645
- "error" => {"code"=>"NotAuthorizedError", "httpStatusCode"=>403, "senderFault"=>true},
646
- "exception" => true
647
- })
648
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException, metadata: {
649
- "error" => {"code"=>"InvalidParameter", "httpStatusCode"=>400, "senderFault"=>true},
650
- "exception" => true
651
- })
652
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException, metadata: {
653
- "error" => {"code"=>"ResourceNotFound", "httpStatusCode"=>404, "senderFault"=>true},
654
- "exception" => true
655
- })
656
- o.errors << Shapes::ShapeRef.new(shape: InternalErrorException, metadata: {
657
- "error" => {"code"=>"InternalError", "httpStatusCode"=>500},
658
- "exception" => true,
659
- "fault" => true
660
- })
661
- o.errors << Shapes::ShapeRef.new(shape: InvalidConfigurationException, metadata: {
662
- "error" => {"code"=>"InvalidConfiguration", "httpStatusCode"=>400, "senderFault"=>true},
663
- "exception" => true
664
- })
665
- o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException, metadata: {
666
- "error" => {"code"=>"TooManyRequests", "httpStatusCode"=>429, "senderFault"=>true},
667
- "exception" => true
668
- })
669
- end)
670
-
671
- api.add_operation(:set_cognito_events, Seahorse::Model::Operation.new.tap do |o|
672
- o.name = "SetCognitoEvents"
673
- o.http_method = "POST"
674
- o.http_request_uri = "/identitypools/{IdentityPoolId}/events"
675
- o.input = Shapes::ShapeRef.new(shape: SetCognitoEventsRequest)
676
- o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
677
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException, metadata: {
678
- "error" => {"code"=>"InvalidParameter", "httpStatusCode"=>400, "senderFault"=>true},
679
- "exception" => true
680
- })
681
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException, metadata: {
682
- "error" => {"code"=>"ResourceNotFound", "httpStatusCode"=>404, "senderFault"=>true},
683
- "exception" => true
684
- })
685
- o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException, metadata: {
686
- "error" => {"code"=>"NotAuthorizedError", "httpStatusCode"=>403, "senderFault"=>true},
687
- "exception" => true
688
- })
689
- o.errors << Shapes::ShapeRef.new(shape: InternalErrorException, metadata: {
690
- "error" => {"code"=>"InternalError", "httpStatusCode"=>500},
691
- "exception" => true,
692
- "fault" => true
693
- })
694
- o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException, metadata: {
695
- "error" => {"code"=>"TooManyRequests", "httpStatusCode"=>429, "senderFault"=>true},
696
- "exception" => true
697
- })
698
- end)
699
-
700
- api.add_operation(:set_identity_pool_configuration, Seahorse::Model::Operation.new.tap do |o|
701
- o.name = "SetIdentityPoolConfiguration"
702
- o.http_method = "POST"
703
- o.http_request_uri = "/identitypools/{IdentityPoolId}/configuration"
704
- o.input = Shapes::ShapeRef.new(shape: SetIdentityPoolConfigurationRequest)
705
- o.output = Shapes::ShapeRef.new(shape: SetIdentityPoolConfigurationResponse)
706
- o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException, metadata: {
707
- "error" => {"code"=>"NotAuthorizedError", "httpStatusCode"=>403, "senderFault"=>true},
708
- "exception" => true
709
- })
710
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException, metadata: {
711
- "error" => {"code"=>"InvalidParameter", "httpStatusCode"=>400, "senderFault"=>true},
712
- "exception" => true
713
- })
714
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException, metadata: {
715
- "error" => {"code"=>"ResourceNotFound", "httpStatusCode"=>404, "senderFault"=>true},
716
- "exception" => true
717
- })
718
- o.errors << Shapes::ShapeRef.new(shape: InternalErrorException, metadata: {
719
- "error" => {"code"=>"InternalError", "httpStatusCode"=>500},
720
- "exception" => true,
721
- "fault" => true
722
- })
723
- o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException, metadata: {
724
- "error" => {"code"=>"TooManyRequests", "httpStatusCode"=>429, "senderFault"=>true},
725
- "exception" => true
726
- })
727
- o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException, metadata: {
728
- "error" => {"code"=>"ConcurrentModification", "httpStatusCode"=>400, "senderFault"=>true},
729
- "exception" => true
730
- })
731
- end)
732
-
733
- api.add_operation(:subscribe_to_dataset, Seahorse::Model::Operation.new.tap do |o|
734
- o.name = "SubscribeToDataset"
735
- o.http_method = "POST"
736
- o.http_request_uri = "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}"
737
- o.input = Shapes::ShapeRef.new(shape: SubscribeToDatasetRequest)
738
- o.output = Shapes::ShapeRef.new(shape: SubscribeToDatasetResponse)
739
- o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException, metadata: {
740
- "error" => {"code"=>"NotAuthorizedError", "httpStatusCode"=>403, "senderFault"=>true},
741
- "exception" => true
742
- })
743
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException, metadata: {
744
- "error" => {"code"=>"InvalidParameter", "httpStatusCode"=>400, "senderFault"=>true},
745
- "exception" => true
746
- })
747
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException, metadata: {
748
- "error" => {"code"=>"ResourceNotFound", "httpStatusCode"=>404, "senderFault"=>true},
749
- "exception" => true
750
- })
751
- o.errors << Shapes::ShapeRef.new(shape: InternalErrorException, metadata: {
752
- "error" => {"code"=>"InternalError", "httpStatusCode"=>500},
753
- "exception" => true,
754
- "fault" => true
755
- })
756
- o.errors << Shapes::ShapeRef.new(shape: InvalidConfigurationException, metadata: {
757
- "error" => {"code"=>"InvalidConfiguration", "httpStatusCode"=>400, "senderFault"=>true},
758
- "exception" => true
759
- })
760
- o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException, metadata: {
761
- "error" => {"code"=>"TooManyRequests", "httpStatusCode"=>429, "senderFault"=>true},
762
- "exception" => true
763
- })
764
- end)
765
-
766
- api.add_operation(:unsubscribe_from_dataset, Seahorse::Model::Operation.new.tap do |o|
767
- o.name = "UnsubscribeFromDataset"
768
- o.http_method = "DELETE"
769
- o.http_request_uri = "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}"
770
- o.input = Shapes::ShapeRef.new(shape: UnsubscribeFromDatasetRequest)
771
- o.output = Shapes::ShapeRef.new(shape: UnsubscribeFromDatasetResponse)
772
- o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException, metadata: {
773
- "error" => {"code"=>"NotAuthorizedError", "httpStatusCode"=>403, "senderFault"=>true},
774
- "exception" => true
775
- })
776
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException, metadata: {
777
- "error" => {"code"=>"InvalidParameter", "httpStatusCode"=>400, "senderFault"=>true},
778
- "exception" => true
779
- })
780
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException, metadata: {
781
- "error" => {"code"=>"ResourceNotFound", "httpStatusCode"=>404, "senderFault"=>true},
782
- "exception" => true
783
- })
784
- o.errors << Shapes::ShapeRef.new(shape: InternalErrorException, metadata: {
785
- "error" => {"code"=>"InternalError", "httpStatusCode"=>500},
786
- "exception" => true,
787
- "fault" => true
788
- })
789
- o.errors << Shapes::ShapeRef.new(shape: InvalidConfigurationException, metadata: {
790
- "error" => {"code"=>"InvalidConfiguration", "httpStatusCode"=>400, "senderFault"=>true},
791
- "exception" => true
792
- })
793
- o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException, metadata: {
794
- "error" => {"code"=>"TooManyRequests", "httpStatusCode"=>429, "senderFault"=>true},
795
- "exception" => true
796
- })
797
- end)
798
-
799
- api.add_operation(:update_records, Seahorse::Model::Operation.new.tap do |o|
800
- o.name = "UpdateRecords"
801
- o.http_method = "POST"
802
- o.http_request_uri = "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}"
803
- o.input = Shapes::ShapeRef.new(shape: UpdateRecordsRequest)
804
- o.output = Shapes::ShapeRef.new(shape: UpdateRecordsResponse)
805
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException, metadata: {
806
- "error" => {"code"=>"InvalidParameter", "httpStatusCode"=>400, "senderFault"=>true},
807
- "exception" => true
808
- })
809
- o.errors << Shapes::ShapeRef.new(shape: LimitExceededException, metadata: {
810
- "error" => {"code"=>"LimitExceeded", "httpStatusCode"=>400, "senderFault"=>true},
811
- "exception" => true
812
- })
813
- o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException, metadata: {
814
- "error" => {"code"=>"NotAuthorizedError", "httpStatusCode"=>403, "senderFault"=>true},
815
- "exception" => true
816
- })
817
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException, metadata: {
818
- "error" => {"code"=>"ResourceNotFound", "httpStatusCode"=>404, "senderFault"=>true},
819
- "exception" => true
820
- })
821
- o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException, metadata: {
822
- "error" => {"code"=>"ResourceConflict", "httpStatusCode"=>409, "senderFault"=>true},
823
- "exception" => true
824
- })
825
- o.errors << Shapes::ShapeRef.new(shape: InvalidLambdaFunctionOutputException, metadata: {
826
- "error" => {"code"=>"InvalidLambdaFunctionOutput", "httpStatusCode"=>400, "senderFault"=>true},
827
- "exception" => true
828
- })
829
- o.errors << Shapes::ShapeRef.new(shape: LambdaThrottledException, metadata: {
830
- "error" => {"code"=>"LambdaThrottled", "httpStatusCode"=>429, "senderFault"=>true},
831
- "exception" => true
832
- })
833
- o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException, metadata: {
834
- "error" => {"code"=>"TooManyRequests", "httpStatusCode"=>429, "senderFault"=>true},
835
- "exception" => true
836
- })
837
- o.errors << Shapes::ShapeRef.new(shape: InternalErrorException, metadata: {
838
- "error" => {"code"=>"InternalError", "httpStatusCode"=>500},
839
- "exception" => true,
840
- "fault" => true
841
- })
842
- end)
843
- end
8
+ module Aws::CognitoSync
9
+ # @api private
10
+ module ClientApi
11
+
12
+ include Seahorse::Model
13
+
14
+ AlreadyStreamedException = Shapes::StructureShape.new(name: 'AlreadyStreamedException')
15
+ ApplicationArn = Shapes::StringShape.new(name: 'ApplicationArn')
16
+ ApplicationArnList = Shapes::ListShape.new(name: 'ApplicationArnList')
17
+ AssumeRoleArn = Shapes::StringShape.new(name: 'AssumeRoleArn')
18
+ Boolean = Shapes::BooleanShape.new(name: 'Boolean')
19
+ BulkPublishRequest = Shapes::StructureShape.new(name: 'BulkPublishRequest')
20
+ BulkPublishResponse = Shapes::StructureShape.new(name: 'BulkPublishResponse')
21
+ BulkPublishStatus = Shapes::StringShape.new(name: 'BulkPublishStatus')
22
+ ClientContext = Shapes::StringShape.new(name: 'ClientContext')
23
+ CognitoEventType = Shapes::StringShape.new(name: 'CognitoEventType')
24
+ CognitoStreams = Shapes::StructureShape.new(name: 'CognitoStreams')
25
+ ConcurrentModificationException = Shapes::StructureShape.new(name: 'ConcurrentModificationException')
26
+ Dataset = Shapes::StructureShape.new(name: 'Dataset')
27
+ DatasetList = Shapes::ListShape.new(name: 'DatasetList')
28
+ DatasetName = Shapes::StringShape.new(name: 'DatasetName')
29
+ Date = Shapes::TimestampShape.new(name: 'Date')
30
+ DeleteDatasetRequest = Shapes::StructureShape.new(name: 'DeleteDatasetRequest')
31
+ DeleteDatasetResponse = Shapes::StructureShape.new(name: 'DeleteDatasetResponse')
32
+ DescribeDatasetRequest = Shapes::StructureShape.new(name: 'DescribeDatasetRequest')
33
+ DescribeDatasetResponse = Shapes::StructureShape.new(name: 'DescribeDatasetResponse')
34
+ DescribeIdentityPoolUsageRequest = Shapes::StructureShape.new(name: 'DescribeIdentityPoolUsageRequest')
35
+ DescribeIdentityPoolUsageResponse = Shapes::StructureShape.new(name: 'DescribeIdentityPoolUsageResponse')
36
+ DescribeIdentityUsageRequest = Shapes::StructureShape.new(name: 'DescribeIdentityUsageRequest')
37
+ DescribeIdentityUsageResponse = Shapes::StructureShape.new(name: 'DescribeIdentityUsageResponse')
38
+ DeviceId = Shapes::StringShape.new(name: 'DeviceId')
39
+ DuplicateRequestException = Shapes::StructureShape.new(name: 'DuplicateRequestException')
40
+ Events = Shapes::MapShape.new(name: 'Events')
41
+ ExceptionMessage = Shapes::StringShape.new(name: 'ExceptionMessage')
42
+ GetBulkPublishDetailsRequest = Shapes::StructureShape.new(name: 'GetBulkPublishDetailsRequest')
43
+ GetBulkPublishDetailsResponse = Shapes::StructureShape.new(name: 'GetBulkPublishDetailsResponse')
44
+ GetCognitoEventsRequest = Shapes::StructureShape.new(name: 'GetCognitoEventsRequest')
45
+ GetCognitoEventsResponse = Shapes::StructureShape.new(name: 'GetCognitoEventsResponse')
46
+ GetIdentityPoolConfigurationRequest = Shapes::StructureShape.new(name: 'GetIdentityPoolConfigurationRequest')
47
+ GetIdentityPoolConfigurationResponse = Shapes::StructureShape.new(name: 'GetIdentityPoolConfigurationResponse')
48
+ IdentityId = Shapes::StringShape.new(name: 'IdentityId')
49
+ IdentityPoolId = Shapes::StringShape.new(name: 'IdentityPoolId')
50
+ IdentityPoolUsage = Shapes::StructureShape.new(name: 'IdentityPoolUsage')
51
+ IdentityPoolUsageList = Shapes::ListShape.new(name: 'IdentityPoolUsageList')
52
+ IdentityUsage = Shapes::StructureShape.new(name: 'IdentityUsage')
53
+ Integer = Shapes::IntegerShape.new(name: 'Integer')
54
+ IntegerString = Shapes::IntegerShape.new(name: 'IntegerString')
55
+ InternalErrorException = Shapes::StructureShape.new(name: 'InternalErrorException')
56
+ InvalidConfigurationException = Shapes::StructureShape.new(name: 'InvalidConfigurationException')
57
+ InvalidLambdaFunctionOutputException = Shapes::StructureShape.new(name: 'InvalidLambdaFunctionOutputException')
58
+ InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
59
+ LambdaFunctionArn = Shapes::StringShape.new(name: 'LambdaFunctionArn')
60
+ LambdaThrottledException = Shapes::StructureShape.new(name: 'LambdaThrottledException')
61
+ LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
62
+ ListDatasetsRequest = Shapes::StructureShape.new(name: 'ListDatasetsRequest')
63
+ ListDatasetsResponse = Shapes::StructureShape.new(name: 'ListDatasetsResponse')
64
+ ListIdentityPoolUsageRequest = Shapes::StructureShape.new(name: 'ListIdentityPoolUsageRequest')
65
+ ListIdentityPoolUsageResponse = Shapes::StructureShape.new(name: 'ListIdentityPoolUsageResponse')
66
+ ListRecordsRequest = Shapes::StructureShape.new(name: 'ListRecordsRequest')
67
+ ListRecordsResponse = Shapes::StructureShape.new(name: 'ListRecordsResponse')
68
+ Long = Shapes::IntegerShape.new(name: 'Long')
69
+ MergedDatasetNameList = Shapes::ListShape.new(name: 'MergedDatasetNameList')
70
+ NotAuthorizedException = Shapes::StructureShape.new(name: 'NotAuthorizedException')
71
+ Operation = Shapes::StringShape.new(name: 'Operation')
72
+ Platform = Shapes::StringShape.new(name: 'Platform')
73
+ PushSync = Shapes::StructureShape.new(name: 'PushSync')
74
+ PushToken = Shapes::StringShape.new(name: 'PushToken')
75
+ Record = Shapes::StructureShape.new(name: 'Record')
76
+ RecordKey = Shapes::StringShape.new(name: 'RecordKey')
77
+ RecordList = Shapes::ListShape.new(name: 'RecordList')
78
+ RecordPatch = Shapes::StructureShape.new(name: 'RecordPatch')
79
+ RecordPatchList = Shapes::ListShape.new(name: 'RecordPatchList')
80
+ RecordValue = Shapes::StringShape.new(name: 'RecordValue')
81
+ RegisterDeviceRequest = Shapes::StructureShape.new(name: 'RegisterDeviceRequest')
82
+ RegisterDeviceResponse = Shapes::StructureShape.new(name: 'RegisterDeviceResponse')
83
+ ResourceConflictException = Shapes::StructureShape.new(name: 'ResourceConflictException')
84
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
85
+ SetCognitoEventsRequest = Shapes::StructureShape.new(name: 'SetCognitoEventsRequest')
86
+ SetIdentityPoolConfigurationRequest = Shapes::StructureShape.new(name: 'SetIdentityPoolConfigurationRequest')
87
+ SetIdentityPoolConfigurationResponse = Shapes::StructureShape.new(name: 'SetIdentityPoolConfigurationResponse')
88
+ StreamName = Shapes::StringShape.new(name: 'StreamName')
89
+ StreamingStatus = Shapes::StringShape.new(name: 'StreamingStatus')
90
+ String = Shapes::StringShape.new(name: 'String')
91
+ SubscribeToDatasetRequest = Shapes::StructureShape.new(name: 'SubscribeToDatasetRequest')
92
+ SubscribeToDatasetResponse = Shapes::StructureShape.new(name: 'SubscribeToDatasetResponse')
93
+ SyncSessionToken = Shapes::StringShape.new(name: 'SyncSessionToken')
94
+ TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
95
+ UnsubscribeFromDatasetRequest = Shapes::StructureShape.new(name: 'UnsubscribeFromDatasetRequest')
96
+ UnsubscribeFromDatasetResponse = Shapes::StructureShape.new(name: 'UnsubscribeFromDatasetResponse')
97
+ UpdateRecordsRequest = Shapes::StructureShape.new(name: 'UpdateRecordsRequest')
98
+ UpdateRecordsResponse = Shapes::StructureShape.new(name: 'UpdateRecordsResponse')
99
+
100
+ ApplicationArnList.member = Shapes::ShapeRef.new(shape: ApplicationArn)
101
+
102
+ BulkPublishRequest.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location: "uri", location_name: "IdentityPoolId"))
103
+ BulkPublishRequest.struct_class = Types::BulkPublishRequest
104
+
105
+ BulkPublishResponse.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, location_name: "IdentityPoolId"))
106
+ BulkPublishResponse.struct_class = Types::BulkPublishResponse
107
+
108
+ CognitoStreams.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, location_name: "StreamName"))
109
+ CognitoStreams.add_member(:role_arn, Shapes::ShapeRef.new(shape: AssumeRoleArn, location_name: "RoleArn"))
110
+ CognitoStreams.add_member(:streaming_status, Shapes::ShapeRef.new(shape: StreamingStatus, location_name: "StreamingStatus"))
111
+ CognitoStreams.struct_class = Types::CognitoStreams
112
+
113
+ Dataset.add_member(:identity_id, Shapes::ShapeRef.new(shape: IdentityId, location_name: "IdentityId"))
114
+ Dataset.add_member(:dataset_name, Shapes::ShapeRef.new(shape: DatasetName, location_name: "DatasetName"))
115
+ Dataset.add_member(:creation_date, Shapes::ShapeRef.new(shape: Date, location_name: "CreationDate"))
116
+ Dataset.add_member(:last_modified_date, Shapes::ShapeRef.new(shape: Date, location_name: "LastModifiedDate"))
117
+ Dataset.add_member(:last_modified_by, Shapes::ShapeRef.new(shape: String, location_name: "LastModifiedBy"))
118
+ Dataset.add_member(:data_storage, Shapes::ShapeRef.new(shape: Long, location_name: "DataStorage"))
119
+ Dataset.add_member(:num_records, Shapes::ShapeRef.new(shape: Long, location_name: "NumRecords"))
120
+ Dataset.struct_class = Types::Dataset
121
+
122
+ DatasetList.member = Shapes::ShapeRef.new(shape: Dataset)
123
+
124
+ DeleteDatasetRequest.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location: "uri", location_name: "IdentityPoolId"))
125
+ DeleteDatasetRequest.add_member(:identity_id, Shapes::ShapeRef.new(shape: IdentityId, required: true, location: "uri", location_name: "IdentityId"))
126
+ DeleteDatasetRequest.add_member(:dataset_name, Shapes::ShapeRef.new(shape: DatasetName, required: true, location: "uri", location_name: "DatasetName"))
127
+ DeleteDatasetRequest.struct_class = Types::DeleteDatasetRequest
128
+
129
+ DeleteDatasetResponse.add_member(:dataset, Shapes::ShapeRef.new(shape: Dataset, location_name: "Dataset"))
130
+ DeleteDatasetResponse.struct_class = Types::DeleteDatasetResponse
131
+
132
+ DescribeDatasetRequest.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location: "uri", location_name: "IdentityPoolId"))
133
+ DescribeDatasetRequest.add_member(:identity_id, Shapes::ShapeRef.new(shape: IdentityId, required: true, location: "uri", location_name: "IdentityId"))
134
+ DescribeDatasetRequest.add_member(:dataset_name, Shapes::ShapeRef.new(shape: DatasetName, required: true, location: "uri", location_name: "DatasetName"))
135
+ DescribeDatasetRequest.struct_class = Types::DescribeDatasetRequest
136
+
137
+ DescribeDatasetResponse.add_member(:dataset, Shapes::ShapeRef.new(shape: Dataset, location_name: "Dataset"))
138
+ DescribeDatasetResponse.struct_class = Types::DescribeDatasetResponse
139
+
140
+ DescribeIdentityPoolUsageRequest.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location: "uri", location_name: "IdentityPoolId"))
141
+ DescribeIdentityPoolUsageRequest.struct_class = Types::DescribeIdentityPoolUsageRequest
142
+
143
+ DescribeIdentityPoolUsageResponse.add_member(:identity_pool_usage, Shapes::ShapeRef.new(shape: IdentityPoolUsage, location_name: "IdentityPoolUsage"))
144
+ DescribeIdentityPoolUsageResponse.struct_class = Types::DescribeIdentityPoolUsageResponse
145
+
146
+ DescribeIdentityUsageRequest.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location: "uri", location_name: "IdentityPoolId"))
147
+ DescribeIdentityUsageRequest.add_member(:identity_id, Shapes::ShapeRef.new(shape: IdentityId, required: true, location: "uri", location_name: "IdentityId"))
148
+ DescribeIdentityUsageRequest.struct_class = Types::DescribeIdentityUsageRequest
149
+
150
+ DescribeIdentityUsageResponse.add_member(:identity_usage, Shapes::ShapeRef.new(shape: IdentityUsage, location_name: "IdentityUsage"))
151
+ DescribeIdentityUsageResponse.struct_class = Types::DescribeIdentityUsageResponse
152
+
153
+ Events.key = Shapes::ShapeRef.new(shape: CognitoEventType)
154
+ Events.value = Shapes::ShapeRef.new(shape: LambdaFunctionArn)
155
+
156
+ GetBulkPublishDetailsRequest.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location: "uri", location_name: "IdentityPoolId"))
157
+ GetBulkPublishDetailsRequest.struct_class = Types::GetBulkPublishDetailsRequest
158
+
159
+ GetBulkPublishDetailsResponse.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, location_name: "IdentityPoolId"))
160
+ GetBulkPublishDetailsResponse.add_member(:bulk_publish_start_time, Shapes::ShapeRef.new(shape: Date, location_name: "BulkPublishStartTime"))
161
+ GetBulkPublishDetailsResponse.add_member(:bulk_publish_complete_time, Shapes::ShapeRef.new(shape: Date, location_name: "BulkPublishCompleteTime"))
162
+ GetBulkPublishDetailsResponse.add_member(:bulk_publish_status, Shapes::ShapeRef.new(shape: BulkPublishStatus, location_name: "BulkPublishStatus"))
163
+ GetBulkPublishDetailsResponse.add_member(:failure_message, Shapes::ShapeRef.new(shape: String, location_name: "FailureMessage"))
164
+ GetBulkPublishDetailsResponse.struct_class = Types::GetBulkPublishDetailsResponse
165
+
166
+ GetCognitoEventsRequest.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location: "uri", location_name: "IdentityPoolId"))
167
+ GetCognitoEventsRequest.struct_class = Types::GetCognitoEventsRequest
168
+
169
+ GetCognitoEventsResponse.add_member(:events, Shapes::ShapeRef.new(shape: Events, location_name: "Events"))
170
+ GetCognitoEventsResponse.struct_class = Types::GetCognitoEventsResponse
171
+
172
+ GetIdentityPoolConfigurationRequest.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location: "uri", location_name: "IdentityPoolId"))
173
+ GetIdentityPoolConfigurationRequest.struct_class = Types::GetIdentityPoolConfigurationRequest
174
+
175
+ GetIdentityPoolConfigurationResponse.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, location_name: "IdentityPoolId"))
176
+ GetIdentityPoolConfigurationResponse.add_member(:push_sync, Shapes::ShapeRef.new(shape: PushSync, location_name: "PushSync"))
177
+ GetIdentityPoolConfigurationResponse.add_member(:cognito_streams, Shapes::ShapeRef.new(shape: CognitoStreams, location_name: "CognitoStreams"))
178
+ GetIdentityPoolConfigurationResponse.struct_class = Types::GetIdentityPoolConfigurationResponse
179
+
180
+ IdentityPoolUsage.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, location_name: "IdentityPoolId"))
181
+ IdentityPoolUsage.add_member(:sync_sessions_count, Shapes::ShapeRef.new(shape: Long, location_name: "SyncSessionsCount"))
182
+ IdentityPoolUsage.add_member(:data_storage, Shapes::ShapeRef.new(shape: Long, location_name: "DataStorage"))
183
+ IdentityPoolUsage.add_member(:last_modified_date, Shapes::ShapeRef.new(shape: Date, location_name: "LastModifiedDate"))
184
+ IdentityPoolUsage.struct_class = Types::IdentityPoolUsage
185
+
186
+ IdentityPoolUsageList.member = Shapes::ShapeRef.new(shape: IdentityPoolUsage)
187
+
188
+ IdentityUsage.add_member(:identity_id, Shapes::ShapeRef.new(shape: IdentityId, location_name: "IdentityId"))
189
+ IdentityUsage.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, location_name: "IdentityPoolId"))
190
+ IdentityUsage.add_member(:last_modified_date, Shapes::ShapeRef.new(shape: Date, location_name: "LastModifiedDate"))
191
+ IdentityUsage.add_member(:dataset_count, Shapes::ShapeRef.new(shape: Integer, location_name: "DatasetCount"))
192
+ IdentityUsage.add_member(:data_storage, Shapes::ShapeRef.new(shape: Long, location_name: "DataStorage"))
193
+ IdentityUsage.struct_class = Types::IdentityUsage
194
+
195
+ ListDatasetsRequest.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location: "uri", location_name: "IdentityPoolId"))
196
+ ListDatasetsRequest.add_member(:identity_id, Shapes::ShapeRef.new(shape: IdentityId, required: true, location: "uri", location_name: "IdentityId"))
197
+ ListDatasetsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "nextToken"))
198
+ ListDatasetsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: IntegerString, location: "querystring", location_name: "maxResults"))
199
+ ListDatasetsRequest.struct_class = Types::ListDatasetsRequest
200
+
201
+ ListDatasetsResponse.add_member(:datasets, Shapes::ShapeRef.new(shape: DatasetList, location_name: "Datasets"))
202
+ ListDatasetsResponse.add_member(:count, Shapes::ShapeRef.new(shape: Integer, location_name: "Count"))
203
+ ListDatasetsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
204
+ ListDatasetsResponse.struct_class = Types::ListDatasetsResponse
205
+
206
+ ListIdentityPoolUsageRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "nextToken"))
207
+ ListIdentityPoolUsageRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: IntegerString, location: "querystring", location_name: "maxResults"))
208
+ ListIdentityPoolUsageRequest.struct_class = Types::ListIdentityPoolUsageRequest
209
+
210
+ ListIdentityPoolUsageResponse.add_member(:identity_pool_usages, Shapes::ShapeRef.new(shape: IdentityPoolUsageList, location_name: "IdentityPoolUsages"))
211
+ ListIdentityPoolUsageResponse.add_member(:max_results, Shapes::ShapeRef.new(shape: Integer, location_name: "MaxResults"))
212
+ ListIdentityPoolUsageResponse.add_member(:count, Shapes::ShapeRef.new(shape: Integer, location_name: "Count"))
213
+ ListIdentityPoolUsageResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
214
+ ListIdentityPoolUsageResponse.struct_class = Types::ListIdentityPoolUsageResponse
215
+
216
+ ListRecordsRequest.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location: "uri", location_name: "IdentityPoolId"))
217
+ ListRecordsRequest.add_member(:identity_id, Shapes::ShapeRef.new(shape: IdentityId, required: true, location: "uri", location_name: "IdentityId"))
218
+ ListRecordsRequest.add_member(:dataset_name, Shapes::ShapeRef.new(shape: DatasetName, required: true, location: "uri", location_name: "DatasetName"))
219
+ ListRecordsRequest.add_member(:last_sync_count, Shapes::ShapeRef.new(shape: Long, location: "querystring", location_name: "lastSyncCount"))
220
+ ListRecordsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "nextToken"))
221
+ ListRecordsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: IntegerString, location: "querystring", location_name: "maxResults"))
222
+ ListRecordsRequest.add_member(:sync_session_token, Shapes::ShapeRef.new(shape: SyncSessionToken, location: "querystring", location_name: "syncSessionToken"))
223
+ ListRecordsRequest.struct_class = Types::ListRecordsRequest
224
+
225
+ ListRecordsResponse.add_member(:records, Shapes::ShapeRef.new(shape: RecordList, location_name: "Records"))
226
+ ListRecordsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
227
+ ListRecordsResponse.add_member(:count, Shapes::ShapeRef.new(shape: Integer, location_name: "Count"))
228
+ ListRecordsResponse.add_member(:dataset_sync_count, Shapes::ShapeRef.new(shape: Long, location_name: "DatasetSyncCount"))
229
+ ListRecordsResponse.add_member(:last_modified_by, Shapes::ShapeRef.new(shape: String, location_name: "LastModifiedBy"))
230
+ ListRecordsResponse.add_member(:merged_dataset_names, Shapes::ShapeRef.new(shape: MergedDatasetNameList, location_name: "MergedDatasetNames"))
231
+ ListRecordsResponse.add_member(:dataset_exists, Shapes::ShapeRef.new(shape: Boolean, location_name: "DatasetExists"))
232
+ ListRecordsResponse.add_member(:dataset_deleted_after_requested_sync_count, Shapes::ShapeRef.new(shape: Boolean, location_name: "DatasetDeletedAfterRequestedSyncCount"))
233
+ ListRecordsResponse.add_member(:sync_session_token, Shapes::ShapeRef.new(shape: String, location_name: "SyncSessionToken"))
234
+ ListRecordsResponse.struct_class = Types::ListRecordsResponse
235
+
236
+ MergedDatasetNameList.member = Shapes::ShapeRef.new(shape: String)
237
+
238
+ PushSync.add_member(:application_arns, Shapes::ShapeRef.new(shape: ApplicationArnList, location_name: "ApplicationArns"))
239
+ PushSync.add_member(:role_arn, Shapes::ShapeRef.new(shape: AssumeRoleArn, location_name: "RoleArn"))
240
+ PushSync.struct_class = Types::PushSync
241
+
242
+ Record.add_member(:key, Shapes::ShapeRef.new(shape: RecordKey, location_name: "Key"))
243
+ Record.add_member(:value, Shapes::ShapeRef.new(shape: RecordValue, location_name: "Value"))
244
+ Record.add_member(:sync_count, Shapes::ShapeRef.new(shape: Long, location_name: "SyncCount"))
245
+ Record.add_member(:last_modified_date, Shapes::ShapeRef.new(shape: Date, location_name: "LastModifiedDate"))
246
+ Record.add_member(:last_modified_by, Shapes::ShapeRef.new(shape: String, location_name: "LastModifiedBy"))
247
+ Record.add_member(:device_last_modified_date, Shapes::ShapeRef.new(shape: Date, location_name: "DeviceLastModifiedDate"))
248
+ Record.struct_class = Types::Record
249
+
250
+ RecordList.member = Shapes::ShapeRef.new(shape: Record)
251
+
252
+ RecordPatch.add_member(:op, Shapes::ShapeRef.new(shape: Operation, required: true, location_name: "Op"))
253
+ RecordPatch.add_member(:key, Shapes::ShapeRef.new(shape: RecordKey, required: true, location_name: "Key"))
254
+ RecordPatch.add_member(:value, Shapes::ShapeRef.new(shape: RecordValue, location_name: "Value"))
255
+ RecordPatch.add_member(:sync_count, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "SyncCount"))
256
+ RecordPatch.add_member(:device_last_modified_date, Shapes::ShapeRef.new(shape: Date, location_name: "DeviceLastModifiedDate"))
257
+ RecordPatch.struct_class = Types::RecordPatch
258
+
259
+ RecordPatchList.member = Shapes::ShapeRef.new(shape: RecordPatch)
260
+
261
+ RegisterDeviceRequest.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location: "uri", location_name: "IdentityPoolId"))
262
+ RegisterDeviceRequest.add_member(:identity_id, Shapes::ShapeRef.new(shape: IdentityId, required: true, location: "uri", location_name: "IdentityId"))
263
+ RegisterDeviceRequest.add_member(:platform, Shapes::ShapeRef.new(shape: Platform, required: true, location_name: "Platform"))
264
+ RegisterDeviceRequest.add_member(:token, Shapes::ShapeRef.new(shape: PushToken, required: true, location_name: "Token"))
265
+ RegisterDeviceRequest.struct_class = Types::RegisterDeviceRequest
266
+
267
+ RegisterDeviceResponse.add_member(:device_id, Shapes::ShapeRef.new(shape: DeviceId, location_name: "DeviceId"))
268
+ RegisterDeviceResponse.struct_class = Types::RegisterDeviceResponse
269
+
270
+ SetCognitoEventsRequest.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location: "uri", location_name: "IdentityPoolId"))
271
+ SetCognitoEventsRequest.add_member(:events, Shapes::ShapeRef.new(shape: Events, required: true, location_name: "Events"))
272
+ SetCognitoEventsRequest.struct_class = Types::SetCognitoEventsRequest
273
+
274
+ SetIdentityPoolConfigurationRequest.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location: "uri", location_name: "IdentityPoolId"))
275
+ SetIdentityPoolConfigurationRequest.add_member(:push_sync, Shapes::ShapeRef.new(shape: PushSync, location_name: "PushSync"))
276
+ SetIdentityPoolConfigurationRequest.add_member(:cognito_streams, Shapes::ShapeRef.new(shape: CognitoStreams, location_name: "CognitoStreams"))
277
+ SetIdentityPoolConfigurationRequest.struct_class = Types::SetIdentityPoolConfigurationRequest
278
+
279
+ SetIdentityPoolConfigurationResponse.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, location_name: "IdentityPoolId"))
280
+ SetIdentityPoolConfigurationResponse.add_member(:push_sync, Shapes::ShapeRef.new(shape: PushSync, location_name: "PushSync"))
281
+ SetIdentityPoolConfigurationResponse.add_member(:cognito_streams, Shapes::ShapeRef.new(shape: CognitoStreams, location_name: "CognitoStreams"))
282
+ SetIdentityPoolConfigurationResponse.struct_class = Types::SetIdentityPoolConfigurationResponse
283
+
284
+ SubscribeToDatasetRequest.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location: "uri", location_name: "IdentityPoolId"))
285
+ SubscribeToDatasetRequest.add_member(:identity_id, Shapes::ShapeRef.new(shape: IdentityId, required: true, location: "uri", location_name: "IdentityId"))
286
+ SubscribeToDatasetRequest.add_member(:dataset_name, Shapes::ShapeRef.new(shape: DatasetName, required: true, location: "uri", location_name: "DatasetName"))
287
+ SubscribeToDatasetRequest.add_member(:device_id, Shapes::ShapeRef.new(shape: DeviceId, required: true, location: "uri", location_name: "DeviceId"))
288
+ SubscribeToDatasetRequest.struct_class = Types::SubscribeToDatasetRequest
289
+
290
+ SubscribeToDatasetResponse.struct_class = Types::SubscribeToDatasetResponse
291
+
292
+ UnsubscribeFromDatasetRequest.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location: "uri", location_name: "IdentityPoolId"))
293
+ UnsubscribeFromDatasetRequest.add_member(:identity_id, Shapes::ShapeRef.new(shape: IdentityId, required: true, location: "uri", location_name: "IdentityId"))
294
+ UnsubscribeFromDatasetRequest.add_member(:dataset_name, Shapes::ShapeRef.new(shape: DatasetName, required: true, location: "uri", location_name: "DatasetName"))
295
+ UnsubscribeFromDatasetRequest.add_member(:device_id, Shapes::ShapeRef.new(shape: DeviceId, required: true, location: "uri", location_name: "DeviceId"))
296
+ UnsubscribeFromDatasetRequest.struct_class = Types::UnsubscribeFromDatasetRequest
297
+
298
+ UnsubscribeFromDatasetResponse.struct_class = Types::UnsubscribeFromDatasetResponse
299
+
300
+ UpdateRecordsRequest.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location: "uri", location_name: "IdentityPoolId"))
301
+ UpdateRecordsRequest.add_member(:identity_id, Shapes::ShapeRef.new(shape: IdentityId, required: true, location: "uri", location_name: "IdentityId"))
302
+ UpdateRecordsRequest.add_member(:dataset_name, Shapes::ShapeRef.new(shape: DatasetName, required: true, location: "uri", location_name: "DatasetName"))
303
+ UpdateRecordsRequest.add_member(:device_id, Shapes::ShapeRef.new(shape: DeviceId, location_name: "DeviceId"))
304
+ UpdateRecordsRequest.add_member(:record_patches, Shapes::ShapeRef.new(shape: RecordPatchList, location_name: "RecordPatches"))
305
+ UpdateRecordsRequest.add_member(:sync_session_token, Shapes::ShapeRef.new(shape: SyncSessionToken, required: true, location_name: "SyncSessionToken"))
306
+ UpdateRecordsRequest.add_member(:client_context, Shapes::ShapeRef.new(shape: ClientContext, location: "header", location_name: "x-amz-Client-Context"))
307
+ UpdateRecordsRequest.struct_class = Types::UpdateRecordsRequest
308
+
309
+ UpdateRecordsResponse.add_member(:records, Shapes::ShapeRef.new(shape: RecordList, location_name: "Records"))
310
+ UpdateRecordsResponse.struct_class = Types::UpdateRecordsResponse
311
+
844
312
 
313
+ # @api private
314
+ API = Seahorse::Model::Api.new.tap do |api|
315
+
316
+ api.version = "2014-06-30"
317
+
318
+ api.metadata = {
319
+ "endpointPrefix" => "cognito-sync",
320
+ "jsonVersion" => "1.1",
321
+ "protocol" => "rest-json",
322
+ "serviceFullName" => "Amazon Cognito Sync",
323
+ "signatureVersion" => "v4",
324
+ }
325
+
326
+ api.add_operation(:bulk_publish, Seahorse::Model::Operation.new.tap do |o|
327
+ o.name = "BulkPublish"
328
+ o.http_method = "POST"
329
+ o.http_request_uri = "/identitypools/{IdentityPoolId}/bulkpublish"
330
+ o.input = Shapes::ShapeRef.new(shape: BulkPublishRequest)
331
+ o.output = Shapes::ShapeRef.new(shape: BulkPublishResponse)
332
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
333
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
334
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
335
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
336
+ o.errors << Shapes::ShapeRef.new(shape: DuplicateRequestException)
337
+ o.errors << Shapes::ShapeRef.new(shape: AlreadyStreamedException)
338
+ end)
339
+
340
+ api.add_operation(:delete_dataset, Seahorse::Model::Operation.new.tap do |o|
341
+ o.name = "DeleteDataset"
342
+ o.http_method = "DELETE"
343
+ o.http_request_uri = "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}"
344
+ o.input = Shapes::ShapeRef.new(shape: DeleteDatasetRequest)
345
+ o.output = Shapes::ShapeRef.new(shape: DeleteDatasetResponse)
346
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
347
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
348
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
349
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
350
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
351
+ o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
352
+ end)
353
+
354
+ api.add_operation(:describe_dataset, Seahorse::Model::Operation.new.tap do |o|
355
+ o.name = "DescribeDataset"
356
+ o.http_method = "GET"
357
+ o.http_request_uri = "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}"
358
+ o.input = Shapes::ShapeRef.new(shape: DescribeDatasetRequest)
359
+ o.output = Shapes::ShapeRef.new(shape: DescribeDatasetResponse)
360
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
361
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
362
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
363
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
364
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
365
+ end)
366
+
367
+ api.add_operation(:describe_identity_pool_usage, Seahorse::Model::Operation.new.tap do |o|
368
+ o.name = "DescribeIdentityPoolUsage"
369
+ o.http_method = "GET"
370
+ o.http_request_uri = "/identitypools/{IdentityPoolId}"
371
+ o.input = Shapes::ShapeRef.new(shape: DescribeIdentityPoolUsageRequest)
372
+ o.output = Shapes::ShapeRef.new(shape: DescribeIdentityPoolUsageResponse)
373
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
374
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
375
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
376
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
377
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
378
+ end)
379
+
380
+ api.add_operation(:describe_identity_usage, Seahorse::Model::Operation.new.tap do |o|
381
+ o.name = "DescribeIdentityUsage"
382
+ o.http_method = "GET"
383
+ o.http_request_uri = "/identitypools/{IdentityPoolId}/identities/{IdentityId}"
384
+ o.input = Shapes::ShapeRef.new(shape: DescribeIdentityUsageRequest)
385
+ o.output = Shapes::ShapeRef.new(shape: DescribeIdentityUsageResponse)
386
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
387
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
388
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
389
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
390
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
391
+ end)
392
+
393
+ api.add_operation(:get_bulk_publish_details, Seahorse::Model::Operation.new.tap do |o|
394
+ o.name = "GetBulkPublishDetails"
395
+ o.http_method = "POST"
396
+ o.http_request_uri = "/identitypools/{IdentityPoolId}/getBulkPublishDetails"
397
+ o.input = Shapes::ShapeRef.new(shape: GetBulkPublishDetailsRequest)
398
+ o.output = Shapes::ShapeRef.new(shape: GetBulkPublishDetailsResponse)
399
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
400
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
401
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
402
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
403
+ end)
404
+
405
+ api.add_operation(:get_cognito_events, Seahorse::Model::Operation.new.tap do |o|
406
+ o.name = "GetCognitoEvents"
407
+ o.http_method = "GET"
408
+ o.http_request_uri = "/identitypools/{IdentityPoolId}/events"
409
+ o.input = Shapes::ShapeRef.new(shape: GetCognitoEventsRequest)
410
+ o.output = Shapes::ShapeRef.new(shape: GetCognitoEventsResponse)
411
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
412
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
413
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
414
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
415
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
416
+ end)
417
+
418
+ api.add_operation(:get_identity_pool_configuration, Seahorse::Model::Operation.new.tap do |o|
419
+ o.name = "GetIdentityPoolConfiguration"
420
+ o.http_method = "GET"
421
+ o.http_request_uri = "/identitypools/{IdentityPoolId}/configuration"
422
+ o.input = Shapes::ShapeRef.new(shape: GetIdentityPoolConfigurationRequest)
423
+ o.output = Shapes::ShapeRef.new(shape: GetIdentityPoolConfigurationResponse)
424
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
425
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
426
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
427
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
428
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
429
+ end)
430
+
431
+ api.add_operation(:list_datasets, Seahorse::Model::Operation.new.tap do |o|
432
+ o.name = "ListDatasets"
433
+ o.http_method = "GET"
434
+ o.http_request_uri = "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets"
435
+ o.input = Shapes::ShapeRef.new(shape: ListDatasetsRequest)
436
+ o.output = Shapes::ShapeRef.new(shape: ListDatasetsResponse)
437
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
438
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
439
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
440
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
441
+ end)
442
+
443
+ api.add_operation(:list_identity_pool_usage, Seahorse::Model::Operation.new.tap do |o|
444
+ o.name = "ListIdentityPoolUsage"
445
+ o.http_method = "GET"
446
+ o.http_request_uri = "/identitypools"
447
+ o.input = Shapes::ShapeRef.new(shape: ListIdentityPoolUsageRequest)
448
+ o.output = Shapes::ShapeRef.new(shape: ListIdentityPoolUsageResponse)
449
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
450
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
451
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
452
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
453
+ end)
454
+
455
+ api.add_operation(:list_records, Seahorse::Model::Operation.new.tap do |o|
456
+ o.name = "ListRecords"
457
+ o.http_method = "GET"
458
+ o.http_request_uri = "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/records"
459
+ o.input = Shapes::ShapeRef.new(shape: ListRecordsRequest)
460
+ o.output = Shapes::ShapeRef.new(shape: ListRecordsResponse)
461
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
462
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
463
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
464
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
465
+ end)
466
+
467
+ api.add_operation(:register_device, Seahorse::Model::Operation.new.tap do |o|
468
+ o.name = "RegisterDevice"
469
+ o.http_method = "POST"
470
+ o.http_request_uri = "/identitypools/{IdentityPoolId}/identity/{IdentityId}/device"
471
+ o.input = Shapes::ShapeRef.new(shape: RegisterDeviceRequest)
472
+ o.output = Shapes::ShapeRef.new(shape: RegisterDeviceResponse)
473
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
474
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
475
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
476
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
477
+ o.errors << Shapes::ShapeRef.new(shape: InvalidConfigurationException)
478
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
479
+ end)
480
+
481
+ api.add_operation(:set_cognito_events, Seahorse::Model::Operation.new.tap do |o|
482
+ o.name = "SetCognitoEvents"
483
+ o.http_method = "POST"
484
+ o.http_request_uri = "/identitypools/{IdentityPoolId}/events"
485
+ o.input = Shapes::ShapeRef.new(shape: SetCognitoEventsRequest)
486
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
487
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
488
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
489
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
490
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
491
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
492
+ end)
493
+
494
+ api.add_operation(:set_identity_pool_configuration, Seahorse::Model::Operation.new.tap do |o|
495
+ o.name = "SetIdentityPoolConfiguration"
496
+ o.http_method = "POST"
497
+ o.http_request_uri = "/identitypools/{IdentityPoolId}/configuration"
498
+ o.input = Shapes::ShapeRef.new(shape: SetIdentityPoolConfigurationRequest)
499
+ o.output = Shapes::ShapeRef.new(shape: SetIdentityPoolConfigurationResponse)
500
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
501
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
502
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
503
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
504
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
505
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
506
+ end)
507
+
508
+ api.add_operation(:subscribe_to_dataset, Seahorse::Model::Operation.new.tap do |o|
509
+ o.name = "SubscribeToDataset"
510
+ o.http_method = "POST"
511
+ o.http_request_uri = "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}"
512
+ o.input = Shapes::ShapeRef.new(shape: SubscribeToDatasetRequest)
513
+ o.output = Shapes::ShapeRef.new(shape: SubscribeToDatasetResponse)
514
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
515
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
516
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
517
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
518
+ o.errors << Shapes::ShapeRef.new(shape: InvalidConfigurationException)
519
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
520
+ end)
521
+
522
+ api.add_operation(:unsubscribe_from_dataset, Seahorse::Model::Operation.new.tap do |o|
523
+ o.name = "UnsubscribeFromDataset"
524
+ o.http_method = "DELETE"
525
+ o.http_request_uri = "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}"
526
+ o.input = Shapes::ShapeRef.new(shape: UnsubscribeFromDatasetRequest)
527
+ o.output = Shapes::ShapeRef.new(shape: UnsubscribeFromDatasetResponse)
528
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
529
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
530
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
531
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
532
+ o.errors << Shapes::ShapeRef.new(shape: InvalidConfigurationException)
533
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
534
+ end)
535
+
536
+ api.add_operation(:update_records, Seahorse::Model::Operation.new.tap do |o|
537
+ o.name = "UpdateRecords"
538
+ o.http_method = "POST"
539
+ o.http_request_uri = "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}"
540
+ o.input = Shapes::ShapeRef.new(shape: UpdateRecordsRequest)
541
+ o.output = Shapes::ShapeRef.new(shape: UpdateRecordsResponse)
542
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
543
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
544
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
545
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
546
+ o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
547
+ o.errors << Shapes::ShapeRef.new(shape: InvalidLambdaFunctionOutputException)
548
+ o.errors << Shapes::ShapeRef.new(shape: LambdaThrottledException)
549
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
550
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
551
+ end)
845
552
  end
553
+
846
554
  end
847
555
  end