aws-sdk-cognitosync 1.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,847 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing for info on making contributions:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
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
844
+
845
+ end
846
+ end
847
+ end