@aws-sdk/client-opensearchserverless 3.220.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/LICENSE +201 -0
- package/README.md +214 -0
- package/dist-cjs/OpenSearchServerless.js +472 -0
- package/dist-cjs/OpenSearchServerlessClient.js +40 -0
- package/dist-cjs/commands/BatchGetCollectionCommand.js +46 -0
- package/dist-cjs/commands/BatchGetVpcEndpointCommand.js +46 -0
- package/dist-cjs/commands/CreateAccessPolicyCommand.js +46 -0
- package/dist-cjs/commands/CreateCollectionCommand.js +46 -0
- package/dist-cjs/commands/CreateSecurityConfigCommand.js +46 -0
- package/dist-cjs/commands/CreateSecurityPolicyCommand.js +46 -0
- package/dist-cjs/commands/CreateVpcEndpointCommand.js +46 -0
- package/dist-cjs/commands/DeleteAccessPolicyCommand.js +46 -0
- package/dist-cjs/commands/DeleteCollectionCommand.js +46 -0
- package/dist-cjs/commands/DeleteSecurityConfigCommand.js +46 -0
- package/dist-cjs/commands/DeleteSecurityPolicyCommand.js +46 -0
- package/dist-cjs/commands/DeleteVpcEndpointCommand.js +46 -0
- package/dist-cjs/commands/GetAccessPolicyCommand.js +46 -0
- package/dist-cjs/commands/GetAccountSettingsCommand.js +46 -0
- package/dist-cjs/commands/GetPoliciesStatsCommand.js +46 -0
- package/dist-cjs/commands/GetSecurityConfigCommand.js +46 -0
- package/dist-cjs/commands/GetSecurityPolicyCommand.js +46 -0
- package/dist-cjs/commands/ListAccessPoliciesCommand.js +46 -0
- package/dist-cjs/commands/ListCollectionsCommand.js +46 -0
- package/dist-cjs/commands/ListSecurityConfigsCommand.js +46 -0
- package/dist-cjs/commands/ListSecurityPoliciesCommand.js +46 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
- package/dist-cjs/commands/ListVpcEndpointsCommand.js +46 -0
- package/dist-cjs/commands/TagResourceCommand.js +46 -0
- package/dist-cjs/commands/UntagResourceCommand.js +46 -0
- package/dist-cjs/commands/UpdateAccessPolicyCommand.js +46 -0
- package/dist-cjs/commands/UpdateAccountSettingsCommand.js +46 -0
- package/dist-cjs/commands/UpdateCollectionCommand.js +46 -0
- package/dist-cjs/commands/UpdateSecurityConfigCommand.js +46 -0
- package/dist-cjs/commands/UpdateSecurityPolicyCommand.js +46 -0
- package/dist-cjs/commands/UpdateVpcEndpointCommand.js +46 -0
- package/dist-cjs/commands/index.js +34 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +312 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/OpenSearchServerlessServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +445 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListAccessPoliciesPaginator.js +35 -0
- package/dist-cjs/pagination/ListCollectionsPaginator.js +35 -0
- package/dist-cjs/pagination/ListSecurityConfigsPaginator.js +35 -0
- package/dist-cjs/pagination/ListSecurityPoliciesPaginator.js +35 -0
- package/dist-cjs/pagination/ListVpcEndpointsPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +9 -0
- package/dist-cjs/protocols/Aws_json1_0.js +2572 -0
- package/dist-cjs/runtimeConfig.browser.js +42 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +18 -0
- package/dist-es/OpenSearchServerless.js +468 -0
- package/dist-es/OpenSearchServerlessClient.js +36 -0
- package/dist-es/commands/BatchGetCollectionCommand.js +42 -0
- package/dist-es/commands/BatchGetVpcEndpointCommand.js +42 -0
- package/dist-es/commands/CreateAccessPolicyCommand.js +42 -0
- package/dist-es/commands/CreateCollectionCommand.js +42 -0
- package/dist-es/commands/CreateSecurityConfigCommand.js +42 -0
- package/dist-es/commands/CreateSecurityPolicyCommand.js +42 -0
- package/dist-es/commands/CreateVpcEndpointCommand.js +42 -0
- package/dist-es/commands/DeleteAccessPolicyCommand.js +42 -0
- package/dist-es/commands/DeleteCollectionCommand.js +42 -0
- package/dist-es/commands/DeleteSecurityConfigCommand.js +42 -0
- package/dist-es/commands/DeleteSecurityPolicyCommand.js +42 -0
- package/dist-es/commands/DeleteVpcEndpointCommand.js +42 -0
- package/dist-es/commands/GetAccessPolicyCommand.js +42 -0
- package/dist-es/commands/GetAccountSettingsCommand.js +42 -0
- package/dist-es/commands/GetPoliciesStatsCommand.js +42 -0
- package/dist-es/commands/GetSecurityConfigCommand.js +42 -0
- package/dist-es/commands/GetSecurityPolicyCommand.js +42 -0
- package/dist-es/commands/ListAccessPoliciesCommand.js +42 -0
- package/dist-es/commands/ListCollectionsCommand.js +42 -0
- package/dist-es/commands/ListSecurityConfigsCommand.js +42 -0
- package/dist-es/commands/ListSecurityPoliciesCommand.js +42 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
- package/dist-es/commands/ListVpcEndpointsCommand.js +42 -0
- package/dist-es/commands/TagResourceCommand.js +42 -0
- package/dist-es/commands/UntagResourceCommand.js +42 -0
- package/dist-es/commands/UpdateAccessPolicyCommand.js +42 -0
- package/dist-es/commands/UpdateAccountSettingsCommand.js +42 -0
- package/dist-es/commands/UpdateCollectionCommand.js +42 -0
- package/dist-es/commands/UpdateSecurityConfigCommand.js +42 -0
- package/dist-es/commands/UpdateSecurityPolicyCommand.js +42 -0
- package/dist-es/commands/UpdateVpcEndpointCommand.js +42 -0
- package/dist-es/commands/index.js +31 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +309 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/OpenSearchServerlessServiceException.js +7 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +348 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListAccessPoliciesPaginator.js +31 -0
- package/dist-es/pagination/ListCollectionsPaginator.js +31 -0
- package/dist-es/pagination/ListSecurityConfigsPaginator.js +31 -0
- package/dist-es/pagination/ListSecurityPoliciesPaginator.js +31 -0
- package/dist-es/pagination/ListVpcEndpointsPaginator.js +31 -0
- package/dist-es/pagination/index.js +6 -0
- package/dist-es/protocols/Aws_json1_0.js +2506 -0
- package/dist-es/runtimeConfig.browser.js +37 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +14 -0
- package/dist-types/OpenSearchServerless.d.ts +276 -0
- package/dist-types/OpenSearchServerlessClient.d.ts +181 -0
- package/dist-types/commands/BatchGetCollectionCommand.d.ts +39 -0
- package/dist-types/commands/BatchGetVpcEndpointCommand.d.ts +39 -0
- package/dist-types/commands/CreateAccessPolicyCommand.d.ts +40 -0
- package/dist-types/commands/CreateCollectionCommand.d.ts +38 -0
- package/dist-types/commands/CreateSecurityConfigCommand.d.ts +39 -0
- package/dist-types/commands/CreateSecurityPolicyCommand.d.ts +42 -0
- package/dist-types/commands/CreateVpcEndpointCommand.d.ts +38 -0
- package/dist-types/commands/DeleteAccessPolicyCommand.d.ts +38 -0
- package/dist-types/commands/DeleteCollectionCommand.d.ts +38 -0
- package/dist-types/commands/DeleteSecurityConfigCommand.d.ts +39 -0
- package/dist-types/commands/DeleteSecurityPolicyCommand.d.ts +37 -0
- package/dist-types/commands/DeleteVpcEndpointCommand.d.ts +38 -0
- package/dist-types/commands/GetAccessPolicyCommand.d.ts +38 -0
- package/dist-types/commands/GetAccountSettingsCommand.d.ts +37 -0
- package/dist-types/commands/GetPoliciesStatsCommand.d.ts +38 -0
- package/dist-types/commands/GetSecurityConfigCommand.d.ts +39 -0
- package/dist-types/commands/GetSecurityPolicyCommand.d.ts +39 -0
- package/dist-types/commands/ListAccessPoliciesCommand.d.ts +37 -0
- package/dist-types/commands/ListCollectionsCommand.d.ts +42 -0
- package/dist-types/commands/ListSecurityConfigsCommand.d.ts +39 -0
- package/dist-types/commands/ListSecurityPoliciesCommand.d.ts +37 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +37 -0
- package/dist-types/commands/ListVpcEndpointsCommand.d.ts +39 -0
- package/dist-types/commands/TagResourceCommand.d.ts +37 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +37 -0
- package/dist-types/commands/UpdateAccessPolicyCommand.d.ts +38 -0
- package/dist-types/commands/UpdateAccountSettingsCommand.d.ts +38 -0
- package/dist-types/commands/UpdateCollectionCommand.d.ts +37 -0
- package/dist-types/commands/UpdateSecurityConfigCommand.d.ts +39 -0
- package/dist-types/commands/UpdateSecurityPolicyCommand.d.ts +39 -0
- package/dist-types/commands/UpdateVpcEndpointCommand.d.ts +38 -0
- package/dist-types/commands/index.d.ts +31 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/OpenSearchServerlessServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1802 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListAccessPoliciesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListCollectionsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListSecurityConfigsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListSecurityPoliciesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListVpcEndpointsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +6 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +95 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +16 -0
- package/dist-types/ts3.4/OpenSearchServerless.d.ts +531 -0
- package/dist-types/ts3.4/OpenSearchServerlessClient.d.ts +298 -0
- package/dist-types/ts3.4/commands/BatchGetCollectionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/BatchGetVpcEndpointCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateAccessPolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateCollectionCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/CreateSecurityConfigCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateSecurityPolicyCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateVpcEndpointCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteAccessPolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteCollectionCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeleteSecurityConfigCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteSecurityPolicyCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteVpcEndpointCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetAccessPolicyCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetAccountSettingsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetPoliciesStatsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetSecurityConfigCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetSecurityPolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListAccessPoliciesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListCollectionsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/ListSecurityConfigsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListSecurityPoliciesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListVpcEndpointsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateAccessPolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateAccountSettingsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateCollectionCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateSecurityConfigCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateSecurityPolicyCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateVpcEndpointCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +31 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/OpenSearchServerlessServiceException.d.ts +7 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +740 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -0
- package/dist-types/ts3.4/pagination/ListAccessPoliciesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListCollectionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSecurityConfigsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSecurityPoliciesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListVpcEndpointsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +6 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +377 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +90 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +90 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +79 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +18 -0
- package/package.json +103 -0
|
@@ -0,0 +1,472 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OpenSearchServerless = void 0;
|
|
4
|
+
const BatchGetCollectionCommand_1 = require("./commands/BatchGetCollectionCommand");
|
|
5
|
+
const BatchGetVpcEndpointCommand_1 = require("./commands/BatchGetVpcEndpointCommand");
|
|
6
|
+
const CreateAccessPolicyCommand_1 = require("./commands/CreateAccessPolicyCommand");
|
|
7
|
+
const CreateCollectionCommand_1 = require("./commands/CreateCollectionCommand");
|
|
8
|
+
const CreateSecurityConfigCommand_1 = require("./commands/CreateSecurityConfigCommand");
|
|
9
|
+
const CreateSecurityPolicyCommand_1 = require("./commands/CreateSecurityPolicyCommand");
|
|
10
|
+
const CreateVpcEndpointCommand_1 = require("./commands/CreateVpcEndpointCommand");
|
|
11
|
+
const DeleteAccessPolicyCommand_1 = require("./commands/DeleteAccessPolicyCommand");
|
|
12
|
+
const DeleteCollectionCommand_1 = require("./commands/DeleteCollectionCommand");
|
|
13
|
+
const DeleteSecurityConfigCommand_1 = require("./commands/DeleteSecurityConfigCommand");
|
|
14
|
+
const DeleteSecurityPolicyCommand_1 = require("./commands/DeleteSecurityPolicyCommand");
|
|
15
|
+
const DeleteVpcEndpointCommand_1 = require("./commands/DeleteVpcEndpointCommand");
|
|
16
|
+
const GetAccessPolicyCommand_1 = require("./commands/GetAccessPolicyCommand");
|
|
17
|
+
const GetAccountSettingsCommand_1 = require("./commands/GetAccountSettingsCommand");
|
|
18
|
+
const GetPoliciesStatsCommand_1 = require("./commands/GetPoliciesStatsCommand");
|
|
19
|
+
const GetSecurityConfigCommand_1 = require("./commands/GetSecurityConfigCommand");
|
|
20
|
+
const GetSecurityPolicyCommand_1 = require("./commands/GetSecurityPolicyCommand");
|
|
21
|
+
const ListAccessPoliciesCommand_1 = require("./commands/ListAccessPoliciesCommand");
|
|
22
|
+
const ListCollectionsCommand_1 = require("./commands/ListCollectionsCommand");
|
|
23
|
+
const ListSecurityConfigsCommand_1 = require("./commands/ListSecurityConfigsCommand");
|
|
24
|
+
const ListSecurityPoliciesCommand_1 = require("./commands/ListSecurityPoliciesCommand");
|
|
25
|
+
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
26
|
+
const ListVpcEndpointsCommand_1 = require("./commands/ListVpcEndpointsCommand");
|
|
27
|
+
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
28
|
+
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
29
|
+
const UpdateAccessPolicyCommand_1 = require("./commands/UpdateAccessPolicyCommand");
|
|
30
|
+
const UpdateAccountSettingsCommand_1 = require("./commands/UpdateAccountSettingsCommand");
|
|
31
|
+
const UpdateCollectionCommand_1 = require("./commands/UpdateCollectionCommand");
|
|
32
|
+
const UpdateSecurityConfigCommand_1 = require("./commands/UpdateSecurityConfigCommand");
|
|
33
|
+
const UpdateSecurityPolicyCommand_1 = require("./commands/UpdateSecurityPolicyCommand");
|
|
34
|
+
const UpdateVpcEndpointCommand_1 = require("./commands/UpdateVpcEndpointCommand");
|
|
35
|
+
const OpenSearchServerlessClient_1 = require("./OpenSearchServerlessClient");
|
|
36
|
+
class OpenSearchServerless extends OpenSearchServerlessClient_1.OpenSearchServerlessClient {
|
|
37
|
+
batchGetCollection(args, optionsOrCb, cb) {
|
|
38
|
+
const command = new BatchGetCollectionCommand_1.BatchGetCollectionCommand(args);
|
|
39
|
+
if (typeof optionsOrCb === "function") {
|
|
40
|
+
this.send(command, optionsOrCb);
|
|
41
|
+
}
|
|
42
|
+
else if (typeof cb === "function") {
|
|
43
|
+
if (typeof optionsOrCb !== "object")
|
|
44
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
45
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
return this.send(command, optionsOrCb);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
batchGetVpcEndpoint(args, optionsOrCb, cb) {
|
|
52
|
+
const command = new BatchGetVpcEndpointCommand_1.BatchGetVpcEndpointCommand(args);
|
|
53
|
+
if (typeof optionsOrCb === "function") {
|
|
54
|
+
this.send(command, optionsOrCb);
|
|
55
|
+
}
|
|
56
|
+
else if (typeof cb === "function") {
|
|
57
|
+
if (typeof optionsOrCb !== "object")
|
|
58
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
59
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
return this.send(command, optionsOrCb);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
createAccessPolicy(args, optionsOrCb, cb) {
|
|
66
|
+
const command = new CreateAccessPolicyCommand_1.CreateAccessPolicyCommand(args);
|
|
67
|
+
if (typeof optionsOrCb === "function") {
|
|
68
|
+
this.send(command, optionsOrCb);
|
|
69
|
+
}
|
|
70
|
+
else if (typeof cb === "function") {
|
|
71
|
+
if (typeof optionsOrCb !== "object")
|
|
72
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
73
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
return this.send(command, optionsOrCb);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
createCollection(args, optionsOrCb, cb) {
|
|
80
|
+
const command = new CreateCollectionCommand_1.CreateCollectionCommand(args);
|
|
81
|
+
if (typeof optionsOrCb === "function") {
|
|
82
|
+
this.send(command, optionsOrCb);
|
|
83
|
+
}
|
|
84
|
+
else if (typeof cb === "function") {
|
|
85
|
+
if (typeof optionsOrCb !== "object")
|
|
86
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
87
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
return this.send(command, optionsOrCb);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
createSecurityConfig(args, optionsOrCb, cb) {
|
|
94
|
+
const command = new CreateSecurityConfigCommand_1.CreateSecurityConfigCommand(args);
|
|
95
|
+
if (typeof optionsOrCb === "function") {
|
|
96
|
+
this.send(command, optionsOrCb);
|
|
97
|
+
}
|
|
98
|
+
else if (typeof cb === "function") {
|
|
99
|
+
if (typeof optionsOrCb !== "object")
|
|
100
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
101
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
return this.send(command, optionsOrCb);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
createSecurityPolicy(args, optionsOrCb, cb) {
|
|
108
|
+
const command = new CreateSecurityPolicyCommand_1.CreateSecurityPolicyCommand(args);
|
|
109
|
+
if (typeof optionsOrCb === "function") {
|
|
110
|
+
this.send(command, optionsOrCb);
|
|
111
|
+
}
|
|
112
|
+
else if (typeof cb === "function") {
|
|
113
|
+
if (typeof optionsOrCb !== "object")
|
|
114
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
115
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
return this.send(command, optionsOrCb);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
createVpcEndpoint(args, optionsOrCb, cb) {
|
|
122
|
+
const command = new CreateVpcEndpointCommand_1.CreateVpcEndpointCommand(args);
|
|
123
|
+
if (typeof optionsOrCb === "function") {
|
|
124
|
+
this.send(command, optionsOrCb);
|
|
125
|
+
}
|
|
126
|
+
else if (typeof cb === "function") {
|
|
127
|
+
if (typeof optionsOrCb !== "object")
|
|
128
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
129
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
return this.send(command, optionsOrCb);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
deleteAccessPolicy(args, optionsOrCb, cb) {
|
|
136
|
+
const command = new DeleteAccessPolicyCommand_1.DeleteAccessPolicyCommand(args);
|
|
137
|
+
if (typeof optionsOrCb === "function") {
|
|
138
|
+
this.send(command, optionsOrCb);
|
|
139
|
+
}
|
|
140
|
+
else if (typeof cb === "function") {
|
|
141
|
+
if (typeof optionsOrCb !== "object")
|
|
142
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
143
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
return this.send(command, optionsOrCb);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
deleteCollection(args, optionsOrCb, cb) {
|
|
150
|
+
const command = new DeleteCollectionCommand_1.DeleteCollectionCommand(args);
|
|
151
|
+
if (typeof optionsOrCb === "function") {
|
|
152
|
+
this.send(command, optionsOrCb);
|
|
153
|
+
}
|
|
154
|
+
else if (typeof cb === "function") {
|
|
155
|
+
if (typeof optionsOrCb !== "object")
|
|
156
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
157
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
return this.send(command, optionsOrCb);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
deleteSecurityConfig(args, optionsOrCb, cb) {
|
|
164
|
+
const command = new DeleteSecurityConfigCommand_1.DeleteSecurityConfigCommand(args);
|
|
165
|
+
if (typeof optionsOrCb === "function") {
|
|
166
|
+
this.send(command, optionsOrCb);
|
|
167
|
+
}
|
|
168
|
+
else if (typeof cb === "function") {
|
|
169
|
+
if (typeof optionsOrCb !== "object")
|
|
170
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
171
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
172
|
+
}
|
|
173
|
+
else {
|
|
174
|
+
return this.send(command, optionsOrCb);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
deleteSecurityPolicy(args, optionsOrCb, cb) {
|
|
178
|
+
const command = new DeleteSecurityPolicyCommand_1.DeleteSecurityPolicyCommand(args);
|
|
179
|
+
if (typeof optionsOrCb === "function") {
|
|
180
|
+
this.send(command, optionsOrCb);
|
|
181
|
+
}
|
|
182
|
+
else if (typeof cb === "function") {
|
|
183
|
+
if (typeof optionsOrCb !== "object")
|
|
184
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
185
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
return this.send(command, optionsOrCb);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
deleteVpcEndpoint(args, optionsOrCb, cb) {
|
|
192
|
+
const command = new DeleteVpcEndpointCommand_1.DeleteVpcEndpointCommand(args);
|
|
193
|
+
if (typeof optionsOrCb === "function") {
|
|
194
|
+
this.send(command, optionsOrCb);
|
|
195
|
+
}
|
|
196
|
+
else if (typeof cb === "function") {
|
|
197
|
+
if (typeof optionsOrCb !== "object")
|
|
198
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
199
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
200
|
+
}
|
|
201
|
+
else {
|
|
202
|
+
return this.send(command, optionsOrCb);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
getAccessPolicy(args, optionsOrCb, cb) {
|
|
206
|
+
const command = new GetAccessPolicyCommand_1.GetAccessPolicyCommand(args);
|
|
207
|
+
if (typeof optionsOrCb === "function") {
|
|
208
|
+
this.send(command, optionsOrCb);
|
|
209
|
+
}
|
|
210
|
+
else if (typeof cb === "function") {
|
|
211
|
+
if (typeof optionsOrCb !== "object")
|
|
212
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
213
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
return this.send(command, optionsOrCb);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
getAccountSettings(args, optionsOrCb, cb) {
|
|
220
|
+
const command = new GetAccountSettingsCommand_1.GetAccountSettingsCommand(args);
|
|
221
|
+
if (typeof optionsOrCb === "function") {
|
|
222
|
+
this.send(command, optionsOrCb);
|
|
223
|
+
}
|
|
224
|
+
else if (typeof cb === "function") {
|
|
225
|
+
if (typeof optionsOrCb !== "object")
|
|
226
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
227
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
228
|
+
}
|
|
229
|
+
else {
|
|
230
|
+
return this.send(command, optionsOrCb);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
getPoliciesStats(args, optionsOrCb, cb) {
|
|
234
|
+
const command = new GetPoliciesStatsCommand_1.GetPoliciesStatsCommand(args);
|
|
235
|
+
if (typeof optionsOrCb === "function") {
|
|
236
|
+
this.send(command, optionsOrCb);
|
|
237
|
+
}
|
|
238
|
+
else if (typeof cb === "function") {
|
|
239
|
+
if (typeof optionsOrCb !== "object")
|
|
240
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
241
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
242
|
+
}
|
|
243
|
+
else {
|
|
244
|
+
return this.send(command, optionsOrCb);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
getSecurityConfig(args, optionsOrCb, cb) {
|
|
248
|
+
const command = new GetSecurityConfigCommand_1.GetSecurityConfigCommand(args);
|
|
249
|
+
if (typeof optionsOrCb === "function") {
|
|
250
|
+
this.send(command, optionsOrCb);
|
|
251
|
+
}
|
|
252
|
+
else if (typeof cb === "function") {
|
|
253
|
+
if (typeof optionsOrCb !== "object")
|
|
254
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
255
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
256
|
+
}
|
|
257
|
+
else {
|
|
258
|
+
return this.send(command, optionsOrCb);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
getSecurityPolicy(args, optionsOrCb, cb) {
|
|
262
|
+
const command = new GetSecurityPolicyCommand_1.GetSecurityPolicyCommand(args);
|
|
263
|
+
if (typeof optionsOrCb === "function") {
|
|
264
|
+
this.send(command, optionsOrCb);
|
|
265
|
+
}
|
|
266
|
+
else if (typeof cb === "function") {
|
|
267
|
+
if (typeof optionsOrCb !== "object")
|
|
268
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
269
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
270
|
+
}
|
|
271
|
+
else {
|
|
272
|
+
return this.send(command, optionsOrCb);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
listAccessPolicies(args, optionsOrCb, cb) {
|
|
276
|
+
const command = new ListAccessPoliciesCommand_1.ListAccessPoliciesCommand(args);
|
|
277
|
+
if (typeof optionsOrCb === "function") {
|
|
278
|
+
this.send(command, optionsOrCb);
|
|
279
|
+
}
|
|
280
|
+
else if (typeof cb === "function") {
|
|
281
|
+
if (typeof optionsOrCb !== "object")
|
|
282
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
283
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
284
|
+
}
|
|
285
|
+
else {
|
|
286
|
+
return this.send(command, optionsOrCb);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
listCollections(args, optionsOrCb, cb) {
|
|
290
|
+
const command = new ListCollectionsCommand_1.ListCollectionsCommand(args);
|
|
291
|
+
if (typeof optionsOrCb === "function") {
|
|
292
|
+
this.send(command, optionsOrCb);
|
|
293
|
+
}
|
|
294
|
+
else if (typeof cb === "function") {
|
|
295
|
+
if (typeof optionsOrCb !== "object")
|
|
296
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
297
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
298
|
+
}
|
|
299
|
+
else {
|
|
300
|
+
return this.send(command, optionsOrCb);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
listSecurityConfigs(args, optionsOrCb, cb) {
|
|
304
|
+
const command = new ListSecurityConfigsCommand_1.ListSecurityConfigsCommand(args);
|
|
305
|
+
if (typeof optionsOrCb === "function") {
|
|
306
|
+
this.send(command, optionsOrCb);
|
|
307
|
+
}
|
|
308
|
+
else if (typeof cb === "function") {
|
|
309
|
+
if (typeof optionsOrCb !== "object")
|
|
310
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
311
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
312
|
+
}
|
|
313
|
+
else {
|
|
314
|
+
return this.send(command, optionsOrCb);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
listSecurityPolicies(args, optionsOrCb, cb) {
|
|
318
|
+
const command = new ListSecurityPoliciesCommand_1.ListSecurityPoliciesCommand(args);
|
|
319
|
+
if (typeof optionsOrCb === "function") {
|
|
320
|
+
this.send(command, optionsOrCb);
|
|
321
|
+
}
|
|
322
|
+
else if (typeof cb === "function") {
|
|
323
|
+
if (typeof optionsOrCb !== "object")
|
|
324
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
325
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
326
|
+
}
|
|
327
|
+
else {
|
|
328
|
+
return this.send(command, optionsOrCb);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
listTagsForResource(args, optionsOrCb, cb) {
|
|
332
|
+
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
333
|
+
if (typeof optionsOrCb === "function") {
|
|
334
|
+
this.send(command, optionsOrCb);
|
|
335
|
+
}
|
|
336
|
+
else if (typeof cb === "function") {
|
|
337
|
+
if (typeof optionsOrCb !== "object")
|
|
338
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
339
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
340
|
+
}
|
|
341
|
+
else {
|
|
342
|
+
return this.send(command, optionsOrCb);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
listVpcEndpoints(args, optionsOrCb, cb) {
|
|
346
|
+
const command = new ListVpcEndpointsCommand_1.ListVpcEndpointsCommand(args);
|
|
347
|
+
if (typeof optionsOrCb === "function") {
|
|
348
|
+
this.send(command, optionsOrCb);
|
|
349
|
+
}
|
|
350
|
+
else if (typeof cb === "function") {
|
|
351
|
+
if (typeof optionsOrCb !== "object")
|
|
352
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
353
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
354
|
+
}
|
|
355
|
+
else {
|
|
356
|
+
return this.send(command, optionsOrCb);
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
tagResource(args, optionsOrCb, cb) {
|
|
360
|
+
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
361
|
+
if (typeof optionsOrCb === "function") {
|
|
362
|
+
this.send(command, optionsOrCb);
|
|
363
|
+
}
|
|
364
|
+
else if (typeof cb === "function") {
|
|
365
|
+
if (typeof optionsOrCb !== "object")
|
|
366
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
367
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
368
|
+
}
|
|
369
|
+
else {
|
|
370
|
+
return this.send(command, optionsOrCb);
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
untagResource(args, optionsOrCb, cb) {
|
|
374
|
+
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
375
|
+
if (typeof optionsOrCb === "function") {
|
|
376
|
+
this.send(command, optionsOrCb);
|
|
377
|
+
}
|
|
378
|
+
else if (typeof cb === "function") {
|
|
379
|
+
if (typeof optionsOrCb !== "object")
|
|
380
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
381
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
382
|
+
}
|
|
383
|
+
else {
|
|
384
|
+
return this.send(command, optionsOrCb);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
updateAccessPolicy(args, optionsOrCb, cb) {
|
|
388
|
+
const command = new UpdateAccessPolicyCommand_1.UpdateAccessPolicyCommand(args);
|
|
389
|
+
if (typeof optionsOrCb === "function") {
|
|
390
|
+
this.send(command, optionsOrCb);
|
|
391
|
+
}
|
|
392
|
+
else if (typeof cb === "function") {
|
|
393
|
+
if (typeof optionsOrCb !== "object")
|
|
394
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
395
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
396
|
+
}
|
|
397
|
+
else {
|
|
398
|
+
return this.send(command, optionsOrCb);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
updateAccountSettings(args, optionsOrCb, cb) {
|
|
402
|
+
const command = new UpdateAccountSettingsCommand_1.UpdateAccountSettingsCommand(args);
|
|
403
|
+
if (typeof optionsOrCb === "function") {
|
|
404
|
+
this.send(command, optionsOrCb);
|
|
405
|
+
}
|
|
406
|
+
else if (typeof cb === "function") {
|
|
407
|
+
if (typeof optionsOrCb !== "object")
|
|
408
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
409
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
410
|
+
}
|
|
411
|
+
else {
|
|
412
|
+
return this.send(command, optionsOrCb);
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
updateCollection(args, optionsOrCb, cb) {
|
|
416
|
+
const command = new UpdateCollectionCommand_1.UpdateCollectionCommand(args);
|
|
417
|
+
if (typeof optionsOrCb === "function") {
|
|
418
|
+
this.send(command, optionsOrCb);
|
|
419
|
+
}
|
|
420
|
+
else if (typeof cb === "function") {
|
|
421
|
+
if (typeof optionsOrCb !== "object")
|
|
422
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
423
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
424
|
+
}
|
|
425
|
+
else {
|
|
426
|
+
return this.send(command, optionsOrCb);
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
updateSecurityConfig(args, optionsOrCb, cb) {
|
|
430
|
+
const command = new UpdateSecurityConfigCommand_1.UpdateSecurityConfigCommand(args);
|
|
431
|
+
if (typeof optionsOrCb === "function") {
|
|
432
|
+
this.send(command, optionsOrCb);
|
|
433
|
+
}
|
|
434
|
+
else if (typeof cb === "function") {
|
|
435
|
+
if (typeof optionsOrCb !== "object")
|
|
436
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
437
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
438
|
+
}
|
|
439
|
+
else {
|
|
440
|
+
return this.send(command, optionsOrCb);
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
updateSecurityPolicy(args, optionsOrCb, cb) {
|
|
444
|
+
const command = new UpdateSecurityPolicyCommand_1.UpdateSecurityPolicyCommand(args);
|
|
445
|
+
if (typeof optionsOrCb === "function") {
|
|
446
|
+
this.send(command, optionsOrCb);
|
|
447
|
+
}
|
|
448
|
+
else if (typeof cb === "function") {
|
|
449
|
+
if (typeof optionsOrCb !== "object")
|
|
450
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
451
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
452
|
+
}
|
|
453
|
+
else {
|
|
454
|
+
return this.send(command, optionsOrCb);
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
updateVpcEndpoint(args, optionsOrCb, cb) {
|
|
458
|
+
const command = new UpdateVpcEndpointCommand_1.UpdateVpcEndpointCommand(args);
|
|
459
|
+
if (typeof optionsOrCb === "function") {
|
|
460
|
+
this.send(command, optionsOrCb);
|
|
461
|
+
}
|
|
462
|
+
else if (typeof cb === "function") {
|
|
463
|
+
if (typeof optionsOrCb !== "object")
|
|
464
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
465
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
466
|
+
}
|
|
467
|
+
else {
|
|
468
|
+
return this.send(command, optionsOrCb);
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
exports.OpenSearchServerless = OpenSearchServerless;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OpenSearchServerlessClient = void 0;
|
|
4
|
+
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
5
|
+
const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
|
|
6
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
7
|
+
const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
|
|
8
|
+
const middleware_logger_1 = require("@aws-sdk/middleware-logger");
|
|
9
|
+
const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
|
|
10
|
+
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
11
|
+
const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
12
|
+
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
13
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
14
|
+
const EndpointParameters_1 = require("./endpoint/EndpointParameters");
|
|
15
|
+
const runtimeConfig_1 = require("./runtimeConfig");
|
|
16
|
+
class OpenSearchServerlessClient extends smithy_client_1.Client {
|
|
17
|
+
constructor(configuration) {
|
|
18
|
+
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration);
|
|
19
|
+
const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
|
|
20
|
+
const _config_2 = (0, config_resolver_1.resolveRegionConfig)(_config_1);
|
|
21
|
+
const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2);
|
|
22
|
+
const _config_4 = (0, middleware_retry_1.resolveRetryConfig)(_config_3);
|
|
23
|
+
const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
|
|
24
|
+
const _config_6 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_5);
|
|
25
|
+
const _config_7 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_6);
|
|
26
|
+
super(_config_7);
|
|
27
|
+
this.config = _config_7;
|
|
28
|
+
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
|
|
29
|
+
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
|
|
30
|
+
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
|
31
|
+
this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
|
|
32
|
+
this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
|
|
33
|
+
this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
|
|
34
|
+
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
|
35
|
+
}
|
|
36
|
+
destroy() {
|
|
37
|
+
super.destroy();
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.OpenSearchServerlessClient = OpenSearchServerlessClient;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BatchGetCollectionCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
9
|
+
class BatchGetCollectionCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, BatchGetCollectionCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "OpenSearchServerlessClient";
|
|
28
|
+
const commandName = "BatchGetCollectionCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.BatchGetCollectionRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.BatchGetCollectionResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_0_1.serializeAws_json1_0BatchGetCollectionCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_0_1.deserializeAws_json1_0BatchGetCollectionCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.BatchGetCollectionCommand = BatchGetCollectionCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BatchGetVpcEndpointCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
9
|
+
class BatchGetVpcEndpointCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, BatchGetVpcEndpointCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "OpenSearchServerlessClient";
|
|
28
|
+
const commandName = "BatchGetVpcEndpointCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.BatchGetVpcEndpointRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.BatchGetVpcEndpointResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_0_1.serializeAws_json1_0BatchGetVpcEndpointCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_0_1.deserializeAws_json1_0BatchGetVpcEndpointCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.BatchGetVpcEndpointCommand = BatchGetVpcEndpointCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateAccessPolicyCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
9
|
+
class CreateAccessPolicyCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateAccessPolicyCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "OpenSearchServerlessClient";
|
|
28
|
+
const commandName = "CreateAccessPolicyCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.CreateAccessPolicyRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.CreateAccessPolicyResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_0_1.serializeAws_json1_0CreateAccessPolicyCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_0_1.deserializeAws_json1_0CreateAccessPolicyCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.CreateAccessPolicyCommand = CreateAccessPolicyCommand;
|