@aws-sdk/client-opensearchserverless 3.312.0 → 3.315.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/dist-cjs/protocols/Aws_json1_0.js +233 -962
- package/dist-es/protocols/Aws_json1_0.js +234 -963
- package/package.json +6 -6
|
@@ -10,14 +10,14 @@ const OpenSearchServerlessServiceException_1 = require("../models/OpenSearchServ
|
|
|
10
10
|
const se_BatchGetCollectionCommand = async (input, context) => {
|
|
11
11
|
const headers = sharedHeaders("BatchGetCollection");
|
|
12
12
|
let body;
|
|
13
|
-
body = JSON.stringify(
|
|
13
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
14
14
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
15
15
|
};
|
|
16
16
|
exports.se_BatchGetCollectionCommand = se_BatchGetCollectionCommand;
|
|
17
17
|
const se_BatchGetVpcEndpointCommand = async (input, context) => {
|
|
18
18
|
const headers = sharedHeaders("BatchGetVpcEndpoint");
|
|
19
19
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
23
|
exports.se_BatchGetVpcEndpointCommand = se_BatchGetVpcEndpointCommand;
|
|
@@ -94,91 +94,91 @@ exports.se_DeleteVpcEndpointCommand = se_DeleteVpcEndpointCommand;
|
|
|
94
94
|
const se_GetAccessPolicyCommand = async (input, context) => {
|
|
95
95
|
const headers = sharedHeaders("GetAccessPolicy");
|
|
96
96
|
let body;
|
|
97
|
-
body = JSON.stringify(
|
|
97
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
98
98
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
99
99
|
};
|
|
100
100
|
exports.se_GetAccessPolicyCommand = se_GetAccessPolicyCommand;
|
|
101
101
|
const se_GetAccountSettingsCommand = async (input, context) => {
|
|
102
102
|
const headers = sharedHeaders("GetAccountSettings");
|
|
103
103
|
let body;
|
|
104
|
-
body = JSON.stringify(
|
|
104
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
105
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
106
|
};
|
|
107
107
|
exports.se_GetAccountSettingsCommand = se_GetAccountSettingsCommand;
|
|
108
108
|
const se_GetPoliciesStatsCommand = async (input, context) => {
|
|
109
109
|
const headers = sharedHeaders("GetPoliciesStats");
|
|
110
110
|
let body;
|
|
111
|
-
body = JSON.stringify(
|
|
111
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
112
112
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
113
|
};
|
|
114
114
|
exports.se_GetPoliciesStatsCommand = se_GetPoliciesStatsCommand;
|
|
115
115
|
const se_GetSecurityConfigCommand = async (input, context) => {
|
|
116
116
|
const headers = sharedHeaders("GetSecurityConfig");
|
|
117
117
|
let body;
|
|
118
|
-
body = JSON.stringify(
|
|
118
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
119
119
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
120
120
|
};
|
|
121
121
|
exports.se_GetSecurityConfigCommand = se_GetSecurityConfigCommand;
|
|
122
122
|
const se_GetSecurityPolicyCommand = async (input, context) => {
|
|
123
123
|
const headers = sharedHeaders("GetSecurityPolicy");
|
|
124
124
|
let body;
|
|
125
|
-
body = JSON.stringify(
|
|
125
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
126
126
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
127
|
};
|
|
128
128
|
exports.se_GetSecurityPolicyCommand = se_GetSecurityPolicyCommand;
|
|
129
129
|
const se_ListAccessPoliciesCommand = async (input, context) => {
|
|
130
130
|
const headers = sharedHeaders("ListAccessPolicies");
|
|
131
131
|
let body;
|
|
132
|
-
body = JSON.stringify(
|
|
132
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
133
133
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
134
134
|
};
|
|
135
135
|
exports.se_ListAccessPoliciesCommand = se_ListAccessPoliciesCommand;
|
|
136
136
|
const se_ListCollectionsCommand = async (input, context) => {
|
|
137
137
|
const headers = sharedHeaders("ListCollections");
|
|
138
138
|
let body;
|
|
139
|
-
body = JSON.stringify(
|
|
139
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
140
140
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
141
141
|
};
|
|
142
142
|
exports.se_ListCollectionsCommand = se_ListCollectionsCommand;
|
|
143
143
|
const se_ListSecurityConfigsCommand = async (input, context) => {
|
|
144
144
|
const headers = sharedHeaders("ListSecurityConfigs");
|
|
145
145
|
let body;
|
|
146
|
-
body = JSON.stringify(
|
|
146
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
147
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
148
|
};
|
|
149
149
|
exports.se_ListSecurityConfigsCommand = se_ListSecurityConfigsCommand;
|
|
150
150
|
const se_ListSecurityPoliciesCommand = async (input, context) => {
|
|
151
151
|
const headers = sharedHeaders("ListSecurityPolicies");
|
|
152
152
|
let body;
|
|
153
|
-
body = JSON.stringify(
|
|
153
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
154
154
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
155
|
};
|
|
156
156
|
exports.se_ListSecurityPoliciesCommand = se_ListSecurityPoliciesCommand;
|
|
157
157
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
158
158
|
const headers = sharedHeaders("ListTagsForResource");
|
|
159
159
|
let body;
|
|
160
|
-
body = JSON.stringify(
|
|
160
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
161
161
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
162
162
|
};
|
|
163
163
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
164
164
|
const se_ListVpcEndpointsCommand = async (input, context) => {
|
|
165
165
|
const headers = sharedHeaders("ListVpcEndpoints");
|
|
166
166
|
let body;
|
|
167
|
-
body = JSON.stringify(
|
|
167
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
168
168
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
169
169
|
};
|
|
170
170
|
exports.se_ListVpcEndpointsCommand = se_ListVpcEndpointsCommand;
|
|
171
171
|
const se_TagResourceCommand = async (input, context) => {
|
|
172
172
|
const headers = sharedHeaders("TagResource");
|
|
173
173
|
let body;
|
|
174
|
-
body = JSON.stringify(
|
|
174
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
175
175
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
176
|
};
|
|
177
177
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
178
178
|
const se_UntagResourceCommand = async (input, context) => {
|
|
179
179
|
const headers = sharedHeaders("UntagResource");
|
|
180
180
|
let body;
|
|
181
|
-
body = JSON.stringify(
|
|
181
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
182
182
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
183
183
|
};
|
|
184
184
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
@@ -192,7 +192,7 @@ exports.se_UpdateAccessPolicyCommand = se_UpdateAccessPolicyCommand;
|
|
|
192
192
|
const se_UpdateAccountSettingsCommand = async (input, context) => {
|
|
193
193
|
const headers = sharedHeaders("UpdateAccountSettings");
|
|
194
194
|
let body;
|
|
195
|
-
body = JSON.stringify(
|
|
195
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
196
196
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
197
|
};
|
|
198
198
|
exports.se_UpdateAccountSettingsCommand = se_UpdateAccountSettingsCommand;
|
|
@@ -230,12 +230,12 @@ const de_BatchGetCollectionCommand = async (output, context) => {
|
|
|
230
230
|
}
|
|
231
231
|
const data = await parseBody(output.body, context);
|
|
232
232
|
let contents = {};
|
|
233
|
-
contents =
|
|
233
|
+
contents = (0, smithy_client_1._json)(data);
|
|
234
234
|
const response = {
|
|
235
235
|
$metadata: deserializeMetadata(output),
|
|
236
236
|
...contents,
|
|
237
237
|
};
|
|
238
|
-
return
|
|
238
|
+
return response;
|
|
239
239
|
};
|
|
240
240
|
exports.de_BatchGetCollectionCommand = de_BatchGetCollectionCommand;
|
|
241
241
|
const de_BatchGetCollectionCommandError = async (output, context) => {
|
|
@@ -253,10 +253,9 @@ const de_BatchGetCollectionCommandError = async (output, context) => {
|
|
|
253
253
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
254
254
|
default:
|
|
255
255
|
const parsedBody = parsedOutput.body;
|
|
256
|
-
|
|
256
|
+
return throwDefaultError({
|
|
257
257
|
output,
|
|
258
258
|
parsedBody,
|
|
259
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
260
259
|
errorCode,
|
|
261
260
|
});
|
|
262
261
|
}
|
|
@@ -267,12 +266,12 @@ const de_BatchGetVpcEndpointCommand = async (output, context) => {
|
|
|
267
266
|
}
|
|
268
267
|
const data = await parseBody(output.body, context);
|
|
269
268
|
let contents = {};
|
|
270
|
-
contents =
|
|
269
|
+
contents = (0, smithy_client_1._json)(data);
|
|
271
270
|
const response = {
|
|
272
271
|
$metadata: deserializeMetadata(output),
|
|
273
272
|
...contents,
|
|
274
273
|
};
|
|
275
|
-
return
|
|
274
|
+
return response;
|
|
276
275
|
};
|
|
277
276
|
exports.de_BatchGetVpcEndpointCommand = de_BatchGetVpcEndpointCommand;
|
|
278
277
|
const de_BatchGetVpcEndpointCommandError = async (output, context) => {
|
|
@@ -290,10 +289,9 @@ const de_BatchGetVpcEndpointCommandError = async (output, context) => {
|
|
|
290
289
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
291
290
|
default:
|
|
292
291
|
const parsedBody = parsedOutput.body;
|
|
293
|
-
|
|
292
|
+
return throwDefaultError({
|
|
294
293
|
output,
|
|
295
294
|
parsedBody,
|
|
296
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
297
295
|
errorCode,
|
|
298
296
|
});
|
|
299
297
|
}
|
|
@@ -309,7 +307,7 @@ const de_CreateAccessPolicyCommand = async (output, context) => {
|
|
|
309
307
|
$metadata: deserializeMetadata(output),
|
|
310
308
|
...contents,
|
|
311
309
|
};
|
|
312
|
-
return
|
|
310
|
+
return response;
|
|
313
311
|
};
|
|
314
312
|
exports.de_CreateAccessPolicyCommand = de_CreateAccessPolicyCommand;
|
|
315
313
|
const de_CreateAccessPolicyCommandError = async (output, context) => {
|
|
@@ -333,10 +331,9 @@ const de_CreateAccessPolicyCommandError = async (output, context) => {
|
|
|
333
331
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
334
332
|
default:
|
|
335
333
|
const parsedBody = parsedOutput.body;
|
|
336
|
-
|
|
334
|
+
return throwDefaultError({
|
|
337
335
|
output,
|
|
338
336
|
parsedBody,
|
|
339
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
340
337
|
errorCode,
|
|
341
338
|
});
|
|
342
339
|
}
|
|
@@ -347,12 +344,12 @@ const de_CreateCollectionCommand = async (output, context) => {
|
|
|
347
344
|
}
|
|
348
345
|
const data = await parseBody(output.body, context);
|
|
349
346
|
let contents = {};
|
|
350
|
-
contents =
|
|
347
|
+
contents = (0, smithy_client_1._json)(data);
|
|
351
348
|
const response = {
|
|
352
349
|
$metadata: deserializeMetadata(output),
|
|
353
350
|
...contents,
|
|
354
351
|
};
|
|
355
|
-
return
|
|
352
|
+
return response;
|
|
356
353
|
};
|
|
357
354
|
exports.de_CreateCollectionCommand = de_CreateCollectionCommand;
|
|
358
355
|
const de_CreateCollectionCommandError = async (output, context) => {
|
|
@@ -379,10 +376,9 @@ const de_CreateCollectionCommandError = async (output, context) => {
|
|
|
379
376
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
380
377
|
default:
|
|
381
378
|
const parsedBody = parsedOutput.body;
|
|
382
|
-
|
|
379
|
+
return throwDefaultError({
|
|
383
380
|
output,
|
|
384
381
|
parsedBody,
|
|
385
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
386
382
|
errorCode,
|
|
387
383
|
});
|
|
388
384
|
}
|
|
@@ -393,12 +389,12 @@ const de_CreateSecurityConfigCommand = async (output, context) => {
|
|
|
393
389
|
}
|
|
394
390
|
const data = await parseBody(output.body, context);
|
|
395
391
|
let contents = {};
|
|
396
|
-
contents =
|
|
392
|
+
contents = (0, smithy_client_1._json)(data);
|
|
397
393
|
const response = {
|
|
398
394
|
$metadata: deserializeMetadata(output),
|
|
399
395
|
...contents,
|
|
400
396
|
};
|
|
401
|
-
return
|
|
397
|
+
return response;
|
|
402
398
|
};
|
|
403
399
|
exports.de_CreateSecurityConfigCommand = de_CreateSecurityConfigCommand;
|
|
404
400
|
const de_CreateSecurityConfigCommandError = async (output, context) => {
|
|
@@ -422,10 +418,9 @@ const de_CreateSecurityConfigCommandError = async (output, context) => {
|
|
|
422
418
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
423
419
|
default:
|
|
424
420
|
const parsedBody = parsedOutput.body;
|
|
425
|
-
|
|
421
|
+
return throwDefaultError({
|
|
426
422
|
output,
|
|
427
423
|
parsedBody,
|
|
428
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
429
424
|
errorCode,
|
|
430
425
|
});
|
|
431
426
|
}
|
|
@@ -441,7 +436,7 @@ const de_CreateSecurityPolicyCommand = async (output, context) => {
|
|
|
441
436
|
$metadata: deserializeMetadata(output),
|
|
442
437
|
...contents,
|
|
443
438
|
};
|
|
444
|
-
return
|
|
439
|
+
return response;
|
|
445
440
|
};
|
|
446
441
|
exports.de_CreateSecurityPolicyCommand = de_CreateSecurityPolicyCommand;
|
|
447
442
|
const de_CreateSecurityPolicyCommandError = async (output, context) => {
|
|
@@ -465,10 +460,9 @@ const de_CreateSecurityPolicyCommandError = async (output, context) => {
|
|
|
465
460
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
466
461
|
default:
|
|
467
462
|
const parsedBody = parsedOutput.body;
|
|
468
|
-
|
|
463
|
+
return throwDefaultError({
|
|
469
464
|
output,
|
|
470
465
|
parsedBody,
|
|
471
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
472
466
|
errorCode,
|
|
473
467
|
});
|
|
474
468
|
}
|
|
@@ -479,12 +473,12 @@ const de_CreateVpcEndpointCommand = async (output, context) => {
|
|
|
479
473
|
}
|
|
480
474
|
const data = await parseBody(output.body, context);
|
|
481
475
|
let contents = {};
|
|
482
|
-
contents =
|
|
476
|
+
contents = (0, smithy_client_1._json)(data);
|
|
483
477
|
const response = {
|
|
484
478
|
$metadata: deserializeMetadata(output),
|
|
485
479
|
...contents,
|
|
486
480
|
};
|
|
487
|
-
return
|
|
481
|
+
return response;
|
|
488
482
|
};
|
|
489
483
|
exports.de_CreateVpcEndpointCommand = de_CreateVpcEndpointCommand;
|
|
490
484
|
const de_CreateVpcEndpointCommandError = async (output, context) => {
|
|
@@ -508,10 +502,9 @@ const de_CreateVpcEndpointCommandError = async (output, context) => {
|
|
|
508
502
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
509
503
|
default:
|
|
510
504
|
const parsedBody = parsedOutput.body;
|
|
511
|
-
|
|
505
|
+
return throwDefaultError({
|
|
512
506
|
output,
|
|
513
507
|
parsedBody,
|
|
514
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
515
508
|
errorCode,
|
|
516
509
|
});
|
|
517
510
|
}
|
|
@@ -522,12 +515,12 @@ const de_DeleteAccessPolicyCommand = async (output, context) => {
|
|
|
522
515
|
}
|
|
523
516
|
const data = await parseBody(output.body, context);
|
|
524
517
|
let contents = {};
|
|
525
|
-
contents =
|
|
518
|
+
contents = (0, smithy_client_1._json)(data);
|
|
526
519
|
const response = {
|
|
527
520
|
$metadata: deserializeMetadata(output),
|
|
528
521
|
...contents,
|
|
529
522
|
};
|
|
530
|
-
return
|
|
523
|
+
return response;
|
|
531
524
|
};
|
|
532
525
|
exports.de_DeleteAccessPolicyCommand = de_DeleteAccessPolicyCommand;
|
|
533
526
|
const de_DeleteAccessPolicyCommandError = async (output, context) => {
|
|
@@ -551,10 +544,9 @@ const de_DeleteAccessPolicyCommandError = async (output, context) => {
|
|
|
551
544
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
552
545
|
default:
|
|
553
546
|
const parsedBody = parsedOutput.body;
|
|
554
|
-
|
|
547
|
+
return throwDefaultError({
|
|
555
548
|
output,
|
|
556
549
|
parsedBody,
|
|
557
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
558
550
|
errorCode,
|
|
559
551
|
});
|
|
560
552
|
}
|
|
@@ -565,12 +557,12 @@ const de_DeleteCollectionCommand = async (output, context) => {
|
|
|
565
557
|
}
|
|
566
558
|
const data = await parseBody(output.body, context);
|
|
567
559
|
let contents = {};
|
|
568
|
-
contents =
|
|
560
|
+
contents = (0, smithy_client_1._json)(data);
|
|
569
561
|
const response = {
|
|
570
562
|
$metadata: deserializeMetadata(output),
|
|
571
563
|
...contents,
|
|
572
564
|
};
|
|
573
|
-
return
|
|
565
|
+
return response;
|
|
574
566
|
};
|
|
575
567
|
exports.de_DeleteCollectionCommand = de_DeleteCollectionCommand;
|
|
576
568
|
const de_DeleteCollectionCommandError = async (output, context) => {
|
|
@@ -594,10 +586,9 @@ const de_DeleteCollectionCommandError = async (output, context) => {
|
|
|
594
586
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
595
587
|
default:
|
|
596
588
|
const parsedBody = parsedOutput.body;
|
|
597
|
-
|
|
589
|
+
return throwDefaultError({
|
|
598
590
|
output,
|
|
599
591
|
parsedBody,
|
|
600
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
601
592
|
errorCode,
|
|
602
593
|
});
|
|
603
594
|
}
|
|
@@ -608,12 +599,12 @@ const de_DeleteSecurityConfigCommand = async (output, context) => {
|
|
|
608
599
|
}
|
|
609
600
|
const data = await parseBody(output.body, context);
|
|
610
601
|
let contents = {};
|
|
611
|
-
contents =
|
|
602
|
+
contents = (0, smithy_client_1._json)(data);
|
|
612
603
|
const response = {
|
|
613
604
|
$metadata: deserializeMetadata(output),
|
|
614
605
|
...contents,
|
|
615
606
|
};
|
|
616
|
-
return
|
|
607
|
+
return response;
|
|
617
608
|
};
|
|
618
609
|
exports.de_DeleteSecurityConfigCommand = de_DeleteSecurityConfigCommand;
|
|
619
610
|
const de_DeleteSecurityConfigCommandError = async (output, context) => {
|
|
@@ -637,10 +628,9 @@ const de_DeleteSecurityConfigCommandError = async (output, context) => {
|
|
|
637
628
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
638
629
|
default:
|
|
639
630
|
const parsedBody = parsedOutput.body;
|
|
640
|
-
|
|
631
|
+
return throwDefaultError({
|
|
641
632
|
output,
|
|
642
633
|
parsedBody,
|
|
643
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
644
634
|
errorCode,
|
|
645
635
|
});
|
|
646
636
|
}
|
|
@@ -651,12 +641,12 @@ const de_DeleteSecurityPolicyCommand = async (output, context) => {
|
|
|
651
641
|
}
|
|
652
642
|
const data = await parseBody(output.body, context);
|
|
653
643
|
let contents = {};
|
|
654
|
-
contents =
|
|
644
|
+
contents = (0, smithy_client_1._json)(data);
|
|
655
645
|
const response = {
|
|
656
646
|
$metadata: deserializeMetadata(output),
|
|
657
647
|
...contents,
|
|
658
648
|
};
|
|
659
|
-
return
|
|
649
|
+
return response;
|
|
660
650
|
};
|
|
661
651
|
exports.de_DeleteSecurityPolicyCommand = de_DeleteSecurityPolicyCommand;
|
|
662
652
|
const de_DeleteSecurityPolicyCommandError = async (output, context) => {
|
|
@@ -680,10 +670,9 @@ const de_DeleteSecurityPolicyCommandError = async (output, context) => {
|
|
|
680
670
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
681
671
|
default:
|
|
682
672
|
const parsedBody = parsedOutput.body;
|
|
683
|
-
|
|
673
|
+
return throwDefaultError({
|
|
684
674
|
output,
|
|
685
675
|
parsedBody,
|
|
686
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
687
676
|
errorCode,
|
|
688
677
|
});
|
|
689
678
|
}
|
|
@@ -694,12 +683,12 @@ const de_DeleteVpcEndpointCommand = async (output, context) => {
|
|
|
694
683
|
}
|
|
695
684
|
const data = await parseBody(output.body, context);
|
|
696
685
|
let contents = {};
|
|
697
|
-
contents =
|
|
686
|
+
contents = (0, smithy_client_1._json)(data);
|
|
698
687
|
const response = {
|
|
699
688
|
$metadata: deserializeMetadata(output),
|
|
700
689
|
...contents,
|
|
701
690
|
};
|
|
702
|
-
return
|
|
691
|
+
return response;
|
|
703
692
|
};
|
|
704
693
|
exports.de_DeleteVpcEndpointCommand = de_DeleteVpcEndpointCommand;
|
|
705
694
|
const de_DeleteVpcEndpointCommandError = async (output, context) => {
|
|
@@ -723,10 +712,9 @@ const de_DeleteVpcEndpointCommandError = async (output, context) => {
|
|
|
723
712
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
724
713
|
default:
|
|
725
714
|
const parsedBody = parsedOutput.body;
|
|
726
|
-
|
|
715
|
+
return throwDefaultError({
|
|
727
716
|
output,
|
|
728
717
|
parsedBody,
|
|
729
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
730
718
|
errorCode,
|
|
731
719
|
});
|
|
732
720
|
}
|
|
@@ -742,7 +730,7 @@ const de_GetAccessPolicyCommand = async (output, context) => {
|
|
|
742
730
|
$metadata: deserializeMetadata(output),
|
|
743
731
|
...contents,
|
|
744
732
|
};
|
|
745
|
-
return
|
|
733
|
+
return response;
|
|
746
734
|
};
|
|
747
735
|
exports.de_GetAccessPolicyCommand = de_GetAccessPolicyCommand;
|
|
748
736
|
const de_GetAccessPolicyCommandError = async (output, context) => {
|
|
@@ -763,10 +751,9 @@ const de_GetAccessPolicyCommandError = async (output, context) => {
|
|
|
763
751
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
764
752
|
default:
|
|
765
753
|
const parsedBody = parsedOutput.body;
|
|
766
|
-
|
|
754
|
+
return throwDefaultError({
|
|
767
755
|
output,
|
|
768
756
|
parsedBody,
|
|
769
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
770
757
|
errorCode,
|
|
771
758
|
});
|
|
772
759
|
}
|
|
@@ -777,12 +764,12 @@ const de_GetAccountSettingsCommand = async (output, context) => {
|
|
|
777
764
|
}
|
|
778
765
|
const data = await parseBody(output.body, context);
|
|
779
766
|
let contents = {};
|
|
780
|
-
contents =
|
|
767
|
+
contents = (0, smithy_client_1._json)(data);
|
|
781
768
|
const response = {
|
|
782
769
|
$metadata: deserializeMetadata(output),
|
|
783
770
|
...contents,
|
|
784
771
|
};
|
|
785
|
-
return
|
|
772
|
+
return response;
|
|
786
773
|
};
|
|
787
774
|
exports.de_GetAccountSettingsCommand = de_GetAccountSettingsCommand;
|
|
788
775
|
const de_GetAccountSettingsCommandError = async (output, context) => {
|
|
@@ -800,10 +787,9 @@ const de_GetAccountSettingsCommandError = async (output, context) => {
|
|
|
800
787
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
801
788
|
default:
|
|
802
789
|
const parsedBody = parsedOutput.body;
|
|
803
|
-
|
|
790
|
+
return throwDefaultError({
|
|
804
791
|
output,
|
|
805
792
|
parsedBody,
|
|
806
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
807
793
|
errorCode,
|
|
808
794
|
});
|
|
809
795
|
}
|
|
@@ -814,12 +800,12 @@ const de_GetPoliciesStatsCommand = async (output, context) => {
|
|
|
814
800
|
}
|
|
815
801
|
const data = await parseBody(output.body, context);
|
|
816
802
|
let contents = {};
|
|
817
|
-
contents =
|
|
803
|
+
contents = (0, smithy_client_1._json)(data);
|
|
818
804
|
const response = {
|
|
819
805
|
$metadata: deserializeMetadata(output),
|
|
820
806
|
...contents,
|
|
821
807
|
};
|
|
822
|
-
return
|
|
808
|
+
return response;
|
|
823
809
|
};
|
|
824
810
|
exports.de_GetPoliciesStatsCommand = de_GetPoliciesStatsCommand;
|
|
825
811
|
const de_GetPoliciesStatsCommandError = async (output, context) => {
|
|
@@ -834,10 +820,9 @@ const de_GetPoliciesStatsCommandError = async (output, context) => {
|
|
|
834
820
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
835
821
|
default:
|
|
836
822
|
const parsedBody = parsedOutput.body;
|
|
837
|
-
|
|
823
|
+
return throwDefaultError({
|
|
838
824
|
output,
|
|
839
825
|
parsedBody,
|
|
840
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
841
826
|
errorCode,
|
|
842
827
|
});
|
|
843
828
|
}
|
|
@@ -848,12 +833,12 @@ const de_GetSecurityConfigCommand = async (output, context) => {
|
|
|
848
833
|
}
|
|
849
834
|
const data = await parseBody(output.body, context);
|
|
850
835
|
let contents = {};
|
|
851
|
-
contents =
|
|
836
|
+
contents = (0, smithy_client_1._json)(data);
|
|
852
837
|
const response = {
|
|
853
838
|
$metadata: deserializeMetadata(output),
|
|
854
839
|
...contents,
|
|
855
840
|
};
|
|
856
|
-
return
|
|
841
|
+
return response;
|
|
857
842
|
};
|
|
858
843
|
exports.de_GetSecurityConfigCommand = de_GetSecurityConfigCommand;
|
|
859
844
|
const de_GetSecurityConfigCommandError = async (output, context) => {
|
|
@@ -874,10 +859,9 @@ const de_GetSecurityConfigCommandError = async (output, context) => {
|
|
|
874
859
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
875
860
|
default:
|
|
876
861
|
const parsedBody = parsedOutput.body;
|
|
877
|
-
|
|
862
|
+
return throwDefaultError({
|
|
878
863
|
output,
|
|
879
864
|
parsedBody,
|
|
880
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
881
865
|
errorCode,
|
|
882
866
|
});
|
|
883
867
|
}
|
|
@@ -893,7 +877,7 @@ const de_GetSecurityPolicyCommand = async (output, context) => {
|
|
|
893
877
|
$metadata: deserializeMetadata(output),
|
|
894
878
|
...contents,
|
|
895
879
|
};
|
|
896
|
-
return
|
|
880
|
+
return response;
|
|
897
881
|
};
|
|
898
882
|
exports.de_GetSecurityPolicyCommand = de_GetSecurityPolicyCommand;
|
|
899
883
|
const de_GetSecurityPolicyCommandError = async (output, context) => {
|
|
@@ -914,10 +898,9 @@ const de_GetSecurityPolicyCommandError = async (output, context) => {
|
|
|
914
898
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
915
899
|
default:
|
|
916
900
|
const parsedBody = parsedOutput.body;
|
|
917
|
-
|
|
901
|
+
return throwDefaultError({
|
|
918
902
|
output,
|
|
919
903
|
parsedBody,
|
|
920
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
921
904
|
errorCode,
|
|
922
905
|
});
|
|
923
906
|
}
|
|
@@ -928,12 +911,12 @@ const de_ListAccessPoliciesCommand = async (output, context) => {
|
|
|
928
911
|
}
|
|
929
912
|
const data = await parseBody(output.body, context);
|
|
930
913
|
let contents = {};
|
|
931
|
-
contents =
|
|
914
|
+
contents = (0, smithy_client_1._json)(data);
|
|
932
915
|
const response = {
|
|
933
916
|
$metadata: deserializeMetadata(output),
|
|
934
917
|
...contents,
|
|
935
918
|
};
|
|
936
|
-
return
|
|
919
|
+
return response;
|
|
937
920
|
};
|
|
938
921
|
exports.de_ListAccessPoliciesCommand = de_ListAccessPoliciesCommand;
|
|
939
922
|
const de_ListAccessPoliciesCommandError = async (output, context) => {
|
|
@@ -951,10 +934,9 @@ const de_ListAccessPoliciesCommandError = async (output, context) => {
|
|
|
951
934
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
952
935
|
default:
|
|
953
936
|
const parsedBody = parsedOutput.body;
|
|
954
|
-
|
|
937
|
+
return throwDefaultError({
|
|
955
938
|
output,
|
|
956
939
|
parsedBody,
|
|
957
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
958
940
|
errorCode,
|
|
959
941
|
});
|
|
960
942
|
}
|
|
@@ -965,12 +947,12 @@ const de_ListCollectionsCommand = async (output, context) => {
|
|
|
965
947
|
}
|
|
966
948
|
const data = await parseBody(output.body, context);
|
|
967
949
|
let contents = {};
|
|
968
|
-
contents =
|
|
950
|
+
contents = (0, smithy_client_1._json)(data);
|
|
969
951
|
const response = {
|
|
970
952
|
$metadata: deserializeMetadata(output),
|
|
971
953
|
...contents,
|
|
972
954
|
};
|
|
973
|
-
return
|
|
955
|
+
return response;
|
|
974
956
|
};
|
|
975
957
|
exports.de_ListCollectionsCommand = de_ListCollectionsCommand;
|
|
976
958
|
const de_ListCollectionsCommandError = async (output, context) => {
|
|
@@ -988,10 +970,9 @@ const de_ListCollectionsCommandError = async (output, context) => {
|
|
|
988
970
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
989
971
|
default:
|
|
990
972
|
const parsedBody = parsedOutput.body;
|
|
991
|
-
|
|
973
|
+
return throwDefaultError({
|
|
992
974
|
output,
|
|
993
975
|
parsedBody,
|
|
994
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
995
976
|
errorCode,
|
|
996
977
|
});
|
|
997
978
|
}
|
|
@@ -1002,12 +983,12 @@ const de_ListSecurityConfigsCommand = async (output, context) => {
|
|
|
1002
983
|
}
|
|
1003
984
|
const data = await parseBody(output.body, context);
|
|
1004
985
|
let contents = {};
|
|
1005
|
-
contents =
|
|
986
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1006
987
|
const response = {
|
|
1007
988
|
$metadata: deserializeMetadata(output),
|
|
1008
989
|
...contents,
|
|
1009
990
|
};
|
|
1010
|
-
return
|
|
991
|
+
return response;
|
|
1011
992
|
};
|
|
1012
993
|
exports.de_ListSecurityConfigsCommand = de_ListSecurityConfigsCommand;
|
|
1013
994
|
const de_ListSecurityConfigsCommandError = async (output, context) => {
|
|
@@ -1025,10 +1006,9 @@ const de_ListSecurityConfigsCommandError = async (output, context) => {
|
|
|
1025
1006
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1026
1007
|
default:
|
|
1027
1008
|
const parsedBody = parsedOutput.body;
|
|
1028
|
-
|
|
1009
|
+
return throwDefaultError({
|
|
1029
1010
|
output,
|
|
1030
1011
|
parsedBody,
|
|
1031
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1032
1012
|
errorCode,
|
|
1033
1013
|
});
|
|
1034
1014
|
}
|
|
@@ -1039,12 +1019,12 @@ const de_ListSecurityPoliciesCommand = async (output, context) => {
|
|
|
1039
1019
|
}
|
|
1040
1020
|
const data = await parseBody(output.body, context);
|
|
1041
1021
|
let contents = {};
|
|
1042
|
-
contents =
|
|
1022
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1043
1023
|
const response = {
|
|
1044
1024
|
$metadata: deserializeMetadata(output),
|
|
1045
1025
|
...contents,
|
|
1046
1026
|
};
|
|
1047
|
-
return
|
|
1027
|
+
return response;
|
|
1048
1028
|
};
|
|
1049
1029
|
exports.de_ListSecurityPoliciesCommand = de_ListSecurityPoliciesCommand;
|
|
1050
1030
|
const de_ListSecurityPoliciesCommandError = async (output, context) => {
|
|
@@ -1062,10 +1042,9 @@ const de_ListSecurityPoliciesCommandError = async (output, context) => {
|
|
|
1062
1042
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1063
1043
|
default:
|
|
1064
1044
|
const parsedBody = parsedOutput.body;
|
|
1065
|
-
|
|
1045
|
+
return throwDefaultError({
|
|
1066
1046
|
output,
|
|
1067
1047
|
parsedBody,
|
|
1068
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1069
1048
|
errorCode,
|
|
1070
1049
|
});
|
|
1071
1050
|
}
|
|
@@ -1076,12 +1055,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1076
1055
|
}
|
|
1077
1056
|
const data = await parseBody(output.body, context);
|
|
1078
1057
|
let contents = {};
|
|
1079
|
-
contents =
|
|
1058
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1080
1059
|
const response = {
|
|
1081
1060
|
$metadata: deserializeMetadata(output),
|
|
1082
1061
|
...contents,
|
|
1083
1062
|
};
|
|
1084
|
-
return
|
|
1063
|
+
return response;
|
|
1085
1064
|
};
|
|
1086
1065
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1087
1066
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1102,10 +1081,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1102
1081
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1103
1082
|
default:
|
|
1104
1083
|
const parsedBody = parsedOutput.body;
|
|
1105
|
-
|
|
1084
|
+
return throwDefaultError({
|
|
1106
1085
|
output,
|
|
1107
1086
|
parsedBody,
|
|
1108
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1109
1087
|
errorCode,
|
|
1110
1088
|
});
|
|
1111
1089
|
}
|
|
@@ -1116,12 +1094,12 @@ const de_ListVpcEndpointsCommand = async (output, context) => {
|
|
|
1116
1094
|
}
|
|
1117
1095
|
const data = await parseBody(output.body, context);
|
|
1118
1096
|
let contents = {};
|
|
1119
|
-
contents =
|
|
1097
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1120
1098
|
const response = {
|
|
1121
1099
|
$metadata: deserializeMetadata(output),
|
|
1122
1100
|
...contents,
|
|
1123
1101
|
};
|
|
1124
|
-
return
|
|
1102
|
+
return response;
|
|
1125
1103
|
};
|
|
1126
1104
|
exports.de_ListVpcEndpointsCommand = de_ListVpcEndpointsCommand;
|
|
1127
1105
|
const de_ListVpcEndpointsCommandError = async (output, context) => {
|
|
@@ -1139,10 +1117,9 @@ const de_ListVpcEndpointsCommandError = async (output, context) => {
|
|
|
1139
1117
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1140
1118
|
default:
|
|
1141
1119
|
const parsedBody = parsedOutput.body;
|
|
1142
|
-
|
|
1120
|
+
return throwDefaultError({
|
|
1143
1121
|
output,
|
|
1144
1122
|
parsedBody,
|
|
1145
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1146
1123
|
errorCode,
|
|
1147
1124
|
});
|
|
1148
1125
|
}
|
|
@@ -1153,12 +1130,12 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
1153
1130
|
}
|
|
1154
1131
|
const data = await parseBody(output.body, context);
|
|
1155
1132
|
let contents = {};
|
|
1156
|
-
contents =
|
|
1133
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1157
1134
|
const response = {
|
|
1158
1135
|
$metadata: deserializeMetadata(output),
|
|
1159
1136
|
...contents,
|
|
1160
1137
|
};
|
|
1161
|
-
return
|
|
1138
|
+
return response;
|
|
1162
1139
|
};
|
|
1163
1140
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1164
1141
|
const de_TagResourceCommandError = async (output, context) => {
|
|
@@ -1185,10 +1162,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1185
1162
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1186
1163
|
default:
|
|
1187
1164
|
const parsedBody = parsedOutput.body;
|
|
1188
|
-
|
|
1165
|
+
return throwDefaultError({
|
|
1189
1166
|
output,
|
|
1190
1167
|
parsedBody,
|
|
1191
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1192
1168
|
errorCode,
|
|
1193
1169
|
});
|
|
1194
1170
|
}
|
|
@@ -1199,12 +1175,12 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
1199
1175
|
}
|
|
1200
1176
|
const data = await parseBody(output.body, context);
|
|
1201
1177
|
let contents = {};
|
|
1202
|
-
contents =
|
|
1178
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1203
1179
|
const response = {
|
|
1204
1180
|
$metadata: deserializeMetadata(output),
|
|
1205
1181
|
...contents,
|
|
1206
1182
|
};
|
|
1207
|
-
return
|
|
1183
|
+
return response;
|
|
1208
1184
|
};
|
|
1209
1185
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1210
1186
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
@@ -1228,10 +1204,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1228
1204
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1229
1205
|
default:
|
|
1230
1206
|
const parsedBody = parsedOutput.body;
|
|
1231
|
-
|
|
1207
|
+
return throwDefaultError({
|
|
1232
1208
|
output,
|
|
1233
1209
|
parsedBody,
|
|
1234
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1235
1210
|
errorCode,
|
|
1236
1211
|
});
|
|
1237
1212
|
}
|
|
@@ -1247,7 +1222,7 @@ const de_UpdateAccessPolicyCommand = async (output, context) => {
|
|
|
1247
1222
|
$metadata: deserializeMetadata(output),
|
|
1248
1223
|
...contents,
|
|
1249
1224
|
};
|
|
1250
|
-
return
|
|
1225
|
+
return response;
|
|
1251
1226
|
};
|
|
1252
1227
|
exports.de_UpdateAccessPolicyCommand = de_UpdateAccessPolicyCommand;
|
|
1253
1228
|
const de_UpdateAccessPolicyCommandError = async (output, context) => {
|
|
@@ -1271,10 +1246,9 @@ const de_UpdateAccessPolicyCommandError = async (output, context) => {
|
|
|
1271
1246
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1272
1247
|
default:
|
|
1273
1248
|
const parsedBody = parsedOutput.body;
|
|
1274
|
-
|
|
1249
|
+
return throwDefaultError({
|
|
1275
1250
|
output,
|
|
1276
1251
|
parsedBody,
|
|
1277
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1278
1252
|
errorCode,
|
|
1279
1253
|
});
|
|
1280
1254
|
}
|
|
@@ -1285,12 +1259,12 @@ const de_UpdateAccountSettingsCommand = async (output, context) => {
|
|
|
1285
1259
|
}
|
|
1286
1260
|
const data = await parseBody(output.body, context);
|
|
1287
1261
|
let contents = {};
|
|
1288
|
-
contents =
|
|
1262
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1289
1263
|
const response = {
|
|
1290
1264
|
$metadata: deserializeMetadata(output),
|
|
1291
1265
|
...contents,
|
|
1292
1266
|
};
|
|
1293
|
-
return
|
|
1267
|
+
return response;
|
|
1294
1268
|
};
|
|
1295
1269
|
exports.de_UpdateAccountSettingsCommand = de_UpdateAccountSettingsCommand;
|
|
1296
1270
|
const de_UpdateAccountSettingsCommandError = async (output, context) => {
|
|
@@ -1308,10 +1282,9 @@ const de_UpdateAccountSettingsCommandError = async (output, context) => {
|
|
|
1308
1282
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1309
1283
|
default:
|
|
1310
1284
|
const parsedBody = parsedOutput.body;
|
|
1311
|
-
|
|
1285
|
+
return throwDefaultError({
|
|
1312
1286
|
output,
|
|
1313
1287
|
parsedBody,
|
|
1314
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1315
1288
|
errorCode,
|
|
1316
1289
|
});
|
|
1317
1290
|
}
|
|
@@ -1322,12 +1295,12 @@ const de_UpdateCollectionCommand = async (output, context) => {
|
|
|
1322
1295
|
}
|
|
1323
1296
|
const data = await parseBody(output.body, context);
|
|
1324
1297
|
let contents = {};
|
|
1325
|
-
contents =
|
|
1298
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1326
1299
|
const response = {
|
|
1327
1300
|
$metadata: deserializeMetadata(output),
|
|
1328
1301
|
...contents,
|
|
1329
1302
|
};
|
|
1330
|
-
return
|
|
1303
|
+
return response;
|
|
1331
1304
|
};
|
|
1332
1305
|
exports.de_UpdateCollectionCommand = de_UpdateCollectionCommand;
|
|
1333
1306
|
const de_UpdateCollectionCommandError = async (output, context) => {
|
|
@@ -1348,10 +1321,9 @@ const de_UpdateCollectionCommandError = async (output, context) => {
|
|
|
1348
1321
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1349
1322
|
default:
|
|
1350
1323
|
const parsedBody = parsedOutput.body;
|
|
1351
|
-
|
|
1324
|
+
return throwDefaultError({
|
|
1352
1325
|
output,
|
|
1353
1326
|
parsedBody,
|
|
1354
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1355
1327
|
errorCode,
|
|
1356
1328
|
});
|
|
1357
1329
|
}
|
|
@@ -1362,12 +1334,12 @@ const de_UpdateSecurityConfigCommand = async (output, context) => {
|
|
|
1362
1334
|
}
|
|
1363
1335
|
const data = await parseBody(output.body, context);
|
|
1364
1336
|
let contents = {};
|
|
1365
|
-
contents =
|
|
1337
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1366
1338
|
const response = {
|
|
1367
1339
|
$metadata: deserializeMetadata(output),
|
|
1368
1340
|
...contents,
|
|
1369
1341
|
};
|
|
1370
|
-
return
|
|
1342
|
+
return response;
|
|
1371
1343
|
};
|
|
1372
1344
|
exports.de_UpdateSecurityConfigCommand = de_UpdateSecurityConfigCommand;
|
|
1373
1345
|
const de_UpdateSecurityConfigCommandError = async (output, context) => {
|
|
@@ -1391,10 +1363,9 @@ const de_UpdateSecurityConfigCommandError = async (output, context) => {
|
|
|
1391
1363
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1392
1364
|
default:
|
|
1393
1365
|
const parsedBody = parsedOutput.body;
|
|
1394
|
-
|
|
1366
|
+
return throwDefaultError({
|
|
1395
1367
|
output,
|
|
1396
1368
|
parsedBody,
|
|
1397
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1398
1369
|
errorCode,
|
|
1399
1370
|
});
|
|
1400
1371
|
}
|
|
@@ -1410,7 +1381,7 @@ const de_UpdateSecurityPolicyCommand = async (output, context) => {
|
|
|
1410
1381
|
$metadata: deserializeMetadata(output),
|
|
1411
1382
|
...contents,
|
|
1412
1383
|
};
|
|
1413
|
-
return
|
|
1384
|
+
return response;
|
|
1414
1385
|
};
|
|
1415
1386
|
exports.de_UpdateSecurityPolicyCommand = de_UpdateSecurityPolicyCommand;
|
|
1416
1387
|
const de_UpdateSecurityPolicyCommandError = async (output, context) => {
|
|
@@ -1437,10 +1408,9 @@ const de_UpdateSecurityPolicyCommandError = async (output, context) => {
|
|
|
1437
1408
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1438
1409
|
default:
|
|
1439
1410
|
const parsedBody = parsedOutput.body;
|
|
1440
|
-
|
|
1411
|
+
return throwDefaultError({
|
|
1441
1412
|
output,
|
|
1442
1413
|
parsedBody,
|
|
1443
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1444
1414
|
errorCode,
|
|
1445
1415
|
});
|
|
1446
1416
|
}
|
|
@@ -1451,12 +1421,12 @@ const de_UpdateVpcEndpointCommand = async (output, context) => {
|
|
|
1451
1421
|
}
|
|
1452
1422
|
const data = await parseBody(output.body, context);
|
|
1453
1423
|
let contents = {};
|
|
1454
|
-
contents =
|
|
1424
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1455
1425
|
const response = {
|
|
1456
1426
|
$metadata: deserializeMetadata(output),
|
|
1457
1427
|
...contents,
|
|
1458
1428
|
};
|
|
1459
|
-
return
|
|
1429
|
+
return response;
|
|
1460
1430
|
};
|
|
1461
1431
|
exports.de_UpdateVpcEndpointCommand = de_UpdateVpcEndpointCommand;
|
|
1462
1432
|
const de_UpdateVpcEndpointCommandError = async (output, context) => {
|
|
@@ -1477,17 +1447,16 @@ const de_UpdateVpcEndpointCommandError = async (output, context) => {
|
|
|
1477
1447
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1478
1448
|
default:
|
|
1479
1449
|
const parsedBody = parsedOutput.body;
|
|
1480
|
-
|
|
1450
|
+
return throwDefaultError({
|
|
1481
1451
|
output,
|
|
1482
1452
|
parsedBody,
|
|
1483
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1484
1453
|
errorCode,
|
|
1485
1454
|
});
|
|
1486
1455
|
}
|
|
1487
1456
|
};
|
|
1488
1457
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1489
1458
|
const body = parsedOutput.body;
|
|
1490
|
-
const deserialized =
|
|
1459
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1491
1460
|
const exception = new models_0_1.ConflictException({
|
|
1492
1461
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1493
1462
|
...deserialized,
|
|
@@ -1496,7 +1465,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1496
1465
|
};
|
|
1497
1466
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1498
1467
|
const body = parsedOutput.body;
|
|
1499
|
-
const deserialized =
|
|
1468
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1500
1469
|
const exception = new models_0_1.InternalServerException({
|
|
1501
1470
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1502
1471
|
...deserialized,
|
|
@@ -1505,7 +1474,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1505
1474
|
};
|
|
1506
1475
|
const de_OcuLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1507
1476
|
const body = parsedOutput.body;
|
|
1508
|
-
const deserialized =
|
|
1477
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1509
1478
|
const exception = new models_0_1.OcuLimitExceededException({
|
|
1510
1479
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1511
1480
|
...deserialized,
|
|
@@ -1514,7 +1483,7 @@ const de_OcuLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1514
1483
|
};
|
|
1515
1484
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1516
1485
|
const body = parsedOutput.body;
|
|
1517
|
-
const deserialized =
|
|
1486
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1518
1487
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1519
1488
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1520
1489
|
...deserialized,
|
|
@@ -1523,7 +1492,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1523
1492
|
};
|
|
1524
1493
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1525
1494
|
const body = parsedOutput.body;
|
|
1526
|
-
const deserialized =
|
|
1495
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1527
1496
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1528
1497
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1529
1498
|
...deserialized,
|
|
@@ -1532,886 +1501,187 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1532
1501
|
};
|
|
1533
1502
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1534
1503
|
const body = parsedOutput.body;
|
|
1535
|
-
const deserialized =
|
|
1504
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1536
1505
|
const exception = new models_0_1.ValidationException({
|
|
1537
1506
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1538
1507
|
...deserialized,
|
|
1539
1508
|
});
|
|
1540
1509
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1541
1510
|
};
|
|
1542
|
-
const se_BatchGetCollectionRequest = (input, context) => {
|
|
1543
|
-
return {
|
|
1544
|
-
...(input.ids != null && { ids: se_CollectionIds(input.ids, context) }),
|
|
1545
|
-
...(input.names != null && { names: se_CollectionNames(input.names, context) }),
|
|
1546
|
-
};
|
|
1547
|
-
};
|
|
1548
|
-
const se_BatchGetVpcEndpointRequest = (input, context) => {
|
|
1549
|
-
return {
|
|
1550
|
-
...(input.ids != null && { ids: se_VpcEndpointIds(input.ids, context) }),
|
|
1551
|
-
};
|
|
1552
|
-
};
|
|
1553
|
-
const se_CapacityLimits = (input, context) => {
|
|
1554
|
-
return {
|
|
1555
|
-
...(input.maxIndexingCapacityInOCU != null && { maxIndexingCapacityInOCU: input.maxIndexingCapacityInOCU }),
|
|
1556
|
-
...(input.maxSearchCapacityInOCU != null && { maxSearchCapacityInOCU: input.maxSearchCapacityInOCU }),
|
|
1557
|
-
};
|
|
1558
|
-
};
|
|
1559
|
-
const se_CollectionFilters = (input, context) => {
|
|
1560
|
-
return {
|
|
1561
|
-
...(input.name != null && { name: input.name }),
|
|
1562
|
-
...(input.status != null && { status: input.status }),
|
|
1563
|
-
};
|
|
1564
|
-
};
|
|
1565
|
-
const se_CollectionIds = (input, context) => {
|
|
1566
|
-
return input
|
|
1567
|
-
.filter((e) => e != null)
|
|
1568
|
-
.map((entry) => {
|
|
1569
|
-
return entry;
|
|
1570
|
-
});
|
|
1571
|
-
};
|
|
1572
|
-
const se_CollectionNames = (input, context) => {
|
|
1573
|
-
return input
|
|
1574
|
-
.filter((e) => e != null)
|
|
1575
|
-
.map((entry) => {
|
|
1576
|
-
return entry;
|
|
1577
|
-
});
|
|
1578
|
-
};
|
|
1579
1511
|
const se_CreateAccessPolicyRequest = (input, context) => {
|
|
1580
|
-
return {
|
|
1581
|
-
clientToken:
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
};
|
|
1512
|
+
return (0, smithy_client_1.take)(input, {
|
|
1513
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1514
|
+
description: [],
|
|
1515
|
+
name: [],
|
|
1516
|
+
policy: [],
|
|
1517
|
+
type: [],
|
|
1518
|
+
});
|
|
1587
1519
|
};
|
|
1588
1520
|
const se_CreateCollectionRequest = (input, context) => {
|
|
1589
|
-
return {
|
|
1590
|
-
clientToken:
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
};
|
|
1521
|
+
return (0, smithy_client_1.take)(input, {
|
|
1522
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1523
|
+
description: [],
|
|
1524
|
+
name: [],
|
|
1525
|
+
tags: smithy_client_1._json,
|
|
1526
|
+
type: [],
|
|
1527
|
+
});
|
|
1596
1528
|
};
|
|
1597
1529
|
const se_CreateSecurityConfigRequest = (input, context) => {
|
|
1598
|
-
return {
|
|
1599
|
-
clientToken:
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
};
|
|
1530
|
+
return (0, smithy_client_1.take)(input, {
|
|
1531
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1532
|
+
description: [],
|
|
1533
|
+
name: [],
|
|
1534
|
+
samlOptions: smithy_client_1._json,
|
|
1535
|
+
type: [],
|
|
1536
|
+
});
|
|
1605
1537
|
};
|
|
1606
1538
|
const se_CreateSecurityPolicyRequest = (input, context) => {
|
|
1607
|
-
return {
|
|
1608
|
-
clientToken:
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
};
|
|
1539
|
+
return (0, smithy_client_1.take)(input, {
|
|
1540
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1541
|
+
description: [],
|
|
1542
|
+
name: [],
|
|
1543
|
+
policy: [],
|
|
1544
|
+
type: [],
|
|
1545
|
+
});
|
|
1614
1546
|
};
|
|
1615
1547
|
const se_CreateVpcEndpointRequest = (input, context) => {
|
|
1616
|
-
return {
|
|
1617
|
-
clientToken:
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
};
|
|
1548
|
+
return (0, smithy_client_1.take)(input, {
|
|
1549
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1550
|
+
name: [],
|
|
1551
|
+
securityGroupIds: smithy_client_1._json,
|
|
1552
|
+
subnetIds: smithy_client_1._json,
|
|
1553
|
+
vpcId: [],
|
|
1554
|
+
});
|
|
1623
1555
|
};
|
|
1624
1556
|
const se_DeleteAccessPolicyRequest = (input, context) => {
|
|
1625
|
-
return {
|
|
1626
|
-
clientToken:
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
};
|
|
1630
|
-
};
|
|
1631
|
-
const se_DeleteCollectionRequest = (input, context) => {
|
|
1632
|
-
return {
|
|
1633
|
-
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
1634
|
-
...(input.id != null && { id: input.id }),
|
|
1635
|
-
};
|
|
1636
|
-
};
|
|
1637
|
-
const se_DeleteSecurityConfigRequest = (input, context) => {
|
|
1638
|
-
return {
|
|
1639
|
-
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
1640
|
-
...(input.id != null && { id: input.id }),
|
|
1641
|
-
};
|
|
1642
|
-
};
|
|
1643
|
-
const se_DeleteSecurityPolicyRequest = (input, context) => {
|
|
1644
|
-
return {
|
|
1645
|
-
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
1646
|
-
...(input.name != null && { name: input.name }),
|
|
1647
|
-
...(input.type != null && { type: input.type }),
|
|
1648
|
-
};
|
|
1649
|
-
};
|
|
1650
|
-
const se_DeleteVpcEndpointRequest = (input, context) => {
|
|
1651
|
-
return {
|
|
1652
|
-
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
1653
|
-
...(input.id != null && { id: input.id }),
|
|
1654
|
-
};
|
|
1655
|
-
};
|
|
1656
|
-
const se_GetAccessPolicyRequest = (input, context) => {
|
|
1657
|
-
return {
|
|
1658
|
-
...(input.name != null && { name: input.name }),
|
|
1659
|
-
...(input.type != null && { type: input.type }),
|
|
1660
|
-
};
|
|
1661
|
-
};
|
|
1662
|
-
const se_GetAccountSettingsRequest = (input, context) => {
|
|
1663
|
-
return {};
|
|
1664
|
-
};
|
|
1665
|
-
const se_GetPoliciesStatsRequest = (input, context) => {
|
|
1666
|
-
return {};
|
|
1667
|
-
};
|
|
1668
|
-
const se_GetSecurityConfigRequest = (input, context) => {
|
|
1669
|
-
return {
|
|
1670
|
-
...(input.id != null && { id: input.id }),
|
|
1671
|
-
};
|
|
1672
|
-
};
|
|
1673
|
-
const se_GetSecurityPolicyRequest = (input, context) => {
|
|
1674
|
-
return {
|
|
1675
|
-
...(input.name != null && { name: input.name }),
|
|
1676
|
-
...(input.type != null && { type: input.type }),
|
|
1677
|
-
};
|
|
1678
|
-
};
|
|
1679
|
-
const se_ListAccessPoliciesRequest = (input, context) => {
|
|
1680
|
-
return {
|
|
1681
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1682
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1683
|
-
...(input.resource != null && { resource: se_ResourceFilter(input.resource, context) }),
|
|
1684
|
-
...(input.type != null && { type: input.type }),
|
|
1685
|
-
};
|
|
1686
|
-
};
|
|
1687
|
-
const se_ListCollectionsRequest = (input, context) => {
|
|
1688
|
-
return {
|
|
1689
|
-
...(input.collectionFilters != null && {
|
|
1690
|
-
collectionFilters: se_CollectionFilters(input.collectionFilters, context),
|
|
1691
|
-
}),
|
|
1692
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1693
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1694
|
-
};
|
|
1695
|
-
};
|
|
1696
|
-
const se_ListSecurityConfigsRequest = (input, context) => {
|
|
1697
|
-
return {
|
|
1698
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1699
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1700
|
-
...(input.type != null && { type: input.type }),
|
|
1701
|
-
};
|
|
1702
|
-
};
|
|
1703
|
-
const se_ListSecurityPoliciesRequest = (input, context) => {
|
|
1704
|
-
return {
|
|
1705
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1706
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1707
|
-
...(input.resource != null && { resource: se_ResourceFilter(input.resource, context) }),
|
|
1708
|
-
...(input.type != null && { type: input.type }),
|
|
1709
|
-
};
|
|
1710
|
-
};
|
|
1711
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
1712
|
-
return {
|
|
1713
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1714
|
-
};
|
|
1715
|
-
};
|
|
1716
|
-
const se_ListVpcEndpointsRequest = (input, context) => {
|
|
1717
|
-
return {
|
|
1718
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1719
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1720
|
-
...(input.vpcEndpointFilters != null && {
|
|
1721
|
-
vpcEndpointFilters: se_VpcEndpointFilters(input.vpcEndpointFilters, context),
|
|
1722
|
-
}),
|
|
1723
|
-
};
|
|
1724
|
-
};
|
|
1725
|
-
const se_ResourceFilter = (input, context) => {
|
|
1726
|
-
return input
|
|
1727
|
-
.filter((e) => e != null)
|
|
1728
|
-
.map((entry) => {
|
|
1729
|
-
return entry;
|
|
1557
|
+
return (0, smithy_client_1.take)(input, {
|
|
1558
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1559
|
+
name: [],
|
|
1560
|
+
type: [],
|
|
1730
1561
|
});
|
|
1731
1562
|
};
|
|
1732
|
-
const
|
|
1733
|
-
return {
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
...(input.sessionTimeout != null && { sessionTimeout: input.sessionTimeout }),
|
|
1737
|
-
...(input.userAttribute != null && { userAttribute: input.userAttribute }),
|
|
1738
|
-
};
|
|
1739
|
-
};
|
|
1740
|
-
const se_SecurityGroupIds = (input, context) => {
|
|
1741
|
-
return input
|
|
1742
|
-
.filter((e) => e != null)
|
|
1743
|
-
.map((entry) => {
|
|
1744
|
-
return entry;
|
|
1563
|
+
const se_DeleteCollectionRequest = (input, context) => {
|
|
1564
|
+
return (0, smithy_client_1.take)(input, {
|
|
1565
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1566
|
+
id: [],
|
|
1745
1567
|
});
|
|
1746
1568
|
};
|
|
1747
|
-
const
|
|
1748
|
-
return input
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
return entry;
|
|
1569
|
+
const se_DeleteSecurityConfigRequest = (input, context) => {
|
|
1570
|
+
return (0, smithy_client_1.take)(input, {
|
|
1571
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1572
|
+
id: [],
|
|
1752
1573
|
});
|
|
1753
1574
|
};
|
|
1754
|
-
const
|
|
1755
|
-
return {
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
};
|
|
1760
|
-
const se_TagKeys = (input, context) => {
|
|
1761
|
-
return input
|
|
1762
|
-
.filter((e) => e != null)
|
|
1763
|
-
.map((entry) => {
|
|
1764
|
-
return entry;
|
|
1575
|
+
const se_DeleteSecurityPolicyRequest = (input, context) => {
|
|
1576
|
+
return (0, smithy_client_1.take)(input, {
|
|
1577
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1578
|
+
name: [],
|
|
1579
|
+
type: [],
|
|
1765
1580
|
});
|
|
1766
1581
|
};
|
|
1767
|
-
const
|
|
1768
|
-
return {
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
};
|
|
1772
|
-
};
|
|
1773
|
-
const se_Tags = (input, context) => {
|
|
1774
|
-
return input
|
|
1775
|
-
.filter((e) => e != null)
|
|
1776
|
-
.map((entry) => {
|
|
1777
|
-
return se_Tag(entry, context);
|
|
1582
|
+
const se_DeleteVpcEndpointRequest = (input, context) => {
|
|
1583
|
+
return (0, smithy_client_1.take)(input, {
|
|
1584
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1585
|
+
id: [],
|
|
1778
1586
|
});
|
|
1779
1587
|
};
|
|
1780
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
1781
|
-
return {
|
|
1782
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1783
|
-
...(input.tagKeys != null && { tagKeys: se_TagKeys(input.tagKeys, context) }),
|
|
1784
|
-
};
|
|
1785
|
-
};
|
|
1786
1588
|
const se_UpdateAccessPolicyRequest = (input, context) => {
|
|
1787
|
-
return {
|
|
1788
|
-
clientToken:
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
};
|
|
1795
|
-
};
|
|
1796
|
-
const se_UpdateAccountSettingsRequest = (input, context) => {
|
|
1797
|
-
return {
|
|
1798
|
-
...(input.capacityLimits != null && { capacityLimits: se_CapacityLimits(input.capacityLimits, context) }),
|
|
1799
|
-
};
|
|
1589
|
+
return (0, smithy_client_1.take)(input, {
|
|
1590
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1591
|
+
description: [],
|
|
1592
|
+
name: [],
|
|
1593
|
+
policy: [],
|
|
1594
|
+
policyVersion: [],
|
|
1595
|
+
type: [],
|
|
1596
|
+
});
|
|
1800
1597
|
};
|
|
1801
1598
|
const se_UpdateCollectionRequest = (input, context) => {
|
|
1802
|
-
return {
|
|
1803
|
-
clientToken:
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
};
|
|
1599
|
+
return (0, smithy_client_1.take)(input, {
|
|
1600
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1601
|
+
description: [],
|
|
1602
|
+
id: [],
|
|
1603
|
+
});
|
|
1807
1604
|
};
|
|
1808
1605
|
const se_UpdateSecurityConfigRequest = (input, context) => {
|
|
1809
|
-
return {
|
|
1810
|
-
clientToken:
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
};
|
|
1606
|
+
return (0, smithy_client_1.take)(input, {
|
|
1607
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1608
|
+
configVersion: [],
|
|
1609
|
+
description: [],
|
|
1610
|
+
id: [],
|
|
1611
|
+
samlOptions: smithy_client_1._json,
|
|
1612
|
+
});
|
|
1816
1613
|
};
|
|
1817
1614
|
const se_UpdateSecurityPolicyRequest = (input, context) => {
|
|
1818
|
-
return {
|
|
1819
|
-
clientToken:
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
};
|
|
1615
|
+
return (0, smithy_client_1.take)(input, {
|
|
1616
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1617
|
+
description: [],
|
|
1618
|
+
name: [],
|
|
1619
|
+
policy: [],
|
|
1620
|
+
policyVersion: [],
|
|
1621
|
+
type: [],
|
|
1622
|
+
});
|
|
1826
1623
|
};
|
|
1827
1624
|
const se_UpdateVpcEndpointRequest = (input, context) => {
|
|
1828
|
-
return {
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
...(input.removeSecurityGroupIds != null && {
|
|
1836
|
-
removeSecurityGroupIds: se_SecurityGroupIds(input.removeSecurityGroupIds, context),
|
|
1837
|
-
}),
|
|
1838
|
-
...(input.removeSubnetIds != null && { removeSubnetIds: se_SubnetIds(input.removeSubnetIds, context) }),
|
|
1839
|
-
};
|
|
1840
|
-
};
|
|
1841
|
-
const se_VpcEndpointFilters = (input, context) => {
|
|
1842
|
-
return {
|
|
1843
|
-
...(input.status != null && { status: input.status }),
|
|
1844
|
-
};
|
|
1845
|
-
};
|
|
1846
|
-
const se_VpcEndpointIds = (input, context) => {
|
|
1847
|
-
return input
|
|
1848
|
-
.filter((e) => e != null)
|
|
1849
|
-
.map((entry) => {
|
|
1850
|
-
return entry;
|
|
1625
|
+
return (0, smithy_client_1.take)(input, {
|
|
1626
|
+
addSecurityGroupIds: smithy_client_1._json,
|
|
1627
|
+
addSubnetIds: smithy_client_1._json,
|
|
1628
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1629
|
+
id: [],
|
|
1630
|
+
removeSecurityGroupIds: smithy_client_1._json,
|
|
1631
|
+
removeSubnetIds: smithy_client_1._json,
|
|
1851
1632
|
});
|
|
1852
1633
|
};
|
|
1853
1634
|
const de_AccessPolicyDetail = (output, context) => {
|
|
1854
|
-
return {
|
|
1855
|
-
createdDate:
|
|
1856
|
-
description:
|
|
1857
|
-
lastModifiedDate:
|
|
1858
|
-
name:
|
|
1859
|
-
policy:
|
|
1860
|
-
policyVersion:
|
|
1861
|
-
type:
|
|
1862
|
-
};
|
|
1863
|
-
};
|
|
1864
|
-
const de_AccessPolicyStats = (output, context) => {
|
|
1865
|
-
return {
|
|
1866
|
-
DataPolicyCount: (0, smithy_client_1.expectLong)(output.DataPolicyCount),
|
|
1867
|
-
};
|
|
1868
|
-
};
|
|
1869
|
-
const de_AccessPolicySummaries = (output, context) => {
|
|
1870
|
-
const retVal = (output || [])
|
|
1871
|
-
.filter((e) => e != null)
|
|
1872
|
-
.map((entry) => {
|
|
1873
|
-
if (entry === null) {
|
|
1874
|
-
return null;
|
|
1875
|
-
}
|
|
1876
|
-
return de_AccessPolicySummary(entry, context);
|
|
1877
|
-
});
|
|
1878
|
-
return retVal;
|
|
1879
|
-
};
|
|
1880
|
-
const de_AccessPolicySummary = (output, context) => {
|
|
1881
|
-
return {
|
|
1882
|
-
createdDate: (0, smithy_client_1.expectLong)(output.createdDate),
|
|
1883
|
-
description: (0, smithy_client_1.expectString)(output.description),
|
|
1884
|
-
lastModifiedDate: (0, smithy_client_1.expectLong)(output.lastModifiedDate),
|
|
1885
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
1886
|
-
policyVersion: (0, smithy_client_1.expectString)(output.policyVersion),
|
|
1887
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
1888
|
-
};
|
|
1889
|
-
};
|
|
1890
|
-
const de_AccountSettingsDetail = (output, context) => {
|
|
1891
|
-
return {
|
|
1892
|
-
capacityLimits: output.capacityLimits != null ? de_CapacityLimits(output.capacityLimits, context) : undefined,
|
|
1893
|
-
};
|
|
1894
|
-
};
|
|
1895
|
-
const de_BatchGetCollectionResponse = (output, context) => {
|
|
1896
|
-
return {
|
|
1897
|
-
collectionDetails: output.collectionDetails != null ? de_CollectionDetails(output.collectionDetails, context) : undefined,
|
|
1898
|
-
collectionErrorDetails: output.collectionErrorDetails != null
|
|
1899
|
-
? de_CollectionErrorDetails(output.collectionErrorDetails, context)
|
|
1900
|
-
: undefined,
|
|
1901
|
-
};
|
|
1902
|
-
};
|
|
1903
|
-
const de_BatchGetVpcEndpointResponse = (output, context) => {
|
|
1904
|
-
return {
|
|
1905
|
-
vpcEndpointDetails: output.vpcEndpointDetails != null ? de_VpcEndpointDetails(output.vpcEndpointDetails, context) : undefined,
|
|
1906
|
-
vpcEndpointErrorDetails: output.vpcEndpointErrorDetails != null
|
|
1907
|
-
? de_VpcEndpointErrorDetails(output.vpcEndpointErrorDetails, context)
|
|
1908
|
-
: undefined,
|
|
1909
|
-
};
|
|
1910
|
-
};
|
|
1911
|
-
const de_CapacityLimits = (output, context) => {
|
|
1912
|
-
return {
|
|
1913
|
-
maxIndexingCapacityInOCU: (0, smithy_client_1.expectInt32)(output.maxIndexingCapacityInOCU),
|
|
1914
|
-
maxSearchCapacityInOCU: (0, smithy_client_1.expectInt32)(output.maxSearchCapacityInOCU),
|
|
1915
|
-
};
|
|
1916
|
-
};
|
|
1917
|
-
const de_CollectionDetail = (output, context) => {
|
|
1918
|
-
return {
|
|
1919
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1920
|
-
collectionEndpoint: (0, smithy_client_1.expectString)(output.collectionEndpoint),
|
|
1921
|
-
createdDate: (0, smithy_client_1.expectLong)(output.createdDate),
|
|
1922
|
-
dashboardEndpoint: (0, smithy_client_1.expectString)(output.dashboardEndpoint),
|
|
1923
|
-
description: (0, smithy_client_1.expectString)(output.description),
|
|
1924
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
1925
|
-
kmsKeyArn: (0, smithy_client_1.expectString)(output.kmsKeyArn),
|
|
1926
|
-
lastModifiedDate: (0, smithy_client_1.expectLong)(output.lastModifiedDate),
|
|
1927
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
1928
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
1929
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
1930
|
-
};
|
|
1931
|
-
};
|
|
1932
|
-
const de_CollectionDetails = (output, context) => {
|
|
1933
|
-
const retVal = (output || [])
|
|
1934
|
-
.filter((e) => e != null)
|
|
1935
|
-
.map((entry) => {
|
|
1936
|
-
if (entry === null) {
|
|
1937
|
-
return null;
|
|
1938
|
-
}
|
|
1939
|
-
return de_CollectionDetail(entry, context);
|
|
1940
|
-
});
|
|
1941
|
-
return retVal;
|
|
1942
|
-
};
|
|
1943
|
-
const de_CollectionErrorDetail = (output, context) => {
|
|
1944
|
-
return {
|
|
1945
|
-
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
1946
|
-
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
1947
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
1948
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
1949
|
-
};
|
|
1950
|
-
};
|
|
1951
|
-
const de_CollectionErrorDetails = (output, context) => {
|
|
1952
|
-
const retVal = (output || [])
|
|
1953
|
-
.filter((e) => e != null)
|
|
1954
|
-
.map((entry) => {
|
|
1955
|
-
if (entry === null) {
|
|
1956
|
-
return null;
|
|
1957
|
-
}
|
|
1958
|
-
return de_CollectionErrorDetail(entry, context);
|
|
1959
|
-
});
|
|
1960
|
-
return retVal;
|
|
1961
|
-
};
|
|
1962
|
-
const de_CollectionSummaries = (output, context) => {
|
|
1963
|
-
const retVal = (output || [])
|
|
1964
|
-
.filter((e) => e != null)
|
|
1965
|
-
.map((entry) => {
|
|
1966
|
-
if (entry === null) {
|
|
1967
|
-
return null;
|
|
1968
|
-
}
|
|
1969
|
-
return de_CollectionSummary(entry, context);
|
|
1635
|
+
return (0, smithy_client_1.take)(output, {
|
|
1636
|
+
createdDate: smithy_client_1.expectLong,
|
|
1637
|
+
description: smithy_client_1.expectString,
|
|
1638
|
+
lastModifiedDate: smithy_client_1.expectLong,
|
|
1639
|
+
name: smithy_client_1.expectString,
|
|
1640
|
+
policy: (_) => de_Document(_, context),
|
|
1641
|
+
policyVersion: smithy_client_1.expectString,
|
|
1642
|
+
type: smithy_client_1.expectString,
|
|
1970
1643
|
});
|
|
1971
|
-
return retVal;
|
|
1972
|
-
};
|
|
1973
|
-
const de_CollectionSummary = (output, context) => {
|
|
1974
|
-
return {
|
|
1975
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1976
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
1977
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
1978
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
1979
|
-
};
|
|
1980
|
-
};
|
|
1981
|
-
const de_ConflictException = (output, context) => {
|
|
1982
|
-
return {
|
|
1983
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1984
|
-
};
|
|
1985
1644
|
};
|
|
1986
1645
|
const de_CreateAccessPolicyResponse = (output, context) => {
|
|
1987
|
-
return {
|
|
1988
|
-
accessPolicyDetail:
|
|
1989
|
-
};
|
|
1990
|
-
};
|
|
1991
|
-
const de_CreateCollectionDetail = (output, context) => {
|
|
1992
|
-
return {
|
|
1993
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1994
|
-
createdDate: (0, smithy_client_1.expectLong)(output.createdDate),
|
|
1995
|
-
description: (0, smithy_client_1.expectString)(output.description),
|
|
1996
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
1997
|
-
kmsKeyArn: (0, smithy_client_1.expectString)(output.kmsKeyArn),
|
|
1998
|
-
lastModifiedDate: (0, smithy_client_1.expectLong)(output.lastModifiedDate),
|
|
1999
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2000
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2001
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
2002
|
-
};
|
|
2003
|
-
};
|
|
2004
|
-
const de_CreateCollectionResponse = (output, context) => {
|
|
2005
|
-
return {
|
|
2006
|
-
createCollectionDetail: output.createCollectionDetail != null
|
|
2007
|
-
? de_CreateCollectionDetail(output.createCollectionDetail, context)
|
|
2008
|
-
: undefined,
|
|
2009
|
-
};
|
|
2010
|
-
};
|
|
2011
|
-
const de_CreateSecurityConfigResponse = (output, context) => {
|
|
2012
|
-
return {
|
|
2013
|
-
securityConfigDetail: output.securityConfigDetail != null ? de_SecurityConfigDetail(output.securityConfigDetail, context) : undefined,
|
|
2014
|
-
};
|
|
1646
|
+
return (0, smithy_client_1.take)(output, {
|
|
1647
|
+
accessPolicyDetail: (_) => de_AccessPolicyDetail(_, context),
|
|
1648
|
+
});
|
|
2015
1649
|
};
|
|
2016
1650
|
const de_CreateSecurityPolicyResponse = (output, context) => {
|
|
2017
|
-
return {
|
|
2018
|
-
securityPolicyDetail:
|
|
2019
|
-
};
|
|
2020
|
-
};
|
|
2021
|
-
const de_CreateVpcEndpointDetail = (output, context) => {
|
|
2022
|
-
return {
|
|
2023
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
2024
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2025
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2026
|
-
};
|
|
2027
|
-
};
|
|
2028
|
-
const de_CreateVpcEndpointResponse = (output, context) => {
|
|
2029
|
-
return {
|
|
2030
|
-
createVpcEndpointDetail: output.createVpcEndpointDetail != null
|
|
2031
|
-
? de_CreateVpcEndpointDetail(output.createVpcEndpointDetail, context)
|
|
2032
|
-
: undefined,
|
|
2033
|
-
};
|
|
2034
|
-
};
|
|
2035
|
-
const de_DeleteAccessPolicyResponse = (output, context) => {
|
|
2036
|
-
return {};
|
|
2037
|
-
};
|
|
2038
|
-
const de_DeleteCollectionDetail = (output, context) => {
|
|
2039
|
-
return {
|
|
2040
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
2041
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2042
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2043
|
-
};
|
|
2044
|
-
};
|
|
2045
|
-
const de_DeleteCollectionResponse = (output, context) => {
|
|
2046
|
-
return {
|
|
2047
|
-
deleteCollectionDetail: output.deleteCollectionDetail != null
|
|
2048
|
-
? de_DeleteCollectionDetail(output.deleteCollectionDetail, context)
|
|
2049
|
-
: undefined,
|
|
2050
|
-
};
|
|
2051
|
-
};
|
|
2052
|
-
const de_DeleteSecurityConfigResponse = (output, context) => {
|
|
2053
|
-
return {};
|
|
2054
|
-
};
|
|
2055
|
-
const de_DeleteSecurityPolicyResponse = (output, context) => {
|
|
2056
|
-
return {};
|
|
2057
|
-
};
|
|
2058
|
-
const de_DeleteVpcEndpointDetail = (output, context) => {
|
|
2059
|
-
return {
|
|
2060
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
2061
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2062
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2063
|
-
};
|
|
2064
|
-
};
|
|
2065
|
-
const de_DeleteVpcEndpointResponse = (output, context) => {
|
|
2066
|
-
return {
|
|
2067
|
-
deleteVpcEndpointDetail: output.deleteVpcEndpointDetail != null
|
|
2068
|
-
? de_DeleteVpcEndpointDetail(output.deleteVpcEndpointDetail, context)
|
|
2069
|
-
: undefined,
|
|
2070
|
-
};
|
|
1651
|
+
return (0, smithy_client_1.take)(output, {
|
|
1652
|
+
securityPolicyDetail: (_) => de_SecurityPolicyDetail(_, context),
|
|
1653
|
+
});
|
|
2071
1654
|
};
|
|
2072
1655
|
const de_GetAccessPolicyResponse = (output, context) => {
|
|
2073
|
-
return {
|
|
2074
|
-
accessPolicyDetail:
|
|
2075
|
-
};
|
|
2076
|
-
};
|
|
2077
|
-
const de_GetAccountSettingsResponse = (output, context) => {
|
|
2078
|
-
return {
|
|
2079
|
-
accountSettingsDetail: output.accountSettingsDetail != null
|
|
2080
|
-
? de_AccountSettingsDetail(output.accountSettingsDetail, context)
|
|
2081
|
-
: undefined,
|
|
2082
|
-
};
|
|
2083
|
-
};
|
|
2084
|
-
const de_GetPoliciesStatsResponse = (output, context) => {
|
|
2085
|
-
return {
|
|
2086
|
-
AccessPolicyStats: output.AccessPolicyStats != null ? de_AccessPolicyStats(output.AccessPolicyStats, context) : undefined,
|
|
2087
|
-
SecurityConfigStats: output.SecurityConfigStats != null ? de_SecurityConfigStats(output.SecurityConfigStats, context) : undefined,
|
|
2088
|
-
SecurityPolicyStats: output.SecurityPolicyStats != null ? de_SecurityPolicyStats(output.SecurityPolicyStats, context) : undefined,
|
|
2089
|
-
TotalPolicyCount: (0, smithy_client_1.expectLong)(output.TotalPolicyCount),
|
|
2090
|
-
};
|
|
2091
|
-
};
|
|
2092
|
-
const de_GetSecurityConfigResponse = (output, context) => {
|
|
2093
|
-
return {
|
|
2094
|
-
securityConfigDetail: output.securityConfigDetail != null ? de_SecurityConfigDetail(output.securityConfigDetail, context) : undefined,
|
|
2095
|
-
};
|
|
2096
|
-
};
|
|
2097
|
-
const de_GetSecurityPolicyResponse = (output, context) => {
|
|
2098
|
-
return {
|
|
2099
|
-
securityPolicyDetail: output.securityPolicyDetail != null ? de_SecurityPolicyDetail(output.securityPolicyDetail, context) : undefined,
|
|
2100
|
-
};
|
|
2101
|
-
};
|
|
2102
|
-
const de_InternalServerException = (output, context) => {
|
|
2103
|
-
return {
|
|
2104
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2105
|
-
};
|
|
2106
|
-
};
|
|
2107
|
-
const de_ListAccessPoliciesResponse = (output, context) => {
|
|
2108
|
-
return {
|
|
2109
|
-
accessPolicySummaries: output.accessPolicySummaries != null
|
|
2110
|
-
? de_AccessPolicySummaries(output.accessPolicySummaries, context)
|
|
2111
|
-
: undefined,
|
|
2112
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2113
|
-
};
|
|
2114
|
-
};
|
|
2115
|
-
const de_ListCollectionsResponse = (output, context) => {
|
|
2116
|
-
return {
|
|
2117
|
-
collectionSummaries: output.collectionSummaries != null ? de_CollectionSummaries(output.collectionSummaries, context) : undefined,
|
|
2118
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2119
|
-
};
|
|
2120
|
-
};
|
|
2121
|
-
const de_ListSecurityConfigsResponse = (output, context) => {
|
|
2122
|
-
return {
|
|
2123
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2124
|
-
securityConfigSummaries: output.securityConfigSummaries != null
|
|
2125
|
-
? de_SecurityConfigSummaries(output.securityConfigSummaries, context)
|
|
2126
|
-
: undefined,
|
|
2127
|
-
};
|
|
2128
|
-
};
|
|
2129
|
-
const de_ListSecurityPoliciesResponse = (output, context) => {
|
|
2130
|
-
return {
|
|
2131
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2132
|
-
securityPolicySummaries: output.securityPolicySummaries != null
|
|
2133
|
-
? de_SecurityPolicySummaries(output.securityPolicySummaries, context)
|
|
2134
|
-
: undefined,
|
|
2135
|
-
};
|
|
2136
|
-
};
|
|
2137
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
2138
|
-
return {
|
|
2139
|
-
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2140
|
-
};
|
|
2141
|
-
};
|
|
2142
|
-
const de_ListVpcEndpointsResponse = (output, context) => {
|
|
2143
|
-
return {
|
|
2144
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2145
|
-
vpcEndpointSummaries: output.vpcEndpointSummaries != null ? de_VpcEndpointSummaries(output.vpcEndpointSummaries, context) : undefined,
|
|
2146
|
-
};
|
|
2147
|
-
};
|
|
2148
|
-
const de_OcuLimitExceededException = (output, context) => {
|
|
2149
|
-
return {
|
|
2150
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2151
|
-
};
|
|
2152
|
-
};
|
|
2153
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
2154
|
-
return {
|
|
2155
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2156
|
-
};
|
|
2157
|
-
};
|
|
2158
|
-
const de_SamlConfigOptions = (output, context) => {
|
|
2159
|
-
return {
|
|
2160
|
-
groupAttribute: (0, smithy_client_1.expectString)(output.groupAttribute),
|
|
2161
|
-
metadata: (0, smithy_client_1.expectString)(output.metadata),
|
|
2162
|
-
sessionTimeout: (0, smithy_client_1.expectInt32)(output.sessionTimeout),
|
|
2163
|
-
userAttribute: (0, smithy_client_1.expectString)(output.userAttribute),
|
|
2164
|
-
};
|
|
2165
|
-
};
|
|
2166
|
-
const de_SecurityConfigDetail = (output, context) => {
|
|
2167
|
-
return {
|
|
2168
|
-
configVersion: (0, smithy_client_1.expectString)(output.configVersion),
|
|
2169
|
-
createdDate: (0, smithy_client_1.expectLong)(output.createdDate),
|
|
2170
|
-
description: (0, smithy_client_1.expectString)(output.description),
|
|
2171
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
2172
|
-
lastModifiedDate: (0, smithy_client_1.expectLong)(output.lastModifiedDate),
|
|
2173
|
-
samlOptions: output.samlOptions != null ? de_SamlConfigOptions(output.samlOptions, context) : undefined,
|
|
2174
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
2175
|
-
};
|
|
2176
|
-
};
|
|
2177
|
-
const de_SecurityConfigStats = (output, context) => {
|
|
2178
|
-
return {
|
|
2179
|
-
SamlConfigCount: (0, smithy_client_1.expectLong)(output.SamlConfigCount),
|
|
2180
|
-
};
|
|
2181
|
-
};
|
|
2182
|
-
const de_SecurityConfigSummaries = (output, context) => {
|
|
2183
|
-
const retVal = (output || [])
|
|
2184
|
-
.filter((e) => e != null)
|
|
2185
|
-
.map((entry) => {
|
|
2186
|
-
if (entry === null) {
|
|
2187
|
-
return null;
|
|
2188
|
-
}
|
|
2189
|
-
return de_SecurityConfigSummary(entry, context);
|
|
1656
|
+
return (0, smithy_client_1.take)(output, {
|
|
1657
|
+
accessPolicyDetail: (_) => de_AccessPolicyDetail(_, context),
|
|
2190
1658
|
});
|
|
2191
|
-
return retVal;
|
|
2192
1659
|
};
|
|
2193
|
-
const
|
|
2194
|
-
return {
|
|
2195
|
-
|
|
2196
|
-
createdDate: (0, smithy_client_1.expectLong)(output.createdDate),
|
|
2197
|
-
description: (0, smithy_client_1.expectString)(output.description),
|
|
2198
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
2199
|
-
lastModifiedDate: (0, smithy_client_1.expectLong)(output.lastModifiedDate),
|
|
2200
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
2201
|
-
};
|
|
2202
|
-
};
|
|
2203
|
-
const de_SecurityGroupIds = (output, context) => {
|
|
2204
|
-
const retVal = (output || [])
|
|
2205
|
-
.filter((e) => e != null)
|
|
2206
|
-
.map((entry) => {
|
|
2207
|
-
if (entry === null) {
|
|
2208
|
-
return null;
|
|
2209
|
-
}
|
|
2210
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1660
|
+
const de_GetSecurityPolicyResponse = (output, context) => {
|
|
1661
|
+
return (0, smithy_client_1.take)(output, {
|
|
1662
|
+
securityPolicyDetail: (_) => de_SecurityPolicyDetail(_, context),
|
|
2211
1663
|
});
|
|
2212
|
-
return retVal;
|
|
2213
1664
|
};
|
|
2214
1665
|
const de_SecurityPolicyDetail = (output, context) => {
|
|
2215
|
-
return {
|
|
2216
|
-
createdDate:
|
|
2217
|
-
description:
|
|
2218
|
-
lastModifiedDate:
|
|
2219
|
-
name:
|
|
2220
|
-
policy:
|
|
2221
|
-
policyVersion:
|
|
2222
|
-
type:
|
|
2223
|
-
};
|
|
2224
|
-
};
|
|
2225
|
-
const de_SecurityPolicyStats = (output, context) => {
|
|
2226
|
-
return {
|
|
2227
|
-
EncryptionPolicyCount: (0, smithy_client_1.expectLong)(output.EncryptionPolicyCount),
|
|
2228
|
-
NetworkPolicyCount: (0, smithy_client_1.expectLong)(output.NetworkPolicyCount),
|
|
2229
|
-
};
|
|
2230
|
-
};
|
|
2231
|
-
const de_SecurityPolicySummaries = (output, context) => {
|
|
2232
|
-
const retVal = (output || [])
|
|
2233
|
-
.filter((e) => e != null)
|
|
2234
|
-
.map((entry) => {
|
|
2235
|
-
if (entry === null) {
|
|
2236
|
-
return null;
|
|
2237
|
-
}
|
|
2238
|
-
return de_SecurityPolicySummary(entry, context);
|
|
1666
|
+
return (0, smithy_client_1.take)(output, {
|
|
1667
|
+
createdDate: smithy_client_1.expectLong,
|
|
1668
|
+
description: smithy_client_1.expectString,
|
|
1669
|
+
lastModifiedDate: smithy_client_1.expectLong,
|
|
1670
|
+
name: smithy_client_1.expectString,
|
|
1671
|
+
policy: (_) => de_Document(_, context),
|
|
1672
|
+
policyVersion: smithy_client_1.expectString,
|
|
1673
|
+
type: smithy_client_1.expectString,
|
|
2239
1674
|
});
|
|
2240
|
-
return retVal;
|
|
2241
|
-
};
|
|
2242
|
-
const de_SecurityPolicySummary = (output, context) => {
|
|
2243
|
-
return {
|
|
2244
|
-
createdDate: (0, smithy_client_1.expectLong)(output.createdDate),
|
|
2245
|
-
description: (0, smithy_client_1.expectString)(output.description),
|
|
2246
|
-
lastModifiedDate: (0, smithy_client_1.expectLong)(output.lastModifiedDate),
|
|
2247
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2248
|
-
policyVersion: (0, smithy_client_1.expectString)(output.policyVersion),
|
|
2249
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
2250
|
-
};
|
|
2251
|
-
};
|
|
2252
|
-
const de_ServiceQuotaExceededException = (output, context) => {
|
|
2253
|
-
return {
|
|
2254
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2255
|
-
quotaCode: (0, smithy_client_1.expectString)(output.quotaCode),
|
|
2256
|
-
resourceId: (0, smithy_client_1.expectString)(output.resourceId),
|
|
2257
|
-
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
2258
|
-
serviceCode: (0, smithy_client_1.expectString)(output.serviceCode),
|
|
2259
|
-
};
|
|
2260
|
-
};
|
|
2261
|
-
const de_SubnetIds = (output, context) => {
|
|
2262
|
-
const retVal = (output || [])
|
|
2263
|
-
.filter((e) => e != null)
|
|
2264
|
-
.map((entry) => {
|
|
2265
|
-
if (entry === null) {
|
|
2266
|
-
return null;
|
|
2267
|
-
}
|
|
2268
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2269
|
-
});
|
|
2270
|
-
return retVal;
|
|
2271
|
-
};
|
|
2272
|
-
const de_Tag = (output, context) => {
|
|
2273
|
-
return {
|
|
2274
|
-
key: (0, smithy_client_1.expectString)(output.key),
|
|
2275
|
-
value: (0, smithy_client_1.expectString)(output.value),
|
|
2276
|
-
};
|
|
2277
|
-
};
|
|
2278
|
-
const de_TagResourceResponse = (output, context) => {
|
|
2279
|
-
return {};
|
|
2280
|
-
};
|
|
2281
|
-
const de_Tags = (output, context) => {
|
|
2282
|
-
const retVal = (output || [])
|
|
2283
|
-
.filter((e) => e != null)
|
|
2284
|
-
.map((entry) => {
|
|
2285
|
-
if (entry === null) {
|
|
2286
|
-
return null;
|
|
2287
|
-
}
|
|
2288
|
-
return de_Tag(entry, context);
|
|
2289
|
-
});
|
|
2290
|
-
return retVal;
|
|
2291
|
-
};
|
|
2292
|
-
const de_UntagResourceResponse = (output, context) => {
|
|
2293
|
-
return {};
|
|
2294
1675
|
};
|
|
2295
1676
|
const de_UpdateAccessPolicyResponse = (output, context) => {
|
|
2296
|
-
return {
|
|
2297
|
-
accessPolicyDetail:
|
|
2298
|
-
};
|
|
2299
|
-
};
|
|
2300
|
-
const de_UpdateAccountSettingsResponse = (output, context) => {
|
|
2301
|
-
return {
|
|
2302
|
-
accountSettingsDetail: output.accountSettingsDetail != null
|
|
2303
|
-
? de_AccountSettingsDetail(output.accountSettingsDetail, context)
|
|
2304
|
-
: undefined,
|
|
2305
|
-
};
|
|
2306
|
-
};
|
|
2307
|
-
const de_UpdateCollectionDetail = (output, context) => {
|
|
2308
|
-
return {
|
|
2309
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2310
|
-
createdDate: (0, smithy_client_1.expectLong)(output.createdDate),
|
|
2311
|
-
description: (0, smithy_client_1.expectString)(output.description),
|
|
2312
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
2313
|
-
lastModifiedDate: (0, smithy_client_1.expectLong)(output.lastModifiedDate),
|
|
2314
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2315
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2316
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
2317
|
-
};
|
|
2318
|
-
};
|
|
2319
|
-
const de_UpdateCollectionResponse = (output, context) => {
|
|
2320
|
-
return {
|
|
2321
|
-
updateCollectionDetail: output.updateCollectionDetail != null
|
|
2322
|
-
? de_UpdateCollectionDetail(output.updateCollectionDetail, context)
|
|
2323
|
-
: undefined,
|
|
2324
|
-
};
|
|
2325
|
-
};
|
|
2326
|
-
const de_UpdateSecurityConfigResponse = (output, context) => {
|
|
2327
|
-
return {
|
|
2328
|
-
securityConfigDetail: output.securityConfigDetail != null ? de_SecurityConfigDetail(output.securityConfigDetail, context) : undefined,
|
|
2329
|
-
};
|
|
2330
|
-
};
|
|
2331
|
-
const de_UpdateSecurityPolicyResponse = (output, context) => {
|
|
2332
|
-
return {
|
|
2333
|
-
securityPolicyDetail: output.securityPolicyDetail != null ? de_SecurityPolicyDetail(output.securityPolicyDetail, context) : undefined,
|
|
2334
|
-
};
|
|
2335
|
-
};
|
|
2336
|
-
const de_UpdateVpcEndpointDetail = (output, context) => {
|
|
2337
|
-
return {
|
|
2338
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
2339
|
-
lastModifiedDate: (0, smithy_client_1.expectLong)(output.lastModifiedDate),
|
|
2340
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2341
|
-
securityGroupIds: output.securityGroupIds != null ? de_SecurityGroupIds(output.securityGroupIds, context) : undefined,
|
|
2342
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2343
|
-
subnetIds: output.subnetIds != null ? de_SubnetIds(output.subnetIds, context) : undefined,
|
|
2344
|
-
};
|
|
2345
|
-
};
|
|
2346
|
-
const de_UpdateVpcEndpointResponse = (output, context) => {
|
|
2347
|
-
return {
|
|
2348
|
-
UpdateVpcEndpointDetail: output.UpdateVpcEndpointDetail != null
|
|
2349
|
-
? de_UpdateVpcEndpointDetail(output.UpdateVpcEndpointDetail, context)
|
|
2350
|
-
: undefined,
|
|
2351
|
-
};
|
|
2352
|
-
};
|
|
2353
|
-
const de_ValidationException = (output, context) => {
|
|
2354
|
-
return {
|
|
2355
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2356
|
-
};
|
|
2357
|
-
};
|
|
2358
|
-
const de_VpcEndpointDetail = (output, context) => {
|
|
2359
|
-
return {
|
|
2360
|
-
createdDate: (0, smithy_client_1.expectLong)(output.createdDate),
|
|
2361
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
2362
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2363
|
-
securityGroupIds: output.securityGroupIds != null ? de_SecurityGroupIds(output.securityGroupIds, context) : undefined,
|
|
2364
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2365
|
-
subnetIds: output.subnetIds != null ? de_SubnetIds(output.subnetIds, context) : undefined,
|
|
2366
|
-
vpcId: (0, smithy_client_1.expectString)(output.vpcId),
|
|
2367
|
-
};
|
|
2368
|
-
};
|
|
2369
|
-
const de_VpcEndpointDetails = (output, context) => {
|
|
2370
|
-
const retVal = (output || [])
|
|
2371
|
-
.filter((e) => e != null)
|
|
2372
|
-
.map((entry) => {
|
|
2373
|
-
if (entry === null) {
|
|
2374
|
-
return null;
|
|
2375
|
-
}
|
|
2376
|
-
return de_VpcEndpointDetail(entry, context);
|
|
1677
|
+
return (0, smithy_client_1.take)(output, {
|
|
1678
|
+
accessPolicyDetail: (_) => de_AccessPolicyDetail(_, context),
|
|
2377
1679
|
});
|
|
2378
|
-
return retVal;
|
|
2379
1680
|
};
|
|
2380
|
-
const
|
|
2381
|
-
return {
|
|
2382
|
-
|
|
2383
|
-
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
2384
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
2385
|
-
};
|
|
2386
|
-
};
|
|
2387
|
-
const de_VpcEndpointErrorDetails = (output, context) => {
|
|
2388
|
-
const retVal = (output || [])
|
|
2389
|
-
.filter((e) => e != null)
|
|
2390
|
-
.map((entry) => {
|
|
2391
|
-
if (entry === null) {
|
|
2392
|
-
return null;
|
|
2393
|
-
}
|
|
2394
|
-
return de_VpcEndpointErrorDetail(entry, context);
|
|
2395
|
-
});
|
|
2396
|
-
return retVal;
|
|
2397
|
-
};
|
|
2398
|
-
const de_VpcEndpointSummaries = (output, context) => {
|
|
2399
|
-
const retVal = (output || [])
|
|
2400
|
-
.filter((e) => e != null)
|
|
2401
|
-
.map((entry) => {
|
|
2402
|
-
if (entry === null) {
|
|
2403
|
-
return null;
|
|
2404
|
-
}
|
|
2405
|
-
return de_VpcEndpointSummary(entry, context);
|
|
1681
|
+
const de_UpdateSecurityPolicyResponse = (output, context) => {
|
|
1682
|
+
return (0, smithy_client_1.take)(output, {
|
|
1683
|
+
securityPolicyDetail: (_) => de_SecurityPolicyDetail(_, context),
|
|
2406
1684
|
});
|
|
2407
|
-
return retVal;
|
|
2408
|
-
};
|
|
2409
|
-
const de_VpcEndpointSummary = (output, context) => {
|
|
2410
|
-
return {
|
|
2411
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
2412
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2413
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2414
|
-
};
|
|
2415
1685
|
};
|
|
2416
1686
|
const de_Document = (output, context) => {
|
|
2417
1687
|
return output;
|
|
@@ -2429,6 +1699,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
2429
1699
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2430
1700
|
};
|
|
2431
1701
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1702
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException);
|
|
2432
1703
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2433
1704
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2434
1705
|
const contents = {
|