@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,37 @@
1
+ import packageInfo from "../package.json";
2
+ import { Sha256 } from "@aws-crypto/sha256-browser";
3
+ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
4
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
+ import { invalidProvider } from "@aws-sdk/invalid-dependency";
6
+ import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
7
+ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
8
+ import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
9
+ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
10
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
12
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
13
+ export const getRuntimeConfig = (config) => {
14
+ const defaultsMode = resolveDefaultsModeConfig(config);
15
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
16
+ const clientSharedValues = getSharedRuntimeConfig(config);
17
+ return {
18
+ ...clientSharedValues,
19
+ ...config,
20
+ runtime: "browser",
21
+ defaultsMode,
22
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
23
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
24
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
25
+ defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
26
+ maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
27
+ region: config?.region ?? invalidProvider("Region is missing"),
28
+ requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
29
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
30
+ sha256: config?.sha256 ?? Sha256,
31
+ streamCollector: config?.streamCollector ?? streamCollector,
32
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
33
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
34
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
35
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
36
+ };
37
+ };
@@ -0,0 +1,45 @@
1
+ import packageInfo from "../package.json";
2
+ import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
3
+ import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
4
+ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
5
+ import { Hash } from "@aws-sdk/hash-node";
6
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
7
+ import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
8
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
+ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
10
+ import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
11
+ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
12
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
14
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
15
+ import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
16
+ export const getRuntimeConfig = (config) => {
17
+ emitWarningIfUnsupportedVersion(process.version);
18
+ const defaultsMode = resolveDefaultsModeConfig(config);
19
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
20
+ const clientSharedValues = getSharedRuntimeConfig(config);
21
+ return {
22
+ ...clientSharedValues,
23
+ ...config,
24
+ runtime: "node",
25
+ defaultsMode,
26
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
27
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
28
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
29
+ defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
30
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
31
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
32
+ requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
33
+ retryMode: config?.retryMode ??
34
+ loadNodeConfig({
35
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
+ }),
38
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
+ streamCollector: config?.streamCollector ?? streamCollector,
40
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
41
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
42
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
43
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
44
+ };
45
+ };
@@ -0,0 +1,11 @@
1
+ import { Sha256 } from "@aws-crypto/sha256-js";
2
+ import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
+ export const getRuntimeConfig = (config) => {
4
+ const browserDefaults = getBrowserRuntimeConfig(config);
5
+ return {
6
+ ...browserDefaults,
7
+ ...config,
8
+ runtime: "react-native",
9
+ sha256: config?.sha256 ?? Sha256,
10
+ };
11
+ };
@@ -0,0 +1,14 @@
1
+ import { NoOpLogger } from "@aws-sdk/smithy-client";
2
+ import { parseUrl } from "@aws-sdk/url-parser";
3
+ import { fromBase64, toBase64 } from "@aws-sdk/util-base64";
4
+ import { defaultEndpointResolver } from "./endpoint/endpointResolver";
5
+ export const getRuntimeConfig = (config) => ({
6
+ apiVersion: "2021-11-01",
7
+ base64Decoder: config?.base64Decoder ?? fromBase64,
8
+ base64Encoder: config?.base64Encoder ?? toBase64,
9
+ disableHostPrefix: config?.disableHostPrefix ?? false,
10
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
11
+ logger: config?.logger ?? new NoOpLogger(),
12
+ serviceId: config?.serviceId ?? "OpenSearchServerless",
13
+ urlParser: config?.urlParser ?? parseUrl,
14
+ });
@@ -0,0 +1,276 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
+ import { BatchGetCollectionCommandInput, BatchGetCollectionCommandOutput } from "./commands/BatchGetCollectionCommand";
3
+ import { BatchGetVpcEndpointCommandInput, BatchGetVpcEndpointCommandOutput } from "./commands/BatchGetVpcEndpointCommand";
4
+ import { CreateAccessPolicyCommandInput, CreateAccessPolicyCommandOutput } from "./commands/CreateAccessPolicyCommand";
5
+ import { CreateCollectionCommandInput, CreateCollectionCommandOutput } from "./commands/CreateCollectionCommand";
6
+ import { CreateSecurityConfigCommandInput, CreateSecurityConfigCommandOutput } from "./commands/CreateSecurityConfigCommand";
7
+ import { CreateSecurityPolicyCommandInput, CreateSecurityPolicyCommandOutput } from "./commands/CreateSecurityPolicyCommand";
8
+ import { CreateVpcEndpointCommandInput, CreateVpcEndpointCommandOutput } from "./commands/CreateVpcEndpointCommand";
9
+ import { DeleteAccessPolicyCommandInput, DeleteAccessPolicyCommandOutput } from "./commands/DeleteAccessPolicyCommand";
10
+ import { DeleteCollectionCommandInput, DeleteCollectionCommandOutput } from "./commands/DeleteCollectionCommand";
11
+ import { DeleteSecurityConfigCommandInput, DeleteSecurityConfigCommandOutput } from "./commands/DeleteSecurityConfigCommand";
12
+ import { DeleteSecurityPolicyCommandInput, DeleteSecurityPolicyCommandOutput } from "./commands/DeleteSecurityPolicyCommand";
13
+ import { DeleteVpcEndpointCommandInput, DeleteVpcEndpointCommandOutput } from "./commands/DeleteVpcEndpointCommand";
14
+ import { GetAccessPolicyCommandInput, GetAccessPolicyCommandOutput } from "./commands/GetAccessPolicyCommand";
15
+ import { GetAccountSettingsCommandInput, GetAccountSettingsCommandOutput } from "./commands/GetAccountSettingsCommand";
16
+ import { GetPoliciesStatsCommandInput, GetPoliciesStatsCommandOutput } from "./commands/GetPoliciesStatsCommand";
17
+ import { GetSecurityConfigCommandInput, GetSecurityConfigCommandOutput } from "./commands/GetSecurityConfigCommand";
18
+ import { GetSecurityPolicyCommandInput, GetSecurityPolicyCommandOutput } from "./commands/GetSecurityPolicyCommand";
19
+ import { ListAccessPoliciesCommandInput, ListAccessPoliciesCommandOutput } from "./commands/ListAccessPoliciesCommand";
20
+ import { ListCollectionsCommandInput, ListCollectionsCommandOutput } from "./commands/ListCollectionsCommand";
21
+ import { ListSecurityConfigsCommandInput, ListSecurityConfigsCommandOutput } from "./commands/ListSecurityConfigsCommand";
22
+ import { ListSecurityPoliciesCommandInput, ListSecurityPoliciesCommandOutput } from "./commands/ListSecurityPoliciesCommand";
23
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
24
+ import { ListVpcEndpointsCommandInput, ListVpcEndpointsCommandOutput } from "./commands/ListVpcEndpointsCommand";
25
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
26
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
27
+ import { UpdateAccessPolicyCommandInput, UpdateAccessPolicyCommandOutput } from "./commands/UpdateAccessPolicyCommand";
28
+ import { UpdateAccountSettingsCommandInput, UpdateAccountSettingsCommandOutput } from "./commands/UpdateAccountSettingsCommand";
29
+ import { UpdateCollectionCommandInput, UpdateCollectionCommandOutput } from "./commands/UpdateCollectionCommand";
30
+ import { UpdateSecurityConfigCommandInput, UpdateSecurityConfigCommandOutput } from "./commands/UpdateSecurityConfigCommand";
31
+ import { UpdateSecurityPolicyCommandInput, UpdateSecurityPolicyCommandOutput } from "./commands/UpdateSecurityPolicyCommand";
32
+ import { UpdateVpcEndpointCommandInput, UpdateVpcEndpointCommandOutput } from "./commands/UpdateVpcEndpointCommand";
33
+ import { OpenSearchServerlessClient } from "./OpenSearchServerlessClient";
34
+ /**
35
+ * <p>Use the Amazon OpenSearch Serverless API to create, configure, and manage OpenSearch Serverless collections and
36
+ * security policies.</p>
37
+ * <p>OpenSearch Serverless is an on-demand, pre-provisioned serverless configuration for
38
+ * Amazon OpenSearch Service. OpenSearch Serverless removes the operational complexities of provisioning,
39
+ * configuring, and tuning your OpenSearch clusters. It enables you to easily search and
40
+ * analyze petabytes of data without having to worry about the underlying infrastructure
41
+ * and data management.</p>
42
+ * <p> To learn more about OpenSearch Serverless, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-overview.html">What is
43
+ * Amazon OpenSearch Serverless?</a>
44
+ * </p>
45
+ */
46
+ export declare class OpenSearchServerless extends OpenSearchServerlessClient {
47
+ /**
48
+ * <p>Returns attributes for one or more collections, including the collection endpoint and
49
+ * the OpenSearch Dashboards endpoint. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-manage.html">Creating and
50
+ * managing Amazon OpenSearch Serverless collections</a>.</p>
51
+ */
52
+ batchGetCollection(args: BatchGetCollectionCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetCollectionCommandOutput>;
53
+ batchGetCollection(args: BatchGetCollectionCommandInput, cb: (err: any, data?: BatchGetCollectionCommandOutput) => void): void;
54
+ batchGetCollection(args: BatchGetCollectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetCollectionCommandOutput) => void): void;
55
+ /**
56
+ * <p>Returns attributes for one or more VPC endpoints associated with the current account.
57
+ * For more information, see
58
+ * <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-vpc.html">Access Amazon OpenSearch Serverless using an interface endpoint</a>.</p>
59
+ */
60
+ batchGetVpcEndpoint(args: BatchGetVpcEndpointCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetVpcEndpointCommandOutput>;
61
+ batchGetVpcEndpoint(args: BatchGetVpcEndpointCommandInput, cb: (err: any, data?: BatchGetVpcEndpointCommandOutput) => void): void;
62
+ batchGetVpcEndpoint(args: BatchGetVpcEndpointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetVpcEndpointCommandOutput) => void): void;
63
+ /**
64
+ * <p>Creates a data access policy for OpenSearch Serverless. Access policies limit access to collections
65
+ * and the resources within them, and allow a user to access that data irrespective of the
66
+ * access mechanism or network source. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-data-access.html">Data access
67
+ * control for Amazon OpenSearch Serverless</a>.</p>
68
+ */
69
+ createAccessPolicy(args: CreateAccessPolicyCommandInput, options?: __HttpHandlerOptions): Promise<CreateAccessPolicyCommandOutput>;
70
+ createAccessPolicy(args: CreateAccessPolicyCommandInput, cb: (err: any, data?: CreateAccessPolicyCommandOutput) => void): void;
71
+ createAccessPolicy(args: CreateAccessPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateAccessPolicyCommandOutput) => void): void;
72
+ /**
73
+ * <p>Creates a new OpenSearch Serverless collection. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-manage.html">Creating and
74
+ * managing Amazon OpenSearch Serverless collections</a>.</p>
75
+ */
76
+ createCollection(args: CreateCollectionCommandInput, options?: __HttpHandlerOptions): Promise<CreateCollectionCommandOutput>;
77
+ createCollection(args: CreateCollectionCommandInput, cb: (err: any, data?: CreateCollectionCommandOutput) => void): void;
78
+ createCollection(args: CreateCollectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateCollectionCommandOutput) => void): void;
79
+ /**
80
+ * <p>Specifies a security configuration for OpenSearch Serverless. For more information, see
81
+ * <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-saml.html">SAML
82
+ * authentication for Amazon OpenSearch Serverless</a>. </p>
83
+ */
84
+ createSecurityConfig(args: CreateSecurityConfigCommandInput, options?: __HttpHandlerOptions): Promise<CreateSecurityConfigCommandOutput>;
85
+ createSecurityConfig(args: CreateSecurityConfigCommandInput, cb: (err: any, data?: CreateSecurityConfigCommandOutput) => void): void;
86
+ createSecurityConfig(args: CreateSecurityConfigCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateSecurityConfigCommandOutput) => void): void;
87
+ /**
88
+ * <p>Creates a security policy to be used by one or more OpenSearch Serverless collections. Security
89
+ * policies provide access to a collection and its OpenSearch Dashboards endpoint from
90
+ * public networks or specific VPC endpoints. They also allow you to secure a collection
91
+ * with a KMS encryption key. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-network.html">Network access
92
+ * for Amazon OpenSearch Serverless</a> and <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-encryption.html">Encryption at
93
+ * rest for Amazon OpenSearch Serverless</a>.</p>
94
+ */
95
+ createSecurityPolicy(args: CreateSecurityPolicyCommandInput, options?: __HttpHandlerOptions): Promise<CreateSecurityPolicyCommandOutput>;
96
+ createSecurityPolicy(args: CreateSecurityPolicyCommandInput, cb: (err: any, data?: CreateSecurityPolicyCommandOutput) => void): void;
97
+ createSecurityPolicy(args: CreateSecurityPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateSecurityPolicyCommandOutput) => void): void;
98
+ /**
99
+ * <p>Creates an OpenSearch Serverless-managed interface VPC endpoint. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-vpc.html">Access
100
+ * Amazon OpenSearch Serverless using an interface endpoint</a>.</p>
101
+ */
102
+ createVpcEndpoint(args: CreateVpcEndpointCommandInput, options?: __HttpHandlerOptions): Promise<CreateVpcEndpointCommandOutput>;
103
+ createVpcEndpoint(args: CreateVpcEndpointCommandInput, cb: (err: any, data?: CreateVpcEndpointCommandOutput) => void): void;
104
+ createVpcEndpoint(args: CreateVpcEndpointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateVpcEndpointCommandOutput) => void): void;
105
+ /**
106
+ * <p>Deletes an OpenSearch Serverless access policy. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-data-access.html">Data
107
+ * access control for Amazon OpenSearch Serverless</a>.</p>
108
+ */
109
+ deleteAccessPolicy(args: DeleteAccessPolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAccessPolicyCommandOutput>;
110
+ deleteAccessPolicy(args: DeleteAccessPolicyCommandInput, cb: (err: any, data?: DeleteAccessPolicyCommandOutput) => void): void;
111
+ deleteAccessPolicy(args: DeleteAccessPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAccessPolicyCommandOutput) => void): void;
112
+ /**
113
+ * <p>Deletes an OpenSearch Serverless collection. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-manage.html">Creating and
114
+ * managing Amazon OpenSearch Serverless collections</a>.</p>
115
+ */
116
+ deleteCollection(args: DeleteCollectionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteCollectionCommandOutput>;
117
+ deleteCollection(args: DeleteCollectionCommandInput, cb: (err: any, data?: DeleteCollectionCommandOutput) => void): void;
118
+ deleteCollection(args: DeleteCollectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteCollectionCommandOutput) => void): void;
119
+ /**
120
+ * <p>Deletes a security configuration for OpenSearch Serverless. For more information, see
121
+ * <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-saml.html">SAML
122
+ * authentication for Amazon OpenSearch Serverless</a>.</p>
123
+ */
124
+ deleteSecurityConfig(args: DeleteSecurityConfigCommandInput, options?: __HttpHandlerOptions): Promise<DeleteSecurityConfigCommandOutput>;
125
+ deleteSecurityConfig(args: DeleteSecurityConfigCommandInput, cb: (err: any, data?: DeleteSecurityConfigCommandOutput) => void): void;
126
+ deleteSecurityConfig(args: DeleteSecurityConfigCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteSecurityConfigCommandOutput) => void): void;
127
+ /**
128
+ * <p>Deletes an OpenSearch Serverless security policy.</p>
129
+ */
130
+ deleteSecurityPolicy(args: DeleteSecurityPolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteSecurityPolicyCommandOutput>;
131
+ deleteSecurityPolicy(args: DeleteSecurityPolicyCommandInput, cb: (err: any, data?: DeleteSecurityPolicyCommandOutput) => void): void;
132
+ deleteSecurityPolicy(args: DeleteSecurityPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteSecurityPolicyCommandOutput) => void): void;
133
+ /**
134
+ * <p>Deletes an OpenSearch Serverless-managed interface endpoint. For more information, see
135
+ * <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-vpc.html">Access Amazon OpenSearch Serverless using an interface endpoint</a>.</p>
136
+ */
137
+ deleteVpcEndpoint(args: DeleteVpcEndpointCommandInput, options?: __HttpHandlerOptions): Promise<DeleteVpcEndpointCommandOutput>;
138
+ deleteVpcEndpoint(args: DeleteVpcEndpointCommandInput, cb: (err: any, data?: DeleteVpcEndpointCommandOutput) => void): void;
139
+ deleteVpcEndpoint(args: DeleteVpcEndpointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteVpcEndpointCommandOutput) => void): void;
140
+ /**
141
+ * <p>Returns an OpenSearch Serverless access policy. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-data-access.html">Data
142
+ * access control for Amazon OpenSearch Serverless</a>.</p>
143
+ */
144
+ getAccessPolicy(args: GetAccessPolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetAccessPolicyCommandOutput>;
145
+ getAccessPolicy(args: GetAccessPolicyCommandInput, cb: (err: any, data?: GetAccessPolicyCommandOutput) => void): void;
146
+ getAccessPolicy(args: GetAccessPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAccessPolicyCommandOutput) => void): void;
147
+ /**
148
+ * <p>Returns account-level settings related to OpenSearch Serverless.</p>
149
+ */
150
+ getAccountSettings(args: GetAccountSettingsCommandInput, options?: __HttpHandlerOptions): Promise<GetAccountSettingsCommandOutput>;
151
+ getAccountSettings(args: GetAccountSettingsCommandInput, cb: (err: any, data?: GetAccountSettingsCommandOutput) => void): void;
152
+ getAccountSettings(args: GetAccountSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAccountSettingsCommandOutput) => void): void;
153
+ /**
154
+ * <p>Returns statistical information about your OpenSearch Serverless access policies, security
155
+ * configurations, and security policies.</p>
156
+ */
157
+ getPoliciesStats(args: GetPoliciesStatsCommandInput, options?: __HttpHandlerOptions): Promise<GetPoliciesStatsCommandOutput>;
158
+ getPoliciesStats(args: GetPoliciesStatsCommandInput, cb: (err: any, data?: GetPoliciesStatsCommandOutput) => void): void;
159
+ getPoliciesStats(args: GetPoliciesStatsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPoliciesStatsCommandOutput) => void): void;
160
+ /**
161
+ * <p>Returns information about an OpenSearch Serverless security configuration. For more information, see
162
+ * <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-saml.html">SAML
163
+ * authentication for Amazon OpenSearch Serverless</a>.</p>
164
+ */
165
+ getSecurityConfig(args: GetSecurityConfigCommandInput, options?: __HttpHandlerOptions): Promise<GetSecurityConfigCommandOutput>;
166
+ getSecurityConfig(args: GetSecurityConfigCommandInput, cb: (err: any, data?: GetSecurityConfigCommandOutput) => void): void;
167
+ getSecurityConfig(args: GetSecurityConfigCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSecurityConfigCommandOutput) => void): void;
168
+ /**
169
+ * <p>Returns information about a configured OpenSearch Serverless security policy. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-network.html">Network access
170
+ * for Amazon OpenSearch Serverless</a> and <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-encryption.html">Encryption at
171
+ * rest for Amazon OpenSearch Serverless</a>.</p>
172
+ */
173
+ getSecurityPolicy(args: GetSecurityPolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetSecurityPolicyCommandOutput>;
174
+ getSecurityPolicy(args: GetSecurityPolicyCommandInput, cb: (err: any, data?: GetSecurityPolicyCommandOutput) => void): void;
175
+ getSecurityPolicy(args: GetSecurityPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSecurityPolicyCommandOutput) => void): void;
176
+ /**
177
+ * <p>Returns information about a list of OpenSearch Serverless access policies.</p>
178
+ */
179
+ listAccessPolicies(args: ListAccessPoliciesCommandInput, options?: __HttpHandlerOptions): Promise<ListAccessPoliciesCommandOutput>;
180
+ listAccessPolicies(args: ListAccessPoliciesCommandInput, cb: (err: any, data?: ListAccessPoliciesCommandOutput) => void): void;
181
+ listAccessPolicies(args: ListAccessPoliciesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAccessPoliciesCommandOutput) => void): void;
182
+ /**
183
+ * <p>Lists all OpenSearch Serverless collections. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-manage.html">Creating and
184
+ * managing Amazon OpenSearch Serverless collections</a>.</p>
185
+ * <note>
186
+ * <p>Make sure to include an empty request body {} if you don't include any collection
187
+ * filters in the request.</p>
188
+ * </note>
189
+ */
190
+ listCollections(args: ListCollectionsCommandInput, options?: __HttpHandlerOptions): Promise<ListCollectionsCommandOutput>;
191
+ listCollections(args: ListCollectionsCommandInput, cb: (err: any, data?: ListCollectionsCommandOutput) => void): void;
192
+ listCollections(args: ListCollectionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCollectionsCommandOutput) => void): void;
193
+ /**
194
+ * <p>Returns information about configured OpenSearch Serverless security configurations. For more information, see
195
+ * <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-saml.html">SAML
196
+ * authentication for Amazon OpenSearch Serverless</a>.</p>
197
+ */
198
+ listSecurityConfigs(args: ListSecurityConfigsCommandInput, options?: __HttpHandlerOptions): Promise<ListSecurityConfigsCommandOutput>;
199
+ listSecurityConfigs(args: ListSecurityConfigsCommandInput, cb: (err: any, data?: ListSecurityConfigsCommandOutput) => void): void;
200
+ listSecurityConfigs(args: ListSecurityConfigsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSecurityConfigsCommandOutput) => void): void;
201
+ /**
202
+ * <p>Returns information about configured OpenSearch Serverless security policies.</p>
203
+ */
204
+ listSecurityPolicies(args: ListSecurityPoliciesCommandInput, options?: __HttpHandlerOptions): Promise<ListSecurityPoliciesCommandOutput>;
205
+ listSecurityPolicies(args: ListSecurityPoliciesCommandInput, cb: (err: any, data?: ListSecurityPoliciesCommandOutput) => void): void;
206
+ listSecurityPolicies(args: ListSecurityPoliciesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSecurityPoliciesCommandOutput) => void): void;
207
+ /**
208
+ * <p>Returns the tags for an OpenSearch Serverless resource. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/tag-collection.html">Tagging Amazon OpenSearch Serverless collections</a>.</p>
209
+ */
210
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
211
+ listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
212
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
213
+ /**
214
+ * <p>Returns the OpenSearch Serverless-managed interface VPC endpoints associated with the current
215
+ * account. For more information, see
216
+ * <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-vpc.html">Access Amazon OpenSearch Serverless using an interface endpoint</a>.</p>
217
+ */
218
+ listVpcEndpoints(args: ListVpcEndpointsCommandInput, options?: __HttpHandlerOptions): Promise<ListVpcEndpointsCommandOutput>;
219
+ listVpcEndpoints(args: ListVpcEndpointsCommandInput, cb: (err: any, data?: ListVpcEndpointsCommandOutput) => void): void;
220
+ listVpcEndpoints(args: ListVpcEndpointsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListVpcEndpointsCommandOutput) => void): void;
221
+ /**
222
+ * <p>Associates tags with an OpenSearch Serverless resource. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/tag-collection.html">Tagging Amazon OpenSearch Serverless collections</a>.</p>
223
+ */
224
+ tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
225
+ tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
226
+ tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
227
+ /**
228
+ * <p>Removes a tag or set of tags from an OpenSearch Serverless resource. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/tag-collection.html">Tagging Amazon OpenSearch Serverless collections</a>.</p>
229
+ */
230
+ untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
231
+ untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
232
+ untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
233
+ /**
234
+ * <p>Updates an OpenSearch Serverless access policy. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-data-access.html">Data
235
+ * access control for Amazon OpenSearch Serverless</a>.</p>
236
+ */
237
+ updateAccessPolicy(args: UpdateAccessPolicyCommandInput, options?: __HttpHandlerOptions): Promise<UpdateAccessPolicyCommandOutput>;
238
+ updateAccessPolicy(args: UpdateAccessPolicyCommandInput, cb: (err: any, data?: UpdateAccessPolicyCommandOutput) => void): void;
239
+ updateAccessPolicy(args: UpdateAccessPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateAccessPolicyCommandOutput) => void): void;
240
+ /**
241
+ * <p>Update the OpenSearch Serverless settings for the current Amazon Web Services account. For more
242
+ * information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-overview.html#serverless-scaling">Autoscaling</a>.</p>
243
+ */
244
+ updateAccountSettings(args: UpdateAccountSettingsCommandInput, options?: __HttpHandlerOptions): Promise<UpdateAccountSettingsCommandOutput>;
245
+ updateAccountSettings(args: UpdateAccountSettingsCommandInput, cb: (err: any, data?: UpdateAccountSettingsCommandOutput) => void): void;
246
+ updateAccountSettings(args: UpdateAccountSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateAccountSettingsCommandOutput) => void): void;
247
+ /**
248
+ * <p>Updates an OpenSearch Serverless collection.</p>
249
+ */
250
+ updateCollection(args: UpdateCollectionCommandInput, options?: __HttpHandlerOptions): Promise<UpdateCollectionCommandOutput>;
251
+ updateCollection(args: UpdateCollectionCommandInput, cb: (err: any, data?: UpdateCollectionCommandOutput) => void): void;
252
+ updateCollection(args: UpdateCollectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateCollectionCommandOutput) => void): void;
253
+ /**
254
+ * <p>Updates a security configuration for OpenSearch Serverless. For more information, see
255
+ * <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-saml.html">SAML
256
+ * authentication for Amazon OpenSearch Serverless</a>.</p>
257
+ */
258
+ updateSecurityConfig(args: UpdateSecurityConfigCommandInput, options?: __HttpHandlerOptions): Promise<UpdateSecurityConfigCommandOutput>;
259
+ updateSecurityConfig(args: UpdateSecurityConfigCommandInput, cb: (err: any, data?: UpdateSecurityConfigCommandOutput) => void): void;
260
+ updateSecurityConfig(args: UpdateSecurityConfigCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateSecurityConfigCommandOutput) => void): void;
261
+ /**
262
+ * <p>Updates an OpenSearch Serverless security policy. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-network.html">Network access
263
+ * for Amazon OpenSearch Serverless</a> and <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-encryption.html">Encryption at
264
+ * rest for Amazon OpenSearch Serverless</a>.</p>
265
+ */
266
+ updateSecurityPolicy(args: UpdateSecurityPolicyCommandInput, options?: __HttpHandlerOptions): Promise<UpdateSecurityPolicyCommandOutput>;
267
+ updateSecurityPolicy(args: UpdateSecurityPolicyCommandInput, cb: (err: any, data?: UpdateSecurityPolicyCommandOutput) => void): void;
268
+ updateSecurityPolicy(args: UpdateSecurityPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateSecurityPolicyCommandOutput) => void): void;
269
+ /**
270
+ * <p>Updates an OpenSearch Serverless-managed interface endpoint. For more information, see
271
+ * <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-vpc.html">Access Amazon OpenSearch Serverless using an interface endpoint</a>.</p>
272
+ */
273
+ updateVpcEndpoint(args: UpdateVpcEndpointCommandInput, options?: __HttpHandlerOptions): Promise<UpdateVpcEndpointCommandOutput>;
274
+ updateVpcEndpoint(args: UpdateVpcEndpointCommandInput, cb: (err: any, data?: UpdateVpcEndpointCommandOutput) => void): void;
275
+ updateVpcEndpoint(args: UpdateVpcEndpointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateVpcEndpointCommandOutput) => void): void;
276
+ }
@@ -0,0 +1,181 @@
1
+ import { RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
2
+ import { EndpointInputConfig, EndpointResolvedConfig } from "@aws-sdk/middleware-endpoint";
3
+ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
4
+ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
5
+ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
6
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
7
+ import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
8
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
9
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
10
+ import { BatchGetCollectionCommandInput, BatchGetCollectionCommandOutput } from "./commands/BatchGetCollectionCommand";
11
+ import { BatchGetVpcEndpointCommandInput, BatchGetVpcEndpointCommandOutput } from "./commands/BatchGetVpcEndpointCommand";
12
+ import { CreateAccessPolicyCommandInput, CreateAccessPolicyCommandOutput } from "./commands/CreateAccessPolicyCommand";
13
+ import { CreateCollectionCommandInput, CreateCollectionCommandOutput } from "./commands/CreateCollectionCommand";
14
+ import { CreateSecurityConfigCommandInput, CreateSecurityConfigCommandOutput } from "./commands/CreateSecurityConfigCommand";
15
+ import { CreateSecurityPolicyCommandInput, CreateSecurityPolicyCommandOutput } from "./commands/CreateSecurityPolicyCommand";
16
+ import { CreateVpcEndpointCommandInput, CreateVpcEndpointCommandOutput } from "./commands/CreateVpcEndpointCommand";
17
+ import { DeleteAccessPolicyCommandInput, DeleteAccessPolicyCommandOutput } from "./commands/DeleteAccessPolicyCommand";
18
+ import { DeleteCollectionCommandInput, DeleteCollectionCommandOutput } from "./commands/DeleteCollectionCommand";
19
+ import { DeleteSecurityConfigCommandInput, DeleteSecurityConfigCommandOutput } from "./commands/DeleteSecurityConfigCommand";
20
+ import { DeleteSecurityPolicyCommandInput, DeleteSecurityPolicyCommandOutput } from "./commands/DeleteSecurityPolicyCommand";
21
+ import { DeleteVpcEndpointCommandInput, DeleteVpcEndpointCommandOutput } from "./commands/DeleteVpcEndpointCommand";
22
+ import { GetAccessPolicyCommandInput, GetAccessPolicyCommandOutput } from "./commands/GetAccessPolicyCommand";
23
+ import { GetAccountSettingsCommandInput, GetAccountSettingsCommandOutput } from "./commands/GetAccountSettingsCommand";
24
+ import { GetPoliciesStatsCommandInput, GetPoliciesStatsCommandOutput } from "./commands/GetPoliciesStatsCommand";
25
+ import { GetSecurityConfigCommandInput, GetSecurityConfigCommandOutput } from "./commands/GetSecurityConfigCommand";
26
+ import { GetSecurityPolicyCommandInput, GetSecurityPolicyCommandOutput } from "./commands/GetSecurityPolicyCommand";
27
+ import { ListAccessPoliciesCommandInput, ListAccessPoliciesCommandOutput } from "./commands/ListAccessPoliciesCommand";
28
+ import { ListCollectionsCommandInput, ListCollectionsCommandOutput } from "./commands/ListCollectionsCommand";
29
+ import { ListSecurityConfigsCommandInput, ListSecurityConfigsCommandOutput } from "./commands/ListSecurityConfigsCommand";
30
+ import { ListSecurityPoliciesCommandInput, ListSecurityPoliciesCommandOutput } from "./commands/ListSecurityPoliciesCommand";
31
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
32
+ import { ListVpcEndpointsCommandInput, ListVpcEndpointsCommandOutput } from "./commands/ListVpcEndpointsCommand";
33
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
34
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
35
+ import { UpdateAccessPolicyCommandInput, UpdateAccessPolicyCommandOutput } from "./commands/UpdateAccessPolicyCommand";
36
+ import { UpdateAccountSettingsCommandInput, UpdateAccountSettingsCommandOutput } from "./commands/UpdateAccountSettingsCommand";
37
+ import { UpdateCollectionCommandInput, UpdateCollectionCommandOutput } from "./commands/UpdateCollectionCommand";
38
+ import { UpdateSecurityConfigCommandInput, UpdateSecurityConfigCommandOutput } from "./commands/UpdateSecurityConfigCommand";
39
+ import { UpdateSecurityPolicyCommandInput, UpdateSecurityPolicyCommandOutput } from "./commands/UpdateSecurityPolicyCommand";
40
+ import { UpdateVpcEndpointCommandInput, UpdateVpcEndpointCommandOutput } from "./commands/UpdateVpcEndpointCommand";
41
+ import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
42
+ export declare type ServiceInputTypes = BatchGetCollectionCommandInput | BatchGetVpcEndpointCommandInput | CreateAccessPolicyCommandInput | CreateCollectionCommandInput | CreateSecurityConfigCommandInput | CreateSecurityPolicyCommandInput | CreateVpcEndpointCommandInput | DeleteAccessPolicyCommandInput | DeleteCollectionCommandInput | DeleteSecurityConfigCommandInput | DeleteSecurityPolicyCommandInput | DeleteVpcEndpointCommandInput | GetAccessPolicyCommandInput | GetAccountSettingsCommandInput | GetPoliciesStatsCommandInput | GetSecurityConfigCommandInput | GetSecurityPolicyCommandInput | ListAccessPoliciesCommandInput | ListCollectionsCommandInput | ListSecurityConfigsCommandInput | ListSecurityPoliciesCommandInput | ListTagsForResourceCommandInput | ListVpcEndpointsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAccessPolicyCommandInput | UpdateAccountSettingsCommandInput | UpdateCollectionCommandInput | UpdateSecurityConfigCommandInput | UpdateSecurityPolicyCommandInput | UpdateVpcEndpointCommandInput;
43
+ export declare type ServiceOutputTypes = BatchGetCollectionCommandOutput | BatchGetVpcEndpointCommandOutput | CreateAccessPolicyCommandOutput | CreateCollectionCommandOutput | CreateSecurityConfigCommandOutput | CreateSecurityPolicyCommandOutput | CreateVpcEndpointCommandOutput | DeleteAccessPolicyCommandOutput | DeleteCollectionCommandOutput | DeleteSecurityConfigCommandOutput | DeleteSecurityPolicyCommandOutput | DeleteVpcEndpointCommandOutput | GetAccessPolicyCommandOutput | GetAccountSettingsCommandOutput | GetPoliciesStatsCommandOutput | GetSecurityConfigCommandOutput | GetSecurityPolicyCommandOutput | ListAccessPoliciesCommandOutput | ListCollectionsCommandOutput | ListSecurityConfigsCommandOutput | ListSecurityPoliciesCommandOutput | ListTagsForResourceCommandOutput | ListVpcEndpointsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAccessPolicyCommandOutput | UpdateAccountSettingsCommandOutput | UpdateCollectionCommandOutput | UpdateSecurityConfigCommandOutput | UpdateSecurityPolicyCommandOutput | UpdateVpcEndpointCommandOutput;
44
+ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
45
+ /**
46
+ * The HTTP handler to use. Fetch in browser and Https in Nodejs.
47
+ */
48
+ requestHandler?: __HttpHandler;
49
+ /**
50
+ * A constructor for a class implementing the {@link __Hash} interface
51
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
52
+ * @internal
53
+ */
54
+ sha256?: __HashConstructor;
55
+ /**
56
+ * The function that will be used to convert strings into HTTP endpoints.
57
+ * @internal
58
+ */
59
+ urlParser?: __UrlParser;
60
+ /**
61
+ * A function that can calculate the length of a request body.
62
+ * @internal
63
+ */
64
+ bodyLengthChecker?: __BodyLengthCalculator;
65
+ /**
66
+ * A function that converts a stream into an array of bytes.
67
+ * @internal
68
+ */
69
+ streamCollector?: __StreamCollector;
70
+ /**
71
+ * The function that will be used to convert a base64-encoded string to a byte array.
72
+ * @internal
73
+ */
74
+ base64Decoder?: __Decoder;
75
+ /**
76
+ * The function that will be used to convert binary data to a base64-encoded string.
77
+ * @internal
78
+ */
79
+ base64Encoder?: __Encoder;
80
+ /**
81
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
82
+ * @internal
83
+ */
84
+ utf8Decoder?: __Decoder;
85
+ /**
86
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
87
+ * @internal
88
+ */
89
+ utf8Encoder?: __Encoder;
90
+ /**
91
+ * The runtime environment.
92
+ * @internal
93
+ */
94
+ runtime?: string;
95
+ /**
96
+ * Disable dyanamically changing the endpoint of the client based on the hostPrefix
97
+ * trait of an operation.
98
+ */
99
+ disableHostPrefix?: boolean;
100
+ /**
101
+ * Value for how many times a request will be made at most in case of retry.
102
+ */
103
+ maxAttempts?: number | __Provider<number>;
104
+ /**
105
+ * Specifies which retry algorithm to use.
106
+ */
107
+ retryMode?: string | __Provider<string>;
108
+ /**
109
+ * Optional logger for logging debug/info/warn/error.
110
+ */
111
+ logger?: __Logger;
112
+ /**
113
+ * Enables IPv6/IPv4 dualstack endpoint.
114
+ */
115
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
116
+ /**
117
+ * Enables FIPS compatible endpoints.
118
+ */
119
+ useFipsEndpoint?: boolean | __Provider<boolean>;
120
+ /**
121
+ * Unique service identifier.
122
+ * @internal
123
+ */
124
+ serviceId?: string;
125
+ /**
126
+ * The AWS region to which this client will send requests
127
+ */
128
+ region?: string | __Provider<string>;
129
+ /**
130
+ * Default credentials provider; Not available in browser runtime.
131
+ * @internal
132
+ */
133
+ credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
134
+ /**
135
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
136
+ * @internal
137
+ */
138
+ defaultUserAgentProvider?: Provider<__UserAgent>;
139
+ /**
140
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
141
+ */
142
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
143
+ }
144
+ declare type OpenSearchServerlessClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
145
+ /**
146
+ * The configuration interface of OpenSearchServerlessClient class constructor that set the region, credentials and other options.
147
+ */
148
+ export interface OpenSearchServerlessClientConfig extends OpenSearchServerlessClientConfigType {
149
+ }
150
+ declare type OpenSearchServerlessClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
151
+ /**
152
+ * The resolved configuration interface of OpenSearchServerlessClient class. This is resolved and normalized from the {@link OpenSearchServerlessClientConfig | constructor configuration interface}.
153
+ */
154
+ export interface OpenSearchServerlessClientResolvedConfig extends OpenSearchServerlessClientResolvedConfigType {
155
+ }
156
+ /**
157
+ * <p>Use the Amazon OpenSearch Serverless API to create, configure, and manage OpenSearch Serverless collections and
158
+ * security policies.</p>
159
+ * <p>OpenSearch Serverless is an on-demand, pre-provisioned serverless configuration for
160
+ * Amazon OpenSearch Service. OpenSearch Serverless removes the operational complexities of provisioning,
161
+ * configuring, and tuning your OpenSearch clusters. It enables you to easily search and
162
+ * analyze petabytes of data without having to worry about the underlying infrastructure
163
+ * and data management.</p>
164
+ * <p> To learn more about OpenSearch Serverless, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-overview.html">What is
165
+ * Amazon OpenSearch Serverless?</a>
166
+ * </p>
167
+ */
168
+ export declare class OpenSearchServerlessClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, OpenSearchServerlessClientResolvedConfig> {
169
+ /**
170
+ * The resolved configuration of OpenSearchServerlessClient class. This is resolved and normalized from the {@link OpenSearchServerlessClientConfig | constructor configuration interface}.
171
+ */
172
+ readonly config: OpenSearchServerlessClientResolvedConfig;
173
+ constructor(configuration: OpenSearchServerlessClientConfig);
174
+ /**
175
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
176
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
177
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
178
+ */
179
+ destroy(): void;
180
+ }
181
+ export {};
@@ -0,0 +1,39 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { BatchGetCollectionRequest, BatchGetCollectionResponse } from "../models/models_0";
5
+ import { OpenSearchServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchServerlessClient";
6
+ export interface BatchGetCollectionCommandInput extends BatchGetCollectionRequest {
7
+ }
8
+ export interface BatchGetCollectionCommandOutput extends BatchGetCollectionResponse, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Returns attributes for one or more collections, including the collection endpoint and
12
+ * the OpenSearch Dashboards endpoint. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-manage.html">Creating and
13
+ * managing Amazon OpenSearch Serverless collections</a>.</p>
14
+ * @example
15
+ * Use a bare-bones client and the command you need to make an API call.
16
+ * ```javascript
17
+ * import { OpenSearchServerlessClient, BatchGetCollectionCommand } from "@aws-sdk/client-opensearchserverless"; // ES Modules import
18
+ * // const { OpenSearchServerlessClient, BatchGetCollectionCommand } = require("@aws-sdk/client-opensearchserverless"); // CommonJS import
19
+ * const client = new OpenSearchServerlessClient(config);
20
+ * const command = new BatchGetCollectionCommand(input);
21
+ * const response = await client.send(command);
22
+ * ```
23
+ *
24
+ * @see {@link BatchGetCollectionCommandInput} for command's `input` shape.
25
+ * @see {@link BatchGetCollectionCommandOutput} for command's `response` shape.
26
+ * @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
27
+ *
28
+ */
29
+ export declare class BatchGetCollectionCommand extends $Command<BatchGetCollectionCommandInput, BatchGetCollectionCommandOutput, OpenSearchServerlessClientResolvedConfig> {
30
+ readonly input: BatchGetCollectionCommandInput;
31
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
32
+ constructor(input: BatchGetCollectionCommandInput);
33
+ /**
34
+ * @internal
35
+ */
36
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: OpenSearchServerlessClientResolvedConfig, options?: __HttpHandlerOptions): Handler<BatchGetCollectionCommandInput, BatchGetCollectionCommandOutput>;
37
+ private serialize;
38
+ private deserialize;
39
+ }