@effect-aws/client-opensearch-serverless 1.1.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Errors/package.json +6 -0
- package/LICENSE +1 -1
- 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/{lib → dist/cjs}/OpenSearchServerlessService.d.ts +16 -38
- package/dist/cjs/OpenSearchServerlessService.d.ts.map +1 -0
- package/dist/cjs/OpenSearchServerlessService.js +93 -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 +228 -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 +66 -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 +636 -0
- package/src/OpenSearchServerlessServiceConfig.ts +54 -0
- package/src/index.ts +44 -0
- package/CHANGELOG.md +0 -19
- 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.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
|
@@ -0,0 +1,228 @@
|
|
|
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$> & {
|
|
166
|
+
readonly _: Effect.Effect<OpenSearchServerlessService$["_"], never, OpenSearchServerlessService>;
|
|
167
|
+
batchGetCollection: (args: BatchGetCollectionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<BatchGetCollectionCommandOutput, InternalServerError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
168
|
+
batchGetEffectiveLifecyclePolicy: (args: BatchGetEffectiveLifecyclePolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<BatchGetEffectiveLifecyclePolicyCommandOutput, InternalServerError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
169
|
+
batchGetLifecyclePolicy: (args: BatchGetLifecyclePolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<BatchGetLifecyclePolicyCommandOutput, InternalServerError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
170
|
+
batchGetVpcEndpoint: (args: BatchGetVpcEndpointCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<BatchGetVpcEndpointCommandOutput, InternalServerError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
171
|
+
createAccessPolicy: (args: CreateAccessPolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateAccessPolicyCommandOutput, ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
172
|
+
createCollection: (args: CreateCollectionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateCollectionCommandOutput, ConflictError | InternalServerError | OcuLimitExceededError | ServiceQuotaExceededError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
173
|
+
createLifecyclePolicy: (args: CreateLifecyclePolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateLifecyclePolicyCommandOutput, ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
174
|
+
createSecurityConfig: (args: CreateSecurityConfigCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateSecurityConfigCommandOutput, ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
175
|
+
createSecurityPolicy: (args: CreateSecurityPolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateSecurityPolicyCommandOutput, ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
176
|
+
createVpcEndpoint: (args: CreateVpcEndpointCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateVpcEndpointCommandOutput, ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
177
|
+
deleteAccessPolicy: (args: DeleteAccessPolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteAccessPolicyCommandOutput, ConflictError | InternalServerError | ResourceNotFoundError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
178
|
+
deleteCollection: (args: DeleteCollectionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteCollectionCommandOutput, ConflictError | InternalServerError | ResourceNotFoundError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
179
|
+
deleteLifecyclePolicy: (args: DeleteLifecyclePolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteLifecyclePolicyCommandOutput, ConflictError | InternalServerError | ResourceNotFoundError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
180
|
+
deleteSecurityConfig: (args: DeleteSecurityConfigCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteSecurityConfigCommandOutput, ConflictError | InternalServerError | ResourceNotFoundError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
181
|
+
deleteSecurityPolicy: (args: DeleteSecurityPolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteSecurityPolicyCommandOutput, ConflictError | InternalServerError | ResourceNotFoundError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
182
|
+
deleteVpcEndpoint: (args: DeleteVpcEndpointCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteVpcEndpointCommandOutput, ConflictError | InternalServerError | ResourceNotFoundError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
183
|
+
getAccessPolicy: (args: GetAccessPolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetAccessPolicyCommandOutput, InternalServerError | ResourceNotFoundError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
184
|
+
getAccountSettings: (args: GetAccountSettingsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetAccountSettingsCommandOutput, InternalServerError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
185
|
+
getPoliciesStats: (args: GetPoliciesStatsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetPoliciesStatsCommandOutput, InternalServerError | SdkError, OpenSearchServerlessService>;
|
|
186
|
+
getSecurityConfig: (args: GetSecurityConfigCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetSecurityConfigCommandOutput, InternalServerError | ResourceNotFoundError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
187
|
+
getSecurityPolicy: (args: GetSecurityPolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<GetSecurityPolicyCommandOutput, InternalServerError | ResourceNotFoundError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
188
|
+
listAccessPolicies: (args: ListAccessPoliciesCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListAccessPoliciesCommandOutput, InternalServerError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
189
|
+
listCollections: (args: ListCollectionsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListCollectionsCommandOutput, InternalServerError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
190
|
+
listLifecyclePolicies: (args: ListLifecyclePoliciesCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListLifecyclePoliciesCommandOutput, InternalServerError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
191
|
+
listSecurityConfigs: (args: ListSecurityConfigsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListSecurityConfigsCommandOutput, InternalServerError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
192
|
+
listSecurityPolicies: (args: ListSecurityPoliciesCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListSecurityPoliciesCommandOutput, InternalServerError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
193
|
+
listTagsForResource: (args: ListTagsForResourceCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListTagsForResourceCommandOutput, InternalServerError | ResourceNotFoundError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
194
|
+
listVpcEndpoints: (args: ListVpcEndpointsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListVpcEndpointsCommandOutput, InternalServerError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
195
|
+
tagResource: (args: TagResourceCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<TagResourceCommandOutput, ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
196
|
+
untagResource: (args: UntagResourceCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UntagResourceCommandOutput, ConflictError | InternalServerError | ResourceNotFoundError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
197
|
+
updateAccessPolicy: (args: UpdateAccessPolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateAccessPolicyCommandOutput, ConflictError | InternalServerError | ResourceNotFoundError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
198
|
+
updateAccountSettings: (args: UpdateAccountSettingsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateAccountSettingsCommandOutput, InternalServerError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
199
|
+
updateCollection: (args: UpdateCollectionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateCollectionCommandOutput, ConflictError | InternalServerError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
200
|
+
updateLifecyclePolicy: (args: UpdateLifecyclePolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateLifecyclePolicyCommandOutput, ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
201
|
+
updateSecurityConfig: (args: UpdateSecurityConfigCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateSecurityConfigCommandOutput, ConflictError | InternalServerError | ResourceNotFoundError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
202
|
+
updateSecurityPolicy: (args: UpdateSecurityPolicyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateSecurityPolicyCommandOutput, ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
203
|
+
updateVpcEndpoint: (args: UpdateVpcEndpointCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateVpcEndpointCommandOutput, ConflictError | InternalServerError | ValidationError | SdkError, OpenSearchServerlessService>;
|
|
204
|
+
} & {
|
|
205
|
+
use: <X>(body: (_: OpenSearchServerlessService$) => X) => X extends Effect.Effect<infer A, infer E, infer R> ? Effect.Effect<A, E, OpenSearchServerlessService | R> : Effect.Effect<X, never, OpenSearchServerlessService>;
|
|
206
|
+
};
|
|
207
|
+
/**
|
|
208
|
+
* @since 1.0.0
|
|
209
|
+
* @category models
|
|
210
|
+
*/
|
|
211
|
+
export declare class OpenSearchServerlessService extends OpenSearchServerlessService_base {
|
|
212
|
+
static readonly defaultLayer: Layer.Layer<OpenSearchServerlessService, never, never>;
|
|
213
|
+
static readonly layer: (config: OpenSearchServerlessService.Config) => Layer.Layer<OpenSearchServerlessService, never, never>;
|
|
214
|
+
static readonly baseLayer: (evaluate: (defaultConfig: OpenSearchServerlessClientConfig) => OpenSearchServerlessClient) => Layer.Layer<OpenSearchServerlessService, never, never>;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* @since 1.0.0
|
|
218
|
+
*/
|
|
219
|
+
export declare namespace OpenSearchServerlessService {
|
|
220
|
+
/**
|
|
221
|
+
* @since 1.0.0
|
|
222
|
+
*/
|
|
223
|
+
interface Config extends Omit<OpenSearchServerlessClientConfig, "logger"> {
|
|
224
|
+
readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
export {};
|
|
228
|
+
//# 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,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAElC,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,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,4BAA4B,EACjC,KAAK,6BAA6B,EAElC,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EAEnC,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EAEnC,KAAK,8BAA8B,EAC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B,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,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,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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
2
|
+
export const AllServiceErrors = [
|
|
3
|
+
"ConflictException",
|
|
4
|
+
"InternalServerException",
|
|
5
|
+
"OcuLimitExceededException",
|
|
6
|
+
"ResourceNotFoundException",
|
|
7
|
+
"ServiceQuotaExceededException",
|
|
8
|
+
"ValidationException",
|
|
9
|
+
];
|
|
10
|
+
export const SdkError = CommonSdkError;
|
|
11
|
+
//# sourceMappingURL=Errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjE,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,mBAAmB;IACnB,yBAAyB;IACzB,2BAA2B;IAC3B,2BAA2B;IAC3B,+BAA+B;IAC/B,qBAAqB;CACb,CAAC;AAUX,MAAM,CAAC,MAAM,QAAQ,GAAG,cAAc,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { OpenSearchServerlessClient } from "@aws-sdk/client-opensearchserverless";
|
|
5
|
+
import { Context, Effect, Layer } from "effect";
|
|
6
|
+
import * as OpenSearchServerlessServiceConfig from "./OpenSearchServerlessServiceConfig.js";
|
|
7
|
+
/**
|
|
8
|
+
* @since 1.0.0
|
|
9
|
+
* @category tags
|
|
10
|
+
*/
|
|
11
|
+
export class OpenSearchServerlessClientInstance extends Context.Tag("@effect-aws/client-opensearch-serverless/OpenSearchServerlessClientInstance")() {
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
* @category constructors
|
|
16
|
+
*/
|
|
17
|
+
export const make = Effect.flatMap(OpenSearchServerlessServiceConfig.toOpenSearchServerlessClientConfig, (config) => Effect.acquireRelease(Effect.sync(() => new OpenSearchServerlessClient(config)), (client) => Effect.sync(() => client.destroy())));
|
|
18
|
+
/**
|
|
19
|
+
* @since 1.0.0
|
|
20
|
+
* @category layers
|
|
21
|
+
*/
|
|
22
|
+
export const layer = Layer.scoped(OpenSearchServerlessClientInstance, make);
|
|
23
|
+
//# sourceMappingURL=OpenSearchServerlessClientInstance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OpenSearchServerlessClientInstance.js","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;AAChD,OAAO,KAAK,iCAAiC,MAAM,wCAAwC,CAAC;AAE5F;;;GAGG;AACH,MAAM,OAAO,kCAAmC,SAAQ,OAAO,CAAC,GAAG,CACjE,6EAA6E,CAC9E,EAAkE;CAAG;AAEtE;;;GAGG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAChC,iCAAiC,CAAC,kCAAkC,EACpE,CAAC,MAAM,EAAE,EAAE,CACT,MAAM,CAAC,cAAc,CACnB,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,0BAA0B,CAAC,MAAM,CAAC,CAAC,EACzD,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAChD,CACJ,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,kCAAkC,EAAE,IAAI,CAAC,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { BatchGetCollectionCommand, BatchGetEffectiveLifecyclePolicyCommand, BatchGetLifecyclePolicyCommand, BatchGetVpcEndpointCommand, CreateAccessPolicyCommand, CreateCollectionCommand, CreateLifecyclePolicyCommand, CreateSecurityConfigCommand, CreateSecurityPolicyCommand, CreateVpcEndpointCommand, DeleteAccessPolicyCommand, DeleteCollectionCommand, DeleteLifecyclePolicyCommand, DeleteSecurityConfigCommand, DeleteSecurityPolicyCommand, DeleteVpcEndpointCommand, GetAccessPolicyCommand, GetAccountSettingsCommand, GetPoliciesStatsCommand, GetSecurityConfigCommand, GetSecurityPolicyCommand, ListAccessPoliciesCommand, ListCollectionsCommand, ListLifecyclePoliciesCommand, ListSecurityConfigsCommand, ListSecurityPoliciesCommand, ListTagsForResourceCommand, ListVpcEndpointsCommand, TagResourceCommand, UntagResourceCommand, UpdateAccessPolicyCommand, UpdateAccountSettingsCommand, UpdateCollectionCommand, UpdateLifecyclePolicyCommand, UpdateSecurityConfigCommand, UpdateSecurityPolicyCommand, UpdateVpcEndpointCommand, } from "@aws-sdk/client-opensearchserverless";
|
|
5
|
+
import { Service } from "@effect-aws/commons";
|
|
6
|
+
import { Effect, Layer } from "effect";
|
|
7
|
+
import { AllServiceErrors } from "./Errors.js";
|
|
8
|
+
import * as Instance from "./OpenSearchServerlessClientInstance.js";
|
|
9
|
+
import * as OpenSearchServerlessServiceConfig from "./OpenSearchServerlessServiceConfig.js";
|
|
10
|
+
const commands = {
|
|
11
|
+
BatchGetCollectionCommand,
|
|
12
|
+
BatchGetEffectiveLifecyclePolicyCommand,
|
|
13
|
+
BatchGetLifecyclePolicyCommand,
|
|
14
|
+
BatchGetVpcEndpointCommand,
|
|
15
|
+
CreateAccessPolicyCommand,
|
|
16
|
+
CreateCollectionCommand,
|
|
17
|
+
CreateLifecyclePolicyCommand,
|
|
18
|
+
CreateSecurityConfigCommand,
|
|
19
|
+
CreateSecurityPolicyCommand,
|
|
20
|
+
CreateVpcEndpointCommand,
|
|
21
|
+
DeleteAccessPolicyCommand,
|
|
22
|
+
DeleteCollectionCommand,
|
|
23
|
+
DeleteLifecyclePolicyCommand,
|
|
24
|
+
DeleteSecurityConfigCommand,
|
|
25
|
+
DeleteSecurityPolicyCommand,
|
|
26
|
+
DeleteVpcEndpointCommand,
|
|
27
|
+
GetAccessPolicyCommand,
|
|
28
|
+
GetAccountSettingsCommand,
|
|
29
|
+
GetPoliciesStatsCommand,
|
|
30
|
+
GetSecurityConfigCommand,
|
|
31
|
+
GetSecurityPolicyCommand,
|
|
32
|
+
ListAccessPoliciesCommand,
|
|
33
|
+
ListCollectionsCommand,
|
|
34
|
+
ListLifecyclePoliciesCommand,
|
|
35
|
+
ListSecurityConfigsCommand,
|
|
36
|
+
ListSecurityPoliciesCommand,
|
|
37
|
+
ListTagsForResourceCommand,
|
|
38
|
+
ListVpcEndpointsCommand,
|
|
39
|
+
TagResourceCommand,
|
|
40
|
+
UntagResourceCommand,
|
|
41
|
+
UpdateAccessPolicyCommand,
|
|
42
|
+
UpdateAccountSettingsCommand,
|
|
43
|
+
UpdateCollectionCommand,
|
|
44
|
+
UpdateLifecyclePolicyCommand,
|
|
45
|
+
UpdateSecurityConfigCommand,
|
|
46
|
+
UpdateSecurityPolicyCommand,
|
|
47
|
+
UpdateVpcEndpointCommand,
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* @since 1.0.0
|
|
51
|
+
* @category constructors
|
|
52
|
+
*/
|
|
53
|
+
export const makeOpenSearchServerlessService = Effect.gen(function* () {
|
|
54
|
+
const client = yield* Instance.OpenSearchServerlessClientInstance;
|
|
55
|
+
return Service.fromClientAndCommands(client, commands, AllServiceErrors);
|
|
56
|
+
});
|
|
57
|
+
/**
|
|
58
|
+
* @since 1.0.0
|
|
59
|
+
* @category models
|
|
60
|
+
*/
|
|
61
|
+
export class OpenSearchServerlessService extends Effect.Tag("@effect-aws/client-opensearch-serverless/OpenSearchServerlessService")() {
|
|
62
|
+
static defaultLayer = Layer.effect(this, makeOpenSearchServerlessService).pipe(Layer.provide(Instance.layer));
|
|
63
|
+
static layer = (config) => Layer.effect(this, makeOpenSearchServerlessService).pipe(Layer.provide(Instance.layer), Layer.provide(OpenSearchServerlessServiceConfig.setOpenSearchServerlessServiceConfig(config)));
|
|
64
|
+
static baseLayer = (evaluate) => Layer.effect(this, makeOpenSearchServerlessService).pipe(Layer.provide(Layer.effect(Instance.OpenSearchServerlessClientInstance, Effect.map(OpenSearchServerlessServiceConfig.toOpenSearchServerlessClientConfig, evaluate))));
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=OpenSearchServerlessService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OpenSearchServerlessService.js","sourceRoot":"","sources":["../../src/OpenSearchServerlessService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,yBAAyB,EAGzB,uCAAuC,EAGvC,8BAA8B,EAG9B,0BAA0B,EAG1B,yBAAyB,EAGzB,uBAAuB,EAGvB,4BAA4B,EAG5B,2BAA2B,EAG3B,2BAA2B,EAG3B,wBAAwB,EAGxB,yBAAyB,EAGzB,uBAAuB,EAGvB,4BAA4B,EAG5B,2BAA2B,EAG3B,2BAA2B,EAG3B,wBAAwB,EAGxB,sBAAsB,EAGtB,yBAAyB,EAGzB,uBAAuB,EAGvB,wBAAwB,EAGxB,wBAAwB,EAGxB,yBAAyB,EAGzB,sBAAsB,EAGtB,4BAA4B,EAG5B,0BAA0B,EAG1B,2BAA2B,EAG3B,0BAA0B,EAG1B,uBAAuB,EAKvB,kBAAkB,EAGlB,oBAAoB,EAGpB,yBAAyB,EAGzB,4BAA4B,EAG5B,uBAAuB,EAGvB,4BAA4B,EAG5B,2BAA2B,EAG3B,2BAA2B,EAG3B,wBAAwB,GAGzB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AASvC,OAAO,EAAE,gBAAgB,EAAE,M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M,CAAU,KAAK,GAAG,CAAC,MAA0C,EAAE,EAAE,CACrE,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,+BAA+B,CAAC,CAAC,IAAI,CACtD,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC7B,KAAK,CAAC,OAAO,CAAC,iCAAiC,CAAC,oCAAoC,CAAC,MAAM,CAAC,CAAC,CAC9F,CAAC;IACJ,MAAM,CAAU,SAAS,GAAG,CAC1B,QAAyF,EACzF,EAAE,CACF,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,+BAA+B,CAAC,CAAC,IAAI,CACtD,KAAK,CAAC,OAAO,CACX,KAAK,CAAC,MAAM,CACV,QAAQ,CAAC,kCAAkC,EAC3C,MAAM,CAAC,GAAG,CAAC,iCAAiC,CAAC,kCAAkC,EAAE,QAAQ,CAAC,CAC3F,CACF,CACF,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ServiceLogger } from "@effect-aws/commons";
|
|
2
|
+
import { Effect, FiberRef, Layer } from "effect";
|
|
3
|
+
import { dual } from "effect/Function";
|
|
4
|
+
import { globalValue } from "effect/GlobalValue";
|
|
5
|
+
/**
|
|
6
|
+
* @since 1.0.0
|
|
7
|
+
* @category opensearch-serverless service config
|
|
8
|
+
*/
|
|
9
|
+
const currentOpenSearchServerlessServiceConfig = globalValue("@effect-aws/client-opensearch-serverless/currentOpenSearchServerlessServiceConfig", () => FiberRef.unsafeMake({}));
|
|
10
|
+
/**
|
|
11
|
+
* @since 1.0.0
|
|
12
|
+
* @category opensearch-serverless service config
|
|
13
|
+
*/
|
|
14
|
+
export const withOpenSearchServerlessServiceConfig = dual(2, (effect, config) => Effect.locally(effect, currentOpenSearchServerlessServiceConfig, config));
|
|
15
|
+
/**
|
|
16
|
+
* @since 1.0.0
|
|
17
|
+
* @category opensearch-serverless service config
|
|
18
|
+
*/
|
|
19
|
+
export const setOpenSearchServerlessServiceConfig = (config) => Layer.locallyScoped(currentOpenSearchServerlessServiceConfig, config);
|
|
20
|
+
/**
|
|
21
|
+
* @since 1.0.0
|
|
22
|
+
* @category adapters
|
|
23
|
+
*/
|
|
24
|
+
export const toOpenSearchServerlessClientConfig = Effect.gen(function* () {
|
|
25
|
+
const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentOpenSearchServerlessServiceConfig);
|
|
26
|
+
const logger = serviceLogger === true
|
|
27
|
+
? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
|
|
28
|
+
: (serviceLogger ? yield* ServiceLogger.toClientLogger(ServiceLogger.make(serviceLogger)) : undefined);
|
|
29
|
+
return { logger, ...config };
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=OpenSearchServerlessServiceConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OpenSearchServerlessServiceConfig.js","sourceRoot":"","sources":["../../src/OpenSearchServerlessServiceConfig.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD;;;GAGG;AACH,MAAM,wCAAwC,GAAG,WAAW,CAC1D,mFAAmF,EACnF,GAAG,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAqC,EAAE,CAAC,CAClE,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAG9C,IAAI,CACN,CAAC,EACD,CAAU,MAA8B,EAAE,MAA0C,EAA0B,EAAE,CAC9G,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,wCAAwC,EAAE,MAAM,CAAC,CAC3E,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,MAA0C,EAAE,EAAE,CACjG,KAAK,CAAC,aAAa,CAAC,wCAAwC,EAAE,MAAM,CAAC,CAAC;AAExE;;;GAGG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAoD,MAAM,CAAC,GAAG,CAC3G,QAAQ,CAAC;IACP,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,wCAAwC,CAAC,CAAC;IAE3G,MAAM,MAAM,GAAG,aAAa,KAAK,IAAI;QACnC,CAAC,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC,aAAa,CAAC,oBAAoB,CAAC;QACzE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC,aAAa,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,27 @@
|
|
|
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 const OpenSearchServerless = OpenSearchServerlessService;
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","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,MAAM,oBAAoB,GAAG,2BAA2B,CAAC"}
|