@effect-aws/client-opensearch-serverless 1.10.9 → 2.0.0-beta.1

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 (38) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +3 -3
  3. package/dist/dts/OpenSearchServerlessClientInstance.d.ts +4 -2
  4. package/dist/dts/OpenSearchServerlessClientInstance.d.ts.map +1 -1
  5. package/dist/dts/OpenSearchServerlessService.d.ts +67 -47
  6. package/dist/dts/OpenSearchServerlessService.d.ts.map +1 -1
  7. package/dist/dts/OpenSearchServerlessServiceConfig.d.ts +2 -1
  8. package/dist/dts/OpenSearchServerlessServiceConfig.d.ts.map +1 -1
  9. package/dist/esm/OpenSearchServerlessClientInstance.js +5 -3
  10. package/dist/esm/OpenSearchServerlessClientInstance.js.map +1 -1
  11. package/dist/esm/OpenSearchServerlessService.js +10 -3
  12. package/dist/esm/OpenSearchServerlessService.js.map +1 -1
  13. package/dist/esm/OpenSearchServerlessServiceConfig.js +7 -6
  14. package/dist/esm/OpenSearchServerlessServiceConfig.js.map +1 -1
  15. package/package.json +8 -14
  16. package/src/OpenSearchServerlessClientInstance.ts +9 -5
  17. package/src/OpenSearchServerlessService.ts +124 -74
  18. package/src/OpenSearchServerlessServiceConfig.ts +8 -7
  19. package/dist/cjs/Errors.d.ts +0 -13
  20. package/dist/cjs/Errors.d.ts.map +0 -1
  21. package/dist/cjs/Errors.js +0 -12
  22. package/dist/cjs/Errors.js.map +0 -1
  23. package/dist/cjs/OpenSearchServerlessClientInstance.d.ts +0 -24
  24. package/dist/cjs/OpenSearchServerlessClientInstance.d.ts.map +0 -1
  25. package/dist/cjs/OpenSearchServerlessClientInstance.js +0 -50
  26. package/dist/cjs/OpenSearchServerlessClientInstance.js.map +0 -1
  27. package/dist/cjs/OpenSearchServerlessService.d.ts +0 -210
  28. package/dist/cjs/OpenSearchServerlessService.d.ts.map +0 -1
  29. package/dist/cjs/OpenSearchServerlessService.js +0 -100
  30. package/dist/cjs/OpenSearchServerlessService.js.map +0 -1
  31. package/dist/cjs/OpenSearchServerlessServiceConfig.d.ts +0 -25
  32. package/dist/cjs/OpenSearchServerlessServiceConfig.d.ts.map +0 -1
  33. package/dist/cjs/OpenSearchServerlessServiceConfig.js +0 -35
  34. package/dist/cjs/OpenSearchServerlessServiceConfig.js.map +0 -1
  35. package/dist/cjs/index.d.ts +0 -44
  36. package/dist/cjs/index.d.ts.map +0 -1
  37. package/dist/cjs/index.js +0 -56
  38. package/dist/cjs/index.js.map +0 -1
@@ -3,18 +3,19 @@
3
3
  */
4
4
  import type { OpenSearchServerlessClientConfig } from "@aws-sdk/client-opensearchserverless";
5
5
  import { ServiceLogger } from "@effect-aws/commons";
6
- import { Effect, FiberRef, Layer } from "effect";
6
+ import * as Effect from "effect/Effect";
7
7
  import { dual } from "effect/Function";
8
- import { globalValue } from "effect/GlobalValue";
8
+ import * as Layer from "effect/Layer";
9
+ import * as ServiceMap from "effect/ServiceMap";
9
10
  import type { OpenSearchServerlessService } from "./OpenSearchServerlessService.js";
10
11
 
11
12
  /**
12
13
  * @since 1.0.0
13
14
  * @category opensearch-serverless service config
14
15
  */
15
- const currentOpenSearchServerlessServiceConfig = globalValue(
16
+ const currentOpenSearchServerlessServiceConfig = ServiceMap.Reference<OpenSearchServerlessService.Config>(
16
17
  "@effect-aws/client-opensearch-serverless/currentOpenSearchServerlessServiceConfig",
17
- () => FiberRef.unsafeMake<OpenSearchServerlessService.Config>({}),
18
+ { defaultValue: () => ({}) },
18
19
  );
19
20
 
20
21
  /**
@@ -27,7 +28,7 @@ export const withOpenSearchServerlessServiceConfig: {
27
28
  } = dual(
28
29
  2,
29
30
  <A, E, R>(effect: Effect.Effect<A, E, R>, config: OpenSearchServerlessService.Config): Effect.Effect<A, E, R> =>
30
- Effect.locally(effect, currentOpenSearchServerlessServiceConfig, config),
31
+ Effect.provideService(effect, currentOpenSearchServerlessServiceConfig, config),
31
32
  );
32
33
 
33
34
  /**
@@ -35,7 +36,7 @@ export const withOpenSearchServerlessServiceConfig: {
35
36
  * @category opensearch-serverless service config
36
37
  */
37
38
  export const setOpenSearchServerlessServiceConfig = (config: OpenSearchServerlessService.Config) =>
38
- Layer.locallyScoped(currentOpenSearchServerlessServiceConfig, config);
39
+ Layer.succeed(currentOpenSearchServerlessServiceConfig, config);
39
40
 
40
41
  /**
41
42
  * @since 1.0.0
@@ -43,7 +44,7 @@ export const setOpenSearchServerlessServiceConfig = (config: OpenSearchServerles
43
44
  */
44
45
  export const toOpenSearchServerlessClientConfig: Effect.Effect<OpenSearchServerlessClientConfig> = Effect.gen(
45
46
  function*() {
46
- const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentOpenSearchServerlessServiceConfig);
47
+ const { logger: serviceLogger, ...config } = yield* currentOpenSearchServerlessServiceConfig;
47
48
 
48
49
  const logger = serviceLogger === true
49
50
  ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
@@ -1,13 +0,0 @@
1
- import type { ConflictException, InternalServerException, OcuLimitExceededException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException } from "@aws-sdk/client-opensearchserverless";
2
- import type { TaggedException } from "@effect-aws/commons";
3
- export declare const AllServiceErrors: readonly ["ConflictException", "InternalServerException", "OcuLimitExceededException", "ResourceNotFoundException", "ServiceQuotaExceededException", "ValidationException"];
4
- export type ConflictError = TaggedException<ConflictException>;
5
- export type InternalServerError = TaggedException<InternalServerException>;
6
- export type OcuLimitExceededError = TaggedException<OcuLimitExceededException>;
7
- export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
8
- export type ServiceQuotaExceededError = TaggedException<ServiceQuotaExceededException>;
9
- export type ValidationError = TaggedException<ValidationException>;
10
- export type SdkError = TaggedException<Error & {
11
- name: "SdkError";
12
- }>;
13
- //# sourceMappingURL=Errors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,uBAAuB,EACvB,yBAAyB,EACzB,yBAAyB,EACzB,6BAA6B,EAC7B,mBAAmB,EACpB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,eAAO,MAAM,gBAAgB,6KAOnB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAC/D,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC;AAC3E,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,yBAAyB,GAAG,eAAe,CAAC,6BAA6B,CAAC,CAAC;AACvF,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AllServiceErrors = void 0;
4
- exports.AllServiceErrors = [
5
- "ConflictException",
6
- "InternalServerException",
7
- "OcuLimitExceededException",
8
- "ResourceNotFoundException",
9
- "ServiceQuotaExceededException",
10
- "ValidationException",
11
- ];
12
- //# sourceMappingURL=Errors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAUa,QAAA,gBAAgB,GAAG;IAC9B,mBAAmB;IACnB,yBAAyB;IACzB,2BAA2B;IAC3B,2BAA2B;IAC3B,+BAA+B;IAC/B,qBAAqB;CACb,CAAC"}
@@ -1,24 +0,0 @@
1
- /**
2
- * @since 1.0.0
3
- */
4
- import { OpenSearchServerlessClient } from "@aws-sdk/client-opensearchserverless";
5
- import { Context, Effect, Layer } from "effect";
6
- declare const OpenSearchServerlessClientInstance_base: Context.TagClass<OpenSearchServerlessClientInstance, "@effect-aws/client-opensearch-serverless/OpenSearchServerlessClientInstance", OpenSearchServerlessClient>;
7
- /**
8
- * @since 1.0.0
9
- * @category tags
10
- */
11
- export declare class OpenSearchServerlessClientInstance extends OpenSearchServerlessClientInstance_base {
12
- }
13
- /**
14
- * @since 1.0.0
15
- * @category constructors
16
- */
17
- export declare const make: Effect.Effect<OpenSearchServerlessClient, never, import("effect/Scope").Scope>;
18
- /**
19
- * @since 1.0.0
20
- * @category layers
21
- */
22
- export declare const layer: Layer.Layer<OpenSearchServerlessClientInstance, never, never>;
23
- export {};
24
- //# sourceMappingURL=OpenSearchServerlessClientInstance.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OpenSearchServerlessClientInstance.d.ts","sourceRoot":"","sources":["../../src/OpenSearchServerlessClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,kCAAmC,SAAQ,uCAEW;CAAG;AAEtE;;;GAGG;AACH,eAAO,MAAM,IAAI,gFAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,+DAAyD,CAAC"}
@@ -1,50 +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.layer = exports.make = exports.OpenSearchServerlessClientInstance = void 0;
27
- /**
28
- * @since 1.0.0
29
- */
30
- const client_opensearchserverless_1 = require("@aws-sdk/client-opensearchserverless");
31
- const effect_1 = require("effect");
32
- const OpenSearchServerlessServiceConfig = __importStar(require("./OpenSearchServerlessServiceConfig.js"));
33
- /**
34
- * @since 1.0.0
35
- * @category tags
36
- */
37
- class OpenSearchServerlessClientInstance extends effect_1.Context.Tag("@effect-aws/client-opensearch-serverless/OpenSearchServerlessClientInstance")() {
38
- }
39
- exports.OpenSearchServerlessClientInstance = OpenSearchServerlessClientInstance;
40
- /**
41
- * @since 1.0.0
42
- * @category constructors
43
- */
44
- exports.make = effect_1.Effect.flatMap(OpenSearchServerlessServiceConfig.toOpenSearchServerlessClientConfig, (config) => effect_1.Effect.acquireRelease(effect_1.Effect.sync(() => new client_opensearchserverless_1.OpenSearchServerlessClient(config)), (client) => effect_1.Effect.sync(() => client.destroy())));
45
- /**
46
- * @since 1.0.0
47
- * @category layers
48
- */
49
- exports.layer = effect_1.Layer.scoped(OpenSearchServerlessClientInstance, exports.make);
50
- //# sourceMappingURL=OpenSearchServerlessClientInstance.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OpenSearchServerlessClientInstance.js","sourceRoot":"","sources":["../../src/OpenSearchServerlessClientInstance.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,sFAAkF;AAClF,mCAAgD;AAChD,0GAA4F;AAE5F;;;GAGG;AACH,MAAa,kCAAmC,SAAQ,gBAAO,CAAC,GAAG,CACjE,6EAA6E,CAC9E,EAAkE;CAAG;AAFtE,gFAEsE;AAEtE;;;GAGG;AACU,QAAA,IAAI,GAAG,eAAM,CAAC,OAAO,CAChC,iCAAiC,CAAC,kCAAkC,EACpE,CAAC,MAAM,EAAE,EAAE,CACT,eAAM,CAAC,cAAc,CACnB,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,wDAA0B,CAAC,MAAM,CAAC,CAAC,EACzD,CAAC,MAAM,EAAE,EAAE,CAAC,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAChD,CACJ,CAAC;AAEF;;;GAGG;AACU,QAAA,KAAK,GAAG,cAAK,CAAC,MAAM,CAAC,kCAAkC,EAAE,YAAI,CAAC,CAAC"}
@@ -1,210 +0,0 @@
1
- /**
2
- * @since 1.0.0
3
- */
4
- import { 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 CreateIndexCommandInput, type CreateIndexCommandOutput, 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 DeleteIndexCommandInput, type DeleteIndexCommandOutput, 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 GetIndexCommandInput, type GetIndexCommandOutput, 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 OpenSearchServerlessClient, type OpenSearchServerlessClientConfig, type TagResourceCommandInput, type TagResourceCommandOutput, type UntagResourceCommandInput, type UntagResourceCommandOutput, type UpdateAccessPolicyCommandInput, type UpdateAccessPolicyCommandOutput, type UpdateAccountSettingsCommandInput, type UpdateAccountSettingsCommandOutput, type UpdateCollectionCommandInput, type UpdateCollectionCommandOutput, type UpdateIndexCommandInput, type UpdateIndexCommandOutput, type UpdateLifecyclePolicyCommandInput, type UpdateLifecyclePolicyCommandOutput, type UpdateSecurityConfigCommandInput, type UpdateSecurityConfigCommandOutput, type UpdateSecurityPolicyCommandInput, type UpdateSecurityPolicyCommandOutput, type UpdateVpcEndpointCommandInput, type UpdateVpcEndpointCommandOutput } from "@aws-sdk/client-opensearchserverless";
5
- import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
6
- import type { Cause } from "effect";
7
- import { Effect, Layer } from "effect";
8
- import type { ConflictError, InternalServerError, OcuLimitExceededError, ResourceNotFoundError, SdkError, ServiceQuotaExceededError, ValidationError } from "./Errors.js";
9
- import * as Instance from "./OpenSearchServerlessClientInstance.js";
10
- interface OpenSearchServerlessService$ {
11
- readonly _: unique symbol;
12
- /**
13
- * @see {@link BatchGetCollectionCommand}
14
- */
15
- batchGetCollection(args: BatchGetCollectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<BatchGetCollectionCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ValidationError>;
16
- /**
17
- * @see {@link BatchGetEffectiveLifecyclePolicyCommand}
18
- */
19
- batchGetEffectiveLifecyclePolicy(args: BatchGetEffectiveLifecyclePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<BatchGetEffectiveLifecyclePolicyCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ValidationError>;
20
- /**
21
- * @see {@link BatchGetLifecyclePolicyCommand}
22
- */
23
- batchGetLifecyclePolicy(args: BatchGetLifecyclePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<BatchGetLifecyclePolicyCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ValidationError>;
24
- /**
25
- * @see {@link BatchGetVpcEndpointCommand}
26
- */
27
- batchGetVpcEndpoint(args: BatchGetVpcEndpointCommandInput, options?: HttpHandlerOptions): Effect.Effect<BatchGetVpcEndpointCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ValidationError>;
28
- /**
29
- * @see {@link CreateAccessPolicyCommand}
30
- */
31
- createAccessPolicy(args: CreateAccessPolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateAccessPolicyCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError>;
32
- /**
33
- * @see {@link CreateCollectionCommand}
34
- */
35
- createCollection(args: CreateCollectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateCollectionCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | OcuLimitExceededError | ServiceQuotaExceededError | ValidationError>;
36
- /**
37
- * @see {@link CreateIndexCommand}
38
- */
39
- createIndex(args: CreateIndexCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateIndexCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError>;
40
- /**
41
- * @see {@link CreateLifecyclePolicyCommand}
42
- */
43
- createLifecyclePolicy(args: CreateLifecyclePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateLifecyclePolicyCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError>;
44
- /**
45
- * @see {@link CreateSecurityConfigCommand}
46
- */
47
- createSecurityConfig(args: CreateSecurityConfigCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateSecurityConfigCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError>;
48
- /**
49
- * @see {@link CreateSecurityPolicyCommand}
50
- */
51
- createSecurityPolicy(args: CreateSecurityPolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateSecurityPolicyCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError>;
52
- /**
53
- * @see {@link CreateVpcEndpointCommand}
54
- */
55
- createVpcEndpoint(args: CreateVpcEndpointCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateVpcEndpointCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError>;
56
- /**
57
- * @see {@link DeleteAccessPolicyCommand}
58
- */
59
- deleteAccessPolicy(args: DeleteAccessPolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteAccessPolicyCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError>;
60
- /**
61
- * @see {@link DeleteCollectionCommand}
62
- */
63
- deleteCollection(args: DeleteCollectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteCollectionCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError>;
64
- /**
65
- * @see {@link DeleteIndexCommand}
66
- */
67
- deleteIndex(args: DeleteIndexCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteIndexCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ValidationError>;
68
- /**
69
- * @see {@link DeleteLifecyclePolicyCommand}
70
- */
71
- deleteLifecyclePolicy(args: DeleteLifecyclePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteLifecyclePolicyCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError>;
72
- /**
73
- * @see {@link DeleteSecurityConfigCommand}
74
- */
75
- deleteSecurityConfig(args: DeleteSecurityConfigCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteSecurityConfigCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError>;
76
- /**
77
- * @see {@link DeleteSecurityPolicyCommand}
78
- */
79
- deleteSecurityPolicy(args: DeleteSecurityPolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteSecurityPolicyCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError>;
80
- /**
81
- * @see {@link DeleteVpcEndpointCommand}
82
- */
83
- deleteVpcEndpoint(args: DeleteVpcEndpointCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteVpcEndpointCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError>;
84
- /**
85
- * @see {@link GetAccessPolicyCommand}
86
- */
87
- getAccessPolicy(args: GetAccessPolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAccessPolicyCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ValidationError>;
88
- /**
89
- * @see {@link GetAccountSettingsCommand}
90
- */
91
- getAccountSettings(args: GetAccountSettingsCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAccountSettingsCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ValidationError>;
92
- /**
93
- * @see {@link GetIndexCommand}
94
- */
95
- getIndex(args: GetIndexCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetIndexCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ValidationError>;
96
- /**
97
- * @see {@link GetPoliciesStatsCommand}
98
- */
99
- getPoliciesStats(args: GetPoliciesStatsCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetPoliciesStatsCommandOutput, Cause.TimeoutException | SdkError | InternalServerError>;
100
- /**
101
- * @see {@link GetSecurityConfigCommand}
102
- */
103
- getSecurityConfig(args: GetSecurityConfigCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetSecurityConfigCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ValidationError>;
104
- /**
105
- * @see {@link GetSecurityPolicyCommand}
106
- */
107
- getSecurityPolicy(args: GetSecurityPolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetSecurityPolicyCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ValidationError>;
108
- /**
109
- * @see {@link ListAccessPoliciesCommand}
110
- */
111
- listAccessPolicies(args: ListAccessPoliciesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListAccessPoliciesCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ValidationError>;
112
- /**
113
- * @see {@link ListCollectionsCommand}
114
- */
115
- listCollections(args: ListCollectionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListCollectionsCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ValidationError>;
116
- /**
117
- * @see {@link ListLifecyclePoliciesCommand}
118
- */
119
- listLifecyclePolicies(args: ListLifecyclePoliciesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListLifecyclePoliciesCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ValidationError>;
120
- /**
121
- * @see {@link ListSecurityConfigsCommand}
122
- */
123
- listSecurityConfigs(args: ListSecurityConfigsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListSecurityConfigsCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ValidationError>;
124
- /**
125
- * @see {@link ListSecurityPoliciesCommand}
126
- */
127
- listSecurityPolicies(args: ListSecurityPoliciesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListSecurityPoliciesCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ValidationError>;
128
- /**
129
- * @see {@link ListTagsForResourceCommand}
130
- */
131
- listTagsForResource(args: ListTagsForResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsForResourceCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ValidationError>;
132
- /**
133
- * @see {@link ListVpcEndpointsCommand}
134
- */
135
- listVpcEndpoints(args: ListVpcEndpointsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListVpcEndpointsCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ValidationError>;
136
- /**
137
- * @see {@link TagResourceCommand}
138
- */
139
- tagResource(args: TagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagResourceCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ValidationError>;
140
- /**
141
- * @see {@link UntagResourceCommand}
142
- */
143
- untagResource(args: UntagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagResourceCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError>;
144
- /**
145
- * @see {@link UpdateAccessPolicyCommand}
146
- */
147
- updateAccessPolicy(args: UpdateAccessPolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateAccessPolicyCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError>;
148
- /**
149
- * @see {@link UpdateAccountSettingsCommand}
150
- */
151
- updateAccountSettings(args: UpdateAccountSettingsCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateAccountSettingsCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ServiceQuotaExceededError | ValidationError>;
152
- /**
153
- * @see {@link UpdateCollectionCommand}
154
- */
155
- updateCollection(args: UpdateCollectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateCollectionCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ValidationError>;
156
- /**
157
- * @see {@link UpdateIndexCommand}
158
- */
159
- updateIndex(args: UpdateIndexCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateIndexCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ValidationError>;
160
- /**
161
- * @see {@link UpdateLifecyclePolicyCommand}
162
- */
163
- updateLifecyclePolicy(args: UpdateLifecyclePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateLifecyclePolicyCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ValidationError>;
164
- /**
165
- * @see {@link UpdateSecurityConfigCommand}
166
- */
167
- updateSecurityConfig(args: UpdateSecurityConfigCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateSecurityConfigCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError>;
168
- /**
169
- * @see {@link UpdateSecurityPolicyCommand}
170
- */
171
- updateSecurityPolicy(args: UpdateSecurityPolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateSecurityPolicyCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ValidationError>;
172
- /**
173
- * @see {@link UpdateVpcEndpointCommand}
174
- */
175
- updateVpcEndpoint(args: UpdateVpcEndpointCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateVpcEndpointCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ValidationError>;
176
- }
177
- /**
178
- * @since 1.0.0
179
- * @category constructors
180
- */
181
- export declare const makeOpenSearchServerlessService: Effect.Effect<OpenSearchServerlessService$, never, Instance.OpenSearchServerlessClientInstance>;
182
- declare const OpenSearchServerlessService_base: import("effect/Context").TagClass<OpenSearchServerlessService, "@effect-aws/client-opensearch-serverless/OpenSearchServerlessService", OpenSearchServerlessService$> & Effect.Tag.Proxy<OpenSearchServerlessService, OpenSearchServerlessService$> & {
183
- use: <X>(body: (_: OpenSearchServerlessService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, OpenSearchServerlessService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, Cause.UnknownException, OpenSearchServerlessService> : Effect.Effect<X, never, OpenSearchServerlessService>;
184
- };
185
- /**
186
- * @since 1.0.0
187
- * @category models
188
- */
189
- export declare class OpenSearchServerlessService extends OpenSearchServerlessService_base {
190
- static readonly defaultLayer: Layer.Layer<OpenSearchServerlessService, never, never>;
191
- static readonly layer: (config: OpenSearchServerlessService.Config) => Layer.Layer<OpenSearchServerlessService, never, never>;
192
- static readonly baseLayer: (evaluate: (defaultConfig: OpenSearchServerlessClientConfig) => OpenSearchServerlessClient) => Layer.Layer<OpenSearchServerlessService, never, never>;
193
- }
194
- /**
195
- * @since 1.0.0
196
- */
197
- export declare namespace OpenSearchServerlessService {
198
- /**
199
- * @since 1.0.0
200
- */
201
- interface Config extends Omit<OpenSearchServerlessClientConfig, "logger"> {
202
- readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
203
- }
204
- /**
205
- * @since 1.0.0
206
- */
207
- type Type = OpenSearchServerlessService$;
208
- }
209
- export {};
210
- //# sourceMappingURL=OpenSearchServerlessService.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OpenSearchServerlessService.d.ts","sourceRoot":"","sources":["../../src/OpenSearchServerlessService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,4CAA4C,EACjD,KAAK,6CAA6C,EAElD,KAAK,mCAAmC,EACxC,KAAK,oCAAoC,EAEzC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAElC,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EAEvC,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EAEtC,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EAEtC,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EAEnC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAElC,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EAEvC,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EAEtC,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EAEtC,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EAEnC,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EAEjC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAE1B,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAElC,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EAEnC,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EAEnC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EAEjC,KAAK,iCAAiC,EACtC,KAAK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AC;IAEF;;OAEG;IACH,iBAAiB,CACf,IAAI,EAAE,6BAA6B,EACnC,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,8BAA8B,EAC9B,KAAK,CAAC,gBAAgB,GAAG,QAAQ,GAAG,aAAa,GAAG,mBAAmB,GAAG,eAAe,CAC1F,CAAC;CACH;AAED;;;GAGG;AACH,eAAO,MAAM,+BAA+B,iGAW1C,CAAC;;;;AAEH;;;GAGG;AACH,qBAAa,2BACX,SAAQ,gCAGL;IAEH,MAAM,CAAC,QAAQ,CAAC,YAAY,yDAE1B;IACF,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAY,4BAA4B,MAAM,4DAI/D;IACJ,MAAM,CAAC,QAAQ,CAAC,SAAS,aACb,CAAC,aAAa,EAAE,gCAAgC,KAAK,0BAA0B,4DASvF;CACL;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,2BAA2B,CAAC;IACnD;;OAEG;IACH,UAAiB,MAAO,SAAQ,IAAI,CAAC,gCAAgC,EAAE,QAAQ,CAAC;QAC9E,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;IAED;;OAEG;IACH,KAAY,IAAI,GAAG,4BAA4B,CAAC;CACjD"}
@@ -1,100 +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.OpenSearchServerlessService = exports.makeOpenSearchServerlessService = void 0;
27
- /**
28
- * @since 1.0.0
29
- */
30
- const client_opensearchserverless_1 = require("@aws-sdk/client-opensearchserverless");
31
- const commons_1 = require("@effect-aws/commons");
32
- const effect_1 = require("effect");
33
- const Errors_js_1 = require("./Errors.js");
34
- const Instance = __importStar(require("./OpenSearchServerlessClientInstance.js"));
35
- const OpenSearchServerlessServiceConfig = __importStar(require("./OpenSearchServerlessServiceConfig.js"));
36
- const commands = {
37
- BatchGetCollectionCommand: client_opensearchserverless_1.BatchGetCollectionCommand,
38
- BatchGetEffectiveLifecyclePolicyCommand: client_opensearchserverless_1.BatchGetEffectiveLifecyclePolicyCommand,
39
- BatchGetLifecyclePolicyCommand: client_opensearchserverless_1.BatchGetLifecyclePolicyCommand,
40
- BatchGetVpcEndpointCommand: client_opensearchserverless_1.BatchGetVpcEndpointCommand,
41
- CreateAccessPolicyCommand: client_opensearchserverless_1.CreateAccessPolicyCommand,
42
- CreateCollectionCommand: client_opensearchserverless_1.CreateCollectionCommand,
43
- CreateIndexCommand: client_opensearchserverless_1.CreateIndexCommand,
44
- CreateLifecyclePolicyCommand: client_opensearchserverless_1.CreateLifecyclePolicyCommand,
45
- CreateSecurityConfigCommand: client_opensearchserverless_1.CreateSecurityConfigCommand,
46
- CreateSecurityPolicyCommand: client_opensearchserverless_1.CreateSecurityPolicyCommand,
47
- CreateVpcEndpointCommand: client_opensearchserverless_1.CreateVpcEndpointCommand,
48
- DeleteAccessPolicyCommand: client_opensearchserverless_1.DeleteAccessPolicyCommand,
49
- DeleteCollectionCommand: client_opensearchserverless_1.DeleteCollectionCommand,
50
- DeleteIndexCommand: client_opensearchserverless_1.DeleteIndexCommand,
51
- DeleteLifecyclePolicyCommand: client_opensearchserverless_1.DeleteLifecyclePolicyCommand,
52
- DeleteSecurityConfigCommand: client_opensearchserverless_1.DeleteSecurityConfigCommand,
53
- DeleteSecurityPolicyCommand: client_opensearchserverless_1.DeleteSecurityPolicyCommand,
54
- DeleteVpcEndpointCommand: client_opensearchserverless_1.DeleteVpcEndpointCommand,
55
- GetAccessPolicyCommand: client_opensearchserverless_1.GetAccessPolicyCommand,
56
- GetAccountSettingsCommand: client_opensearchserverless_1.GetAccountSettingsCommand,
57
- GetIndexCommand: client_opensearchserverless_1.GetIndexCommand,
58
- GetPoliciesStatsCommand: client_opensearchserverless_1.GetPoliciesStatsCommand,
59
- GetSecurityConfigCommand: client_opensearchserverless_1.GetSecurityConfigCommand,
60
- GetSecurityPolicyCommand: client_opensearchserverless_1.GetSecurityPolicyCommand,
61
- ListAccessPoliciesCommand: client_opensearchserverless_1.ListAccessPoliciesCommand,
62
- ListCollectionsCommand: client_opensearchserverless_1.ListCollectionsCommand,
63
- ListLifecyclePoliciesCommand: client_opensearchserverless_1.ListLifecyclePoliciesCommand,
64
- ListSecurityConfigsCommand: client_opensearchserverless_1.ListSecurityConfigsCommand,
65
- ListSecurityPoliciesCommand: client_opensearchserverless_1.ListSecurityPoliciesCommand,
66
- ListTagsForResourceCommand: client_opensearchserverless_1.ListTagsForResourceCommand,
67
- ListVpcEndpointsCommand: client_opensearchserverless_1.ListVpcEndpointsCommand,
68
- TagResourceCommand: client_opensearchserverless_1.TagResourceCommand,
69
- UntagResourceCommand: client_opensearchserverless_1.UntagResourceCommand,
70
- UpdateAccessPolicyCommand: client_opensearchserverless_1.UpdateAccessPolicyCommand,
71
- UpdateAccountSettingsCommand: client_opensearchserverless_1.UpdateAccountSettingsCommand,
72
- UpdateCollectionCommand: client_opensearchserverless_1.UpdateCollectionCommand,
73
- UpdateIndexCommand: client_opensearchserverless_1.UpdateIndexCommand,
74
- UpdateLifecyclePolicyCommand: client_opensearchserverless_1.UpdateLifecyclePolicyCommand,
75
- UpdateSecurityConfigCommand: client_opensearchserverless_1.UpdateSecurityConfigCommand,
76
- UpdateSecurityPolicyCommand: client_opensearchserverless_1.UpdateSecurityPolicyCommand,
77
- UpdateVpcEndpointCommand: client_opensearchserverless_1.UpdateVpcEndpointCommand,
78
- };
79
- /**
80
- * @since 1.0.0
81
- * @category constructors
82
- */
83
- exports.makeOpenSearchServerlessService = effect_1.Effect.gen(function* () {
84
- const client = yield* Instance.OpenSearchServerlessClientInstance;
85
- return yield* commons_1.Service.fromClientAndCommands(client, commands, {
86
- errorTags: Errors_js_1.AllServiceErrors,
87
- resolveClientConfig: OpenSearchServerlessServiceConfig.toOpenSearchServerlessClientConfig,
88
- });
89
- });
90
- /**
91
- * @since 1.0.0
92
- * @category models
93
- */
94
- class OpenSearchServerlessService extends effect_1.Effect.Tag("@effect-aws/client-opensearch-serverless/OpenSearchServerlessService")() {
95
- static defaultLayer = effect_1.Layer.effect(this, exports.makeOpenSearchServerlessService).pipe(effect_1.Layer.provide(Instance.layer));
96
- static layer = (config) => effect_1.Layer.effect(this, exports.makeOpenSearchServerlessService).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(OpenSearchServerlessServiceConfig.setOpenSearchServerlessServiceConfig(config)));
97
- static baseLayer = (evaluate) => effect_1.Layer.effect(this, exports.makeOpenSearchServerlessService).pipe(effect_1.Layer.provide(effect_1.Layer.effect(Instance.OpenSearchServerlessClientInstance, effect_1.Effect.map(OpenSearchServerlessServiceConfig.toOpenSearchServerlessClientConfig, evaluate))));
98
- }
99
- exports.OpenSearchServerlessService = OpenSearchServerlessService;
100
- //# sourceMappingURL=OpenSearchServerlessService.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OpenSearchServerlessService.js","sourceRoot":"","sources":["../../src/OpenSearchServerlessService.ts"],"names":[],"mappings":";;;;;;;;;;;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,eAAM,CAAC,GAAG,CAAC,iCAAiC,CAAC,kCAAkC,EAAE,QAAQ,CAAC,CAC3F,CACF,CACF,CAAC;;AAxBN,kEAyBC"}
@@ -1,25 +0,0 @@
1
- /**
2
- * @since 1.0.0
3
- */
4
- import type { OpenSearchServerlessClientConfig } from "@aws-sdk/client-opensearchserverless";
5
- import { Effect, Layer } from "effect";
6
- import type { OpenSearchServerlessService } from "./OpenSearchServerlessService.js";
7
- /**
8
- * @since 1.0.0
9
- * @category opensearch-serverless service config
10
- */
11
- export declare const withOpenSearchServerlessServiceConfig: {
12
- (config: OpenSearchServerlessService.Config): <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
13
- <A, E, R>(effect: Effect.Effect<A, E, R>, config: OpenSearchServerlessService.Config): Effect.Effect<A, E, R>;
14
- };
15
- /**
16
- * @since 1.0.0
17
- * @category opensearch-serverless service config
18
- */
19
- export declare const setOpenSearchServerlessServiceConfig: (config: OpenSearchServerlessService.Config) => Layer.Layer<never, never, never>;
20
- /**
21
- * @since 1.0.0
22
- * @category adapters
23
- */
24
- export declare const toOpenSearchServerlessClientConfig: Effect.Effect<OpenSearchServerlessClientConfig>;
25
- //# sourceMappingURL=OpenSearchServerlessServiceConfig.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OpenSearchServerlessServiceConfig.d.ts","sourceRoot":"","sources":["../../src/OpenSearchServerlessServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,sCAAsC,CAAC;AAE7F,OAAO,EAAE,MAAM,EAAY,KAAK,EAAE,MAAM,QAAQ,CAAC;AAGjD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAWpF;;;GAGG;AACH,eAAO,MAAM,qCAAqC,EAAE;IAClD,CAAC,MAAM,EAAE,2BAA2B,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAClH,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,2BAA2B,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAK/G,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oCAAoC,WAAY,4BAA4B,MAAM,qCACxB,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,kCAAkC,EAAE,MAAM,CAAC,MAAM,CAAC,gCAAgC,CAU9F,CAAC"}
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toOpenSearchServerlessClientConfig = exports.setOpenSearchServerlessServiceConfig = exports.withOpenSearchServerlessServiceConfig = void 0;
4
- const commons_1 = require("@effect-aws/commons");
5
- const effect_1 = require("effect");
6
- const Function_1 = require("effect/Function");
7
- const GlobalValue_1 = require("effect/GlobalValue");
8
- /**
9
- * @since 1.0.0
10
- * @category opensearch-serverless service config
11
- */
12
- const currentOpenSearchServerlessServiceConfig = (0, GlobalValue_1.globalValue)("@effect-aws/client-opensearch-serverless/currentOpenSearchServerlessServiceConfig", () => effect_1.FiberRef.unsafeMake({}));
13
- /**
14
- * @since 1.0.0
15
- * @category opensearch-serverless service config
16
- */
17
- exports.withOpenSearchServerlessServiceConfig = (0, Function_1.dual)(2, (effect, config) => effect_1.Effect.locally(effect, currentOpenSearchServerlessServiceConfig, config));
18
- /**
19
- * @since 1.0.0
20
- * @category opensearch-serverless service config
21
- */
22
- const setOpenSearchServerlessServiceConfig = (config) => effect_1.Layer.locallyScoped(currentOpenSearchServerlessServiceConfig, config);
23
- exports.setOpenSearchServerlessServiceConfig = setOpenSearchServerlessServiceConfig;
24
- /**
25
- * @since 1.0.0
26
- * @category adapters
27
- */
28
- exports.toOpenSearchServerlessClientConfig = effect_1.Effect.gen(function* () {
29
- const { logger: serviceLogger, ...config } = yield* effect_1.FiberRef.get(currentOpenSearchServerlessServiceConfig);
30
- const logger = serviceLogger === true
31
- ? yield* commons_1.ServiceLogger.toClientLogger(commons_1.ServiceLogger.defaultServiceLogger)
32
- : (serviceLogger ? yield* commons_1.ServiceLogger.toClientLogger(commons_1.ServiceLogger.make(serviceLogger)) : undefined);
33
- return { logger, ...config };
34
- });
35
- //# sourceMappingURL=OpenSearchServerlessServiceConfig.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OpenSearchServerlessServiceConfig.js","sourceRoot":"","sources":["../../src/OpenSearchServerlessServiceConfig.ts"],"names":[],"mappings":";;;AAIA,iDAAoD;AACpD,mCAAiD;AACjD,8CAAuC;AACvC,oDAAiD;AAGjD;;;GAGG;AACH,MAAM,wCAAwC,GAAG,IAAA,yBAAW,EAC1D,mFAAmF,EACnF,GAAG,EAAE,CAAC,iBAAQ,CAAC,UAAU,CAAqC,EAAE,CAAC,CAClE,CAAC;AAEF;;;GAGG;AACU,QAAA,qCAAqC,GAG9C,IAAA,eAAI,EACN,CAAC,EACD,CAAU,MAA8B,EAAE,MAA0C,EAA0B,EAAE,CAC9G,eAAM,CAAC,OAAO,CAAC,MAAM,EAAE,wCAAwC,EAAE,MAAM,CAAC,CAC3E,CAAC;AAEF;;;GAGG;AACI,MAAM,oCAAoC,GAAG,CAAC,MAA0C,EAAE,EAAE,CACjG,cAAK,CAAC,aAAa,CAAC,wCAAwC,EAAE,MAAM,CAAC,CAAC;AAD3D,QAAA,oCAAoC,wCACuB;AAExE;;;GAGG;AACU,QAAA,kCAAkC,GAAoD,eAAM,CAAC,GAAG,CAC3G,QAAQ,CAAC;IACP,MAAM,EAAE,MAAM,EAAE,aAA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