@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.
Files changed (215) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +214 -0
  3. package/dist-cjs/OpenSearchServerless.js +472 -0
  4. package/dist-cjs/OpenSearchServerlessClient.js +40 -0
  5. package/dist-cjs/commands/BatchGetCollectionCommand.js +46 -0
  6. package/dist-cjs/commands/BatchGetVpcEndpointCommand.js +46 -0
  7. package/dist-cjs/commands/CreateAccessPolicyCommand.js +46 -0
  8. package/dist-cjs/commands/CreateCollectionCommand.js +46 -0
  9. package/dist-cjs/commands/CreateSecurityConfigCommand.js +46 -0
  10. package/dist-cjs/commands/CreateSecurityPolicyCommand.js +46 -0
  11. package/dist-cjs/commands/CreateVpcEndpointCommand.js +46 -0
  12. package/dist-cjs/commands/DeleteAccessPolicyCommand.js +46 -0
  13. package/dist-cjs/commands/DeleteCollectionCommand.js +46 -0
  14. package/dist-cjs/commands/DeleteSecurityConfigCommand.js +46 -0
  15. package/dist-cjs/commands/DeleteSecurityPolicyCommand.js +46 -0
  16. package/dist-cjs/commands/DeleteVpcEndpointCommand.js +46 -0
  17. package/dist-cjs/commands/GetAccessPolicyCommand.js +46 -0
  18. package/dist-cjs/commands/GetAccountSettingsCommand.js +46 -0
  19. package/dist-cjs/commands/GetPoliciesStatsCommand.js +46 -0
  20. package/dist-cjs/commands/GetSecurityConfigCommand.js +46 -0
  21. package/dist-cjs/commands/GetSecurityPolicyCommand.js +46 -0
  22. package/dist-cjs/commands/ListAccessPoliciesCommand.js +46 -0
  23. package/dist-cjs/commands/ListCollectionsCommand.js +46 -0
  24. package/dist-cjs/commands/ListSecurityConfigsCommand.js +46 -0
  25. package/dist-cjs/commands/ListSecurityPoliciesCommand.js +46 -0
  26. package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
  27. package/dist-cjs/commands/ListVpcEndpointsCommand.js +46 -0
  28. package/dist-cjs/commands/TagResourceCommand.js +46 -0
  29. package/dist-cjs/commands/UntagResourceCommand.js +46 -0
  30. package/dist-cjs/commands/UpdateAccessPolicyCommand.js +46 -0
  31. package/dist-cjs/commands/UpdateAccountSettingsCommand.js +46 -0
  32. package/dist-cjs/commands/UpdateCollectionCommand.js +46 -0
  33. package/dist-cjs/commands/UpdateSecurityConfigCommand.js +46 -0
  34. package/dist-cjs/commands/UpdateSecurityPolicyCommand.js +46 -0
  35. package/dist-cjs/commands/UpdateVpcEndpointCommand.js +46 -0
  36. package/dist-cjs/commands/index.js +34 -0
  37. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  38. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  39. package/dist-cjs/endpoint/ruleset.js +312 -0
  40. package/dist-cjs/index.js +11 -0
  41. package/dist-cjs/models/OpenSearchServerlessServiceException.js +11 -0
  42. package/dist-cjs/models/index.js +4 -0
  43. package/dist-cjs/models/models_0.js +445 -0
  44. package/dist-cjs/pagination/Interfaces.js +2 -0
  45. package/dist-cjs/pagination/ListAccessPoliciesPaginator.js +35 -0
  46. package/dist-cjs/pagination/ListCollectionsPaginator.js +35 -0
  47. package/dist-cjs/pagination/ListSecurityConfigsPaginator.js +35 -0
  48. package/dist-cjs/pagination/ListSecurityPoliciesPaginator.js +35 -0
  49. package/dist-cjs/pagination/ListVpcEndpointsPaginator.js +35 -0
  50. package/dist-cjs/pagination/index.js +9 -0
  51. package/dist-cjs/protocols/Aws_json1_0.js +2572 -0
  52. package/dist-cjs/runtimeConfig.browser.js +42 -0
  53. package/dist-cjs/runtimeConfig.js +50 -0
  54. package/dist-cjs/runtimeConfig.native.js +15 -0
  55. package/dist-cjs/runtimeConfig.shared.js +18 -0
  56. package/dist-es/OpenSearchServerless.js +468 -0
  57. package/dist-es/OpenSearchServerlessClient.js +36 -0
  58. package/dist-es/commands/BatchGetCollectionCommand.js +42 -0
  59. package/dist-es/commands/BatchGetVpcEndpointCommand.js +42 -0
  60. package/dist-es/commands/CreateAccessPolicyCommand.js +42 -0
  61. package/dist-es/commands/CreateCollectionCommand.js +42 -0
  62. package/dist-es/commands/CreateSecurityConfigCommand.js +42 -0
  63. package/dist-es/commands/CreateSecurityPolicyCommand.js +42 -0
  64. package/dist-es/commands/CreateVpcEndpointCommand.js +42 -0
  65. package/dist-es/commands/DeleteAccessPolicyCommand.js +42 -0
  66. package/dist-es/commands/DeleteCollectionCommand.js +42 -0
  67. package/dist-es/commands/DeleteSecurityConfigCommand.js +42 -0
  68. package/dist-es/commands/DeleteSecurityPolicyCommand.js +42 -0
  69. package/dist-es/commands/DeleteVpcEndpointCommand.js +42 -0
  70. package/dist-es/commands/GetAccessPolicyCommand.js +42 -0
  71. package/dist-es/commands/GetAccountSettingsCommand.js +42 -0
  72. package/dist-es/commands/GetPoliciesStatsCommand.js +42 -0
  73. package/dist-es/commands/GetSecurityConfigCommand.js +42 -0
  74. package/dist-es/commands/GetSecurityPolicyCommand.js +42 -0
  75. package/dist-es/commands/ListAccessPoliciesCommand.js +42 -0
  76. package/dist-es/commands/ListCollectionsCommand.js +42 -0
  77. package/dist-es/commands/ListSecurityConfigsCommand.js +42 -0
  78. package/dist-es/commands/ListSecurityPoliciesCommand.js +42 -0
  79. package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
  80. package/dist-es/commands/ListVpcEndpointsCommand.js +42 -0
  81. package/dist-es/commands/TagResourceCommand.js +42 -0
  82. package/dist-es/commands/UntagResourceCommand.js +42 -0
  83. package/dist-es/commands/UpdateAccessPolicyCommand.js +42 -0
  84. package/dist-es/commands/UpdateAccountSettingsCommand.js +42 -0
  85. package/dist-es/commands/UpdateCollectionCommand.js +42 -0
  86. package/dist-es/commands/UpdateSecurityConfigCommand.js +42 -0
  87. package/dist-es/commands/UpdateSecurityPolicyCommand.js +42 -0
  88. package/dist-es/commands/UpdateVpcEndpointCommand.js +42 -0
  89. package/dist-es/commands/index.js +31 -0
  90. package/dist-es/endpoint/EndpointParameters.js +8 -0
  91. package/dist-es/endpoint/endpointResolver.js +8 -0
  92. package/dist-es/endpoint/ruleset.js +309 -0
  93. package/dist-es/index.js +6 -0
  94. package/dist-es/models/OpenSearchServerlessServiceException.js +7 -0
  95. package/dist-es/models/index.js +1 -0
  96. package/dist-es/models/models_0.js +348 -0
  97. package/dist-es/pagination/Interfaces.js +1 -0
  98. package/dist-es/pagination/ListAccessPoliciesPaginator.js +31 -0
  99. package/dist-es/pagination/ListCollectionsPaginator.js +31 -0
  100. package/dist-es/pagination/ListSecurityConfigsPaginator.js +31 -0
  101. package/dist-es/pagination/ListSecurityPoliciesPaginator.js +31 -0
  102. package/dist-es/pagination/ListVpcEndpointsPaginator.js +31 -0
  103. package/dist-es/pagination/index.js +6 -0
  104. package/dist-es/protocols/Aws_json1_0.js +2506 -0
  105. package/dist-es/runtimeConfig.browser.js +37 -0
  106. package/dist-es/runtimeConfig.js +45 -0
  107. package/dist-es/runtimeConfig.native.js +11 -0
  108. package/dist-es/runtimeConfig.shared.js +14 -0
  109. package/dist-types/OpenSearchServerless.d.ts +276 -0
  110. package/dist-types/OpenSearchServerlessClient.d.ts +181 -0
  111. package/dist-types/commands/BatchGetCollectionCommand.d.ts +39 -0
  112. package/dist-types/commands/BatchGetVpcEndpointCommand.d.ts +39 -0
  113. package/dist-types/commands/CreateAccessPolicyCommand.d.ts +40 -0
  114. package/dist-types/commands/CreateCollectionCommand.d.ts +38 -0
  115. package/dist-types/commands/CreateSecurityConfigCommand.d.ts +39 -0
  116. package/dist-types/commands/CreateSecurityPolicyCommand.d.ts +42 -0
  117. package/dist-types/commands/CreateVpcEndpointCommand.d.ts +38 -0
  118. package/dist-types/commands/DeleteAccessPolicyCommand.d.ts +38 -0
  119. package/dist-types/commands/DeleteCollectionCommand.d.ts +38 -0
  120. package/dist-types/commands/DeleteSecurityConfigCommand.d.ts +39 -0
  121. package/dist-types/commands/DeleteSecurityPolicyCommand.d.ts +37 -0
  122. package/dist-types/commands/DeleteVpcEndpointCommand.d.ts +38 -0
  123. package/dist-types/commands/GetAccessPolicyCommand.d.ts +38 -0
  124. package/dist-types/commands/GetAccountSettingsCommand.d.ts +37 -0
  125. package/dist-types/commands/GetPoliciesStatsCommand.d.ts +38 -0
  126. package/dist-types/commands/GetSecurityConfigCommand.d.ts +39 -0
  127. package/dist-types/commands/GetSecurityPolicyCommand.d.ts +39 -0
  128. package/dist-types/commands/ListAccessPoliciesCommand.d.ts +37 -0
  129. package/dist-types/commands/ListCollectionsCommand.d.ts +42 -0
  130. package/dist-types/commands/ListSecurityConfigsCommand.d.ts +39 -0
  131. package/dist-types/commands/ListSecurityPoliciesCommand.d.ts +37 -0
  132. package/dist-types/commands/ListTagsForResourceCommand.d.ts +37 -0
  133. package/dist-types/commands/ListVpcEndpointsCommand.d.ts +39 -0
  134. package/dist-types/commands/TagResourceCommand.d.ts +37 -0
  135. package/dist-types/commands/UntagResourceCommand.d.ts +37 -0
  136. package/dist-types/commands/UpdateAccessPolicyCommand.d.ts +38 -0
  137. package/dist-types/commands/UpdateAccountSettingsCommand.d.ts +38 -0
  138. package/dist-types/commands/UpdateCollectionCommand.d.ts +37 -0
  139. package/dist-types/commands/UpdateSecurityConfigCommand.d.ts +39 -0
  140. package/dist-types/commands/UpdateSecurityPolicyCommand.d.ts +39 -0
  141. package/dist-types/commands/UpdateVpcEndpointCommand.d.ts +38 -0
  142. package/dist-types/commands/index.d.ts +31 -0
  143. package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
  144. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  145. package/dist-types/endpoint/ruleset.d.ts +2 -0
  146. package/dist-types/index.d.ts +6 -0
  147. package/dist-types/models/OpenSearchServerlessServiceException.d.ts +10 -0
  148. package/dist-types/models/index.d.ts +1 -0
  149. package/dist-types/models/models_0.d.ts +1802 -0
  150. package/dist-types/pagination/Interfaces.d.ts +6 -0
  151. package/dist-types/pagination/ListAccessPoliciesPaginator.d.ts +4 -0
  152. package/dist-types/pagination/ListCollectionsPaginator.d.ts +4 -0
  153. package/dist-types/pagination/ListSecurityConfigsPaginator.d.ts +4 -0
  154. package/dist-types/pagination/ListSecurityPoliciesPaginator.d.ts +4 -0
  155. package/dist-types/pagination/ListVpcEndpointsPaginator.d.ts +4 -0
  156. package/dist-types/pagination/index.d.ts +6 -0
  157. package/dist-types/protocols/Aws_json1_0.d.ts +95 -0
  158. package/dist-types/runtimeConfig.browser.d.ts +42 -0
  159. package/dist-types/runtimeConfig.d.ts +42 -0
  160. package/dist-types/runtimeConfig.native.d.ts +41 -0
  161. package/dist-types/runtimeConfig.shared.d.ts +16 -0
  162. package/dist-types/ts3.4/OpenSearchServerless.d.ts +531 -0
  163. package/dist-types/ts3.4/OpenSearchServerlessClient.d.ts +298 -0
  164. package/dist-types/ts3.4/commands/BatchGetCollectionCommand.d.ts +38 -0
  165. package/dist-types/ts3.4/commands/BatchGetVpcEndpointCommand.d.ts +38 -0
  166. package/dist-types/ts3.4/commands/CreateAccessPolicyCommand.d.ts +38 -0
  167. package/dist-types/ts3.4/commands/CreateCollectionCommand.d.ts +37 -0
  168. package/dist-types/ts3.4/commands/CreateSecurityConfigCommand.d.ts +41 -0
  169. package/dist-types/ts3.4/commands/CreateSecurityPolicyCommand.d.ts +41 -0
  170. package/dist-types/ts3.4/commands/CreateVpcEndpointCommand.d.ts +38 -0
  171. package/dist-types/ts3.4/commands/DeleteAccessPolicyCommand.d.ts +38 -0
  172. package/dist-types/ts3.4/commands/DeleteCollectionCommand.d.ts +37 -0
  173. package/dist-types/ts3.4/commands/DeleteSecurityConfigCommand.d.ts +41 -0
  174. package/dist-types/ts3.4/commands/DeleteSecurityPolicyCommand.d.ts +41 -0
  175. package/dist-types/ts3.4/commands/DeleteVpcEndpointCommand.d.ts +38 -0
  176. package/dist-types/ts3.4/commands/GetAccessPolicyCommand.d.ts +37 -0
  177. package/dist-types/ts3.4/commands/GetAccountSettingsCommand.d.ts +38 -0
  178. package/dist-types/ts3.4/commands/GetPoliciesStatsCommand.d.ts +37 -0
  179. package/dist-types/ts3.4/commands/GetSecurityConfigCommand.d.ts +38 -0
  180. package/dist-types/ts3.4/commands/GetSecurityPolicyCommand.d.ts +38 -0
  181. package/dist-types/ts3.4/commands/ListAccessPoliciesCommand.d.ts +38 -0
  182. package/dist-types/ts3.4/commands/ListCollectionsCommand.d.ts +37 -0
  183. package/dist-types/ts3.4/commands/ListSecurityConfigsCommand.d.ts +38 -0
  184. package/dist-types/ts3.4/commands/ListSecurityPoliciesCommand.d.ts +41 -0
  185. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +38 -0
  186. package/dist-types/ts3.4/commands/ListVpcEndpointsCommand.d.ts +37 -0
  187. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +34 -0
  188. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +37 -0
  189. package/dist-types/ts3.4/commands/UpdateAccessPolicyCommand.d.ts +38 -0
  190. package/dist-types/ts3.4/commands/UpdateAccountSettingsCommand.d.ts +41 -0
  191. package/dist-types/ts3.4/commands/UpdateCollectionCommand.d.ts +37 -0
  192. package/dist-types/ts3.4/commands/UpdateSecurityConfigCommand.d.ts +41 -0
  193. package/dist-types/ts3.4/commands/UpdateSecurityPolicyCommand.d.ts +41 -0
  194. package/dist-types/ts3.4/commands/UpdateVpcEndpointCommand.d.ts +38 -0
  195. package/dist-types/ts3.4/commands/index.d.ts +31 -0
  196. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -0
  197. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  198. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  199. package/dist-types/ts3.4/index.d.ts +6 -0
  200. package/dist-types/ts3.4/models/OpenSearchServerlessServiceException.d.ts +7 -0
  201. package/dist-types/ts3.4/models/index.d.ts +1 -0
  202. package/dist-types/ts3.4/models/models_0.d.ts +740 -0
  203. package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -0
  204. package/dist-types/ts3.4/pagination/ListAccessPoliciesPaginator.d.ts +11 -0
  205. package/dist-types/ts3.4/pagination/ListCollectionsPaginator.d.ts +11 -0
  206. package/dist-types/ts3.4/pagination/ListSecurityConfigsPaginator.d.ts +11 -0
  207. package/dist-types/ts3.4/pagination/ListSecurityPoliciesPaginator.d.ts +11 -0
  208. package/dist-types/ts3.4/pagination/ListVpcEndpointsPaginator.d.ts +11 -0
  209. package/dist-types/ts3.4/pagination/index.d.ts +6 -0
  210. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +377 -0
  211. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +90 -0
  212. package/dist-types/ts3.4/runtimeConfig.d.ts +90 -0
  213. package/dist-types/ts3.4/runtimeConfig.native.d.ts +79 -0
  214. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +18 -0
  215. package/package.json +103 -0
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateCollectionCommand = 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 CreateCollectionCommand 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, CreateCollectionCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "OpenSearchServerlessClient";
28
+ const commandName = "CreateCollectionCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.CreateCollectionRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_0_1.CreateCollectionResponseFilterSensitiveLog,
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_0CreateCollectionCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_0_1.deserializeAws_json1_0CreateCollectionCommand)(output, context);
44
+ }
45
+ }
46
+ exports.CreateCollectionCommand = CreateCollectionCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateSecurityConfigCommand = 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 CreateSecurityConfigCommand 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, CreateSecurityConfigCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "OpenSearchServerlessClient";
28
+ const commandName = "CreateSecurityConfigCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.CreateSecurityConfigRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_0_1.CreateSecurityConfigResponseFilterSensitiveLog,
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_0CreateSecurityConfigCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_0_1.deserializeAws_json1_0CreateSecurityConfigCommand)(output, context);
44
+ }
45
+ }
46
+ exports.CreateSecurityConfigCommand = CreateSecurityConfigCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateSecurityPolicyCommand = 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 CreateSecurityPolicyCommand 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, CreateSecurityPolicyCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "OpenSearchServerlessClient";
28
+ const commandName = "CreateSecurityPolicyCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.CreateSecurityPolicyRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_0_1.CreateSecurityPolicyResponseFilterSensitiveLog,
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_0CreateSecurityPolicyCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_0_1.deserializeAws_json1_0CreateSecurityPolicyCommand)(output, context);
44
+ }
45
+ }
46
+ exports.CreateSecurityPolicyCommand = CreateSecurityPolicyCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateVpcEndpointCommand = 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 CreateVpcEndpointCommand 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, CreateVpcEndpointCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "OpenSearchServerlessClient";
28
+ const commandName = "CreateVpcEndpointCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.CreateVpcEndpointRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_0_1.CreateVpcEndpointResponseFilterSensitiveLog,
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_0CreateVpcEndpointCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_0_1.deserializeAws_json1_0CreateVpcEndpointCommand)(output, context);
44
+ }
45
+ }
46
+ exports.CreateVpcEndpointCommand = CreateVpcEndpointCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteAccessPolicyCommand = 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 DeleteAccessPolicyCommand 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, DeleteAccessPolicyCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "OpenSearchServerlessClient";
28
+ const commandName = "DeleteAccessPolicyCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.DeleteAccessPolicyRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_0_1.DeleteAccessPolicyResponseFilterSensitiveLog,
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_0DeleteAccessPolicyCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_0_1.deserializeAws_json1_0DeleteAccessPolicyCommand)(output, context);
44
+ }
45
+ }
46
+ exports.DeleteAccessPolicyCommand = DeleteAccessPolicyCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteCollectionCommand = 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 DeleteCollectionCommand 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, DeleteCollectionCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "OpenSearchServerlessClient";
28
+ const commandName = "DeleteCollectionCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.DeleteCollectionRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_0_1.DeleteCollectionResponseFilterSensitiveLog,
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_0DeleteCollectionCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_0_1.deserializeAws_json1_0DeleteCollectionCommand)(output, context);
44
+ }
45
+ }
46
+ exports.DeleteCollectionCommand = DeleteCollectionCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteSecurityConfigCommand = 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 DeleteSecurityConfigCommand 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, DeleteSecurityConfigCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "OpenSearchServerlessClient";
28
+ const commandName = "DeleteSecurityConfigCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.DeleteSecurityConfigRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_0_1.DeleteSecurityConfigResponseFilterSensitiveLog,
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_0DeleteSecurityConfigCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_0_1.deserializeAws_json1_0DeleteSecurityConfigCommand)(output, context);
44
+ }
45
+ }
46
+ exports.DeleteSecurityConfigCommand = DeleteSecurityConfigCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteSecurityPolicyCommand = 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 DeleteSecurityPolicyCommand 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, DeleteSecurityPolicyCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "OpenSearchServerlessClient";
28
+ const commandName = "DeleteSecurityPolicyCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.DeleteSecurityPolicyRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_0_1.DeleteSecurityPolicyResponseFilterSensitiveLog,
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_0DeleteSecurityPolicyCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_0_1.deserializeAws_json1_0DeleteSecurityPolicyCommand)(output, context);
44
+ }
45
+ }
46
+ exports.DeleteSecurityPolicyCommand = DeleteSecurityPolicyCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteVpcEndpointCommand = 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 DeleteVpcEndpointCommand 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, DeleteVpcEndpointCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "OpenSearchServerlessClient";
28
+ const commandName = "DeleteVpcEndpointCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.DeleteVpcEndpointRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_0_1.DeleteVpcEndpointResponseFilterSensitiveLog,
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_0DeleteVpcEndpointCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_0_1.deserializeAws_json1_0DeleteVpcEndpointCommand)(output, context);
44
+ }
45
+ }
46
+ exports.DeleteVpcEndpointCommand = DeleteVpcEndpointCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetAccessPolicyCommand = 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 GetAccessPolicyCommand 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, GetAccessPolicyCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "OpenSearchServerlessClient";
28
+ const commandName = "GetAccessPolicyCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.GetAccessPolicyRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_0_1.GetAccessPolicyResponseFilterSensitiveLog,
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_0GetAccessPolicyCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_0_1.deserializeAws_json1_0GetAccessPolicyCommand)(output, context);
44
+ }
45
+ }
46
+ exports.GetAccessPolicyCommand = GetAccessPolicyCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetAccountSettingsCommand = 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 GetAccountSettingsCommand 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, GetAccountSettingsCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "OpenSearchServerlessClient";
28
+ const commandName = "GetAccountSettingsCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.GetAccountSettingsRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_0_1.GetAccountSettingsResponseFilterSensitiveLog,
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_0GetAccountSettingsCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_0_1.deserializeAws_json1_0GetAccountSettingsCommand)(output, context);
44
+ }
45
+ }
46
+ exports.GetAccountSettingsCommand = GetAccountSettingsCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetPoliciesStatsCommand = 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 GetPoliciesStatsCommand 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, GetPoliciesStatsCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "OpenSearchServerlessClient";
28
+ const commandName = "GetPoliciesStatsCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.GetPoliciesStatsRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_0_1.GetPoliciesStatsResponseFilterSensitiveLog,
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_0GetPoliciesStatsCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_0_1.deserializeAws_json1_0GetPoliciesStatsCommand)(output, context);
44
+ }
45
+ }
46
+ exports.GetPoliciesStatsCommand = GetPoliciesStatsCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetSecurityConfigCommand = 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 GetSecurityConfigCommand 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, GetSecurityConfigCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "OpenSearchServerlessClient";
28
+ const commandName = "GetSecurityConfigCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.GetSecurityConfigRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_0_1.GetSecurityConfigResponseFilterSensitiveLog,
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_0GetSecurityConfigCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_0_1.deserializeAws_json1_0GetSecurityConfigCommand)(output, context);
44
+ }
45
+ }
46
+ exports.GetSecurityConfigCommand = GetSecurityConfigCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetSecurityPolicyCommand = 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 GetSecurityPolicyCommand 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, GetSecurityPolicyCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "OpenSearchServerlessClient";
28
+ const commandName = "GetSecurityPolicyCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.GetSecurityPolicyRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_0_1.GetSecurityPolicyResponseFilterSensitiveLog,
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_0GetSecurityPolicyCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_0_1.deserializeAws_json1_0GetSecurityPolicyCommand)(output, context);
44
+ }
45
+ }
46
+ exports.GetSecurityPolicyCommand = GetSecurityPolicyCommand;