@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.
- package/Errors/package.json +6 -0
- package/OpenSearchServerlessClientInstance/package.json +6 -0
- package/OpenSearchServerlessService/package.json +6 -0
- package/OpenSearchServerlessServiceConfig/package.json +6 -0
- package/{lib → dist/cjs}/Errors.d.ts +6 -11
- package/dist/cjs/Errors.d.ts.map +1 -0
- package/dist/cjs/Errors.js +14 -0
- package/dist/cjs/Errors.js.map +1 -0
- package/dist/cjs/OpenSearchServerlessClientInstance.d.ts +24 -0
- package/dist/cjs/OpenSearchServerlessClientInstance.d.ts.map +1 -0
- package/dist/cjs/OpenSearchServerlessClientInstance.js +50 -0
- package/dist/cjs/OpenSearchServerlessClientInstance.js.map +1 -0
- package/dist/cjs/OpenSearchServerlessService.d.ts +189 -0
- package/dist/cjs/OpenSearchServerlessService.d.ts.map +1 -0
- package/dist/cjs/OpenSearchServerlessService.js +96 -0
- package/dist/cjs/OpenSearchServerlessService.js.map +1 -0
- package/dist/cjs/OpenSearchServerlessServiceConfig.d.ts +25 -0
- package/dist/cjs/OpenSearchServerlessServiceConfig.d.ts.map +1 -0
- package/dist/cjs/OpenSearchServerlessServiceConfig.js +35 -0
- package/dist/cjs/OpenSearchServerlessServiceConfig.js.map +1 -0
- package/dist/cjs/index.d.ts +39 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +56 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/dts/Errors.d.ts +13 -0
- package/dist/dts/Errors.d.ts.map +1 -0
- package/dist/dts/OpenSearchServerlessClientInstance.d.ts +24 -0
- package/dist/dts/OpenSearchServerlessClientInstance.d.ts.map +1 -0
- package/dist/dts/OpenSearchServerlessService.d.ts +189 -0
- package/dist/dts/OpenSearchServerlessService.d.ts.map +1 -0
- package/dist/dts/OpenSearchServerlessServiceConfig.d.ts +25 -0
- package/dist/dts/OpenSearchServerlessServiceConfig.d.ts.map +1 -0
- package/dist/dts/index.d.ts +39 -0
- package/dist/dts/index.d.ts.map +1 -0
- package/dist/esm/Errors.js +11 -0
- package/dist/esm/Errors.js.map +1 -0
- package/dist/esm/OpenSearchServerlessClientInstance.js +23 -0
- package/dist/esm/OpenSearchServerlessClientInstance.js.map +1 -0
- package/dist/esm/OpenSearchServerlessService.js +69 -0
- package/dist/esm/OpenSearchServerlessService.js.map +1 -0
- package/dist/esm/OpenSearchServerlessServiceConfig.js +31 -0
- package/dist/esm/OpenSearchServerlessServiceConfig.js.map +1 -0
- package/dist/esm/index.js +27 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/package.json +4 -0
- package/package.json +60 -43
- package/src/Errors.ts +29 -0
- package/src/OpenSearchServerlessClientInstance.ts +33 -0
- package/src/OpenSearchServerlessService.ts +643 -0
- package/src/OpenSearchServerlessServiceConfig.ts +54 -0
- package/src/index.ts +44 -0
- package/CHANGELOG.md +0 -25
- package/docgen.json +0 -8
- package/lib/Errors.js +0 -14
- package/lib/OpenSearchServerlessClientInstance.d.ts +0 -31
- package/lib/OpenSearchServerlessClientInstance.js +0 -57
- package/lib/OpenSearchServerlessClientInstanceConfig.d.ts +0 -23
- package/lib/OpenSearchServerlessClientInstanceConfig.js +0 -44
- package/lib/OpenSearchServerlessService.d.ts +0 -250
- package/lib/OpenSearchServerlessService.js +0 -125
- package/lib/esm/Errors.js +0 -11
- package/lib/esm/OpenSearchServerlessClientInstance.js +0 -30
- package/lib/esm/OpenSearchServerlessClientInstanceConfig.js +0 -40
- package/lib/esm/OpenSearchServerlessService.js +0 -121
- package/lib/esm/index.js +0 -5
- package/lib/index.d.ts +0 -4
- package/lib/index.js +0 -21
- package/project.json +0 -77
- package/vitest.config.ts +0 -3
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
import type { ConflictException, InternalServerException, OcuLimitExceededException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException } from "@aws-sdk/client-opensearchserverless";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
name: string;
|
|
6
|
-
}> = T & {
|
|
7
|
-
readonly _tag: T["name"];
|
|
8
|
-
};
|
|
2
|
+
import type { TaggedException } from "@effect-aws/commons";
|
|
3
|
+
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
4
|
+
export declare const AllServiceErrors: readonly ["ConflictException", "InternalServerException", "OcuLimitExceededException", "ResourceNotFoundException", "ServiceQuotaExceededException", "ValidationException"];
|
|
9
5
|
export type ConflictError = TaggedException<ConflictException>;
|
|
10
6
|
export type InternalServerError = TaggedException<InternalServerException>;
|
|
11
7
|
export type OcuLimitExceededError = TaggedException<OcuLimitExceededException>;
|
|
12
8
|
export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
|
|
13
9
|
export type ServiceQuotaExceededError = TaggedException<ServiceQuotaExceededException>;
|
|
14
10
|
export type ValidationError = TaggedException<ValidationException>;
|
|
15
|
-
export type SdkError =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export declare const SdkError: Data.Case.Constructor<SdkError, "_tag">;
|
|
11
|
+
export type SdkError = CommonSdkError;
|
|
12
|
+
export declare const SdkError: import("effect/Data").Case.Constructor<CommonSdkError, "_tag">;
|
|
13
|
+
//# sourceMappingURL=Errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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;AAC3D,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjE,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;AAEnE,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC;AACtC,eAAO,MAAM,QAAQ,gEAAiB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SdkError = exports.AllServiceErrors = void 0;
|
|
4
|
+
const commons_1 = require("@effect-aws/commons");
|
|
5
|
+
exports.AllServiceErrors = [
|
|
6
|
+
"ConflictException",
|
|
7
|
+
"InternalServerException",
|
|
8
|
+
"OcuLimitExceededException",
|
|
9
|
+
"ResourceNotFoundException",
|
|
10
|
+
"ServiceQuotaExceededException",
|
|
11
|
+
"ValidationException",
|
|
12
|
+
];
|
|
13
|
+
exports.SdkError = commons_1.SdkError;
|
|
14
|
+
//# sourceMappingURL=Errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AASA,iDAAiE;AAEpD,QAAA,gBAAgB,GAAG;IAC9B,mBAAmB;IACnB,yBAAyB;IACzB,2BAA2B;IAC3B,2BAA2B;IAC3B,+BAA+B;IAC/B,qBAAqB;CACb,CAAC;AAUE,QAAA,QAAQ,GAAG,kBAAc,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,189 @@
|
|
|
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 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 OpenSearchServerlessClient, type OpenSearchServerlessClientConfig, 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 type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
|
|
6
|
+
import { Effect, Layer } from "effect";
|
|
7
|
+
import type { ConflictError, InternalServerError, OcuLimitExceededError, ResourceNotFoundError, ServiceQuotaExceededError, ValidationError } from "./Errors.js";
|
|
8
|
+
import * as Instance from "./OpenSearchServerlessClientInstance.js";
|
|
9
|
+
interface OpenSearchServerlessService$ {
|
|
10
|
+
readonly _: unique symbol;
|
|
11
|
+
/**
|
|
12
|
+
* @see {@link BatchGetCollectionCommand}
|
|
13
|
+
*/
|
|
14
|
+
batchGetCollection(args: BatchGetCollectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<BatchGetCollectionCommandOutput, SdkError | InternalServerError | ValidationError>;
|
|
15
|
+
/**
|
|
16
|
+
* @see {@link BatchGetEffectiveLifecyclePolicyCommand}
|
|
17
|
+
*/
|
|
18
|
+
batchGetEffectiveLifecyclePolicy(args: BatchGetEffectiveLifecyclePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<BatchGetEffectiveLifecyclePolicyCommandOutput, SdkError | InternalServerError | ValidationError>;
|
|
19
|
+
/**
|
|
20
|
+
* @see {@link BatchGetLifecyclePolicyCommand}
|
|
21
|
+
*/
|
|
22
|
+
batchGetLifecyclePolicy(args: BatchGetLifecyclePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<BatchGetLifecyclePolicyCommandOutput, SdkError | InternalServerError | ValidationError>;
|
|
23
|
+
/**
|
|
24
|
+
* @see {@link BatchGetVpcEndpointCommand}
|
|
25
|
+
*/
|
|
26
|
+
batchGetVpcEndpoint(args: BatchGetVpcEndpointCommandInput, options?: HttpHandlerOptions): Effect.Effect<BatchGetVpcEndpointCommandOutput, SdkError | InternalServerError | ValidationError>;
|
|
27
|
+
/**
|
|
28
|
+
* @see {@link CreateAccessPolicyCommand}
|
|
29
|
+
*/
|
|
30
|
+
createAccessPolicy(args: CreateAccessPolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateAccessPolicyCommandOutput, SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError>;
|
|
31
|
+
/**
|
|
32
|
+
* @see {@link CreateCollectionCommand}
|
|
33
|
+
*/
|
|
34
|
+
createCollection(args: CreateCollectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateCollectionCommandOutput, SdkError | ConflictError | InternalServerError | OcuLimitExceededError | ServiceQuotaExceededError | ValidationError>;
|
|
35
|
+
/**
|
|
36
|
+
* @see {@link CreateLifecyclePolicyCommand}
|
|
37
|
+
*/
|
|
38
|
+
createLifecyclePolicy(args: CreateLifecyclePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateLifecyclePolicyCommandOutput, SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError>;
|
|
39
|
+
/**
|
|
40
|
+
* @see {@link CreateSecurityConfigCommand}
|
|
41
|
+
*/
|
|
42
|
+
createSecurityConfig(args: CreateSecurityConfigCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateSecurityConfigCommandOutput, SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError>;
|
|
43
|
+
/**
|
|
44
|
+
* @see {@link CreateSecurityPolicyCommand}
|
|
45
|
+
*/
|
|
46
|
+
createSecurityPolicy(args: CreateSecurityPolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateSecurityPolicyCommandOutput, SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError>;
|
|
47
|
+
/**
|
|
48
|
+
* @see {@link CreateVpcEndpointCommand}
|
|
49
|
+
*/
|
|
50
|
+
createVpcEndpoint(args: CreateVpcEndpointCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateVpcEndpointCommandOutput, SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError>;
|
|
51
|
+
/**
|
|
52
|
+
* @see {@link DeleteAccessPolicyCommand}
|
|
53
|
+
*/
|
|
54
|
+
deleteAccessPolicy(args: DeleteAccessPolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteAccessPolicyCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError>;
|
|
55
|
+
/**
|
|
56
|
+
* @see {@link DeleteCollectionCommand}
|
|
57
|
+
*/
|
|
58
|
+
deleteCollection(args: DeleteCollectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteCollectionCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError>;
|
|
59
|
+
/**
|
|
60
|
+
* @see {@link DeleteLifecyclePolicyCommand}
|
|
61
|
+
*/
|
|
62
|
+
deleteLifecyclePolicy(args: DeleteLifecyclePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteLifecyclePolicyCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError>;
|
|
63
|
+
/**
|
|
64
|
+
* @see {@link DeleteSecurityConfigCommand}
|
|
65
|
+
*/
|
|
66
|
+
deleteSecurityConfig(args: DeleteSecurityConfigCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteSecurityConfigCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError>;
|
|
67
|
+
/**
|
|
68
|
+
* @see {@link DeleteSecurityPolicyCommand}
|
|
69
|
+
*/
|
|
70
|
+
deleteSecurityPolicy(args: DeleteSecurityPolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteSecurityPolicyCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError>;
|
|
71
|
+
/**
|
|
72
|
+
* @see {@link DeleteVpcEndpointCommand}
|
|
73
|
+
*/
|
|
74
|
+
deleteVpcEndpoint(args: DeleteVpcEndpointCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteVpcEndpointCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError>;
|
|
75
|
+
/**
|
|
76
|
+
* @see {@link GetAccessPolicyCommand}
|
|
77
|
+
*/
|
|
78
|
+
getAccessPolicy(args: GetAccessPolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAccessPolicyCommandOutput, SdkError | InternalServerError | ResourceNotFoundError | ValidationError>;
|
|
79
|
+
/**
|
|
80
|
+
* @see {@link GetAccountSettingsCommand}
|
|
81
|
+
*/
|
|
82
|
+
getAccountSettings(args: GetAccountSettingsCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAccountSettingsCommandOutput, SdkError | InternalServerError | ValidationError>;
|
|
83
|
+
/**
|
|
84
|
+
* @see {@link GetPoliciesStatsCommand}
|
|
85
|
+
*/
|
|
86
|
+
getPoliciesStats(args: GetPoliciesStatsCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetPoliciesStatsCommandOutput, SdkError | InternalServerError>;
|
|
87
|
+
/**
|
|
88
|
+
* @see {@link GetSecurityConfigCommand}
|
|
89
|
+
*/
|
|
90
|
+
getSecurityConfig(args: GetSecurityConfigCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetSecurityConfigCommandOutput, SdkError | InternalServerError | ResourceNotFoundError | ValidationError>;
|
|
91
|
+
/**
|
|
92
|
+
* @see {@link GetSecurityPolicyCommand}
|
|
93
|
+
*/
|
|
94
|
+
getSecurityPolicy(args: GetSecurityPolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetSecurityPolicyCommandOutput, SdkError | InternalServerError | ResourceNotFoundError | ValidationError>;
|
|
95
|
+
/**
|
|
96
|
+
* @see {@link ListAccessPoliciesCommand}
|
|
97
|
+
*/
|
|
98
|
+
listAccessPolicies(args: ListAccessPoliciesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListAccessPoliciesCommandOutput, SdkError | InternalServerError | ValidationError>;
|
|
99
|
+
/**
|
|
100
|
+
* @see {@link ListCollectionsCommand}
|
|
101
|
+
*/
|
|
102
|
+
listCollections(args: ListCollectionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListCollectionsCommandOutput, SdkError | InternalServerError | ValidationError>;
|
|
103
|
+
/**
|
|
104
|
+
* @see {@link ListLifecyclePoliciesCommand}
|
|
105
|
+
*/
|
|
106
|
+
listLifecyclePolicies(args: ListLifecyclePoliciesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListLifecyclePoliciesCommandOutput, SdkError | InternalServerError | ValidationError>;
|
|
107
|
+
/**
|
|
108
|
+
* @see {@link ListSecurityConfigsCommand}
|
|
109
|
+
*/
|
|
110
|
+
listSecurityConfigs(args: ListSecurityConfigsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListSecurityConfigsCommandOutput, SdkError | InternalServerError | ValidationError>;
|
|
111
|
+
/**
|
|
112
|
+
* @see {@link ListSecurityPoliciesCommand}
|
|
113
|
+
*/
|
|
114
|
+
listSecurityPolicies(args: ListSecurityPoliciesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListSecurityPoliciesCommandOutput, SdkError | InternalServerError | ValidationError>;
|
|
115
|
+
/**
|
|
116
|
+
* @see {@link ListTagsForResourceCommand}
|
|
117
|
+
*/
|
|
118
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsForResourceCommandOutput, SdkError | InternalServerError | ResourceNotFoundError | ValidationError>;
|
|
119
|
+
/**
|
|
120
|
+
* @see {@link ListVpcEndpointsCommand}
|
|
121
|
+
*/
|
|
122
|
+
listVpcEndpoints(args: ListVpcEndpointsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListVpcEndpointsCommandOutput, SdkError | InternalServerError | ValidationError>;
|
|
123
|
+
/**
|
|
124
|
+
* @see {@link TagResourceCommand}
|
|
125
|
+
*/
|
|
126
|
+
tagResource(args: TagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagResourceCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ValidationError>;
|
|
127
|
+
/**
|
|
128
|
+
* @see {@link UntagResourceCommand}
|
|
129
|
+
*/
|
|
130
|
+
untagResource(args: UntagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagResourceCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError>;
|
|
131
|
+
/**
|
|
132
|
+
* @see {@link UpdateAccessPolicyCommand}
|
|
133
|
+
*/
|
|
134
|
+
updateAccessPolicy(args: UpdateAccessPolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateAccessPolicyCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError>;
|
|
135
|
+
/**
|
|
136
|
+
* @see {@link UpdateAccountSettingsCommand}
|
|
137
|
+
*/
|
|
138
|
+
updateAccountSettings(args: UpdateAccountSettingsCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateAccountSettingsCommandOutput, SdkError | InternalServerError | ValidationError>;
|
|
139
|
+
/**
|
|
140
|
+
* @see {@link UpdateCollectionCommand}
|
|
141
|
+
*/
|
|
142
|
+
updateCollection(args: UpdateCollectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateCollectionCommandOutput, SdkError | ConflictError | InternalServerError | ValidationError>;
|
|
143
|
+
/**
|
|
144
|
+
* @see {@link UpdateLifecyclePolicyCommand}
|
|
145
|
+
*/
|
|
146
|
+
updateLifecyclePolicy(args: UpdateLifecyclePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateLifecyclePolicyCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ValidationError>;
|
|
147
|
+
/**
|
|
148
|
+
* @see {@link UpdateSecurityConfigCommand}
|
|
149
|
+
*/
|
|
150
|
+
updateSecurityConfig(args: UpdateSecurityConfigCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateSecurityConfigCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError>;
|
|
151
|
+
/**
|
|
152
|
+
* @see {@link UpdateSecurityPolicyCommand}
|
|
153
|
+
*/
|
|
154
|
+
updateSecurityPolicy(args: UpdateSecurityPolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateSecurityPolicyCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ValidationError>;
|
|
155
|
+
/**
|
|
156
|
+
* @see {@link UpdateVpcEndpointCommand}
|
|
157
|
+
*/
|
|
158
|
+
updateVpcEndpoint(args: UpdateVpcEndpointCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateVpcEndpointCommandOutput, SdkError | ConflictError | InternalServerError | ValidationError>;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* @since 1.0.0
|
|
162
|
+
* @category constructors
|
|
163
|
+
*/
|
|
164
|
+
export declare const makeOpenSearchServerlessService: Effect.Effect<OpenSearchServerlessService$, never, Instance.OpenSearchServerlessClientInstance>;
|
|
165
|
+
declare const OpenSearchServerlessService_base: import("effect/Context").TagClass<OpenSearchServerlessService, "@effect-aws/client-opensearch-serverless/OpenSearchServerlessService", OpenSearchServerlessService$> & Effect.Tag.Proxy<OpenSearchServerlessService, OpenSearchServerlessService$> & {
|
|
166
|
+
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, import("effect/Cause").UnknownException, OpenSearchServerlessService> : Effect.Effect<X, never, OpenSearchServerlessService>;
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* @since 1.0.0
|
|
170
|
+
* @category models
|
|
171
|
+
*/
|
|
172
|
+
export declare class OpenSearchServerlessService extends OpenSearchServerlessService_base {
|
|
173
|
+
static readonly defaultLayer: Layer.Layer<OpenSearchServerlessService, never, never>;
|
|
174
|
+
static readonly layer: (config: OpenSearchServerlessService.Config) => Layer.Layer<OpenSearchServerlessService, never, never>;
|
|
175
|
+
static readonly baseLayer: (evaluate: (defaultConfig: OpenSearchServerlessClientConfig) => OpenSearchServerlessClient) => Layer.Layer<OpenSearchServerlessService, never, never>;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* @since 1.0.0
|
|
179
|
+
*/
|
|
180
|
+
export declare namespace OpenSearchServerlessService {
|
|
181
|
+
/**
|
|
182
|
+
* @since 1.0.0
|
|
183
|
+
*/
|
|
184
|
+
interface Config extends Omit<OpenSearchServerlessClientConfig, "logger"> {
|
|
185
|
+
readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
export {};
|
|
189
|
+
//# sourceMappingURL=OpenSearchServerlessService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,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E,gCAAgC,EACtC,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,iCAAiC,EACjC,QAAQ,GAAG,aAAa,GAAG,mBAAmB,GAAG,qBAAqB,GAAG,yBAAyB,GAAG,eAAe,CACrH,CAAC;IAEF;;OAEG;IACH,iBAAiB,CACf,IAAI,EAAE,6BAA6B,EACnC,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,8BAA8B,EAC9B,QAAQ,GAAG,aAAa,GAAG,mBAAmB,GAAG,eAAe,CACjE,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;CACF"}
|
|
@@ -0,0 +1,96 @@
|
|
|
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
|
+
CreateLifecyclePolicyCommand: client_opensearchserverless_1.CreateLifecyclePolicyCommand,
|
|
44
|
+
CreateSecurityConfigCommand: client_opensearchserverless_1.CreateSecurityConfigCommand,
|
|
45
|
+
CreateSecurityPolicyCommand: client_opensearchserverless_1.CreateSecurityPolicyCommand,
|
|
46
|
+
CreateVpcEndpointCommand: client_opensearchserverless_1.CreateVpcEndpointCommand,
|
|
47
|
+
DeleteAccessPolicyCommand: client_opensearchserverless_1.DeleteAccessPolicyCommand,
|
|
48
|
+
DeleteCollectionCommand: client_opensearchserverless_1.DeleteCollectionCommand,
|
|
49
|
+
DeleteLifecyclePolicyCommand: client_opensearchserverless_1.DeleteLifecyclePolicyCommand,
|
|
50
|
+
DeleteSecurityConfigCommand: client_opensearchserverless_1.DeleteSecurityConfigCommand,
|
|
51
|
+
DeleteSecurityPolicyCommand: client_opensearchserverless_1.DeleteSecurityPolicyCommand,
|
|
52
|
+
DeleteVpcEndpointCommand: client_opensearchserverless_1.DeleteVpcEndpointCommand,
|
|
53
|
+
GetAccessPolicyCommand: client_opensearchserverless_1.GetAccessPolicyCommand,
|
|
54
|
+
GetAccountSettingsCommand: client_opensearchserverless_1.GetAccountSettingsCommand,
|
|
55
|
+
GetPoliciesStatsCommand: client_opensearchserverless_1.GetPoliciesStatsCommand,
|
|
56
|
+
GetSecurityConfigCommand: client_opensearchserverless_1.GetSecurityConfigCommand,
|
|
57
|
+
GetSecurityPolicyCommand: client_opensearchserverless_1.GetSecurityPolicyCommand,
|
|
58
|
+
ListAccessPoliciesCommand: client_opensearchserverless_1.ListAccessPoliciesCommand,
|
|
59
|
+
ListCollectionsCommand: client_opensearchserverless_1.ListCollectionsCommand,
|
|
60
|
+
ListLifecyclePoliciesCommand: client_opensearchserverless_1.ListLifecyclePoliciesCommand,
|
|
61
|
+
ListSecurityConfigsCommand: client_opensearchserverless_1.ListSecurityConfigsCommand,
|
|
62
|
+
ListSecurityPoliciesCommand: client_opensearchserverless_1.ListSecurityPoliciesCommand,
|
|
63
|
+
ListTagsForResourceCommand: client_opensearchserverless_1.ListTagsForResourceCommand,
|
|
64
|
+
ListVpcEndpointsCommand: client_opensearchserverless_1.ListVpcEndpointsCommand,
|
|
65
|
+
TagResourceCommand: client_opensearchserverless_1.TagResourceCommand,
|
|
66
|
+
UntagResourceCommand: client_opensearchserverless_1.UntagResourceCommand,
|
|
67
|
+
UpdateAccessPolicyCommand: client_opensearchserverless_1.UpdateAccessPolicyCommand,
|
|
68
|
+
UpdateAccountSettingsCommand: client_opensearchserverless_1.UpdateAccountSettingsCommand,
|
|
69
|
+
UpdateCollectionCommand: client_opensearchserverless_1.UpdateCollectionCommand,
|
|
70
|
+
UpdateLifecyclePolicyCommand: client_opensearchserverless_1.UpdateLifecyclePolicyCommand,
|
|
71
|
+
UpdateSecurityConfigCommand: client_opensearchserverless_1.UpdateSecurityConfigCommand,
|
|
72
|
+
UpdateSecurityPolicyCommand: client_opensearchserverless_1.UpdateSecurityPolicyCommand,
|
|
73
|
+
UpdateVpcEndpointCommand: client_opensearchserverless_1.UpdateVpcEndpointCommand,
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* @since 1.0.0
|
|
77
|
+
* @category constructors
|
|
78
|
+
*/
|
|
79
|
+
exports.makeOpenSearchServerlessService = effect_1.Effect.gen(function* () {
|
|
80
|
+
const client = yield* Instance.OpenSearchServerlessClientInstance;
|
|
81
|
+
return commons_1.Service.fromClientAndCommands(client, commands, {
|
|
82
|
+
errorTags: Errors_js_1.AllServiceErrors,
|
|
83
|
+
resolveClientConfig: OpenSearchServerlessServiceConfig.toOpenSearchServerlessClientConfig,
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
/**
|
|
87
|
+
* @since 1.0.0
|
|
88
|
+
* @category models
|
|
89
|
+
*/
|
|
90
|
+
class OpenSearchServerlessService extends effect_1.Effect.Tag("@effect-aws/client-opensearch-serverless/OpenSearchServerlessService")() {
|
|
91
|
+
static defaultLayer = effect_1.Layer.effect(this, exports.makeOpenSearchServerlessService).pipe(effect_1.Layer.provide(Instance.layer));
|
|
92
|
+
static layer = (config) => effect_1.Layer.effect(this, exports.makeOpenSearchServerlessService).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(OpenSearchServerlessServiceConfig.setOpenSearchServerlessServiceConfig(config)));
|
|
93
|
+
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))));
|
|
94
|
+
}
|
|
95
|
+
exports.OpenSearchServerlessService = OpenSearchServerlessService;
|
|
96
|
+
//# sourceMappingURL=OpenSearchServerlessService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OpenSearchServerlessService.js","sourceRoot":"","sources":["../../src/OpenSearchServerlessService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,sFAkH8C;AAE9C,iDAA8C;AAC9C,mCAAuC;AASvC,2CAA+C;AAC/C,kFAAoE;AACpE,0GAA4F;AAE5F,MAAM,QAAQ,GAAG;IACf,yBAAyB,EAAzB,uDAAyB;IACzB,uCAAuC,EAAvC,qEAAuC;IACvC,8BAA8B,EAA9B,4DAA8B;IAC9B,0BAA0B,EAA1B,wDAA0B;IAC1B,yBAAyB,EAAzB,uDAAyB;IACzB,uBAAuB,EAAvB,qDAAuB;IACvB,4BAA4B,EAA5B,0DAA4B;IAC5B,2BAA2B,EAA3B,yDAA2B;IAC3B,2BAA2B,EAA3B,yDAA2B;IAC3B,wBAAwB,EAAxB,sDAAwB;IACxB,yBAAyB,EAAzB,uDAAyB;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YAAY,GAAG,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,uCAA+B,CAAC,CAAC,IAAI,CACrF,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAC9B,CAAC;IACF,MAAM,CAAU,KAAK,GAAG,CAAC,MAA0C,EAAE,EAAE,CACrE,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,uCAA+B,CAAC,CAAC,IAAI,CACtD,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC7B,cAAK,CAAC,OAAO,CAAC,iCAAiC,CAAC,oCAAoC,CAAC,MAAM,CAAC,CAAC,CAC9F,CAAC;IACJ,MAAM,CAAU,SAAS,GAAG,CAC1B,QAAyF,EACzF,EAAE,CACF,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,uCAA+B,CAAC,CAAC,IAAI,CACtD,cAAK,CAAC,OAAO,CACX,cAAK,CAAC,MAAM,CACV,QAAQ,CAAC,kCAAkC,EAC3C,eAAM,CAAC,GAAG,CAAC,iCAAiC,CAAC,kCAAkC,EAAE,QAAQ,CAAC,CAC3F,CACF,CACF,CAAC;;AAxBN,kEAyBC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,aAAa,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,iBAAQ,CAAC,GAAG,CAAC,wCAAwC,CAAC,CAAC;IAE3G,MAAM,MAAM,GAAG,aAAa,KAAK,IAAI;QACnC,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAa,CAAC,cAAc,CAAC,uBAAa,CAAC,oBAAoB,CAAC;QACzE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAa,CAAC,cAAc,CAAC,uBAAa,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAEzG,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;AAC/B,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { OpenSearchServerlessService } from "./OpenSearchServerlessService.js";
|
|
5
|
+
/**
|
|
6
|
+
* @since 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
export * from "./Errors.js";
|
|
9
|
+
/**
|
|
10
|
+
* @since 1.0.0
|
|
11
|
+
*/
|
|
12
|
+
export * as OpenSearchServerlessClientInstance from "./OpenSearchServerlessClientInstance.js";
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
*/
|
|
16
|
+
export * as OpenSearchServerlessServiceConfig from "./OpenSearchServerlessServiceConfig.js";
|
|
17
|
+
/**
|
|
18
|
+
* @since 1.0.0
|
|
19
|
+
*/
|
|
20
|
+
export * from "./OpenSearchServerlessService.js";
|
|
21
|
+
/**
|
|
22
|
+
* @since 1.0.0
|
|
23
|
+
* @category exports
|
|
24
|
+
* @alias OpenSearchServerlessService
|
|
25
|
+
*/
|
|
26
|
+
export declare namespace OpenSearchServerless {
|
|
27
|
+
/**
|
|
28
|
+
* @since 1.0.0
|
|
29
|
+
* @alias OpenSearchServerlessService.Config
|
|
30
|
+
*/
|
|
31
|
+
type Config = OpenSearchServerlessService.Config;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @since 1.0.0
|
|
35
|
+
* @category exports
|
|
36
|
+
* @alias OpenSearchServerlessService
|
|
37
|
+
*/
|
|
38
|
+
export declare const OpenSearchServerless: typeof OpenSearchServerlessService;
|
|
39
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAE/E;;GAEG;AACH,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,OAAO,KAAK,kCAAkC,MAAM,yCAAyC,CAAC;AAE9F;;GAEG;AACH,OAAO,KAAK,iCAAiC,MAAM,wCAAwC,CAAC;AAE5F;;GAEG;AACH,cAAc,kCAAkC,CAAC;AAEjD;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,oBAAoB,CAAC;IAC5C;;;OAGG;IACH,KAAY,MAAM,GAAG,2BAA2B,CAAC,MAAM,CAAC;CACzD;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,oCAA8B,CAAC"}
|