@effect-aws/client-opensearch-serverless 1.2.0 → 1.9.3

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 (69) hide show
  1. package/Errors/package.json +6 -0
  2. package/OpenSearchServerlessClientInstance/package.json +6 -0
  3. package/OpenSearchServerlessService/package.json +6 -0
  4. package/OpenSearchServerlessServiceConfig/package.json +6 -0
  5. package/{lib → dist/cjs}/Errors.d.ts +6 -11
  6. package/dist/cjs/Errors.d.ts.map +1 -0
  7. package/dist/cjs/Errors.js +14 -0
  8. package/dist/cjs/Errors.js.map +1 -0
  9. package/dist/cjs/OpenSearchServerlessClientInstance.d.ts +24 -0
  10. package/dist/cjs/OpenSearchServerlessClientInstance.d.ts.map +1 -0
  11. package/dist/cjs/OpenSearchServerlessClientInstance.js +50 -0
  12. package/dist/cjs/OpenSearchServerlessClientInstance.js.map +1 -0
  13. package/dist/cjs/OpenSearchServerlessService.d.ts +189 -0
  14. package/dist/cjs/OpenSearchServerlessService.d.ts.map +1 -0
  15. package/dist/cjs/OpenSearchServerlessService.js +96 -0
  16. package/dist/cjs/OpenSearchServerlessService.js.map +1 -0
  17. package/dist/cjs/OpenSearchServerlessServiceConfig.d.ts +25 -0
  18. package/dist/cjs/OpenSearchServerlessServiceConfig.d.ts.map +1 -0
  19. package/dist/cjs/OpenSearchServerlessServiceConfig.js +35 -0
  20. package/dist/cjs/OpenSearchServerlessServiceConfig.js.map +1 -0
  21. package/dist/cjs/index.d.ts +39 -0
  22. package/dist/cjs/index.d.ts.map +1 -0
  23. package/dist/cjs/index.js +56 -0
  24. package/dist/cjs/index.js.map +1 -0
  25. package/dist/dts/Errors.d.ts +13 -0
  26. package/dist/dts/Errors.d.ts.map +1 -0
  27. package/dist/dts/OpenSearchServerlessClientInstance.d.ts +24 -0
  28. package/dist/dts/OpenSearchServerlessClientInstance.d.ts.map +1 -0
  29. package/dist/dts/OpenSearchServerlessService.d.ts +189 -0
  30. package/dist/dts/OpenSearchServerlessService.d.ts.map +1 -0
  31. package/dist/dts/OpenSearchServerlessServiceConfig.d.ts +25 -0
  32. package/dist/dts/OpenSearchServerlessServiceConfig.d.ts.map +1 -0
  33. package/dist/dts/index.d.ts +39 -0
  34. package/dist/dts/index.d.ts.map +1 -0
  35. package/dist/esm/Errors.js +11 -0
  36. package/dist/esm/Errors.js.map +1 -0
  37. package/dist/esm/OpenSearchServerlessClientInstance.js +23 -0
  38. package/dist/esm/OpenSearchServerlessClientInstance.js.map +1 -0
  39. package/dist/esm/OpenSearchServerlessService.js +69 -0
  40. package/dist/esm/OpenSearchServerlessService.js.map +1 -0
  41. package/dist/esm/OpenSearchServerlessServiceConfig.js +31 -0
  42. package/dist/esm/OpenSearchServerlessServiceConfig.js.map +1 -0
  43. package/dist/esm/index.js +27 -0
  44. package/dist/esm/index.js.map +1 -0
  45. package/dist/esm/package.json +4 -0
  46. package/package.json +60 -43
  47. package/src/Errors.ts +29 -0
  48. package/src/OpenSearchServerlessClientInstance.ts +33 -0
  49. package/src/OpenSearchServerlessService.ts +643 -0
  50. package/src/OpenSearchServerlessServiceConfig.ts +54 -0
  51. package/src/index.ts +44 -0
  52. package/CHANGELOG.md +0 -25
  53. package/docgen.json +0 -8
  54. package/lib/Errors.js +0 -14
  55. package/lib/OpenSearchServerlessClientInstance.d.ts +0 -31
  56. package/lib/OpenSearchServerlessClientInstance.js +0 -57
  57. package/lib/OpenSearchServerlessClientInstanceConfig.d.ts +0 -23
  58. package/lib/OpenSearchServerlessClientInstanceConfig.js +0 -44
  59. package/lib/OpenSearchServerlessService.d.ts +0 -250
  60. package/lib/OpenSearchServerlessService.js +0 -125
  61. package/lib/esm/Errors.js +0 -11
  62. package/lib/esm/OpenSearchServerlessClientInstance.js +0 -30
  63. package/lib/esm/OpenSearchServerlessClientInstanceConfig.js +0 -40
  64. package/lib/esm/OpenSearchServerlessService.js +0 -121
  65. package/lib/esm/index.js +0 -5
  66. package/lib/index.d.ts +0 -4
  67. package/lib/index.js +0 -21
  68. package/project.json +0 -77
  69. package/vitest.config.ts +0 -3
package/src/index.ts ADDED
@@ -0,0 +1,44 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { OpenSearchServerlessService } from "./OpenSearchServerlessService.js";
5
+
6
+ /**
7
+ * @since 1.0.0
8
+ */
9
+ export * from "./Errors.js";
10
+
11
+ /**
12
+ * @since 1.0.0
13
+ */
14
+ export * as OpenSearchServerlessClientInstance from "./OpenSearchServerlessClientInstance.js";
15
+
16
+ /**
17
+ * @since 1.0.0
18
+ */
19
+ export * as OpenSearchServerlessServiceConfig from "./OpenSearchServerlessServiceConfig.js";
20
+
21
+ /**
22
+ * @since 1.0.0
23
+ */
24
+ export * from "./OpenSearchServerlessService.js";
25
+
26
+ /**
27
+ * @since 1.0.0
28
+ * @category exports
29
+ * @alias OpenSearchServerlessService
30
+ */
31
+ export declare namespace OpenSearchServerless {
32
+ /**
33
+ * @since 1.0.0
34
+ * @alias OpenSearchServerlessService.Config
35
+ */
36
+ export type Config = OpenSearchServerlessService.Config;
37
+ }
38
+
39
+ /**
40
+ * @since 1.0.0
41
+ * @category exports
42
+ * @alias OpenSearchServerlessService
43
+ */
44
+ export const OpenSearchServerless = OpenSearchServerlessService;
package/CHANGELOG.md DELETED
@@ -1,25 +0,0 @@
1
- # @effect-aws/client-opensearch-serverless
2
-
3
- ## 1.2.0
4
-
5
- ### Minor Changes
6
-
7
- - [#93](https://github.com/floydspace/effect-aws/pull/93) [`a96fbd8`](https://github.com/floydspace/effect-aws/commit/a96fbd8840a7a6cfb795a2a6ab96aa32d32a3525) Thanks [@godu](https://github.com/godu)! - Destroy client after layer lifecycle to release idle connections.
8
-
9
- ## 1.1.0
10
-
11
- ### Minor Changes
12
-
13
- - [#80](https://github.com/floydspace/effect-aws/pull/80) [`4b16fbe`](https://github.com/floydspace/effect-aws/commit/4b16fbebce8131df7798ee92f43cf6b7df3e907c) Thanks [@floydspace](https://github.com/floydspace)! - simplify layers configuration (closes #78)
14
-
15
- ## 1.0.1
16
-
17
- ### Patch Changes
18
-
19
- - [#75](https://github.com/floydspace/effect-aws/pull/75) [`9dc170d`](https://github.com/floydspace/effect-aws/commit/9dc170d975c04888bbc7ca7b241b4b5265668fb5) Thanks [@godu](https://github.com/godu)! - export the HttpHandlerOptions type
20
-
21
- ## 1.0.0
22
-
23
- ### Major Changes
24
-
25
- - [#73](https://github.com/floydspace/effect-aws/pull/73) [`2ac5277`](https://github.com/floydspace/effect-aws/commit/2ac5277d6e3e4b5516c3b9aa05b568f120e5d984) Thanks [@godu](https://github.com/godu)! - implement opensearch & opensearchserverless clients
package/docgen.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "$schema": "../../node_modules/@effect/docgen/schema.json",
3
- "exclude": [
4
- "src/index.ts",
5
- "src/Errors.ts"
6
- ],
7
- "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"."
8
- }
package/lib/Errors.js DELETED
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SdkError = exports.AllServiceErrors = void 0;
4
- const effect_1 = require("effect");
5
- exports.AllServiceErrors = [
6
- "ConflictException",
7
- "InternalServerException",
8
- "OcuLimitExceededException",
9
- "ResourceNotFoundException",
10
- "ServiceQuotaExceededException",
11
- "ValidationException",
12
- ];
13
- exports.SdkError = effect_1.Data.tagged("SdkError");
14
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXJyb3JzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL0Vycm9ycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFRQSxtQ0FBOEI7QUFFakIsUUFBQSxnQkFBZ0IsR0FBRztJQUM5QixtQkFBbUI7SUFDbkIseUJBQXlCO0lBQ3pCLDJCQUEyQjtJQUMzQiwyQkFBMkI7SUFDM0IsK0JBQStCO0lBQy9CLHFCQ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FeGNlcHRpb248SW50ZXJuYWxTZXJ2ZXJFeGNlcHRpb24+O1xuZXhwb3J0IHR5cGUgT2N1TGltaXRFeGNlZWRlZEVycm9yID0gVGFnZ2VkRXhjZXB0aW9uPE9jdUxpbWl0RXhjZWVkZWRFeGNlcHRpb24+O1xuZXhwb3J0IHR5cGUgUmVzb3VyY2VOb3RGb3VuZEVycm9yID0gVGFnZ2VkRXhjZXB0aW9uPFJlc291cmNlTm90Rm91bmRFeGNlcHRpb24+O1xuZXhwb3J0IHR5cGUgU2VydmljZVF1b3RhRXhjZWVkZWRFcnJvciA9XG4gIFRhZ2dlZEV4Y2VwdGlvbjxTZXJ2aWNlUXVvdGFFeGNlZWRlZEV4Y2VwdGlvbj47XG5leHBvcnQgdHlwZSBWYWxpZGF0aW9uRXJyb3IgPSBUYWdnZWRFeGNlcHRpb248VmFsaWRhdGlvbkV4Y2VwdGlvbj47XG5cbmV4cG9ydCB0eXBlIFNka0Vycm9yID0gVGFnZ2VkRXhjZXB0aW9uPEVycm9yICYgeyBuYW1lOiBcIlNka0Vycm9yXCIgfT47XG5leHBvcnQgY29uc3QgU2RrRXJyb3IgPSBEYXRhLnRhZ2dlZDxTZGtFcnJvcj4oXCJTZGtFcnJvclwiKTtcbiJdfQ==
@@ -1,31 +0,0 @@
1
- /**
2
- * @since 1.0.0
3
- */
4
- import { OpenSearchServerlessClient } from "@aws-sdk/client-opensearchserverless";
5
- import * as Context from "effect/Context";
6
- import * as Effect from "effect/Effect";
7
- import * as Layer from "effect/Layer";
8
- import { OpenSearchServerlessClientInstanceConfig } from "./OpenSearchServerlessClientInstanceConfig";
9
- declare const OpenSearchServerlessClientInstance_base: Context.TagClass<OpenSearchServerlessClientInstance, "@effect-aws/client-opensearch-serverless/OpenSearchServerlessClientInstance", OpenSearchServerlessClient>;
10
- /**
11
- * @since 1.0.0
12
- * @category tags
13
- */
14
- export declare class OpenSearchServerlessClientInstance extends OpenSearchServerlessClientInstance_base {
15
- }
16
- /**
17
- * @since 1.0.0
18
- * @category constructors
19
- */
20
- export declare const makeOpenSearchServerlessClientInstance: Effect.Effect<OpenSearchServerlessClient, never, import("effect/Scope").Scope | OpenSearchServerlessClientInstanceConfig>;
21
- /**
22
- * @since 1.0.0
23
- * @category layers
24
- */
25
- export declare const OpenSearchServerlessClientInstanceLayer: Layer.Layer<OpenSearchServerlessClientInstance, never, OpenSearchServerlessClientInstanceConfig>;
26
- /**
27
- * @since 1.0.0
28
- * @category layers
29
- */
30
- export declare const DefaultOpenSearchServerlessClientInstanceLayer: Layer.Layer<OpenSearchServerlessClientInstance, never, never>;
31
- export {};
@@ -1,57 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.DefaultOpenSearchServerlessClientInstanceLayer = exports.OpenSearchServerlessClientInstanceLayer = exports.makeOpenSearchServerlessClientInstance = exports.OpenSearchServerlessClientInstance = void 0;
27
- /**
28
- * @since 1.0.0
29
- */
30
- const client_opensearchserverless_1 = require("@aws-sdk/client-opensearchserverless");
31
- const Context = __importStar(require("effect/Context"));
32
- const Effect = __importStar(require("effect/Effect"));
33
- const Layer = __importStar(require("effect/Layer"));
34
- const OpenSearchServerlessClientInstanceConfig_1 = require("./OpenSearchServerlessClientInstanceConfig");
35
- /**
36
- * @since 1.0.0
37
- * @category tags
38
- */
39
- class OpenSearchServerlessClientInstance extends Context.Tag("@effect-aws/client-opensearch-serverless/OpenSearchServerlessClientInstance")() {
40
- }
41
- exports.OpenSearchServerlessClientInstance = OpenSearchServerlessClientInstance;
42
- /**
43
- * @since 1.0.0
44
- * @category constructors
45
- */
46
- exports.makeOpenSearchServerlessClientInstance = Effect.flatMap(OpenSearchServerlessClientInstanceConfig_1.OpenSearchServerlessClientInstanceConfig, (config) => Effect.acquireRelease(Effect.sync(() => new client_opensearchserverless_1.OpenSearchServerlessClient(config)), (client) => Effect.sync(() => client.destroy())));
47
- /**
48
- * @since 1.0.0
49
- * @category layers
50
- */
51
- exports.OpenSearchServerlessClientInstanceLayer = Layer.scoped(OpenSearchServerlessClientInstance, exports.makeOpenSearchServerlessClientInstance);
52
- /**
53
- * @since 1.0.0
54
- * @category layers
55
- */
56
- exports.DefaultOpenSearchServerlessClientInstanceLayer = exports.OpenSearchServerlessClientInstanceLayer.pipe(Layer.provide(OpenSearchServerlessClientInstanceConfig_1.DefaultOpenSearchServerlessClientConfigLayer));
57
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiT3BlblNlYXJjaFNlcnZlcmxlc3NDbGllbnRJbnN0YW5jZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9PcGVuU2VhcmNoU2VydmVybGVzc0NsaWVudEluc3RhbmNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7O0dBRUc7QUFDSCxzRkFBa0Y7QUFDbEYsd0RBQTBDO0FBQ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3Quc3luYygoKSA9PiBjbGllbnQuZGVzdHJveSgpKSxcbiAgICApLFxuKTtcblxuLyoqXG4gKiBAc2luY2UgMS4wLjBcbiAqIEBjYXRlZ29yeSBsYXllcnNcbiAqL1xuZXhwb3J0IGNvbnN0IE9wZW5TZWFyY2hTZXJ2ZXJsZXNzQ2xpZW50SW5zdGFuY2VMYXllciA9IExheWVyLnNjb3BlZChcbiAgT3BlblNlYXJjaFNlcnZlcmxlc3NDbGllbnRJbnN0YW5jZSxcbiAgbWFrZU9wZW5TZWFyY2hTZXJ2ZXJsZXNzQ2xpZW50SW5zdGFuY2UsXG4pO1xuXG4vKipcbiAqIEBzaW5jZSAxLjAuMFxuICogQGNhdGVnb3J5IGxheWVyc1xuICovXG5leHBvcnQgY29uc3QgRGVmYXVsdE9wZW5TZWFyY2hTZXJ2ZXJsZXNzQ2xpZW50SW5zdGFuY2VMYXllciA9XG4gIE9wZW5TZWFyY2hTZXJ2ZXJsZXNzQ2xpZW50SW5zdGFuY2VMYXllci5waXBlKFxuICAgIExheWVyLnByb3ZpZGUoRGVmYXVsdE9wZW5TZWFyY2hTZXJ2ZXJsZXNzQ2xpZW50Q29uZmlnTGF5ZXIpLFxuICApO1xuIl19
@@ -1,23 +0,0 @@
1
- /**
2
- * @since 1.0.0
3
- */
4
- import type { OpenSearchServerlessClientConfig } from "@aws-sdk/client-opensearchserverless";
5
- import { Context, Effect, Layer } from "effect";
6
- declare const OpenSearchServerlessClientInstanceConfig_base: Context.TagClass<OpenSearchServerlessClientInstanceConfig, "@effect-aws/client-opensearch-serverless/OpenSearchServerlessClientInstanceConfig", OpenSearchServerlessClientConfig>;
7
- /**
8
- * @since 1.0.0
9
- * @category tags
10
- */
11
- export declare class OpenSearchServerlessClientInstanceConfig extends OpenSearchServerlessClientInstanceConfig_base {
12
- }
13
- /**
14
- * @since 1.0.0
15
- * @category constructors
16
- */
17
- export declare const makeDefaultOpenSearchServerlessClientInstanceConfig: Effect.Effect<OpenSearchServerlessClientConfig>;
18
- /**
19
- * @since 1.0.0
20
- * @category layers
21
- */
22
- export declare const DefaultOpenSearchServerlessClientConfigLayer: Layer.Layer<OpenSearchServerlessClientInstanceConfig, never, never>;
23
- export {};
@@ -1,44 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DefaultOpenSearchServerlessClientConfigLayer = exports.makeDefaultOpenSearchServerlessClientInstanceConfig = exports.OpenSearchServerlessClientInstanceConfig = void 0;
4
- const effect_1 = require("effect");
5
- /**
6
- * @since 1.0.0
7
- * @category tags
8
- */
9
- class OpenSearchServerlessClientInstanceConfig extends effect_1.Context.Tag("@effect-aws/client-opensearch-serverless/OpenSearchServerlessClientInstanceConfig")() {
10
- }
11
- exports.OpenSearchServerlessClientInstanceConfig = OpenSearchServerlessClientInstanceConfig;
12
- /**
13
- * @since 1.0.0
14
- * @category constructors
15
- */
16
- exports.makeDefaultOpenSearchServerlessClientInstanceConfig = effect_1.Effect.gen(function* (_) {
17
- const runtime = yield* _(effect_1.Effect.runtime());
18
- const runSync = effect_1.Runtime.runSync(runtime);
19
- return {
20
- logger: {
21
- info(m) {
22
- effect_1.Effect.logInfo(m).pipe(runSync);
23
- },
24
- warn(m) {
25
- effect_1.Effect.logWarning(m).pipe(runSync);
26
- },
27
- error(m) {
28
- effect_1.Effect.logError(m).pipe(runSync);
29
- },
30
- debug(m) {
31
- effect_1.Effect.logDebug(m).pipe(runSync);
32
- },
33
- trace(m) {
34
- effect_1.Effect.logTrace(m).pipe(runSync);
35
- },
36
- },
37
- };
38
- });
39
- /**
40
- * @since 1.0.0
41
- * @category layers
42
- */
43
- exports.DefaultOpenSearchServerlessClientConfigLayer = effect_1.Layer.effect(OpenSearchServerlessClientInstanceConfig, exports.makeDefaultOpenSearchServerlessClientInstanceConfig);
44
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiT3BlblNlYXJjaFNlcnZlcmxlc3NDbGllbnRJbnN0YW5jZU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2xpZW50Q29uZmlnTGF5ZXIgPSBMYXllci5lZmZlY3QoXG4gIE9wZW5TZWFyY2hTZXJ2ZXJsZXNzQ2xpZW50SW5zdGFuY2VDb25maWcsXG4gIG1ha2VEZWZhdWx0T3BlblNlYXJjaFNlcnZlcmxlc3NDbGllbnRJbnN0YW5jZUNvbmZpZyxcbik7XG4iXX0=
@@ -1,250 +0,0 @@
1
- /**
2
- * @since 1.0.0
3
- */
4
- import { type OpenSearchServerlessClient, type OpenSearchServerlessClientConfig, type BatchGetCollectionCommandInput, type BatchGetCollectionCommandOutput, type BatchGetEffectiveLifecyclePolicyCommandInput, type BatchGetEffectiveLifecyclePolicyCommandOutput, type BatchGetLifecyclePolicyCommandInput, type BatchGetLifecyclePolicyCommandOutput, type BatchGetVpcEndpointCommandInput, type BatchGetVpcEndpointCommandOutput, type CreateAccessPolicyCommandInput, type CreateAccessPolicyCommandOutput, type CreateCollectionCommandInput, type CreateCollectionCommandOutput, type CreateLifecyclePolicyCommandInput, type CreateLifecyclePolicyCommandOutput, type CreateSecurityConfigCommandInput, type CreateSecurityConfigCommandOutput, type CreateSecurityPolicyCommandInput, type CreateSecurityPolicyCommandOutput, type CreateVpcEndpointCommandInput, type CreateVpcEndpointCommandOutput, type DeleteAccessPolicyCommandInput, type DeleteAccessPolicyCommandOutput, type DeleteCollectionCommandInput, type DeleteCollectionCommandOutput, type DeleteLifecyclePolicyCommandInput, type DeleteLifecyclePolicyCommandOutput, type DeleteSecurityConfigCommandInput, type DeleteSecurityConfigCommandOutput, type DeleteSecurityPolicyCommandInput, type DeleteSecurityPolicyCommandOutput, type DeleteVpcEndpointCommandInput, type DeleteVpcEndpointCommandOutput, type GetAccessPolicyCommandInput, type GetAccessPolicyCommandOutput, type GetAccountSettingsCommandInput, type GetAccountSettingsCommandOutput, type GetPoliciesStatsCommandInput, type GetPoliciesStatsCommandOutput, type GetSecurityConfigCommandInput, type GetSecurityConfigCommandOutput, type GetSecurityPolicyCommandInput, type GetSecurityPolicyCommandOutput, type ListAccessPoliciesCommandInput, type ListAccessPoliciesCommandOutput, type ListCollectionsCommandInput, type ListCollectionsCommandOutput, type ListLifecyclePoliciesCommandInput, type ListLifecyclePoliciesCommandOutput, type ListSecurityConfigsCommandInput, type ListSecurityConfigsCommandOutput, type ListSecurityPoliciesCommandInput, type ListSecurityPoliciesCommandOutput, type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput, type ListVpcEndpointsCommandInput, type ListVpcEndpointsCommandOutput, type TagResourceCommandInput, type TagResourceCommandOutput, type UntagResourceCommandInput, type UntagResourceCommandOutput, type UpdateAccessPolicyCommandInput, type UpdateAccessPolicyCommandOutput, type UpdateAccountSettingsCommandInput, type UpdateAccountSettingsCommandOutput, type UpdateCollectionCommandInput, type UpdateCollectionCommandOutput, type UpdateLifecyclePolicyCommandInput, type UpdateLifecyclePolicyCommandOutput, type UpdateSecurityConfigCommandInput, type UpdateSecurityConfigCommandOutput, type UpdateSecurityPolicyCommandInput, type UpdateSecurityPolicyCommandOutput, type UpdateVpcEndpointCommandInput, type UpdateVpcEndpointCommandOutput } from "@aws-sdk/client-opensearchserverless";
5
- import { Effect, Layer } from "effect";
6
- import { ConflictError, InternalServerError, OcuLimitExceededError, ResourceNotFoundError, ServiceQuotaExceededError, ValidationError, SdkError } from "./Errors";
7
- import { OpenSearchServerlessClientInstance } from "./OpenSearchServerlessClientInstance";
8
- import { OpenSearchServerlessClientInstanceConfig } from "./OpenSearchServerlessClientInstanceConfig";
9
- /**
10
- * @since 1.0.0
11
- */
12
- export interface HttpHandlerOptions {
13
- /**
14
- * The maximum time in milliseconds that the connection phase of a request
15
- * may take before the connection attempt is abandoned.
16
- */
17
- requestTimeout?: number;
18
- }
19
- interface OpenSearchServerlessService$ {
20
- readonly _: unique symbol;
21
- /**
22
- * @see {@link BatchGetCollectionCommand}
23
- */
24
- batchGetCollection(args: BatchGetCollectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<BatchGetCollectionCommandOutput, SdkError | InternalServerError | ValidationError>;
25
- /**
26
- * @see {@link BatchGetEffectiveLifecyclePolicyCommand}
27
- */
28
- batchGetEffectiveLifecyclePolicy(args: BatchGetEffectiveLifecyclePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<BatchGetEffectiveLifecyclePolicyCommandOutput, SdkError | InternalServerError | ValidationError>;
29
- /**
30
- * @see {@link BatchGetLifecyclePolicyCommand}
31
- */
32
- batchGetLifecyclePolicy(args: BatchGetLifecyclePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<BatchGetLifecyclePolicyCommandOutput, SdkError | InternalServerError | ValidationError>;
33
- /**
34
- * @see {@link BatchGetVpcEndpointCommand}
35
- */
36
- batchGetVpcEndpoint(args: BatchGetVpcEndpointCommandInput, options?: HttpHandlerOptions): Effect.Effect<BatchGetVpcEndpointCommandOutput, SdkError | InternalServerError | ValidationError>;
37
- /**
38
- * @see {@link CreateAccessPolicyCommand}
39
- */
40
- createAccessPolicy(args: CreateAccessPolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateAccessPolicyCommandOutput, SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError>;
41
- /**
42
- * @see {@link CreateCollectionCommand}
43
- */
44
- createCollection(args: CreateCollectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateCollectionCommandOutput, SdkError | ConflictError | InternalServerError | OcuLimitExceededError | ServiceQuotaExceededError | ValidationError>;
45
- /**
46
- * @see {@link CreateLifecyclePolicyCommand}
47
- */
48
- createLifecyclePolicy(args: CreateLifecyclePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateLifecyclePolicyCommandOutput, SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError>;
49
- /**
50
- * @see {@link CreateSecurityConfigCommand}
51
- */
52
- createSecurityConfig(args: CreateSecurityConfigCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateSecurityConfigCommandOutput, SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError>;
53
- /**
54
- * @see {@link CreateSecurityPolicyCommand}
55
- */
56
- createSecurityPolicy(args: CreateSecurityPolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateSecurityPolicyCommandOutput, SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError>;
57
- /**
58
- * @see {@link CreateVpcEndpointCommand}
59
- */
60
- createVpcEndpoint(args: CreateVpcEndpointCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateVpcEndpointCommandOutput, SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError>;
61
- /**
62
- * @see {@link DeleteAccessPolicyCommand}
63
- */
64
- deleteAccessPolicy(args: DeleteAccessPolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteAccessPolicyCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError>;
65
- /**
66
- * @see {@link DeleteCollectionCommand}
67
- */
68
- deleteCollection(args: DeleteCollectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteCollectionCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError>;
69
- /**
70
- * @see {@link DeleteLifecyclePolicyCommand}
71
- */
72
- deleteLifecyclePolicy(args: DeleteLifecyclePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteLifecyclePolicyCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError>;
73
- /**
74
- * @see {@link DeleteSecurityConfigCommand}
75
- */
76
- deleteSecurityConfig(args: DeleteSecurityConfigCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteSecurityConfigCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError>;
77
- /**
78
- * @see {@link DeleteSecurityPolicyCommand}
79
- */
80
- deleteSecurityPolicy(args: DeleteSecurityPolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteSecurityPolicyCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError>;
81
- /**
82
- * @see {@link DeleteVpcEndpointCommand}
83
- */
84
- deleteVpcEndpoint(args: DeleteVpcEndpointCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteVpcEndpointCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError>;
85
- /**
86
- * @see {@link GetAccessPolicyCommand}
87
- */
88
- getAccessPolicy(args: GetAccessPolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAccessPolicyCommandOutput, SdkError | InternalServerError | ResourceNotFoundError | ValidationError>;
89
- /**
90
- * @see {@link GetAccountSettingsCommand}
91
- */
92
- getAccountSettings(args: GetAccountSettingsCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAccountSettingsCommandOutput, SdkError | InternalServerError | ValidationError>;
93
- /**
94
- * @see {@link GetPoliciesStatsCommand}
95
- */
96
- getPoliciesStats(args: GetPoliciesStatsCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetPoliciesStatsCommandOutput, SdkError | InternalServerError>;
97
- /**
98
- * @see {@link GetSecurityConfigCommand}
99
- */
100
- getSecurityConfig(args: GetSecurityConfigCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetSecurityConfigCommandOutput, SdkError | InternalServerError | ResourceNotFoundError | ValidationError>;
101
- /**
102
- * @see {@link GetSecurityPolicyCommand}
103
- */
104
- getSecurityPolicy(args: GetSecurityPolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetSecurityPolicyCommandOutput, SdkError | InternalServerError | ResourceNotFoundError | ValidationError>;
105
- /**
106
- * @see {@link ListAccessPoliciesCommand}
107
- */
108
- listAccessPolicies(args: ListAccessPoliciesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListAccessPoliciesCommandOutput, SdkError | InternalServerError | ValidationError>;
109
- /**
110
- * @see {@link ListCollectionsCommand}
111
- */
112
- listCollections(args: ListCollectionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListCollectionsCommandOutput, SdkError | InternalServerError | ValidationError>;
113
- /**
114
- * @see {@link ListLifecyclePoliciesCommand}
115
- */
116
- listLifecyclePolicies(args: ListLifecyclePoliciesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListLifecyclePoliciesCommandOutput, SdkError | InternalServerError | ValidationError>;
117
- /**
118
- * @see {@link ListSecurityConfigsCommand}
119
- */
120
- listSecurityConfigs(args: ListSecurityConfigsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListSecurityConfigsCommandOutput, SdkError | InternalServerError | ValidationError>;
121
- /**
122
- * @see {@link ListSecurityPoliciesCommand}
123
- */
124
- listSecurityPolicies(args: ListSecurityPoliciesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListSecurityPoliciesCommandOutput, SdkError | InternalServerError | ValidationError>;
125
- /**
126
- * @see {@link ListTagsForResourceCommand}
127
- */
128
- listTagsForResource(args: ListTagsForResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsForResourceCommandOutput, SdkError | InternalServerError | ResourceNotFoundError | ValidationError>;
129
- /**
130
- * @see {@link ListVpcEndpointsCommand}
131
- */
132
- listVpcEndpoints(args: ListVpcEndpointsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListVpcEndpointsCommandOutput, SdkError | InternalServerError | ValidationError>;
133
- /**
134
- * @see {@link TagResourceCommand}
135
- */
136
- tagResource(args: TagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagResourceCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ValidationError>;
137
- /**
138
- * @see {@link UntagResourceCommand}
139
- */
140
- untagResource(args: UntagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagResourceCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError>;
141
- /**
142
- * @see {@link UpdateAccessPolicyCommand}
143
- */
144
- updateAccessPolicy(args: UpdateAccessPolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateAccessPolicyCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError>;
145
- /**
146
- * @see {@link UpdateAccountSettingsCommand}
147
- */
148
- updateAccountSettings(args: UpdateAccountSettingsCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateAccountSettingsCommandOutput, SdkError | InternalServerError | ValidationError>;
149
- /**
150
- * @see {@link UpdateCollectionCommand}
151
- */
152
- updateCollection(args: UpdateCollectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateCollectionCommandOutput, SdkError | ConflictError | InternalServerError | ValidationError>;
153
- /**
154
- * @see {@link UpdateLifecyclePolicyCommand}
155
- */
156
- updateLifecyclePolicy(args: UpdateLifecyclePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateLifecyclePolicyCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ValidationError>;
157
- /**
158
- * @see {@link UpdateSecurityConfigCommand}
159
- */
160
- updateSecurityConfig(args: UpdateSecurityConfigCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateSecurityConfigCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError>;
161
- /**
162
- * @see {@link UpdateSecurityPolicyCommand}
163
- */
164
- updateSecurityPolicy(args: UpdateSecurityPolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateSecurityPolicyCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ValidationError>;
165
- /**
166
- * @see {@link UpdateVpcEndpointCommand}
167
- */
168
- updateVpcEndpoint(args: UpdateVpcEndpointCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateVpcEndpointCommandOutput, SdkError | ConflictError | InternalServerError | ValidationError>;
169
- }
170
- /**
171
- * @since 1.0.0
172
- * @category constructors
173
- */
174
- export declare const makeOpenSearchServerlessService: Effect.Effect<OpenSearchServerlessService$, never, OpenSearchServerlessClientInstance>;
175
- declare const OpenSearchServerlessService_base: import("effect/Context").TagClass<OpenSearchServerlessService, "@effect-aws/client-opensearch-serverless/OpenSearchServerlessService", OpenSearchServerlessService$> & {
176
- readonly _: Effect.Effect<OpenSearchServerlessService$["_"], never, OpenSearchServerlessService>;
177
- batchGetCollection: (args: BatchGetCollectionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<BatchGetCollectionCommandOutput, InternalServerError | ValidationError | SdkError, OpenSearchServerlessService>;
178
- batchGetEffectiveLifecyclePolicy: (args: BatchGetEffectiveLifecyclePolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<BatchGetEffectiveLifecyclePolicyCommandOutput, InternalServerError | ValidationError | SdkError, OpenSearchServerlessService>;
179
- batchGetLifecyclePolicy: (args: BatchGetLifecyclePolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<BatchGetLifecyclePolicyCommandOutput, InternalServerError | ValidationError | SdkError, OpenSearchServerlessService>;
180
- batchGetVpcEndpoint: (args: BatchGetVpcEndpointCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<BatchGetVpcEndpointCommandOutput, InternalServerError | ValidationError | SdkError, OpenSearchServerlessService>;
181
- createAccessPolicy: (args: CreateAccessPolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateAccessPolicyCommandOutput, ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError | SdkError, OpenSearchServerlessService>;
182
- createCollection: (args: CreateCollectionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateCollectionCommandOutput, ConflictError | InternalServerError | OcuLimitExceededError | ServiceQuotaExceededError | ValidationError | SdkError, OpenSearchServerlessService>;
183
- createLifecyclePolicy: (args: CreateLifecyclePolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateLifecyclePolicyCommandOutput, ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError | SdkError, OpenSearchServerlessService>;
184
- createSecurityConfig: (args: CreateSecurityConfigCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateSecurityConfigCommandOutput, ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError | SdkError, OpenSearchServerlessService>;
185
- createSecurityPolicy: (args: CreateSecurityPolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateSecurityPolicyCommandOutput, ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError | SdkError, OpenSearchServerlessService>;
186
- createVpcEndpoint: (args: CreateVpcEndpointCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateVpcEndpointCommandOutput, ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError | SdkError, OpenSearchServerlessService>;
187
- deleteAccessPolicy: (args: DeleteAccessPolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteAccessPolicyCommandOutput, ConflictError | InternalServerError | ResourceNotFoundError | ValidationError | SdkError, OpenSearchServerlessService>;
188
- deleteCollection: (args: DeleteCollectionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteCollectionCommandOutput, ConflictError | InternalServerError | ResourceNotFoundError | ValidationError | SdkError, OpenSearchServerlessService>;
189
- deleteLifecyclePolicy: (args: DeleteLifecyclePolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteLifecyclePolicyCommandOutput, ConflictError | InternalServerError | ResourceNotFoundError | ValidationError | SdkError, OpenSearchServerlessService>;
190
- deleteSecurityConfig: (args: DeleteSecurityConfigCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteSecurityConfigCommandOutput, ConflictError | InternalServerError | ResourceNotFoundError | ValidationError | SdkError, OpenSearchServerlessService>;
191
- deleteSecurityPolicy: (args: DeleteSecurityPolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteSecurityPolicyCommandOutput, ConflictError | InternalServerError | ResourceNotFoundError | ValidationError | SdkError, OpenSearchServerlessService>;
192
- deleteVpcEndpoint: (args: DeleteVpcEndpointCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteVpcEndpointCommandOutput, ConflictError | InternalServerError | ResourceNotFoundError | ValidationError | SdkError, OpenSearchServerlessService>;
193
- getAccessPolicy: (args: GetAccessPolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetAccessPolicyCommandOutput, InternalServerError | ResourceNotFoundError | ValidationError | SdkError, OpenSearchServerlessService>;
194
- getAccountSettings: (args: GetAccountSettingsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetAccountSettingsCommandOutput, InternalServerError | ValidationError | SdkError, OpenSearchServerlessService>;
195
- getPoliciesStats: (args: GetPoliciesStatsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetPoliciesStatsCommandOutput, InternalServerError | SdkError, OpenSearchServerlessService>;
196
- getSecurityConfig: (args: GetSecurityConfigCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetSecurityConfigCommandOutput, InternalServerError | ResourceNotFoundError | ValidationError | SdkError, OpenSearchServerlessService>;
197
- getSecurityPolicy: (args: GetSecurityPolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetSecurityPolicyCommandOutput, InternalServerError | ResourceNotFoundError | ValidationError | SdkError, OpenSearchServerlessService>;
198
- listAccessPolicies: (args: ListAccessPoliciesCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListAccessPoliciesCommandOutput, InternalServerError | ValidationError | SdkError, OpenSearchServerlessService>;
199
- listCollections: (args: ListCollectionsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListCollectionsCommandOutput, InternalServerError | ValidationError | SdkError, OpenSearchServerlessService>;
200
- listLifecyclePolicies: (args: ListLifecyclePoliciesCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListLifecyclePoliciesCommandOutput, InternalServerError | ValidationError | SdkError, OpenSearchServerlessService>;
201
- listSecurityConfigs: (args: ListSecurityConfigsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListSecurityConfigsCommandOutput, InternalServerError | ValidationError | SdkError, OpenSearchServerlessService>;
202
- listSecurityPolicies: (args: ListSecurityPoliciesCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListSecurityPoliciesCommandOutput, InternalServerError | ValidationError | SdkError, OpenSearchServerlessService>;
203
- listTagsForResource: (args: ListTagsForResourceCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListTagsForResourceCommandOutput, InternalServerError | ResourceNotFoundError | ValidationError | SdkError, OpenSearchServerlessService>;
204
- listVpcEndpoints: (args: ListVpcEndpointsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListVpcEndpointsCommandOutput, InternalServerError | ValidationError | SdkError, OpenSearchServerlessService>;
205
- tagResource: (args: TagResourceCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<TagResourceCommandOutput, ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ValidationError | SdkError, OpenSearchServerlessService>;
206
- untagResource: (args: UntagResourceCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UntagResourceCommandOutput, ConflictError | InternalServerError | ResourceNotFoundError | ValidationError | SdkError, OpenSearchServerlessService>;
207
- updateAccessPolicy: (args: UpdateAccessPolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateAccessPolicyCommandOutput, ConflictError | InternalServerError | ResourceNotFoundError | ValidationError | SdkError, OpenSearchServerlessService>;
208
- updateAccountSettings: (args: UpdateAccountSettingsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateAccountSettingsCommandOutput, InternalServerError | ValidationError | SdkError, OpenSearchServerlessService>;
209
- updateCollection: (args: UpdateCollectionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateCollectionCommandOutput, ConflictError | InternalServerError | ValidationError | SdkError, OpenSearchServerlessService>;
210
- updateLifecyclePolicy: (args: UpdateLifecyclePolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateLifecyclePolicyCommandOutput, ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ValidationError | SdkError, OpenSearchServerlessService>;
211
- updateSecurityConfig: (args: UpdateSecurityConfigCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateSecurityConfigCommandOutput, ConflictError | InternalServerError | ResourceNotFoundError | ValidationError | SdkError, OpenSearchServerlessService>;
212
- updateSecurityPolicy: (args: UpdateSecurityPolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateSecurityPolicyCommandOutput, ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ValidationError | SdkError, OpenSearchServerlessService>;
213
- updateVpcEndpoint: (args: UpdateVpcEndpointCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateVpcEndpointCommandOutput, ConflictError | InternalServerError | ValidationError | SdkError, OpenSearchServerlessService>;
214
- } & {
215
- use: <X>(body: (_: OpenSearchServerlessService$) => X) => X extends Effect.Effect<infer A, infer E, infer R> ? Effect.Effect<A, E, R | OpenSearchServerlessService> : Effect.Effect<X, never, OpenSearchServerlessService>;
216
- };
217
- /**
218
- * @since 1.0.0
219
- * @category models
220
- */
221
- export declare class OpenSearchServerlessService extends OpenSearchServerlessService_base {
222
- static readonly defaultLayer: Layer.Layer<OpenSearchServerlessService, never, never>;
223
- static readonly layer: (config: OpenSearchServerlessClientConfig) => Layer.Layer<OpenSearchServerlessService, never, never>;
224
- static readonly baseLayer: (evaluate: (defaultConfig: OpenSearchServerlessClientConfig) => OpenSearchServerlessClient) => Layer.Layer<OpenSearchServerlessService, never, never>;
225
- }
226
- /**
227
- * @since 1.0.0
228
- * @category models
229
- * @alias OpenSearchServerlessService
230
- */
231
- export declare const OpenSearchServerless: typeof OpenSearchServerlessService;
232
- /**
233
- * @since 1.0.0
234
- * @category layers
235
- * @deprecated use OpenSearchServerless.baseLayer instead
236
- */
237
- export declare const BaseOpenSearchServerlessServiceLayer: Layer.Layer<OpenSearchServerlessService, never, OpenSearchServerlessClientInstance>;
238
- /**
239
- * @since 1.0.0
240
- * @category layers
241
- * @deprecated use OpenSearchServerless.layer instead
242
- */
243
- export declare const OpenSearchServerlessServiceLayer: Layer.Layer<OpenSearchServerlessService, never, OpenSearchServerlessClientInstanceConfig>;
244
- /**
245
- * @since 1.0.0
246
- * @category layers
247
- * @deprecated use OpenSearchServerless.defaultLayer instead
248
- */
249
- export declare const DefaultOpenSearchServerlessServiceLayer: Layer.Layer<OpenSearchServerlessService, never, never>;
250
- export {};