@aws-sdk/client-opensearchserverless 3.433.0 → 3.436.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/README.md +48 -0
- package/dist-cjs/OpenSearchServerless.js +12 -0
- package/dist-cjs/commands/BatchGetEffectiveLifecyclePolicyCommand.js +51 -0
- package/dist-cjs/commands/BatchGetLifecyclePolicyCommand.js +51 -0
- package/dist-cjs/commands/CreateLifecyclePolicyCommand.js +51 -0
- package/dist-cjs/commands/DeleteLifecyclePolicyCommand.js +51 -0
- package/dist-cjs/commands/ListLifecyclePoliciesCommand.js +51 -0
- package/dist-cjs/commands/UpdateLifecyclePolicyCommand.js +51 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +7 -1
- package/dist-cjs/pagination/ListLifecyclePoliciesPaginator.js +28 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_0.js +342 -2
- package/dist-cjs/runtimeConfig.js +2 -0
- package/dist-cjs/runtimeConfig.shared.js +15 -13
- package/dist-es/OpenSearchServerless.js +12 -0
- package/dist-es/commands/BatchGetEffectiveLifecyclePolicyCommand.js +47 -0
- package/dist-es/commands/BatchGetLifecyclePolicyCommand.js +47 -0
- package/dist-es/commands/CreateLifecyclePolicyCommand.js +47 -0
- package/dist-es/commands/DeleteLifecyclePolicyCommand.js +47 -0
- package/dist-es/commands/ListLifecyclePoliciesCommand.js +47 -0
- package/dist-es/commands/UpdateLifecyclePolicyCommand.js +47 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +6 -0
- package/dist-es/pagination/ListLifecyclePoliciesPaginator.js +24 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_0.js +328 -0
- package/dist-es/runtimeConfig.js +2 -0
- package/dist-es/runtimeConfig.shared.js +15 -13
- package/dist-types/OpenSearchServerless.d.ts +42 -0
- package/dist-types/OpenSearchServerlessClient.d.ts +8 -2
- package/dist-types/commands/BatchGetEffectiveLifecyclePolicyCommand.d.ts +102 -0
- package/dist-types/commands/BatchGetLifecyclePolicyCommand.d.ts +103 -0
- package/dist-types/commands/CreateLifecyclePolicyCommand.d.ts +101 -0
- package/dist-types/commands/DeleteLifecyclePolicyCommand.d.ts +88 -0
- package/dist-types/commands/GetPoliciesStatsCommand.d.ts +3 -0
- package/dist-types/commands/ListLifecyclePoliciesCommand.d.ts +95 -0
- package/dist-types/commands/UpdateLifecyclePolicyCommand.d.ts +104 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +446 -4
- package/dist-types/pagination/ListLifecyclePoliciesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +54 -0
- package/dist-types/ts3.4/OpenSearchServerless.d.ts +102 -0
- package/dist-types/ts3.4/OpenSearchServerlessClient.d.ts +36 -0
- package/dist-types/ts3.4/commands/BatchGetEffectiveLifecyclePolicyCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/BatchGetLifecyclePolicyCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateLifecyclePolicyCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteLifecyclePolicyCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListLifecyclePoliciesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateLifecyclePolicyCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +109 -0
- package/dist-types/ts3.4/pagination/ListLifecyclePoliciesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +72 -0
- package/package.json +4 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.de_UpdateVpcEndpointCommand = exports.de_UpdateSecurityPolicyCommand = exports.de_UpdateSecurityConfigCommand = exports.de_UpdateCollectionCommand = exports.de_UpdateAccountSettingsCommand = exports.de_UpdateAccessPolicyCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListVpcEndpointsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSecurityPoliciesCommand = exports.de_ListSecurityConfigsCommand = void 0;
|
|
3
|
+
exports.de_DeleteLifecyclePolicyCommand = exports.de_DeleteCollectionCommand = exports.de_DeleteAccessPolicyCommand = exports.de_CreateVpcEndpointCommand = exports.de_CreateSecurityPolicyCommand = exports.de_CreateSecurityConfigCommand = exports.de_CreateLifecyclePolicyCommand = exports.de_CreateCollectionCommand = exports.de_CreateAccessPolicyCommand = exports.de_BatchGetVpcEndpointCommand = exports.de_BatchGetLifecyclePolicyCommand = exports.de_BatchGetEffectiveLifecyclePolicyCommand = exports.de_BatchGetCollectionCommand = exports.se_UpdateVpcEndpointCommand = exports.se_UpdateSecurityPolicyCommand = exports.se_UpdateSecurityConfigCommand = exports.se_UpdateLifecyclePolicyCommand = exports.se_UpdateCollectionCommand = exports.se_UpdateAccountSettingsCommand = exports.se_UpdateAccessPolicyCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListVpcEndpointsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSecurityPoliciesCommand = exports.se_ListSecurityConfigsCommand = exports.se_ListLifecyclePoliciesCommand = exports.se_ListCollectionsCommand = exports.se_ListAccessPoliciesCommand = exports.se_GetSecurityPolicyCommand = exports.se_GetSecurityConfigCommand = exports.se_GetPoliciesStatsCommand = exports.se_GetAccountSettingsCommand = exports.se_GetAccessPolicyCommand = exports.se_DeleteVpcEndpointCommand = exports.se_DeleteSecurityPolicyCommand = exports.se_DeleteSecurityConfigCommand = exports.se_DeleteLifecyclePolicyCommand = exports.se_DeleteCollectionCommand = exports.se_DeleteAccessPolicyCommand = exports.se_CreateVpcEndpointCommand = exports.se_CreateSecurityPolicyCommand = exports.se_CreateSecurityConfigCommand = exports.se_CreateLifecyclePolicyCommand = exports.se_CreateCollectionCommand = exports.se_CreateAccessPolicyCommand = exports.se_BatchGetVpcEndpointCommand = exports.se_BatchGetLifecyclePolicyCommand = exports.se_BatchGetEffectiveLifecyclePolicyCommand = exports.se_BatchGetCollectionCommand = void 0;
|
|
4
|
+
exports.de_UpdateVpcEndpointCommand = exports.de_UpdateSecurityPolicyCommand = exports.de_UpdateSecurityConfigCommand = exports.de_UpdateLifecyclePolicyCommand = exports.de_UpdateCollectionCommand = exports.de_UpdateAccountSettingsCommand = exports.de_UpdateAccessPolicyCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListVpcEndpointsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSecurityPoliciesCommand = exports.de_ListSecurityConfigsCommand = exports.de_ListLifecyclePoliciesCommand = exports.de_ListCollectionsCommand = exports.de_ListAccessPoliciesCommand = exports.de_GetSecurityPolicyCommand = exports.de_GetSecurityConfigCommand = exports.de_GetPoliciesStatsCommand = exports.de_GetAccountSettingsCommand = exports.de_GetAccessPolicyCommand = exports.de_DeleteVpcEndpointCommand = exports.de_DeleteSecurityPolicyCommand = exports.de_DeleteSecurityConfigCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
@@ -14,6 +14,20 @@ const se_BatchGetCollectionCommand = async (input, context) => {
|
|
|
14
14
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
15
15
|
};
|
|
16
16
|
exports.se_BatchGetCollectionCommand = se_BatchGetCollectionCommand;
|
|
17
|
+
const se_BatchGetEffectiveLifecyclePolicyCommand = async (input, context) => {
|
|
18
|
+
const headers = sharedHeaders("BatchGetEffectiveLifecyclePolicy");
|
|
19
|
+
let body;
|
|
20
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
21
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
|
+
};
|
|
23
|
+
exports.se_BatchGetEffectiveLifecyclePolicyCommand = se_BatchGetEffectiveLifecyclePolicyCommand;
|
|
24
|
+
const se_BatchGetLifecyclePolicyCommand = async (input, context) => {
|
|
25
|
+
const headers = sharedHeaders("BatchGetLifecyclePolicy");
|
|
26
|
+
let body;
|
|
27
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
28
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
+
};
|
|
30
|
+
exports.se_BatchGetLifecyclePolicyCommand = se_BatchGetLifecyclePolicyCommand;
|
|
17
31
|
const se_BatchGetVpcEndpointCommand = async (input, context) => {
|
|
18
32
|
const headers = sharedHeaders("BatchGetVpcEndpoint");
|
|
19
33
|
let body;
|
|
@@ -35,6 +49,13 @@ const se_CreateCollectionCommand = async (input, context) => {
|
|
|
35
49
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
50
|
};
|
|
37
51
|
exports.se_CreateCollectionCommand = se_CreateCollectionCommand;
|
|
52
|
+
const se_CreateLifecyclePolicyCommand = async (input, context) => {
|
|
53
|
+
const headers = sharedHeaders("CreateLifecyclePolicy");
|
|
54
|
+
let body;
|
|
55
|
+
body = JSON.stringify(se_CreateLifecyclePolicyRequest(input, context));
|
|
56
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
|
+
};
|
|
58
|
+
exports.se_CreateLifecyclePolicyCommand = se_CreateLifecyclePolicyCommand;
|
|
38
59
|
const se_CreateSecurityConfigCommand = async (input, context) => {
|
|
39
60
|
const headers = sharedHeaders("CreateSecurityConfig");
|
|
40
61
|
let body;
|
|
@@ -70,6 +91,13 @@ const se_DeleteCollectionCommand = async (input, context) => {
|
|
|
70
91
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
92
|
};
|
|
72
93
|
exports.se_DeleteCollectionCommand = se_DeleteCollectionCommand;
|
|
94
|
+
const se_DeleteLifecyclePolicyCommand = async (input, context) => {
|
|
95
|
+
const headers = sharedHeaders("DeleteLifecyclePolicy");
|
|
96
|
+
let body;
|
|
97
|
+
body = JSON.stringify(se_DeleteLifecyclePolicyRequest(input, context));
|
|
98
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
99
|
+
};
|
|
100
|
+
exports.se_DeleteLifecyclePolicyCommand = se_DeleteLifecyclePolicyCommand;
|
|
73
101
|
const se_DeleteSecurityConfigCommand = async (input, context) => {
|
|
74
102
|
const headers = sharedHeaders("DeleteSecurityConfig");
|
|
75
103
|
let body;
|
|
@@ -140,6 +168,13 @@ const se_ListCollectionsCommand = async (input, context) => {
|
|
|
140
168
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
141
169
|
};
|
|
142
170
|
exports.se_ListCollectionsCommand = se_ListCollectionsCommand;
|
|
171
|
+
const se_ListLifecyclePoliciesCommand = async (input, context) => {
|
|
172
|
+
const headers = sharedHeaders("ListLifecyclePolicies");
|
|
173
|
+
let body;
|
|
174
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
175
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
|
+
};
|
|
177
|
+
exports.se_ListLifecyclePoliciesCommand = se_ListLifecyclePoliciesCommand;
|
|
143
178
|
const se_ListSecurityConfigsCommand = async (input, context) => {
|
|
144
179
|
const headers = sharedHeaders("ListSecurityConfigs");
|
|
145
180
|
let body;
|
|
@@ -203,6 +238,13 @@ const se_UpdateCollectionCommand = async (input, context) => {
|
|
|
203
238
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
204
239
|
};
|
|
205
240
|
exports.se_UpdateCollectionCommand = se_UpdateCollectionCommand;
|
|
241
|
+
const se_UpdateLifecyclePolicyCommand = async (input, context) => {
|
|
242
|
+
const headers = sharedHeaders("UpdateLifecyclePolicy");
|
|
243
|
+
let body;
|
|
244
|
+
body = JSON.stringify(se_UpdateLifecyclePolicyRequest(input, context));
|
|
245
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
246
|
+
};
|
|
247
|
+
exports.se_UpdateLifecyclePolicyCommand = se_UpdateLifecyclePolicyCommand;
|
|
206
248
|
const se_UpdateSecurityConfigCommand = async (input, context) => {
|
|
207
249
|
const headers = sharedHeaders("UpdateSecurityConfig");
|
|
208
250
|
let body;
|
|
@@ -260,6 +302,78 @@ const de_BatchGetCollectionCommandError = async (output, context) => {
|
|
|
260
302
|
});
|
|
261
303
|
}
|
|
262
304
|
};
|
|
305
|
+
const de_BatchGetEffectiveLifecyclePolicyCommand = async (output, context) => {
|
|
306
|
+
if (output.statusCode >= 300) {
|
|
307
|
+
return de_BatchGetEffectiveLifecyclePolicyCommandError(output, context);
|
|
308
|
+
}
|
|
309
|
+
const data = await parseBody(output.body, context);
|
|
310
|
+
let contents = {};
|
|
311
|
+
contents = (0, smithy_client_1._json)(data);
|
|
312
|
+
const response = {
|
|
313
|
+
$metadata: deserializeMetadata(output),
|
|
314
|
+
...contents,
|
|
315
|
+
};
|
|
316
|
+
return response;
|
|
317
|
+
};
|
|
318
|
+
exports.de_BatchGetEffectiveLifecyclePolicyCommand = de_BatchGetEffectiveLifecyclePolicyCommand;
|
|
319
|
+
const de_BatchGetEffectiveLifecyclePolicyCommandError = async (output, context) => {
|
|
320
|
+
const parsedOutput = {
|
|
321
|
+
...output,
|
|
322
|
+
body: await parseErrorBody(output.body, context),
|
|
323
|
+
};
|
|
324
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
325
|
+
switch (errorCode) {
|
|
326
|
+
case "InternalServerException":
|
|
327
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
328
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
329
|
+
case "ValidationException":
|
|
330
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
331
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
332
|
+
default:
|
|
333
|
+
const parsedBody = parsedOutput.body;
|
|
334
|
+
return throwDefaultError({
|
|
335
|
+
output,
|
|
336
|
+
parsedBody,
|
|
337
|
+
errorCode,
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
};
|
|
341
|
+
const de_BatchGetLifecyclePolicyCommand = async (output, context) => {
|
|
342
|
+
if (output.statusCode >= 300) {
|
|
343
|
+
return de_BatchGetLifecyclePolicyCommandError(output, context);
|
|
344
|
+
}
|
|
345
|
+
const data = await parseBody(output.body, context);
|
|
346
|
+
let contents = {};
|
|
347
|
+
contents = de_BatchGetLifecyclePolicyResponse(data, context);
|
|
348
|
+
const response = {
|
|
349
|
+
$metadata: deserializeMetadata(output),
|
|
350
|
+
...contents,
|
|
351
|
+
};
|
|
352
|
+
return response;
|
|
353
|
+
};
|
|
354
|
+
exports.de_BatchGetLifecyclePolicyCommand = de_BatchGetLifecyclePolicyCommand;
|
|
355
|
+
const de_BatchGetLifecyclePolicyCommandError = async (output, context) => {
|
|
356
|
+
const parsedOutput = {
|
|
357
|
+
...output,
|
|
358
|
+
body: await parseErrorBody(output.body, context),
|
|
359
|
+
};
|
|
360
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
361
|
+
switch (errorCode) {
|
|
362
|
+
case "InternalServerException":
|
|
363
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
364
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
365
|
+
case "ValidationException":
|
|
366
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
367
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
368
|
+
default:
|
|
369
|
+
const parsedBody = parsedOutput.body;
|
|
370
|
+
return throwDefaultError({
|
|
371
|
+
output,
|
|
372
|
+
parsedBody,
|
|
373
|
+
errorCode,
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
};
|
|
263
377
|
const de_BatchGetVpcEndpointCommand = async (output, context) => {
|
|
264
378
|
if (output.statusCode >= 300) {
|
|
265
379
|
return de_BatchGetVpcEndpointCommandError(output, context);
|
|
@@ -383,6 +497,48 @@ const de_CreateCollectionCommandError = async (output, context) => {
|
|
|
383
497
|
});
|
|
384
498
|
}
|
|
385
499
|
};
|
|
500
|
+
const de_CreateLifecyclePolicyCommand = async (output, context) => {
|
|
501
|
+
if (output.statusCode >= 300) {
|
|
502
|
+
return de_CreateLifecyclePolicyCommandError(output, context);
|
|
503
|
+
}
|
|
504
|
+
const data = await parseBody(output.body, context);
|
|
505
|
+
let contents = {};
|
|
506
|
+
contents = de_CreateLifecyclePolicyResponse(data, context);
|
|
507
|
+
const response = {
|
|
508
|
+
$metadata: deserializeMetadata(output),
|
|
509
|
+
...contents,
|
|
510
|
+
};
|
|
511
|
+
return response;
|
|
512
|
+
};
|
|
513
|
+
exports.de_CreateLifecyclePolicyCommand = de_CreateLifecyclePolicyCommand;
|
|
514
|
+
const de_CreateLifecyclePolicyCommandError = async (output, context) => {
|
|
515
|
+
const parsedOutput = {
|
|
516
|
+
...output,
|
|
517
|
+
body: await parseErrorBody(output.body, context),
|
|
518
|
+
};
|
|
519
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
520
|
+
switch (errorCode) {
|
|
521
|
+
case "ConflictException":
|
|
522
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
523
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
524
|
+
case "InternalServerException":
|
|
525
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
526
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
527
|
+
case "ServiceQuotaExceededException":
|
|
528
|
+
case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
|
|
529
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
530
|
+
case "ValidationException":
|
|
531
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
532
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
533
|
+
default:
|
|
534
|
+
const parsedBody = parsedOutput.body;
|
|
535
|
+
return throwDefaultError({
|
|
536
|
+
output,
|
|
537
|
+
parsedBody,
|
|
538
|
+
errorCode,
|
|
539
|
+
});
|
|
540
|
+
}
|
|
541
|
+
};
|
|
386
542
|
const de_CreateSecurityConfigCommand = async (output, context) => {
|
|
387
543
|
if (output.statusCode >= 300) {
|
|
388
544
|
return de_CreateSecurityConfigCommandError(output, context);
|
|
@@ -593,6 +749,48 @@ const de_DeleteCollectionCommandError = async (output, context) => {
|
|
|
593
749
|
});
|
|
594
750
|
}
|
|
595
751
|
};
|
|
752
|
+
const de_DeleteLifecyclePolicyCommand = async (output, context) => {
|
|
753
|
+
if (output.statusCode >= 300) {
|
|
754
|
+
return de_DeleteLifecyclePolicyCommandError(output, context);
|
|
755
|
+
}
|
|
756
|
+
const data = await parseBody(output.body, context);
|
|
757
|
+
let contents = {};
|
|
758
|
+
contents = (0, smithy_client_1._json)(data);
|
|
759
|
+
const response = {
|
|
760
|
+
$metadata: deserializeMetadata(output),
|
|
761
|
+
...contents,
|
|
762
|
+
};
|
|
763
|
+
return response;
|
|
764
|
+
};
|
|
765
|
+
exports.de_DeleteLifecyclePolicyCommand = de_DeleteLifecyclePolicyCommand;
|
|
766
|
+
const de_DeleteLifecyclePolicyCommandError = async (output, context) => {
|
|
767
|
+
const parsedOutput = {
|
|
768
|
+
...output,
|
|
769
|
+
body: await parseErrorBody(output.body, context),
|
|
770
|
+
};
|
|
771
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
772
|
+
switch (errorCode) {
|
|
773
|
+
case "ConflictException":
|
|
774
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
775
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
776
|
+
case "InternalServerException":
|
|
777
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
778
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
779
|
+
case "ResourceNotFoundException":
|
|
780
|
+
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
781
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
782
|
+
case "ValidationException":
|
|
783
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
784
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
785
|
+
default:
|
|
786
|
+
const parsedBody = parsedOutput.body;
|
|
787
|
+
return throwDefaultError({
|
|
788
|
+
output,
|
|
789
|
+
parsedBody,
|
|
790
|
+
errorCode,
|
|
791
|
+
});
|
|
792
|
+
}
|
|
793
|
+
};
|
|
596
794
|
const de_DeleteSecurityConfigCommand = async (output, context) => {
|
|
597
795
|
if (output.statusCode >= 300) {
|
|
598
796
|
return de_DeleteSecurityConfigCommandError(output, context);
|
|
@@ -977,6 +1175,42 @@ const de_ListCollectionsCommandError = async (output, context) => {
|
|
|
977
1175
|
});
|
|
978
1176
|
}
|
|
979
1177
|
};
|
|
1178
|
+
const de_ListLifecyclePoliciesCommand = async (output, context) => {
|
|
1179
|
+
if (output.statusCode >= 300) {
|
|
1180
|
+
return de_ListLifecyclePoliciesCommandError(output, context);
|
|
1181
|
+
}
|
|
1182
|
+
const data = await parseBody(output.body, context);
|
|
1183
|
+
let contents = {};
|
|
1184
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1185
|
+
const response = {
|
|
1186
|
+
$metadata: deserializeMetadata(output),
|
|
1187
|
+
...contents,
|
|
1188
|
+
};
|
|
1189
|
+
return response;
|
|
1190
|
+
};
|
|
1191
|
+
exports.de_ListLifecyclePoliciesCommand = de_ListLifecyclePoliciesCommand;
|
|
1192
|
+
const de_ListLifecyclePoliciesCommandError = async (output, context) => {
|
|
1193
|
+
const parsedOutput = {
|
|
1194
|
+
...output,
|
|
1195
|
+
body: await parseErrorBody(output.body, context),
|
|
1196
|
+
};
|
|
1197
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1198
|
+
switch (errorCode) {
|
|
1199
|
+
case "InternalServerException":
|
|
1200
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1201
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1202
|
+
case "ValidationException":
|
|
1203
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1204
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1205
|
+
default:
|
|
1206
|
+
const parsedBody = parsedOutput.body;
|
|
1207
|
+
return throwDefaultError({
|
|
1208
|
+
output,
|
|
1209
|
+
parsedBody,
|
|
1210
|
+
errorCode,
|
|
1211
|
+
});
|
|
1212
|
+
}
|
|
1213
|
+
};
|
|
980
1214
|
const de_ListSecurityConfigsCommand = async (output, context) => {
|
|
981
1215
|
if (output.statusCode >= 300) {
|
|
982
1216
|
return de_ListSecurityConfigsCommandError(output, context);
|
|
@@ -1328,6 +1562,51 @@ const de_UpdateCollectionCommandError = async (output, context) => {
|
|
|
1328
1562
|
});
|
|
1329
1563
|
}
|
|
1330
1564
|
};
|
|
1565
|
+
const de_UpdateLifecyclePolicyCommand = async (output, context) => {
|
|
1566
|
+
if (output.statusCode >= 300) {
|
|
1567
|
+
return de_UpdateLifecyclePolicyCommandError(output, context);
|
|
1568
|
+
}
|
|
1569
|
+
const data = await parseBody(output.body, context);
|
|
1570
|
+
let contents = {};
|
|
1571
|
+
contents = de_UpdateLifecyclePolicyResponse(data, context);
|
|
1572
|
+
const response = {
|
|
1573
|
+
$metadata: deserializeMetadata(output),
|
|
1574
|
+
...contents,
|
|
1575
|
+
};
|
|
1576
|
+
return response;
|
|
1577
|
+
};
|
|
1578
|
+
exports.de_UpdateLifecyclePolicyCommand = de_UpdateLifecyclePolicyCommand;
|
|
1579
|
+
const de_UpdateLifecyclePolicyCommandError = async (output, context) => {
|
|
1580
|
+
const parsedOutput = {
|
|
1581
|
+
...output,
|
|
1582
|
+
body: await parseErrorBody(output.body, context),
|
|
1583
|
+
};
|
|
1584
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1585
|
+
switch (errorCode) {
|
|
1586
|
+
case "ConflictException":
|
|
1587
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1588
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1589
|
+
case "InternalServerException":
|
|
1590
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1591
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1592
|
+
case "ResourceNotFoundException":
|
|
1593
|
+
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1594
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1595
|
+
case "ServiceQuotaExceededException":
|
|
1596
|
+
case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
|
|
1597
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1598
|
+
case "ValidationException":
|
|
1599
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1600
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1601
|
+
default:
|
|
1602
|
+
const parsedBody = parsedOutput.body;
|
|
1603
|
+
return throwDefaultError({
|
|
1604
|
+
output,
|
|
1605
|
+
parsedBody,
|
|
1606
|
+
errorCode,
|
|
1607
|
+
});
|
|
1608
|
+
}
|
|
1609
|
+
};
|
|
1331
1610
|
const de_UpdateSecurityConfigCommand = async (output, context) => {
|
|
1332
1611
|
if (output.statusCode >= 300) {
|
|
1333
1612
|
return de_UpdateSecurityConfigCommandError(output, context);
|
|
@@ -1526,6 +1805,15 @@ const se_CreateCollectionRequest = (input, context) => {
|
|
|
1526
1805
|
type: [],
|
|
1527
1806
|
});
|
|
1528
1807
|
};
|
|
1808
|
+
const se_CreateLifecyclePolicyRequest = (input, context) => {
|
|
1809
|
+
return (0, smithy_client_1.take)(input, {
|
|
1810
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1811
|
+
description: [],
|
|
1812
|
+
name: [],
|
|
1813
|
+
policy: [],
|
|
1814
|
+
type: [],
|
|
1815
|
+
});
|
|
1816
|
+
};
|
|
1529
1817
|
const se_CreateSecurityConfigRequest = (input, context) => {
|
|
1530
1818
|
return (0, smithy_client_1.take)(input, {
|
|
1531
1819
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -1566,6 +1854,13 @@ const se_DeleteCollectionRequest = (input, context) => {
|
|
|
1566
1854
|
id: [],
|
|
1567
1855
|
});
|
|
1568
1856
|
};
|
|
1857
|
+
const se_DeleteLifecyclePolicyRequest = (input, context) => {
|
|
1858
|
+
return (0, smithy_client_1.take)(input, {
|
|
1859
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1860
|
+
name: [],
|
|
1861
|
+
type: [],
|
|
1862
|
+
});
|
|
1863
|
+
};
|
|
1569
1864
|
const se_DeleteSecurityConfigRequest = (input, context) => {
|
|
1570
1865
|
return (0, smithy_client_1.take)(input, {
|
|
1571
1866
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -1602,6 +1897,16 @@ const se_UpdateCollectionRequest = (input, context) => {
|
|
|
1602
1897
|
id: [],
|
|
1603
1898
|
});
|
|
1604
1899
|
};
|
|
1900
|
+
const se_UpdateLifecyclePolicyRequest = (input, context) => {
|
|
1901
|
+
return (0, smithy_client_1.take)(input, {
|
|
1902
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1903
|
+
description: [],
|
|
1904
|
+
name: [],
|
|
1905
|
+
policy: [],
|
|
1906
|
+
policyVersion: [],
|
|
1907
|
+
type: [],
|
|
1908
|
+
});
|
|
1909
|
+
};
|
|
1605
1910
|
const se_UpdateSecurityConfigRequest = (input, context) => {
|
|
1606
1911
|
return (0, smithy_client_1.take)(input, {
|
|
1607
1912
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -1642,11 +1947,22 @@ const de_AccessPolicyDetail = (output, context) => {
|
|
|
1642
1947
|
type: smithy_client_1.expectString,
|
|
1643
1948
|
});
|
|
1644
1949
|
};
|
|
1950
|
+
const de_BatchGetLifecyclePolicyResponse = (output, context) => {
|
|
1951
|
+
return (0, smithy_client_1.take)(output, {
|
|
1952
|
+
lifecyclePolicyDetails: (_) => de_LifecyclePolicyDetails(_, context),
|
|
1953
|
+
lifecyclePolicyErrorDetails: smithy_client_1._json,
|
|
1954
|
+
});
|
|
1955
|
+
};
|
|
1645
1956
|
const de_CreateAccessPolicyResponse = (output, context) => {
|
|
1646
1957
|
return (0, smithy_client_1.take)(output, {
|
|
1647
1958
|
accessPolicyDetail: (_) => de_AccessPolicyDetail(_, context),
|
|
1648
1959
|
});
|
|
1649
1960
|
};
|
|
1961
|
+
const de_CreateLifecyclePolicyResponse = (output, context) => {
|
|
1962
|
+
return (0, smithy_client_1.take)(output, {
|
|
1963
|
+
lifecyclePolicyDetail: (_) => de_LifecyclePolicyDetail(_, context),
|
|
1964
|
+
});
|
|
1965
|
+
};
|
|
1650
1966
|
const de_CreateSecurityPolicyResponse = (output, context) => {
|
|
1651
1967
|
return (0, smithy_client_1.take)(output, {
|
|
1652
1968
|
securityPolicyDetail: (_) => de_SecurityPolicyDetail(_, context),
|
|
@@ -1662,6 +1978,25 @@ const de_GetSecurityPolicyResponse = (output, context) => {
|
|
|
1662
1978
|
securityPolicyDetail: (_) => de_SecurityPolicyDetail(_, context),
|
|
1663
1979
|
});
|
|
1664
1980
|
};
|
|
1981
|
+
const de_LifecyclePolicyDetail = (output, context) => {
|
|
1982
|
+
return (0, smithy_client_1.take)(output, {
|
|
1983
|
+
createdDate: smithy_client_1.expectLong,
|
|
1984
|
+
description: smithy_client_1.expectString,
|
|
1985
|
+
lastModifiedDate: smithy_client_1.expectLong,
|
|
1986
|
+
name: smithy_client_1.expectString,
|
|
1987
|
+
policy: (_) => de_Document(_, context),
|
|
1988
|
+
policyVersion: smithy_client_1.expectString,
|
|
1989
|
+
type: smithy_client_1.expectString,
|
|
1990
|
+
});
|
|
1991
|
+
};
|
|
1992
|
+
const de_LifecyclePolicyDetails = (output, context) => {
|
|
1993
|
+
const retVal = (output || [])
|
|
1994
|
+
.filter((e) => e != null)
|
|
1995
|
+
.map((entry) => {
|
|
1996
|
+
return de_LifecyclePolicyDetail(entry, context);
|
|
1997
|
+
});
|
|
1998
|
+
return retVal;
|
|
1999
|
+
};
|
|
1665
2000
|
const de_SecurityPolicyDetail = (output, context) => {
|
|
1666
2001
|
return (0, smithy_client_1.take)(output, {
|
|
1667
2002
|
createdDate: smithy_client_1.expectLong,
|
|
@@ -1678,6 +2013,11 @@ const de_UpdateAccessPolicyResponse = (output, context) => {
|
|
|
1678
2013
|
accessPolicyDetail: (_) => de_AccessPolicyDetail(_, context),
|
|
1679
2014
|
});
|
|
1680
2015
|
};
|
|
2016
|
+
const de_UpdateLifecyclePolicyResponse = (output, context) => {
|
|
2017
|
+
return (0, smithy_client_1.take)(output, {
|
|
2018
|
+
lifecyclePolicyDetail: (_) => de_LifecyclePolicyDetail(_, context),
|
|
2019
|
+
});
|
|
2020
|
+
};
|
|
1681
2021
|
const de_UpdateSecurityPolicyResponse = (output, context) => {
|
|
1682
2022
|
return (0, smithy_client_1.take)(output, {
|
|
1683
2023
|
securityPolicyDetail: (_) => de_SecurityPolicyDetail(_, context),
|
|
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
6
|
const client_sts_1 = require("@aws-sdk/client-sts");
|
|
7
|
+
const core_1 = require("@aws-sdk/core");
|
|
7
8
|
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
8
9
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
9
10
|
const config_resolver_1 = require("@smithy/config-resolver");
|
|
@@ -22,6 +23,7 @@ const getRuntimeConfig = (config) => {
|
|
|
22
23
|
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
23
24
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
25
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
26
|
+
(0, core_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
25
27
|
return {
|
|
26
28
|
...clientSharedValues,
|
|
27
29
|
...config,
|
|
@@ -6,17 +6,19 @@ const url_parser_1 = require("@smithy/url-parser");
|
|
|
6
6
|
const util_base64_1 = require("@smithy/util-base64");
|
|
7
7
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
8
8
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
9
|
-
const getRuntimeConfig = (config) =>
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
9
|
+
const getRuntimeConfig = (config) => {
|
|
10
|
+
return {
|
|
11
|
+
apiVersion: "2021-11-01",
|
|
12
|
+
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
13
|
+
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
14
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
15
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
16
|
+
extensions: config?.extensions ?? [],
|
|
17
|
+
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
18
|
+
serviceId: config?.serviceId ?? "OpenSearchServerless",
|
|
19
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
20
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
21
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
|
|
22
|
+
};
|
|
23
|
+
};
|
|
22
24
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
2
2
|
import { BatchGetCollectionCommand, } from "./commands/BatchGetCollectionCommand";
|
|
3
|
+
import { BatchGetEffectiveLifecyclePolicyCommand, } from "./commands/BatchGetEffectiveLifecyclePolicyCommand";
|
|
4
|
+
import { BatchGetLifecyclePolicyCommand, } from "./commands/BatchGetLifecyclePolicyCommand";
|
|
3
5
|
import { BatchGetVpcEndpointCommand, } from "./commands/BatchGetVpcEndpointCommand";
|
|
4
6
|
import { CreateAccessPolicyCommand, } from "./commands/CreateAccessPolicyCommand";
|
|
5
7
|
import { CreateCollectionCommand, } from "./commands/CreateCollectionCommand";
|
|
8
|
+
import { CreateLifecyclePolicyCommand, } from "./commands/CreateLifecyclePolicyCommand";
|
|
6
9
|
import { CreateSecurityConfigCommand, } from "./commands/CreateSecurityConfigCommand";
|
|
7
10
|
import { CreateSecurityPolicyCommand, } from "./commands/CreateSecurityPolicyCommand";
|
|
8
11
|
import { CreateVpcEndpointCommand, } from "./commands/CreateVpcEndpointCommand";
|
|
9
12
|
import { DeleteAccessPolicyCommand, } from "./commands/DeleteAccessPolicyCommand";
|
|
10
13
|
import { DeleteCollectionCommand, } from "./commands/DeleteCollectionCommand";
|
|
14
|
+
import { DeleteLifecyclePolicyCommand, } from "./commands/DeleteLifecyclePolicyCommand";
|
|
11
15
|
import { DeleteSecurityConfigCommand, } from "./commands/DeleteSecurityConfigCommand";
|
|
12
16
|
import { DeleteSecurityPolicyCommand, } from "./commands/DeleteSecurityPolicyCommand";
|
|
13
17
|
import { DeleteVpcEndpointCommand, } from "./commands/DeleteVpcEndpointCommand";
|
|
@@ -18,6 +22,7 @@ import { GetSecurityConfigCommand, } from "./commands/GetSecurityConfigCommand";
|
|
|
18
22
|
import { GetSecurityPolicyCommand, } from "./commands/GetSecurityPolicyCommand";
|
|
19
23
|
import { ListAccessPoliciesCommand, } from "./commands/ListAccessPoliciesCommand";
|
|
20
24
|
import { ListCollectionsCommand, } from "./commands/ListCollectionsCommand";
|
|
25
|
+
import { ListLifecyclePoliciesCommand, } from "./commands/ListLifecyclePoliciesCommand";
|
|
21
26
|
import { ListSecurityConfigsCommand, } from "./commands/ListSecurityConfigsCommand";
|
|
22
27
|
import { ListSecurityPoliciesCommand, } from "./commands/ListSecurityPoliciesCommand";
|
|
23
28
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
@@ -27,20 +32,25 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
|
27
32
|
import { UpdateAccessPolicyCommand, } from "./commands/UpdateAccessPolicyCommand";
|
|
28
33
|
import { UpdateAccountSettingsCommand, } from "./commands/UpdateAccountSettingsCommand";
|
|
29
34
|
import { UpdateCollectionCommand, } from "./commands/UpdateCollectionCommand";
|
|
35
|
+
import { UpdateLifecyclePolicyCommand, } from "./commands/UpdateLifecyclePolicyCommand";
|
|
30
36
|
import { UpdateSecurityConfigCommand, } from "./commands/UpdateSecurityConfigCommand";
|
|
31
37
|
import { UpdateSecurityPolicyCommand, } from "./commands/UpdateSecurityPolicyCommand";
|
|
32
38
|
import { UpdateVpcEndpointCommand, } from "./commands/UpdateVpcEndpointCommand";
|
|
33
39
|
import { OpenSearchServerlessClient } from "./OpenSearchServerlessClient";
|
|
34
40
|
const commands = {
|
|
35
41
|
BatchGetCollectionCommand,
|
|
42
|
+
BatchGetEffectiveLifecyclePolicyCommand,
|
|
43
|
+
BatchGetLifecyclePolicyCommand,
|
|
36
44
|
BatchGetVpcEndpointCommand,
|
|
37
45
|
CreateAccessPolicyCommand,
|
|
38
46
|
CreateCollectionCommand,
|
|
47
|
+
CreateLifecyclePolicyCommand,
|
|
39
48
|
CreateSecurityConfigCommand,
|
|
40
49
|
CreateSecurityPolicyCommand,
|
|
41
50
|
CreateVpcEndpointCommand,
|
|
42
51
|
DeleteAccessPolicyCommand,
|
|
43
52
|
DeleteCollectionCommand,
|
|
53
|
+
DeleteLifecyclePolicyCommand,
|
|
44
54
|
DeleteSecurityConfigCommand,
|
|
45
55
|
DeleteSecurityPolicyCommand,
|
|
46
56
|
DeleteVpcEndpointCommand,
|
|
@@ -51,6 +61,7 @@ const commands = {
|
|
|
51
61
|
GetSecurityPolicyCommand,
|
|
52
62
|
ListAccessPoliciesCommand,
|
|
53
63
|
ListCollectionsCommand,
|
|
64
|
+
ListLifecyclePoliciesCommand,
|
|
54
65
|
ListSecurityConfigsCommand,
|
|
55
66
|
ListSecurityPoliciesCommand,
|
|
56
67
|
ListTagsForResourceCommand,
|
|
@@ -60,6 +71,7 @@ const commands = {
|
|
|
60
71
|
UpdateAccessPolicyCommand,
|
|
61
72
|
UpdateAccountSettingsCommand,
|
|
62
73
|
UpdateCollectionCommand,
|
|
74
|
+
UpdateLifecyclePolicyCommand,
|
|
63
75
|
UpdateSecurityConfigCommand,
|
|
64
76
|
UpdateSecurityPolicyCommand,
|
|
65
77
|
UpdateVpcEndpointCommand,
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_BatchGetEffectiveLifecyclePolicyCommand, se_BatchGetEffectiveLifecyclePolicyCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class BatchGetEffectiveLifecyclePolicyCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, BatchGetEffectiveLifecyclePolicyCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "OpenSearchServerlessClient";
|
|
26
|
+
const commandName = "BatchGetEffectiveLifecyclePolicyCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "OpenSearchServerless",
|
|
35
|
+
operation: "BatchGetEffectiveLifecyclePolicy",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_BatchGetEffectiveLifecyclePolicyCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_BatchGetEffectiveLifecyclePolicyCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|