@aws-sdk/client-cognito-sync 3.30.0 → 3.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/dist/cjs/CognitoSyncClient.js +13 -13
- package/dist/cjs/CognitoSyncClient.js.map +1 -1
- package/dist/cjs/commands/BulkPublishCommand.js +3 -3
- package/dist/cjs/commands/BulkPublishCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteDatasetCommand.js +3 -3
- package/dist/cjs/commands/DeleteDatasetCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeDatasetCommand.js +3 -3
- package/dist/cjs/commands/DescribeDatasetCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeIdentityPoolUsageCommand.js +3 -3
- package/dist/cjs/commands/DescribeIdentityPoolUsageCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeIdentityUsageCommand.js +3 -3
- package/dist/cjs/commands/DescribeIdentityUsageCommand.js.map +1 -1
- package/dist/cjs/commands/GetBulkPublishDetailsCommand.js +3 -3
- package/dist/cjs/commands/GetBulkPublishDetailsCommand.js.map +1 -1
- package/dist/cjs/commands/GetCognitoEventsCommand.js +3 -3
- package/dist/cjs/commands/GetCognitoEventsCommand.js.map +1 -1
- package/dist/cjs/commands/GetIdentityPoolConfigurationCommand.js +3 -3
- package/dist/cjs/commands/GetIdentityPoolConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/ListDatasetsCommand.js +3 -3
- package/dist/cjs/commands/ListDatasetsCommand.js.map +1 -1
- package/dist/cjs/commands/ListIdentityPoolUsageCommand.js +3 -3
- package/dist/cjs/commands/ListIdentityPoolUsageCommand.js.map +1 -1
- package/dist/cjs/commands/ListRecordsCommand.js +3 -3
- package/dist/cjs/commands/ListRecordsCommand.js.map +1 -1
- package/dist/cjs/commands/RegisterDeviceCommand.js +3 -3
- package/dist/cjs/commands/RegisterDeviceCommand.js.map +1 -1
- package/dist/cjs/commands/SetCognitoEventsCommand.js +3 -3
- package/dist/cjs/commands/SetCognitoEventsCommand.js.map +1 -1
- package/dist/cjs/commands/SetIdentityPoolConfigurationCommand.js +3 -3
- package/dist/cjs/commands/SetIdentityPoolConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/SubscribeToDatasetCommand.js +3 -3
- package/dist/cjs/commands/SubscribeToDatasetCommand.js.map +1 -1
- package/dist/cjs/commands/UnsubscribeFromDatasetCommand.js +3 -3
- package/dist/cjs/commands/UnsubscribeFromDatasetCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateRecordsCommand.js +3 -3
- package/dist/cjs/commands/UpdateRecordsCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +20 -20
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +39 -39
- package/dist/cjs/protocols/Aws_restJson1.js +110 -110
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/es/CognitoSync.js +1 -16
- package/dist/es/CognitoSync.js.map +1 -1
- package/dist/es/CognitoSyncClient.js +1 -21
- package/dist/es/CognitoSyncClient.js.map +1 -1
- package/dist/es/commands/BulkPublishCommand.js +2 -27
- package/dist/es/commands/BulkPublishCommand.js.map +1 -1
- package/dist/es/commands/DeleteDatasetCommand.js +2 -31
- package/dist/es/commands/DeleteDatasetCommand.js.map +1 -1
- package/dist/es/commands/DescribeDatasetCommand.js +2 -30
- package/dist/es/commands/DescribeDatasetCommand.js.map +1 -1
- package/dist/es/commands/DescribeIdentityPoolUsageCommand.js +2 -75
- package/dist/es/commands/DescribeIdentityPoolUsageCommand.js.map +1 -1
- package/dist/es/commands/DescribeIdentityUsageCommand.js +2 -76
- package/dist/es/commands/DescribeIdentityUsageCommand.js.map +1 -1
- package/dist/es/commands/GetBulkPublishDetailsCommand.js +2 -27
- package/dist/es/commands/GetBulkPublishDetailsCommand.js.map +1 -1
- package/dist/es/commands/GetCognitoEventsCommand.js +2 -27
- package/dist/es/commands/GetCognitoEventsCommand.js.map +1 -1
- package/dist/es/commands/GetIdentityPoolConfigurationCommand.js +2 -73
- package/dist/es/commands/GetIdentityPoolConfigurationCommand.js.map +1 -1
- package/dist/es/commands/ListDatasetsCommand.js +2 -85
- package/dist/es/commands/ListDatasetsCommand.js.map +1 -1
- package/dist/es/commands/ListIdentityPoolUsageCommand.js +2 -85
- package/dist/es/commands/ListIdentityPoolUsageCommand.js.map +1 -1
- package/dist/es/commands/ListRecordsCommand.js +2 -82
- package/dist/es/commands/ListRecordsCommand.js.map +1 -1
- package/dist/es/commands/RegisterDeviceCommand.js +2 -71
- package/dist/es/commands/RegisterDeviceCommand.js.map +1 -1
- package/dist/es/commands/SetCognitoEventsCommand.js +2 -27
- package/dist/es/commands/SetCognitoEventsCommand.js.map +1 -1
- package/dist/es/commands/SetIdentityPoolConfigurationCommand.js +2 -77
- package/dist/es/commands/SetIdentityPoolConfigurationCommand.js.map +1 -1
- package/dist/es/commands/SubscribeToDatasetCommand.js +2 -70
- package/dist/es/commands/SubscribeToDatasetCommand.js.map +1 -1
- package/dist/es/commands/UnsubscribeFromDatasetCommand.js +2 -71
- package/dist/es/commands/UnsubscribeFromDatasetCommand.js.map +1 -1
- package/dist/es/commands/UpdateRecordsCommand.js +2 -29
- package/dist/es/commands/UpdateRecordsCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +0 -159
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +39 -39
- package/dist/es/protocols/Aws_restJson1.js +539 -544
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/dist/types/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/runtimeConfig.d.ts +1 -0
- package/dist/types/runtimeConfig.native.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +39 -39
- package/protocols/Aws_restJson1.ts +12 -8
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +3 -5
- package/tsconfig.types.json +8 -0
|
@@ -13,7 +13,7 @@ const serializeAws_restJson1BulkPublishCommand = async (input, context) => {
|
|
|
13
13
|
if (labelValue.length <= 0) {
|
|
14
14
|
throw new Error("Empty value provided for input HTTP label: IdentityPoolId.");
|
|
15
15
|
}
|
|
16
|
-
resolvedPath = resolvedPath.replace("{IdentityPoolId}",
|
|
16
|
+
resolvedPath = resolvedPath.replace("{IdentityPoolId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
17
17
|
}
|
|
18
18
|
else {
|
|
19
19
|
throw new Error("No value provided for input HTTP label: IdentityPoolId.");
|
|
@@ -40,7 +40,7 @@ const serializeAws_restJson1DeleteDatasetCommand = async (input, context) => {
|
|
|
40
40
|
if (labelValue.length <= 0) {
|
|
41
41
|
throw new Error("Empty value provided for input HTTP label: IdentityPoolId.");
|
|
42
42
|
}
|
|
43
|
-
resolvedPath = resolvedPath.replace("{IdentityPoolId}",
|
|
43
|
+
resolvedPath = resolvedPath.replace("{IdentityPoolId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
46
|
throw new Error("No value provided for input HTTP label: IdentityPoolId.");
|
|
@@ -50,7 +50,7 @@ const serializeAws_restJson1DeleteDatasetCommand = async (input, context) => {
|
|
|
50
50
|
if (labelValue.length <= 0) {
|
|
51
51
|
throw new Error("Empty value provided for input HTTP label: IdentityId.");
|
|
52
52
|
}
|
|
53
|
-
resolvedPath = resolvedPath.replace("{IdentityId}",
|
|
53
|
+
resolvedPath = resolvedPath.replace("{IdentityId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
54
54
|
}
|
|
55
55
|
else {
|
|
56
56
|
throw new Error("No value provided for input HTTP label: IdentityId.");
|
|
@@ -60,7 +60,7 @@ const serializeAws_restJson1DeleteDatasetCommand = async (input, context) => {
|
|
|
60
60
|
if (labelValue.length <= 0) {
|
|
61
61
|
throw new Error("Empty value provided for input HTTP label: DatasetName.");
|
|
62
62
|
}
|
|
63
|
-
resolvedPath = resolvedPath.replace("{DatasetName}",
|
|
63
|
+
resolvedPath = resolvedPath.replace("{DatasetName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
64
64
|
}
|
|
65
65
|
else {
|
|
66
66
|
throw new Error("No value provided for input HTTP label: DatasetName.");
|
|
@@ -87,7 +87,7 @@ const serializeAws_restJson1DescribeDatasetCommand = async (input, context) => {
|
|
|
87
87
|
if (labelValue.length <= 0) {
|
|
88
88
|
throw new Error("Empty value provided for input HTTP label: IdentityPoolId.");
|
|
89
89
|
}
|
|
90
|
-
resolvedPath = resolvedPath.replace("{IdentityPoolId}",
|
|
90
|
+
resolvedPath = resolvedPath.replace("{IdentityPoolId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
91
91
|
}
|
|
92
92
|
else {
|
|
93
93
|
throw new Error("No value provided for input HTTP label: IdentityPoolId.");
|
|
@@ -97,7 +97,7 @@ const serializeAws_restJson1DescribeDatasetCommand = async (input, context) => {
|
|
|
97
97
|
if (labelValue.length <= 0) {
|
|
98
98
|
throw new Error("Empty value provided for input HTTP label: IdentityId.");
|
|
99
99
|
}
|
|
100
|
-
resolvedPath = resolvedPath.replace("{IdentityId}",
|
|
100
|
+
resolvedPath = resolvedPath.replace("{IdentityId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
101
101
|
}
|
|
102
102
|
else {
|
|
103
103
|
throw new Error("No value provided for input HTTP label: IdentityId.");
|
|
@@ -107,7 +107,7 @@ const serializeAws_restJson1DescribeDatasetCommand = async (input, context) => {
|
|
|
107
107
|
if (labelValue.length <= 0) {
|
|
108
108
|
throw new Error("Empty value provided for input HTTP label: DatasetName.");
|
|
109
109
|
}
|
|
110
|
-
resolvedPath = resolvedPath.replace("{DatasetName}",
|
|
110
|
+
resolvedPath = resolvedPath.replace("{DatasetName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
111
111
|
}
|
|
112
112
|
else {
|
|
113
113
|
throw new Error("No value provided for input HTTP label: DatasetName.");
|
|
@@ -133,7 +133,7 @@ const serializeAws_restJson1DescribeIdentityPoolUsageCommand = async (input, con
|
|
|
133
133
|
if (labelValue.length <= 0) {
|
|
134
134
|
throw new Error("Empty value provided for input HTTP label: IdentityPoolId.");
|
|
135
135
|
}
|
|
136
|
-
resolvedPath = resolvedPath.replace("{IdentityPoolId}",
|
|
136
|
+
resolvedPath = resolvedPath.replace("{IdentityPoolId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
137
137
|
}
|
|
138
138
|
else {
|
|
139
139
|
throw new Error("No value provided for input HTTP label: IdentityPoolId.");
|
|
@@ -160,7 +160,7 @@ const serializeAws_restJson1DescribeIdentityUsageCommand = async (input, context
|
|
|
160
160
|
if (labelValue.length <= 0) {
|
|
161
161
|
throw new Error("Empty value provided for input HTTP label: IdentityPoolId.");
|
|
162
162
|
}
|
|
163
|
-
resolvedPath = resolvedPath.replace("{IdentityPoolId}",
|
|
163
|
+
resolvedPath = resolvedPath.replace("{IdentityPoolId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
164
164
|
}
|
|
165
165
|
else {
|
|
166
166
|
throw new Error("No value provided for input HTTP label: IdentityPoolId.");
|
|
@@ -170,7 +170,7 @@ const serializeAws_restJson1DescribeIdentityUsageCommand = async (input, context
|
|
|
170
170
|
if (labelValue.length <= 0) {
|
|
171
171
|
throw new Error("Empty value provided for input HTTP label: IdentityId.");
|
|
172
172
|
}
|
|
173
|
-
resolvedPath = resolvedPath.replace("{IdentityId}",
|
|
173
|
+
resolvedPath = resolvedPath.replace("{IdentityId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
174
174
|
}
|
|
175
175
|
else {
|
|
176
176
|
throw new Error("No value provided for input HTTP label: IdentityId.");
|
|
@@ -197,7 +197,7 @@ const serializeAws_restJson1GetBulkPublishDetailsCommand = async (input, context
|
|
|
197
197
|
if (labelValue.length <= 0) {
|
|
198
198
|
throw new Error("Empty value provided for input HTTP label: IdentityPoolId.");
|
|
199
199
|
}
|
|
200
|
-
resolvedPath = resolvedPath.replace("{IdentityPoolId}",
|
|
200
|
+
resolvedPath = resolvedPath.replace("{IdentityPoolId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
201
201
|
}
|
|
202
202
|
else {
|
|
203
203
|
throw new Error("No value provided for input HTTP label: IdentityPoolId.");
|
|
@@ -223,7 +223,7 @@ const serializeAws_restJson1GetCognitoEventsCommand = async (input, context) =>
|
|
|
223
223
|
if (labelValue.length <= 0) {
|
|
224
224
|
throw new Error("Empty value provided for input HTTP label: IdentityPoolId.");
|
|
225
225
|
}
|
|
226
|
-
resolvedPath = resolvedPath.replace("{IdentityPoolId}",
|
|
226
|
+
resolvedPath = resolvedPath.replace("{IdentityPoolId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
227
227
|
}
|
|
228
228
|
else {
|
|
229
229
|
throw new Error("No value provided for input HTTP label: IdentityPoolId.");
|
|
@@ -250,7 +250,7 @@ const serializeAws_restJson1GetIdentityPoolConfigurationCommand = async (input,
|
|
|
250
250
|
if (labelValue.length <= 0) {
|
|
251
251
|
throw new Error("Empty value provided for input HTTP label: IdentityPoolId.");
|
|
252
252
|
}
|
|
253
|
-
resolvedPath = resolvedPath.replace("{IdentityPoolId}",
|
|
253
|
+
resolvedPath = resolvedPath.replace("{IdentityPoolId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
254
254
|
}
|
|
255
255
|
else {
|
|
256
256
|
throw new Error("No value provided for input HTTP label: IdentityPoolId.");
|
|
@@ -277,7 +277,7 @@ const serializeAws_restJson1ListDatasetsCommand = async (input, context) => {
|
|
|
277
277
|
if (labelValue.length <= 0) {
|
|
278
278
|
throw new Error("Empty value provided for input HTTP label: IdentityPoolId.");
|
|
279
279
|
}
|
|
280
|
-
resolvedPath = resolvedPath.replace("{IdentityPoolId}",
|
|
280
|
+
resolvedPath = resolvedPath.replace("{IdentityPoolId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
281
281
|
}
|
|
282
282
|
else {
|
|
283
283
|
throw new Error("No value provided for input HTTP label: IdentityPoolId.");
|
|
@@ -287,7 +287,7 @@ const serializeAws_restJson1ListDatasetsCommand = async (input, context) => {
|
|
|
287
287
|
if (labelValue.length <= 0) {
|
|
288
288
|
throw new Error("Empty value provided for input HTTP label: IdentityId.");
|
|
289
289
|
}
|
|
290
|
-
resolvedPath = resolvedPath.replace("{IdentityId}",
|
|
290
|
+
resolvedPath = resolvedPath.replace("{IdentityId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
291
291
|
}
|
|
292
292
|
else {
|
|
293
293
|
throw new Error("No value provided for input HTTP label: IdentityId.");
|
|
@@ -340,7 +340,7 @@ const serializeAws_restJson1ListRecordsCommand = async (input, context) => {
|
|
|
340
340
|
if (labelValue.length <= 0) {
|
|
341
341
|
throw new Error("Empty value provided for input HTTP label: IdentityPoolId.");
|
|
342
342
|
}
|
|
343
|
-
resolvedPath = resolvedPath.replace("{IdentityPoolId}",
|
|
343
|
+
resolvedPath = resolvedPath.replace("{IdentityPoolId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
344
344
|
}
|
|
345
345
|
else {
|
|
346
346
|
throw new Error("No value provided for input HTTP label: IdentityPoolId.");
|
|
@@ -350,7 +350,7 @@ const serializeAws_restJson1ListRecordsCommand = async (input, context) => {
|
|
|
350
350
|
if (labelValue.length <= 0) {
|
|
351
351
|
throw new Error("Empty value provided for input HTTP label: IdentityId.");
|
|
352
352
|
}
|
|
353
|
-
resolvedPath = resolvedPath.replace("{IdentityId}",
|
|
353
|
+
resolvedPath = resolvedPath.replace("{IdentityId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
354
354
|
}
|
|
355
355
|
else {
|
|
356
356
|
throw new Error("No value provided for input HTTP label: IdentityId.");
|
|
@@ -360,7 +360,7 @@ const serializeAws_restJson1ListRecordsCommand = async (input, context) => {
|
|
|
360
360
|
if (labelValue.length <= 0) {
|
|
361
361
|
throw new Error("Empty value provided for input HTTP label: DatasetName.");
|
|
362
362
|
}
|
|
363
|
-
resolvedPath = resolvedPath.replace("{DatasetName}",
|
|
363
|
+
resolvedPath = resolvedPath.replace("{DatasetName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
364
364
|
}
|
|
365
365
|
else {
|
|
366
366
|
throw new Error("No value provided for input HTTP label: DatasetName.");
|
|
@@ -396,7 +396,7 @@ const serializeAws_restJson1RegisterDeviceCommand = async (input, context) => {
|
|
|
396
396
|
if (labelValue.length <= 0) {
|
|
397
397
|
throw new Error("Empty value provided for input HTTP label: IdentityPoolId.");
|
|
398
398
|
}
|
|
399
|
-
resolvedPath = resolvedPath.replace("{IdentityPoolId}",
|
|
399
|
+
resolvedPath = resolvedPath.replace("{IdentityPoolId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
400
400
|
}
|
|
401
401
|
else {
|
|
402
402
|
throw new Error("No value provided for input HTTP label: IdentityPoolId.");
|
|
@@ -406,7 +406,7 @@ const serializeAws_restJson1RegisterDeviceCommand = async (input, context) => {
|
|
|
406
406
|
if (labelValue.length <= 0) {
|
|
407
407
|
throw new Error("Empty value provided for input HTTP label: IdentityId.");
|
|
408
408
|
}
|
|
409
|
-
resolvedPath = resolvedPath.replace("{IdentityId}",
|
|
409
|
+
resolvedPath = resolvedPath.replace("{IdentityId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
410
410
|
}
|
|
411
411
|
else {
|
|
412
412
|
throw new Error("No value provided for input HTTP label: IdentityId.");
|
|
@@ -438,7 +438,7 @@ const serializeAws_restJson1SetCognitoEventsCommand = async (input, context) =>
|
|
|
438
438
|
if (labelValue.length <= 0) {
|
|
439
439
|
throw new Error("Empty value provided for input HTTP label: IdentityPoolId.");
|
|
440
440
|
}
|
|
441
|
-
resolvedPath = resolvedPath.replace("{IdentityPoolId}",
|
|
441
|
+
resolvedPath = resolvedPath.replace("{IdentityPoolId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
442
442
|
}
|
|
443
443
|
else {
|
|
444
444
|
throw new Error("No value provided for input HTTP label: IdentityPoolId.");
|
|
@@ -471,7 +471,7 @@ const serializeAws_restJson1SetIdentityPoolConfigurationCommand = async (input,
|
|
|
471
471
|
if (labelValue.length <= 0) {
|
|
472
472
|
throw new Error("Empty value provided for input HTTP label: IdentityPoolId.");
|
|
473
473
|
}
|
|
474
|
-
resolvedPath = resolvedPath.replace("{IdentityPoolId}",
|
|
474
|
+
resolvedPath = resolvedPath.replace("{IdentityPoolId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
475
475
|
}
|
|
476
476
|
else {
|
|
477
477
|
throw new Error("No value provided for input HTTP label: IdentityPoolId.");
|
|
@@ -506,7 +506,7 @@ const serializeAws_restJson1SubscribeToDatasetCommand = async (input, context) =
|
|
|
506
506
|
if (labelValue.length <= 0) {
|
|
507
507
|
throw new Error("Empty value provided for input HTTP label: IdentityPoolId.");
|
|
508
508
|
}
|
|
509
|
-
resolvedPath = resolvedPath.replace("{IdentityPoolId}",
|
|
509
|
+
resolvedPath = resolvedPath.replace("{IdentityPoolId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
510
510
|
}
|
|
511
511
|
else {
|
|
512
512
|
throw new Error("No value provided for input HTTP label: IdentityPoolId.");
|
|
@@ -516,7 +516,7 @@ const serializeAws_restJson1SubscribeToDatasetCommand = async (input, context) =
|
|
|
516
516
|
if (labelValue.length <= 0) {
|
|
517
517
|
throw new Error("Empty value provided for input HTTP label: IdentityId.");
|
|
518
518
|
}
|
|
519
|
-
resolvedPath = resolvedPath.replace("{IdentityId}",
|
|
519
|
+
resolvedPath = resolvedPath.replace("{IdentityId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
520
520
|
}
|
|
521
521
|
else {
|
|
522
522
|
throw new Error("No value provided for input HTTP label: IdentityId.");
|
|
@@ -526,7 +526,7 @@ const serializeAws_restJson1SubscribeToDatasetCommand = async (input, context) =
|
|
|
526
526
|
if (labelValue.length <= 0) {
|
|
527
527
|
throw new Error("Empty value provided for input HTTP label: DatasetName.");
|
|
528
528
|
}
|
|
529
|
-
resolvedPath = resolvedPath.replace("{DatasetName}",
|
|
529
|
+
resolvedPath = resolvedPath.replace("{DatasetName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
530
530
|
}
|
|
531
531
|
else {
|
|
532
532
|
throw new Error("No value provided for input HTTP label: DatasetName.");
|
|
@@ -536,7 +536,7 @@ const serializeAws_restJson1SubscribeToDatasetCommand = async (input, context) =
|
|
|
536
536
|
if (labelValue.length <= 0) {
|
|
537
537
|
throw new Error("Empty value provided for input HTTP label: DeviceId.");
|
|
538
538
|
}
|
|
539
|
-
resolvedPath = resolvedPath.replace("{DeviceId}",
|
|
539
|
+
resolvedPath = resolvedPath.replace("{DeviceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
540
540
|
}
|
|
541
541
|
else {
|
|
542
542
|
throw new Error("No value provided for input HTTP label: DeviceId.");
|
|
@@ -563,7 +563,7 @@ const serializeAws_restJson1UnsubscribeFromDatasetCommand = async (input, contex
|
|
|
563
563
|
if (labelValue.length <= 0) {
|
|
564
564
|
throw new Error("Empty value provided for input HTTP label: IdentityPoolId.");
|
|
565
565
|
}
|
|
566
|
-
resolvedPath = resolvedPath.replace("{IdentityPoolId}",
|
|
566
|
+
resolvedPath = resolvedPath.replace("{IdentityPoolId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
567
567
|
}
|
|
568
568
|
else {
|
|
569
569
|
throw new Error("No value provided for input HTTP label: IdentityPoolId.");
|
|
@@ -573,7 +573,7 @@ const serializeAws_restJson1UnsubscribeFromDatasetCommand = async (input, contex
|
|
|
573
573
|
if (labelValue.length <= 0) {
|
|
574
574
|
throw new Error("Empty value provided for input HTTP label: IdentityId.");
|
|
575
575
|
}
|
|
576
|
-
resolvedPath = resolvedPath.replace("{IdentityId}",
|
|
576
|
+
resolvedPath = resolvedPath.replace("{IdentityId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
577
577
|
}
|
|
578
578
|
else {
|
|
579
579
|
throw new Error("No value provided for input HTTP label: IdentityId.");
|
|
@@ -583,7 +583,7 @@ const serializeAws_restJson1UnsubscribeFromDatasetCommand = async (input, contex
|
|
|
583
583
|
if (labelValue.length <= 0) {
|
|
584
584
|
throw new Error("Empty value provided for input HTTP label: DatasetName.");
|
|
585
585
|
}
|
|
586
|
-
resolvedPath = resolvedPath.replace("{DatasetName}",
|
|
586
|
+
resolvedPath = resolvedPath.replace("{DatasetName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
587
587
|
}
|
|
588
588
|
else {
|
|
589
589
|
throw new Error("No value provided for input HTTP label: DatasetName.");
|
|
@@ -593,7 +593,7 @@ const serializeAws_restJson1UnsubscribeFromDatasetCommand = async (input, contex
|
|
|
593
593
|
if (labelValue.length <= 0) {
|
|
594
594
|
throw new Error("Empty value provided for input HTTP label: DeviceId.");
|
|
595
595
|
}
|
|
596
|
-
resolvedPath = resolvedPath.replace("{DeviceId}",
|
|
596
|
+
resolvedPath = resolvedPath.replace("{DeviceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
597
597
|
}
|
|
598
598
|
else {
|
|
599
599
|
throw new Error("No value provided for input HTTP label: DeviceId.");
|
|
@@ -623,7 +623,7 @@ const serializeAws_restJson1UpdateRecordsCommand = async (input, context) => {
|
|
|
623
623
|
if (labelValue.length <= 0) {
|
|
624
624
|
throw new Error("Empty value provided for input HTTP label: IdentityPoolId.");
|
|
625
625
|
}
|
|
626
|
-
resolvedPath = resolvedPath.replace("{IdentityPoolId}",
|
|
626
|
+
resolvedPath = resolvedPath.replace("{IdentityPoolId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
627
627
|
}
|
|
628
628
|
else {
|
|
629
629
|
throw new Error("No value provided for input HTTP label: IdentityPoolId.");
|
|
@@ -633,7 +633,7 @@ const serializeAws_restJson1UpdateRecordsCommand = async (input, context) => {
|
|
|
633
633
|
if (labelValue.length <= 0) {
|
|
634
634
|
throw new Error("Empty value provided for input HTTP label: IdentityId.");
|
|
635
635
|
}
|
|
636
|
-
resolvedPath = resolvedPath.replace("{IdentityId}",
|
|
636
|
+
resolvedPath = resolvedPath.replace("{IdentityId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
637
637
|
}
|
|
638
638
|
else {
|
|
639
639
|
throw new Error("No value provided for input HTTP label: IdentityId.");
|
|
@@ -643,7 +643,7 @@ const serializeAws_restJson1UpdateRecordsCommand = async (input, context) => {
|
|
|
643
643
|
if (labelValue.length <= 0) {
|
|
644
644
|
throw new Error("Empty value provided for input HTTP label: DatasetName.");
|
|
645
645
|
}
|
|
646
|
-
resolvedPath = resolvedPath.replace("{DatasetName}",
|
|
646
|
+
resolvedPath = resolvedPath.replace("{DatasetName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
647
647
|
}
|
|
648
648
|
else {
|
|
649
649
|
throw new Error("No value provided for input HTTP label: DatasetName.");
|
|
@@ -677,9 +677,9 @@ const deserializeAws_restJson1BulkPublishCommand = async (output, context) => {
|
|
|
677
677
|
$metadata: deserializeMetadata(output),
|
|
678
678
|
IdentityPoolId: undefined,
|
|
679
679
|
};
|
|
680
|
-
const data =
|
|
680
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
681
681
|
if (data.IdentityPoolId !== undefined && data.IdentityPoolId !== null) {
|
|
682
|
-
contents.IdentityPoolId =
|
|
682
|
+
contents.IdentityPoolId = smithy_client_1.expectString(data.IdentityPoolId);
|
|
683
683
|
}
|
|
684
684
|
return Promise.resolve(contents);
|
|
685
685
|
};
|
|
@@ -765,7 +765,7 @@ const deserializeAws_restJson1DeleteDatasetCommand = async (output, context) =>
|
|
|
765
765
|
$metadata: deserializeMetadata(output),
|
|
766
766
|
Dataset: undefined,
|
|
767
767
|
};
|
|
768
|
-
const data =
|
|
768
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
769
769
|
if (data.Dataset !== undefined && data.Dataset !== null) {
|
|
770
770
|
contents.Dataset = deserializeAws_restJson1Dataset(data.Dataset, context);
|
|
771
771
|
}
|
|
@@ -853,7 +853,7 @@ const deserializeAws_restJson1DescribeDatasetCommand = async (output, context) =
|
|
|
853
853
|
$metadata: deserializeMetadata(output),
|
|
854
854
|
Dataset: undefined,
|
|
855
855
|
};
|
|
856
|
-
const data =
|
|
856
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
857
857
|
if (data.Dataset !== undefined && data.Dataset !== null) {
|
|
858
858
|
contents.Dataset = deserializeAws_restJson1Dataset(data.Dataset, context);
|
|
859
859
|
}
|
|
@@ -933,7 +933,7 @@ const deserializeAws_restJson1DescribeIdentityPoolUsageCommand = async (output,
|
|
|
933
933
|
$metadata: deserializeMetadata(output),
|
|
934
934
|
IdentityPoolUsage: undefined,
|
|
935
935
|
};
|
|
936
|
-
const data =
|
|
936
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
937
937
|
if (data.IdentityPoolUsage !== undefined && data.IdentityPoolUsage !== null) {
|
|
938
938
|
contents.IdentityPoolUsage = deserializeAws_restJson1IdentityPoolUsage(data.IdentityPoolUsage, context);
|
|
939
939
|
}
|
|
@@ -1013,7 +1013,7 @@ const deserializeAws_restJson1DescribeIdentityUsageCommand = async (output, cont
|
|
|
1013
1013
|
$metadata: deserializeMetadata(output),
|
|
1014
1014
|
IdentityUsage: undefined,
|
|
1015
1015
|
};
|
|
1016
|
-
const data =
|
|
1016
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1017
1017
|
if (data.IdentityUsage !== undefined && data.IdentityUsage !== null) {
|
|
1018
1018
|
contents.IdentityUsage = deserializeAws_restJson1IdentityUsage(data.IdentityUsage, context);
|
|
1019
1019
|
}
|
|
@@ -1097,21 +1097,21 @@ const deserializeAws_restJson1GetBulkPublishDetailsCommand = async (output, cont
|
|
|
1097
1097
|
FailureMessage: undefined,
|
|
1098
1098
|
IdentityPoolId: undefined,
|
|
1099
1099
|
};
|
|
1100
|
-
const data =
|
|
1100
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1101
1101
|
if (data.BulkPublishCompleteTime !== undefined && data.BulkPublishCompleteTime !== null) {
|
|
1102
|
-
contents.BulkPublishCompleteTime =
|
|
1102
|
+
contents.BulkPublishCompleteTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.BulkPublishCompleteTime)));
|
|
1103
1103
|
}
|
|
1104
1104
|
if (data.BulkPublishStartTime !== undefined && data.BulkPublishStartTime !== null) {
|
|
1105
|
-
contents.BulkPublishStartTime =
|
|
1105
|
+
contents.BulkPublishStartTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.BulkPublishStartTime)));
|
|
1106
1106
|
}
|
|
1107
1107
|
if (data.BulkPublishStatus !== undefined && data.BulkPublishStatus !== null) {
|
|
1108
|
-
contents.BulkPublishStatus =
|
|
1108
|
+
contents.BulkPublishStatus = smithy_client_1.expectString(data.BulkPublishStatus);
|
|
1109
1109
|
}
|
|
1110
1110
|
if (data.FailureMessage !== undefined && data.FailureMessage !== null) {
|
|
1111
|
-
contents.FailureMessage =
|
|
1111
|
+
contents.FailureMessage = smithy_client_1.expectString(data.FailureMessage);
|
|
1112
1112
|
}
|
|
1113
1113
|
if (data.IdentityPoolId !== undefined && data.IdentityPoolId !== null) {
|
|
1114
|
-
contents.IdentityPoolId =
|
|
1114
|
+
contents.IdentityPoolId = smithy_client_1.expectString(data.IdentityPoolId);
|
|
1115
1115
|
}
|
|
1116
1116
|
return Promise.resolve(contents);
|
|
1117
1117
|
};
|
|
@@ -1181,7 +1181,7 @@ const deserializeAws_restJson1GetCognitoEventsCommand = async (output, context)
|
|
|
1181
1181
|
$metadata: deserializeMetadata(output),
|
|
1182
1182
|
Events: undefined,
|
|
1183
1183
|
};
|
|
1184
|
-
const data =
|
|
1184
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1185
1185
|
if (data.Events !== undefined && data.Events !== null) {
|
|
1186
1186
|
contents.Events = deserializeAws_restJson1Events(data.Events, context);
|
|
1187
1187
|
}
|
|
@@ -1263,12 +1263,12 @@ const deserializeAws_restJson1GetIdentityPoolConfigurationCommand = async (outpu
|
|
|
1263
1263
|
IdentityPoolId: undefined,
|
|
1264
1264
|
PushSync: undefined,
|
|
1265
1265
|
};
|
|
1266
|
-
const data =
|
|
1266
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1267
1267
|
if (data.CognitoStreams !== undefined && data.CognitoStreams !== null) {
|
|
1268
1268
|
contents.CognitoStreams = deserializeAws_restJson1CognitoStreams(data.CognitoStreams, context);
|
|
1269
1269
|
}
|
|
1270
1270
|
if (data.IdentityPoolId !== undefined && data.IdentityPoolId !== null) {
|
|
1271
|
-
contents.IdentityPoolId =
|
|
1271
|
+
contents.IdentityPoolId = smithy_client_1.expectString(data.IdentityPoolId);
|
|
1272
1272
|
}
|
|
1273
1273
|
if (data.PushSync !== undefined && data.PushSync !== null) {
|
|
1274
1274
|
contents.PushSync = deserializeAws_restJson1PushSync(data.PushSync, context);
|
|
@@ -1351,15 +1351,15 @@ const deserializeAws_restJson1ListDatasetsCommand = async (output, context) => {
|
|
|
1351
1351
|
Datasets: undefined,
|
|
1352
1352
|
NextToken: undefined,
|
|
1353
1353
|
};
|
|
1354
|
-
const data =
|
|
1354
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1355
1355
|
if (data.Count !== undefined && data.Count !== null) {
|
|
1356
|
-
contents.Count =
|
|
1356
|
+
contents.Count = smithy_client_1.expectInt32(data.Count);
|
|
1357
1357
|
}
|
|
1358
1358
|
if (data.Datasets !== undefined && data.Datasets !== null) {
|
|
1359
1359
|
contents.Datasets = deserializeAws_restJson1DatasetList(data.Datasets, context);
|
|
1360
1360
|
}
|
|
1361
1361
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1362
|
-
contents.NextToken =
|
|
1362
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
1363
1363
|
}
|
|
1364
1364
|
return Promise.resolve(contents);
|
|
1365
1365
|
};
|
|
@@ -1432,18 +1432,18 @@ const deserializeAws_restJson1ListIdentityPoolUsageCommand = async (output, cont
|
|
|
1432
1432
|
MaxResults: undefined,
|
|
1433
1433
|
NextToken: undefined,
|
|
1434
1434
|
};
|
|
1435
|
-
const data =
|
|
1435
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1436
1436
|
if (data.Count !== undefined && data.Count !== null) {
|
|
1437
|
-
contents.Count =
|
|
1437
|
+
contents.Count = smithy_client_1.expectInt32(data.Count);
|
|
1438
1438
|
}
|
|
1439
1439
|
if (data.IdentityPoolUsages !== undefined && data.IdentityPoolUsages !== null) {
|
|
1440
1440
|
contents.IdentityPoolUsages = deserializeAws_restJson1IdentityPoolUsageList(data.IdentityPoolUsages, context);
|
|
1441
1441
|
}
|
|
1442
1442
|
if (data.MaxResults !== undefined && data.MaxResults !== null) {
|
|
1443
|
-
contents.MaxResults =
|
|
1443
|
+
contents.MaxResults = smithy_client_1.expectInt32(data.MaxResults);
|
|
1444
1444
|
}
|
|
1445
1445
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1446
|
-
contents.NextToken =
|
|
1446
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
1447
1447
|
}
|
|
1448
1448
|
return Promise.resolve(contents);
|
|
1449
1449
|
};
|
|
@@ -1521,33 +1521,33 @@ const deserializeAws_restJson1ListRecordsCommand = async (output, context) => {
|
|
|
1521
1521
|
Records: undefined,
|
|
1522
1522
|
SyncSessionToken: undefined,
|
|
1523
1523
|
};
|
|
1524
|
-
const data =
|
|
1524
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1525
1525
|
if (data.Count !== undefined && data.Count !== null) {
|
|
1526
|
-
contents.Count =
|
|
1526
|
+
contents.Count = smithy_client_1.expectInt32(data.Count);
|
|
1527
1527
|
}
|
|
1528
1528
|
if (data.DatasetDeletedAfterRequestedSyncCount !== undefined && data.DatasetDeletedAfterRequestedSyncCount !== null) {
|
|
1529
|
-
contents.DatasetDeletedAfterRequestedSyncCount =
|
|
1529
|
+
contents.DatasetDeletedAfterRequestedSyncCount = smithy_client_1.expectBoolean(data.DatasetDeletedAfterRequestedSyncCount);
|
|
1530
1530
|
}
|
|
1531
1531
|
if (data.DatasetExists !== undefined && data.DatasetExists !== null) {
|
|
1532
|
-
contents.DatasetExists =
|
|
1532
|
+
contents.DatasetExists = smithy_client_1.expectBoolean(data.DatasetExists);
|
|
1533
1533
|
}
|
|
1534
1534
|
if (data.DatasetSyncCount !== undefined && data.DatasetSyncCount !== null) {
|
|
1535
|
-
contents.DatasetSyncCount =
|
|
1535
|
+
contents.DatasetSyncCount = smithy_client_1.expectLong(data.DatasetSyncCount);
|
|
1536
1536
|
}
|
|
1537
1537
|
if (data.LastModifiedBy !== undefined && data.LastModifiedBy !== null) {
|
|
1538
|
-
contents.LastModifiedBy =
|
|
1538
|
+
contents.LastModifiedBy = smithy_client_1.expectString(data.LastModifiedBy);
|
|
1539
1539
|
}
|
|
1540
1540
|
if (data.MergedDatasetNames !== undefined && data.MergedDatasetNames !== null) {
|
|
1541
1541
|
contents.MergedDatasetNames = deserializeAws_restJson1MergedDatasetNameList(data.MergedDatasetNames, context);
|
|
1542
1542
|
}
|
|
1543
1543
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1544
|
-
contents.NextToken =
|
|
1544
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
1545
1545
|
}
|
|
1546
1546
|
if (data.Records !== undefined && data.Records !== null) {
|
|
1547
1547
|
contents.Records = deserializeAws_restJson1RecordList(data.Records, context);
|
|
1548
1548
|
}
|
|
1549
1549
|
if (data.SyncSessionToken !== undefined && data.SyncSessionToken !== null) {
|
|
1550
|
-
contents.SyncSessionToken =
|
|
1550
|
+
contents.SyncSessionToken = smithy_client_1.expectString(data.SyncSessionToken);
|
|
1551
1551
|
}
|
|
1552
1552
|
return Promise.resolve(contents);
|
|
1553
1553
|
};
|
|
@@ -1617,9 +1617,9 @@ const deserializeAws_restJson1RegisterDeviceCommand = async (output, context) =>
|
|
|
1617
1617
|
$metadata: deserializeMetadata(output),
|
|
1618
1618
|
DeviceId: undefined,
|
|
1619
1619
|
};
|
|
1620
|
-
const data =
|
|
1620
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1621
1621
|
if (data.DeviceId !== undefined && data.DeviceId !== null) {
|
|
1622
|
-
contents.DeviceId =
|
|
1622
|
+
contents.DeviceId = smithy_client_1.expectString(data.DeviceId);
|
|
1623
1623
|
}
|
|
1624
1624
|
return Promise.resolve(contents);
|
|
1625
1625
|
};
|
|
@@ -1783,12 +1783,12 @@ const deserializeAws_restJson1SetIdentityPoolConfigurationCommand = async (outpu
|
|
|
1783
1783
|
IdentityPoolId: undefined,
|
|
1784
1784
|
PushSync: undefined,
|
|
1785
1785
|
};
|
|
1786
|
-
const data =
|
|
1786
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1787
1787
|
if (data.CognitoStreams !== undefined && data.CognitoStreams !== null) {
|
|
1788
1788
|
contents.CognitoStreams = deserializeAws_restJson1CognitoStreams(data.CognitoStreams, context);
|
|
1789
1789
|
}
|
|
1790
1790
|
if (data.IdentityPoolId !== undefined && data.IdentityPoolId !== null) {
|
|
1791
|
-
contents.IdentityPoolId =
|
|
1791
|
+
contents.IdentityPoolId = smithy_client_1.expectString(data.IdentityPoolId);
|
|
1792
1792
|
}
|
|
1793
1793
|
if (data.PushSync !== undefined && data.PushSync !== null) {
|
|
1794
1794
|
contents.PushSync = deserializeAws_restJson1PushSync(data.PushSync, context);
|
|
@@ -2045,7 +2045,7 @@ const deserializeAws_restJson1UpdateRecordsCommand = async (output, context) =>
|
|
|
2045
2045
|
$metadata: deserializeMetadata(output),
|
|
2046
2046
|
Records: undefined,
|
|
2047
2047
|
};
|
|
2048
|
-
const data =
|
|
2048
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2049
2049
|
if (data.Records !== undefined && data.Records !== null) {
|
|
2050
2050
|
contents.Records = deserializeAws_restJson1RecordList(data.Records, context);
|
|
2051
2051
|
}
|
|
@@ -2158,7 +2158,7 @@ const deserializeAws_restJson1AlreadyStreamedExceptionResponse = async (parsedOu
|
|
|
2158
2158
|
};
|
|
2159
2159
|
const data = parsedOutput.body;
|
|
2160
2160
|
if (data.message !== undefined && data.message !== null) {
|
|
2161
|
-
contents.message =
|
|
2161
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
2162
2162
|
}
|
|
2163
2163
|
return contents;
|
|
2164
2164
|
};
|
|
@@ -2171,7 +2171,7 @@ const deserializeAws_restJson1ConcurrentModificationExceptionResponse = async (p
|
|
|
2171
2171
|
};
|
|
2172
2172
|
const data = parsedOutput.body;
|
|
2173
2173
|
if (data.message !== undefined && data.message !== null) {
|
|
2174
|
-
contents.message =
|
|
2174
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
2175
2175
|
}
|
|
2176
2176
|
return contents;
|
|
2177
2177
|
};
|
|
@@ -2184,7 +2184,7 @@ const deserializeAws_restJson1DuplicateRequestExceptionResponse = async (parsedO
|
|
|
2184
2184
|
};
|
|
2185
2185
|
const data = parsedOutput.body;
|
|
2186
2186
|
if (data.message !== undefined && data.message !== null) {
|
|
2187
|
-
contents.message =
|
|
2187
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
2188
2188
|
}
|
|
2189
2189
|
return contents;
|
|
2190
2190
|
};
|
|
@@ -2197,7 +2197,7 @@ const deserializeAws_restJson1InternalErrorExceptionResponse = async (parsedOutp
|
|
|
2197
2197
|
};
|
|
2198
2198
|
const data = parsedOutput.body;
|
|
2199
2199
|
if (data.message !== undefined && data.message !== null) {
|
|
2200
|
-
contents.message =
|
|
2200
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
2201
2201
|
}
|
|
2202
2202
|
return contents;
|
|
2203
2203
|
};
|
|
@@ -2210,7 +2210,7 @@ const deserializeAws_restJson1InvalidConfigurationExceptionResponse = async (par
|
|
|
2210
2210
|
};
|
|
2211
2211
|
const data = parsedOutput.body;
|
|
2212
2212
|
if (data.message !== undefined && data.message !== null) {
|
|
2213
|
-
contents.message =
|
|
2213
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
2214
2214
|
}
|
|
2215
2215
|
return contents;
|
|
2216
2216
|
};
|
|
@@ -2223,7 +2223,7 @@ const deserializeAws_restJson1InvalidLambdaFunctionOutputExceptionResponse = asy
|
|
|
2223
2223
|
};
|
|
2224
2224
|
const data = parsedOutput.body;
|
|
2225
2225
|
if (data.message !== undefined && data.message !== null) {
|
|
2226
|
-
contents.message =
|
|
2226
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
2227
2227
|
}
|
|
2228
2228
|
return contents;
|
|
2229
2229
|
};
|
|
@@ -2236,7 +2236,7 @@ const deserializeAws_restJson1InvalidParameterExceptionResponse = async (parsedO
|
|
|
2236
2236
|
};
|
|
2237
2237
|
const data = parsedOutput.body;
|
|
2238
2238
|
if (data.message !== undefined && data.message !== null) {
|
|
2239
|
-
contents.message =
|
|
2239
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
2240
2240
|
}
|
|
2241
2241
|
return contents;
|
|
2242
2242
|
};
|
|
@@ -2249,7 +2249,7 @@ const deserializeAws_restJson1LambdaThrottledExceptionResponse = async (parsedOu
|
|
|
2249
2249
|
};
|
|
2250
2250
|
const data = parsedOutput.body;
|
|
2251
2251
|
if (data.message !== undefined && data.message !== null) {
|
|
2252
|
-
contents.message =
|
|
2252
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
2253
2253
|
}
|
|
2254
2254
|
return contents;
|
|
2255
2255
|
};
|
|
@@ -2262,7 +2262,7 @@ const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutp
|
|
|
2262
2262
|
};
|
|
2263
2263
|
const data = parsedOutput.body;
|
|
2264
2264
|
if (data.message !== undefined && data.message !== null) {
|
|
2265
|
-
contents.message =
|
|
2265
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
2266
2266
|
}
|
|
2267
2267
|
return contents;
|
|
2268
2268
|
};
|
|
@@ -2275,7 +2275,7 @@ const deserializeAws_restJson1NotAuthorizedExceptionResponse = async (parsedOutp
|
|
|
2275
2275
|
};
|
|
2276
2276
|
const data = parsedOutput.body;
|
|
2277
2277
|
if (data.message !== undefined && data.message !== null) {
|
|
2278
|
-
contents.message =
|
|
2278
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
2279
2279
|
}
|
|
2280
2280
|
return contents;
|
|
2281
2281
|
};
|
|
@@ -2288,7 +2288,7 @@ const deserializeAws_restJson1ResourceConflictExceptionResponse = async (parsedO
|
|
|
2288
2288
|
};
|
|
2289
2289
|
const data = parsedOutput.body;
|
|
2290
2290
|
if (data.message !== undefined && data.message !== null) {
|
|
2291
|
-
contents.message =
|
|
2291
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
2292
2292
|
}
|
|
2293
2293
|
return contents;
|
|
2294
2294
|
};
|
|
@@ -2301,7 +2301,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
2301
2301
|
};
|
|
2302
2302
|
const data = parsedOutput.body;
|
|
2303
2303
|
if (data.message !== undefined && data.message !== null) {
|
|
2304
|
-
contents.message =
|
|
2304
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
2305
2305
|
}
|
|
2306
2306
|
return contents;
|
|
2307
2307
|
};
|
|
@@ -2314,7 +2314,7 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOu
|
|
|
2314
2314
|
};
|
|
2315
2315
|
const data = parsedOutput.body;
|
|
2316
2316
|
if (data.message !== undefined && data.message !== null) {
|
|
2317
|
-
contents.message =
|
|
2317
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
2318
2318
|
}
|
|
2319
2319
|
return contents;
|
|
2320
2320
|
};
|
|
@@ -2385,29 +2385,29 @@ const deserializeAws_restJson1ApplicationArnList = (output, context) => {
|
|
|
2385
2385
|
if (entry === null) {
|
|
2386
2386
|
return null;
|
|
2387
2387
|
}
|
|
2388
|
-
return
|
|
2388
|
+
return smithy_client_1.expectString(entry);
|
|
2389
2389
|
});
|
|
2390
2390
|
};
|
|
2391
2391
|
const deserializeAws_restJson1CognitoStreams = (output, context) => {
|
|
2392
2392
|
return {
|
|
2393
|
-
RoleArn:
|
|
2394
|
-
StreamName:
|
|
2395
|
-
StreamingStatus:
|
|
2393
|
+
RoleArn: smithy_client_1.expectString(output.RoleArn),
|
|
2394
|
+
StreamName: smithy_client_1.expectString(output.StreamName),
|
|
2395
|
+
StreamingStatus: smithy_client_1.expectString(output.StreamingStatus),
|
|
2396
2396
|
};
|
|
2397
2397
|
};
|
|
2398
2398
|
const deserializeAws_restJson1Dataset = (output, context) => {
|
|
2399
2399
|
return {
|
|
2400
2400
|
CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
|
|
2401
|
-
?
|
|
2401
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationDate)))
|
|
2402
2402
|
: undefined,
|
|
2403
|
-
DataStorage:
|
|
2404
|
-
DatasetName:
|
|
2405
|
-
IdentityId:
|
|
2406
|
-
LastModifiedBy:
|
|
2403
|
+
DataStorage: smithy_client_1.expectLong(output.DataStorage),
|
|
2404
|
+
DatasetName: smithy_client_1.expectString(output.DatasetName),
|
|
2405
|
+
IdentityId: smithy_client_1.expectString(output.IdentityId),
|
|
2406
|
+
LastModifiedBy: smithy_client_1.expectString(output.LastModifiedBy),
|
|
2407
2407
|
LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
|
|
2408
|
-
?
|
|
2408
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModifiedDate)))
|
|
2409
2409
|
: undefined,
|
|
2410
|
-
NumRecords:
|
|
2410
|
+
NumRecords: smithy_client_1.expectLong(output.NumRecords),
|
|
2411
2411
|
};
|
|
2412
2412
|
};
|
|
2413
2413
|
const deserializeAws_restJson1DatasetList = (output, context) => {
|
|
@@ -2427,18 +2427,18 @@ const deserializeAws_restJson1Events = (output, context) => {
|
|
|
2427
2427
|
}
|
|
2428
2428
|
return {
|
|
2429
2429
|
...acc,
|
|
2430
|
-
[key]:
|
|
2430
|
+
[key]: smithy_client_1.expectString(value),
|
|
2431
2431
|
};
|
|
2432
2432
|
}, {});
|
|
2433
2433
|
};
|
|
2434
2434
|
const deserializeAws_restJson1IdentityPoolUsage = (output, context) => {
|
|
2435
2435
|
return {
|
|
2436
|
-
DataStorage:
|
|
2437
|
-
IdentityPoolId:
|
|
2436
|
+
DataStorage: smithy_client_1.expectLong(output.DataStorage),
|
|
2437
|
+
IdentityPoolId: smithy_client_1.expectString(output.IdentityPoolId),
|
|
2438
2438
|
LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
|
|
2439
|
-
?
|
|
2439
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModifiedDate)))
|
|
2440
2440
|
: undefined,
|
|
2441
|
-
SyncSessionsCount:
|
|
2441
|
+
SyncSessionsCount: smithy_client_1.expectLong(output.SyncSessionsCount),
|
|
2442
2442
|
};
|
|
2443
2443
|
};
|
|
2444
2444
|
const deserializeAws_restJson1IdentityPoolUsageList = (output, context) => {
|
|
@@ -2453,12 +2453,12 @@ const deserializeAws_restJson1IdentityPoolUsageList = (output, context) => {
|
|
|
2453
2453
|
};
|
|
2454
2454
|
const deserializeAws_restJson1IdentityUsage = (output, context) => {
|
|
2455
2455
|
return {
|
|
2456
|
-
DataStorage:
|
|
2457
|
-
DatasetCount:
|
|
2458
|
-
IdentityId:
|
|
2459
|
-
IdentityPoolId:
|
|
2456
|
+
DataStorage: smithy_client_1.expectLong(output.DataStorage),
|
|
2457
|
+
DatasetCount: smithy_client_1.expectInt32(output.DatasetCount),
|
|
2458
|
+
IdentityId: smithy_client_1.expectString(output.IdentityId),
|
|
2459
|
+
IdentityPoolId: smithy_client_1.expectString(output.IdentityPoolId),
|
|
2460
2460
|
LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
|
|
2461
|
-
?
|
|
2461
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModifiedDate)))
|
|
2462
2462
|
: undefined,
|
|
2463
2463
|
};
|
|
2464
2464
|
};
|
|
@@ -2469,7 +2469,7 @@ const deserializeAws_restJson1MergedDatasetNameList = (output, context) => {
|
|
|
2469
2469
|
if (entry === null) {
|
|
2470
2470
|
return null;
|
|
2471
2471
|
}
|
|
2472
|
-
return
|
|
2472
|
+
return smithy_client_1.expectString(entry);
|
|
2473
2473
|
});
|
|
2474
2474
|
};
|
|
2475
2475
|
const deserializeAws_restJson1PushSync = (output, context) => {
|
|
@@ -2477,21 +2477,21 @@ const deserializeAws_restJson1PushSync = (output, context) => {
|
|
|
2477
2477
|
ApplicationArns: output.ApplicationArns !== undefined && output.ApplicationArns !== null
|
|
2478
2478
|
? deserializeAws_restJson1ApplicationArnList(output.ApplicationArns, context)
|
|
2479
2479
|
: undefined,
|
|
2480
|
-
RoleArn:
|
|
2480
|
+
RoleArn: smithy_client_1.expectString(output.RoleArn),
|
|
2481
2481
|
};
|
|
2482
2482
|
};
|
|
2483
2483
|
const deserializeAws_restJson1_Record = (output, context) => {
|
|
2484
2484
|
return {
|
|
2485
2485
|
DeviceLastModifiedDate: output.DeviceLastModifiedDate !== undefined && output.DeviceLastModifiedDate !== null
|
|
2486
|
-
?
|
|
2486
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.DeviceLastModifiedDate)))
|
|
2487
2487
|
: undefined,
|
|
2488
|
-
Key:
|
|
2489
|
-
LastModifiedBy:
|
|
2488
|
+
Key: smithy_client_1.expectString(output.Key),
|
|
2489
|
+
LastModifiedBy: smithy_client_1.expectString(output.LastModifiedBy),
|
|
2490
2490
|
LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
|
|
2491
|
-
?
|
|
2491
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModifiedDate)))
|
|
2492
2492
|
: undefined,
|
|
2493
|
-
SyncCount:
|
|
2494
|
-
Value:
|
|
2493
|
+
SyncCount: smithy_client_1.expectLong(output.SyncCount),
|
|
2494
|
+
Value: smithy_client_1.expectString(output.Value),
|
|
2495
2495
|
};
|
|
2496
2496
|
};
|
|
2497
2497
|
const deserializeAws_restJson1RecordList = (output, context) => {
|