@effect-aws/client-timestream-write 1.10.9 → 2.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +3 -3
- package/dist/dts/TimestreamWriteClientInstance.d.ts +4 -2
- package/dist/dts/TimestreamWriteClientInstance.d.ts.map +1 -1
- package/dist/dts/TimestreamWriteService.d.ts +24 -24
- package/dist/dts/TimestreamWriteService.d.ts.map +1 -1
- package/dist/dts/TimestreamWriteServiceConfig.d.ts +2 -1
- package/dist/dts/TimestreamWriteServiceConfig.d.ts.map +1 -1
- package/dist/esm/TimestreamWriteClientInstance.js +5 -3
- package/dist/esm/TimestreamWriteClientInstance.js.map +1 -1
- package/dist/esm/TimestreamWriteService.js +4 -2
- package/dist/esm/TimestreamWriteService.js.map +1 -1
- package/dist/esm/TimestreamWriteServiceConfig.js +7 -6
- package/dist/esm/TimestreamWriteServiceConfig.js.map +1 -1
- package/package.json +8 -14
- package/src/TimestreamWriteClientInstance.ts +9 -5
- package/src/TimestreamWriteService.ts +25 -23
- package/src/TimestreamWriteServiceConfig.ts +8 -7
- package/dist/cjs/Errors.d.ts +0 -16
- package/dist/cjs/Errors.d.ts.map +0 -1
- package/dist/cjs/Errors.js +0 -15
- package/dist/cjs/Errors.js.map +0 -1
- package/dist/cjs/TimestreamWriteClientInstance.d.ts +0 -24
- package/dist/cjs/TimestreamWriteClientInstance.d.ts.map +0 -1
- package/dist/cjs/TimestreamWriteClientInstance.js +0 -50
- package/dist/cjs/TimestreamWriteClientInstance.js.map +0 -1
- package/dist/cjs/TimestreamWriteService.d.ts +0 -122
- package/dist/cjs/TimestreamWriteService.d.ts.map +0 -1
- package/dist/cjs/TimestreamWriteService.js +0 -78
- package/dist/cjs/TimestreamWriteService.js.map +0 -1
- package/dist/cjs/TimestreamWriteServiceConfig.d.ts +0 -25
- package/dist/cjs/TimestreamWriteServiceConfig.d.ts.map +0 -1
- package/dist/cjs/TimestreamWriteServiceConfig.js +0 -35
- package/dist/cjs/TimestreamWriteServiceConfig.js.map +0 -1
- package/dist/cjs/index.d.ts +0 -44
- package/dist/cjs/index.d.ts.map +0 -1
- package/dist/cjs/index.js +0 -56
- package/dist/cjs/index.js.map +0 -1
|
@@ -64,8 +64,10 @@ import {
|
|
|
64
64
|
} from "@aws-sdk/client-timestream-write";
|
|
65
65
|
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
66
66
|
import { Service } from "@effect-aws/commons";
|
|
67
|
-
import type
|
|
68
|
-
import
|
|
67
|
+
import type * as Cause from "effect/Cause";
|
|
68
|
+
import * as Effect from "effect/Effect";
|
|
69
|
+
import * as Layer from "effect/Layer";
|
|
70
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
69
71
|
import type {
|
|
70
72
|
AccessDeniedError,
|
|
71
73
|
ConflictError,
|
|
@@ -115,7 +117,7 @@ interface TimestreamWriteService$ {
|
|
|
115
117
|
options?: HttpHandlerOptions,
|
|
116
118
|
): Effect.Effect<
|
|
117
119
|
CreateBatchLoadTaskCommandOutput,
|
|
118
|
-
| Cause.
|
|
120
|
+
| Cause.TimeoutError
|
|
119
121
|
| SdkError
|
|
120
122
|
| AccessDeniedError
|
|
121
123
|
| ConflictError
|
|
@@ -135,7 +137,7 @@ interface TimestreamWriteService$ {
|
|
|
135
137
|
options?: HttpHandlerOptions,
|
|
136
138
|
): Effect.Effect<
|
|
137
139
|
CreateDatabaseCommandOutput,
|
|
138
|
-
| Cause.
|
|
140
|
+
| Cause.TimeoutError
|
|
139
141
|
| SdkError
|
|
140
142
|
| AccessDeniedError
|
|
141
143
|
| ConflictError
|
|
@@ -154,7 +156,7 @@ interface TimestreamWriteService$ {
|
|
|
154
156
|
options?: HttpHandlerOptions,
|
|
155
157
|
): Effect.Effect<
|
|
156
158
|
CreateTableCommandOutput,
|
|
157
|
-
| Cause.
|
|
159
|
+
| Cause.TimeoutError
|
|
158
160
|
| SdkError
|
|
159
161
|
| AccessDeniedError
|
|
160
162
|
| ConflictError
|
|
@@ -174,7 +176,7 @@ interface TimestreamWriteService$ {
|
|
|
174
176
|
options?: HttpHandlerOptions,
|
|
175
177
|
): Effect.Effect<
|
|
176
178
|
DeleteDatabaseCommandOutput,
|
|
177
|
-
| Cause.
|
|
179
|
+
| Cause.TimeoutError
|
|
178
180
|
| SdkError
|
|
179
181
|
| AccessDeniedError
|
|
180
182
|
| InternalServerError
|
|
@@ -192,7 +194,7 @@ interface TimestreamWriteService$ {
|
|
|
192
194
|
options?: HttpHandlerOptions,
|
|
193
195
|
): Effect.Effect<
|
|
194
196
|
DeleteTableCommandOutput,
|
|
195
|
-
| Cause.
|
|
197
|
+
| Cause.TimeoutError
|
|
196
198
|
| SdkError
|
|
197
199
|
| AccessDeniedError
|
|
198
200
|
| InternalServerError
|
|
@@ -210,7 +212,7 @@ interface TimestreamWriteService$ {
|
|
|
210
212
|
options?: HttpHandlerOptions,
|
|
211
213
|
): Effect.Effect<
|
|
212
214
|
DescribeBatchLoadTaskCommandOutput,
|
|
213
|
-
| Cause.
|
|
215
|
+
| Cause.TimeoutError
|
|
214
216
|
| SdkError
|
|
215
217
|
| AccessDeniedError
|
|
216
218
|
| InternalServerError
|
|
@@ -227,7 +229,7 @@ interface TimestreamWriteService$ {
|
|
|
227
229
|
options?: HttpHandlerOptions,
|
|
228
230
|
): Effect.Effect<
|
|
229
231
|
DescribeDatabaseCommandOutput,
|
|
230
|
-
| Cause.
|
|
232
|
+
| Cause.TimeoutError
|
|
231
233
|
| SdkError
|
|
232
234
|
| AccessDeniedError
|
|
233
235
|
| InternalServerError
|
|
@@ -245,7 +247,7 @@ interface TimestreamWriteService$ {
|
|
|
245
247
|
options?: HttpHandlerOptions,
|
|
246
248
|
): Effect.Effect<
|
|
247
249
|
DescribeEndpointsCommandOutput,
|
|
248
|
-
Cause.
|
|
250
|
+
Cause.TimeoutError | SdkError | InternalServerError | ThrottlingError | ValidationError
|
|
249
251
|
>;
|
|
250
252
|
|
|
251
253
|
/**
|
|
@@ -256,7 +258,7 @@ interface TimestreamWriteService$ {
|
|
|
256
258
|
options?: HttpHandlerOptions,
|
|
257
259
|
): Effect.Effect<
|
|
258
260
|
DescribeTableCommandOutput,
|
|
259
|
-
| Cause.
|
|
261
|
+
| Cause.TimeoutError
|
|
260
262
|
| SdkError
|
|
261
263
|
| AccessDeniedError
|
|
262
264
|
| InternalServerError
|
|
@@ -274,7 +276,7 @@ interface TimestreamWriteService$ {
|
|
|
274
276
|
options?: HttpHandlerOptions,
|
|
275
277
|
): Effect.Effect<
|
|
276
278
|
ListBatchLoadTasksCommandOutput,
|
|
277
|
-
| Cause.
|
|
279
|
+
| Cause.TimeoutError
|
|
278
280
|
| SdkError
|
|
279
281
|
| AccessDeniedError
|
|
280
282
|
| InternalServerError
|
|
@@ -291,7 +293,7 @@ interface TimestreamWriteService$ {
|
|
|
291
293
|
options?: HttpHandlerOptions,
|
|
292
294
|
): Effect.Effect<
|
|
293
295
|
ListDatabasesCommandOutput,
|
|
294
|
-
| Cause.
|
|
296
|
+
| Cause.TimeoutError
|
|
295
297
|
| SdkError
|
|
296
298
|
| AccessDeniedError
|
|
297
299
|
| InternalServerError
|
|
@@ -308,7 +310,7 @@ interface TimestreamWriteService$ {
|
|
|
308
310
|
options?: HttpHandlerOptions,
|
|
309
311
|
): Effect.Effect<
|
|
310
312
|
ListTablesCommandOutput,
|
|
311
|
-
| Cause.
|
|
313
|
+
| Cause.TimeoutError
|
|
312
314
|
| SdkError
|
|
313
315
|
| AccessDeniedError
|
|
314
316
|
| InternalServerError
|
|
@@ -326,7 +328,7 @@ interface TimestreamWriteService$ {
|
|
|
326
328
|
options?: HttpHandlerOptions,
|
|
327
329
|
): Effect.Effect<
|
|
328
330
|
ListTagsForResourceCommandOutput,
|
|
329
|
-
Cause.
|
|
331
|
+
Cause.TimeoutError | SdkError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError
|
|
330
332
|
>;
|
|
331
333
|
|
|
332
334
|
/**
|
|
@@ -337,7 +339,7 @@ interface TimestreamWriteService$ {
|
|
|
337
339
|
options?: HttpHandlerOptions,
|
|
338
340
|
): Effect.Effect<
|
|
339
341
|
ResumeBatchLoadTaskCommandOutput,
|
|
340
|
-
| Cause.
|
|
342
|
+
| Cause.TimeoutError
|
|
341
343
|
| SdkError
|
|
342
344
|
| AccessDeniedError
|
|
343
345
|
| InternalServerError
|
|
@@ -355,7 +357,7 @@ interface TimestreamWriteService$ {
|
|
|
355
357
|
options?: HttpHandlerOptions,
|
|
356
358
|
): Effect.Effect<
|
|
357
359
|
TagResourceCommandOutput,
|
|
358
|
-
| Cause.
|
|
360
|
+
| Cause.TimeoutError
|
|
359
361
|
| SdkError
|
|
360
362
|
| InvalidEndpointError
|
|
361
363
|
| ResourceNotFoundError
|
|
@@ -372,7 +374,7 @@ interface TimestreamWriteService$ {
|
|
|
372
374
|
options?: HttpHandlerOptions,
|
|
373
375
|
): Effect.Effect<
|
|
374
376
|
UntagResourceCommandOutput,
|
|
375
|
-
| Cause.
|
|
377
|
+
| Cause.TimeoutError
|
|
376
378
|
| SdkError
|
|
377
379
|
| InvalidEndpointError
|
|
378
380
|
| ResourceNotFoundError
|
|
@@ -389,7 +391,7 @@ interface TimestreamWriteService$ {
|
|
|
389
391
|
options?: HttpHandlerOptions,
|
|
390
392
|
): Effect.Effect<
|
|
391
393
|
UpdateDatabaseCommandOutput,
|
|
392
|
-
| Cause.
|
|
394
|
+
| Cause.TimeoutError
|
|
393
395
|
| SdkError
|
|
394
396
|
| AccessDeniedError
|
|
395
397
|
| InternalServerError
|
|
@@ -408,7 +410,7 @@ interface TimestreamWriteService$ {
|
|
|
408
410
|
options?: HttpHandlerOptions,
|
|
409
411
|
): Effect.Effect<
|
|
410
412
|
UpdateTableCommandOutput,
|
|
411
|
-
| Cause.
|
|
413
|
+
| Cause.TimeoutError
|
|
412
414
|
| SdkError
|
|
413
415
|
| AccessDeniedError
|
|
414
416
|
| InternalServerError
|
|
@@ -426,7 +428,7 @@ interface TimestreamWriteService$ {
|
|
|
426
428
|
options?: HttpHandlerOptions,
|
|
427
429
|
): Effect.Effect<
|
|
428
430
|
WriteRecordsCommandOutput,
|
|
429
|
-
| Cause.
|
|
431
|
+
| Cause.TimeoutError
|
|
430
432
|
| SdkError
|
|
431
433
|
| AccessDeniedError
|
|
432
434
|
| InternalServerError
|
|
@@ -459,10 +461,10 @@ export const makeTimestreamWriteService = Effect.gen(function*() {
|
|
|
459
461
|
* @since 1.0.0
|
|
460
462
|
* @category models
|
|
461
463
|
*/
|
|
462
|
-
export class TimestreamWriteService extends
|
|
464
|
+
export class TimestreamWriteService extends ServiceMap.Service<
|
|
463
465
|
TimestreamWriteService,
|
|
464
466
|
TimestreamWriteService$
|
|
465
|
-
>() {
|
|
467
|
+
>()("@effect-aws/client-timestream-write/TimestreamWriteService") {
|
|
466
468
|
static readonly defaultLayer = Layer.effect(this, makeTimestreamWriteService).pipe(Layer.provide(Instance.layer));
|
|
467
469
|
static readonly layer = (config: TimestreamWriteService.Config) =>
|
|
468
470
|
Layer.effect(this, makeTimestreamWriteService).pipe(
|
|
@@ -3,18 +3,19 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import type { TimestreamWriteClientConfig } from "@aws-sdk/client-timestream-write";
|
|
5
5
|
import { ServiceLogger } from "@effect-aws/commons";
|
|
6
|
-
import
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
7
|
import { dual } from "effect/Function";
|
|
8
|
-
import
|
|
8
|
+
import * as Layer from "effect/Layer";
|
|
9
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
9
10
|
import type { TimestreamWriteService } from "./TimestreamWriteService.js";
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* @since 1.0.0
|
|
13
14
|
* @category timestream-write service config
|
|
14
15
|
*/
|
|
15
|
-
const currentTimestreamWriteServiceConfig =
|
|
16
|
+
const currentTimestreamWriteServiceConfig = ServiceMap.Reference<TimestreamWriteService.Config>(
|
|
16
17
|
"@effect-aws/client-timestream-write/currentTimestreamWriteServiceConfig",
|
|
17
|
-
() =>
|
|
18
|
+
{ defaultValue: () => ({}) },
|
|
18
19
|
);
|
|
19
20
|
|
|
20
21
|
/**
|
|
@@ -27,7 +28,7 @@ export const withTimestreamWriteServiceConfig: {
|
|
|
27
28
|
} = dual(
|
|
28
29
|
2,
|
|
29
30
|
<A, E, R>(effect: Effect.Effect<A, E, R>, config: TimestreamWriteService.Config): Effect.Effect<A, E, R> =>
|
|
30
|
-
Effect.
|
|
31
|
+
Effect.provideService(effect, currentTimestreamWriteServiceConfig, config),
|
|
31
32
|
);
|
|
32
33
|
|
|
33
34
|
/**
|
|
@@ -35,14 +36,14 @@ export const withTimestreamWriteServiceConfig: {
|
|
|
35
36
|
* @category timestream-write service config
|
|
36
37
|
*/
|
|
37
38
|
export const setTimestreamWriteServiceConfig = (config: TimestreamWriteService.Config) =>
|
|
38
|
-
Layer.
|
|
39
|
+
Layer.succeed(currentTimestreamWriteServiceConfig, config);
|
|
39
40
|
|
|
40
41
|
/**
|
|
41
42
|
* @since 1.0.0
|
|
42
43
|
* @category adapters
|
|
43
44
|
*/
|
|
44
45
|
export const toTimestreamWriteClientConfig: Effect.Effect<TimestreamWriteClientConfig> = Effect.gen(function*() {
|
|
45
|
-
const { logger: serviceLogger, ...config } = yield*
|
|
46
|
+
const { logger: serviceLogger, ...config } = yield* currentTimestreamWriteServiceConfig;
|
|
46
47
|
|
|
47
48
|
const logger = serviceLogger === true
|
|
48
49
|
? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
|
package/dist/cjs/Errors.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { AccessDeniedException, ConflictException, InternalServerException, InvalidEndpointException, RejectedRecordsException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException } from "@aws-sdk/client-timestream-write";
|
|
2
|
-
import type { TaggedException } from "@effect-aws/commons";
|
|
3
|
-
export declare const AllServiceErrors: readonly ["AccessDeniedException", "ConflictException", "InternalServerException", "InvalidEndpointException", "RejectedRecordsException", "ResourceNotFoundException", "ServiceQuotaExceededException", "ThrottlingException", "ValidationException"];
|
|
4
|
-
export type AccessDeniedError = TaggedException<AccessDeniedException>;
|
|
5
|
-
export type ConflictError = TaggedException<ConflictException>;
|
|
6
|
-
export type InternalServerError = TaggedException<InternalServerException>;
|
|
7
|
-
export type InvalidEndpointError = TaggedException<InvalidEndpointException>;
|
|
8
|
-
export type RejectedRecordsError = TaggedException<RejectedRecordsException>;
|
|
9
|
-
export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
|
|
10
|
-
export type ServiceQuotaExceededError = TaggedException<ServiceQuotaExceededException>;
|
|
11
|
-
export type ThrottlingError = TaggedException<ThrottlingException>;
|
|
12
|
-
export type ValidationError = TaggedException<ValidationException>;
|
|
13
|
-
export type SdkError = TaggedException<Error & {
|
|
14
|
-
name: "SdkError";
|
|
15
|
-
}>;
|
|
16
|
-
//# sourceMappingURL=Errors.d.ts.map
|
package/dist/cjs/Errors.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,wBAAwB,EACxB,wBAAwB,EACxB,yBAAyB,EACzB,6BAA6B,EAC7B,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,eAAO,MAAM,gBAAgB,wPAUnB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,qBAAqB,CAAC,CAAC;AACvE,MAAM,MAAM,aAAa,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAC/D,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC;AAC3E,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,wBAAwB,CAAC,CAAC;AAC7E,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,wBAAwB,CAAC,CAAC;AAC7E,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,yBAAyB,GAAG,eAAe,CAAC,6BAA6B,CAAC,CAAC;AACvF,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC"}
|
package/dist/cjs/Errors.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AllServiceErrors = void 0;
|
|
4
|
-
exports.AllServiceErrors = [
|
|
5
|
-
"AccessDeniedException",
|
|
6
|
-
"ConflictException",
|
|
7
|
-
"InternalServerException",
|
|
8
|
-
"InvalidEndpointException",
|
|
9
|
-
"RejectedRecordsException",
|
|
10
|
-
"ResourceNotFoundException",
|
|
11
|
-
"ServiceQuotaExceededException",
|
|
12
|
-
"ThrottlingException",
|
|
13
|
-
"ValidationException",
|
|
14
|
-
];
|
|
15
|
-
//# sourceMappingURL=Errors.js.map
|
package/dist/cjs/Errors.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAaa,QAAA,gBAAgB,GAAG;IAC9B,uBAAuB;IACvB,mBAAmB;IACnB,yBAAyB;IACzB,0BAA0B;IAC1B,0BAA0B;IAC1B,2BAA2B;IAC3B,+BAA+B;IAC/B,qBAAqB;IACrB,qBAAqB;CACb,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @since 1.0.0
|
|
3
|
-
*/
|
|
4
|
-
import { TimestreamWriteClient } from "@aws-sdk/client-timestream-write";
|
|
5
|
-
import { Context, Effect, Layer } from "effect";
|
|
6
|
-
declare const TimestreamWriteClientInstance_base: Context.TagClass<TimestreamWriteClientInstance, "@effect-aws/client-timestream-write/TimestreamWriteClientInstance", TimestreamWriteClient>;
|
|
7
|
-
/**
|
|
8
|
-
* @since 1.0.0
|
|
9
|
-
* @category tags
|
|
10
|
-
*/
|
|
11
|
-
export declare class TimestreamWriteClientInstance extends TimestreamWriteClientInstance_base {
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @since 1.0.0
|
|
15
|
-
* @category constructors
|
|
16
|
-
*/
|
|
17
|
-
export declare const make: Effect.Effect<TimestreamWriteClient, never, import("effect/Scope").Scope>;
|
|
18
|
-
/**
|
|
19
|
-
* @since 1.0.0
|
|
20
|
-
* @category layers
|
|
21
|
-
*/
|
|
22
|
-
export declare const layer: Layer.Layer<TimestreamWriteClientInstance, never, never>;
|
|
23
|
-
export {};
|
|
24
|
-
//# sourceMappingURL=TimestreamWriteClientInstance.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TimestreamWriteClientInstance.d.ts","sourceRoot":"","sources":["../../src/TimestreamWriteClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,6BAA8B,SAAQ,kCAEM;CAAG;AAE5D;;;GAGG;AACH,eAAO,MAAM,IAAI,2EAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,0DAAoD,CAAC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.layer = exports.make = exports.TimestreamWriteClientInstance = void 0;
|
|
27
|
-
/**
|
|
28
|
-
* @since 1.0.0
|
|
29
|
-
*/
|
|
30
|
-
const client_timestream_write_1 = require("@aws-sdk/client-timestream-write");
|
|
31
|
-
const effect_1 = require("effect");
|
|
32
|
-
const TimestreamWriteServiceConfig = __importStar(require("./TimestreamWriteServiceConfig.js"));
|
|
33
|
-
/**
|
|
34
|
-
* @since 1.0.0
|
|
35
|
-
* @category tags
|
|
36
|
-
*/
|
|
37
|
-
class TimestreamWriteClientInstance extends effect_1.Context.Tag("@effect-aws/client-timestream-write/TimestreamWriteClientInstance")() {
|
|
38
|
-
}
|
|
39
|
-
exports.TimestreamWriteClientInstance = TimestreamWriteClientInstance;
|
|
40
|
-
/**
|
|
41
|
-
* @since 1.0.0
|
|
42
|
-
* @category constructors
|
|
43
|
-
*/
|
|
44
|
-
exports.make = effect_1.Effect.flatMap(TimestreamWriteServiceConfig.toTimestreamWriteClientConfig, (config) => effect_1.Effect.acquireRelease(effect_1.Effect.sync(() => new client_timestream_write_1.TimestreamWriteClient(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(TimestreamWriteClientInstance, exports.make);
|
|
50
|
-
//# sourceMappingURL=TimestreamWriteClientInstance.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TimestreamWriteClientInstance.js","sourceRoot":"","sources":["../../src/TimestreamWriteClientInstance.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,8EAAyE;AACzE,mCAAgD;AAChD,gGAAkF;AAElF;;;GAGG;AACH,MAAa,6BAA8B,SAAQ,gBAAO,CAAC,GAAG,CAC5D,mEAAmE,CACpE,EAAwD;CAAG;AAF5D,sEAE4D;AAE5D;;;GAGG;AACU,QAAA,IAAI,GAAG,eAAM,CAAC,OAAO,CAChC,4BAA4B,CAAC,6BAA6B,EAC1D,CAAC,MAAM,EAAE,EAAE,CACT,eAAM,CAAC,cAAc,CACnB,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,+CAAqB,CAAC,MAAM,CAAC,CAAC,EACpD,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,6BAA6B,EAAE,YAAI,CAAC,CAAC"}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @since 1.0.0
|
|
3
|
-
*/
|
|
4
|
-
import { type CreateBatchLoadTaskCommandInput, type CreateBatchLoadTaskCommandOutput, type CreateDatabaseCommandInput, type CreateDatabaseCommandOutput, type CreateTableCommandInput, type CreateTableCommandOutput, type DeleteDatabaseCommandInput, type DeleteDatabaseCommandOutput, type DeleteTableCommandInput, type DeleteTableCommandOutput, type DescribeBatchLoadTaskCommandInput, type DescribeBatchLoadTaskCommandOutput, type DescribeDatabaseCommandInput, type DescribeDatabaseCommandOutput, type DescribeEndpointsCommandInput, type DescribeEndpointsCommandOutput, type DescribeTableCommandInput, type DescribeTableCommandOutput, type ListBatchLoadTasksCommandInput, type ListBatchLoadTasksCommandOutput, type ListDatabasesCommandInput, type ListDatabasesCommandOutput, type ListTablesCommandInput, type ListTablesCommandOutput, type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput, type ResumeBatchLoadTaskCommandInput, type ResumeBatchLoadTaskCommandOutput, type TagResourceCommandInput, type TagResourceCommandOutput, type TimestreamWriteClient, type TimestreamWriteClientConfig, type UntagResourceCommandInput, type UntagResourceCommandOutput, type UpdateDatabaseCommandInput, type UpdateDatabaseCommandOutput, type UpdateTableCommandInput, type UpdateTableCommandOutput, type WriteRecordsCommandInput, type WriteRecordsCommandOutput } from "@aws-sdk/client-timestream-write";
|
|
5
|
-
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
6
|
-
import type { Cause } from "effect";
|
|
7
|
-
import { Effect, Layer } from "effect";
|
|
8
|
-
import type { AccessDeniedError, ConflictError, InternalServerError, InvalidEndpointError, RejectedRecordsError, ResourceNotFoundError, SdkError, ServiceQuotaExceededError, ThrottlingError, ValidationError } from "./Errors.js";
|
|
9
|
-
import * as Instance from "./TimestreamWriteClientInstance.js";
|
|
10
|
-
interface TimestreamWriteService$ {
|
|
11
|
-
readonly _: unique symbol;
|
|
12
|
-
/**
|
|
13
|
-
* @see {@link CreateBatchLoadTaskCommand}
|
|
14
|
-
*/
|
|
15
|
-
createBatchLoadTask(args: CreateBatchLoadTaskCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateBatchLoadTaskCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | ConflictError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
16
|
-
/**
|
|
17
|
-
* @see {@link CreateDatabaseCommand}
|
|
18
|
-
*/
|
|
19
|
-
createDatabase(args: CreateDatabaseCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateDatabaseCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | ConflictError | InternalServerError | InvalidEndpointError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
20
|
-
/**
|
|
21
|
-
* @see {@link CreateTableCommand}
|
|
22
|
-
*/
|
|
23
|
-
createTable(args: CreateTableCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateTableCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | ConflictError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
24
|
-
/**
|
|
25
|
-
* @see {@link DeleteDatabaseCommand}
|
|
26
|
-
*/
|
|
27
|
-
deleteDatabase(args: DeleteDatabaseCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteDatabaseCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
28
|
-
/**
|
|
29
|
-
* @see {@link DeleteTableCommand}
|
|
30
|
-
*/
|
|
31
|
-
deleteTable(args: DeleteTableCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteTableCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
32
|
-
/**
|
|
33
|
-
* @see {@link DescribeBatchLoadTaskCommand}
|
|
34
|
-
*/
|
|
35
|
-
describeBatchLoadTask(args: DescribeBatchLoadTaskCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeBatchLoadTaskCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError>;
|
|
36
|
-
/**
|
|
37
|
-
* @see {@link DescribeDatabaseCommand}
|
|
38
|
-
*/
|
|
39
|
-
describeDatabase(args: DescribeDatabaseCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeDatabaseCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
40
|
-
/**
|
|
41
|
-
* @see {@link DescribeEndpointsCommand}
|
|
42
|
-
*/
|
|
43
|
-
describeEndpoints(args: DescribeEndpointsCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeEndpointsCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ThrottlingError | ValidationError>;
|
|
44
|
-
/**
|
|
45
|
-
* @see {@link DescribeTableCommand}
|
|
46
|
-
*/
|
|
47
|
-
describeTable(args: DescribeTableCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeTableCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
48
|
-
/**
|
|
49
|
-
* @see {@link ListBatchLoadTasksCommand}
|
|
50
|
-
*/
|
|
51
|
-
listBatchLoadTasks(args: ListBatchLoadTasksCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListBatchLoadTasksCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ThrottlingError | ValidationError>;
|
|
52
|
-
/**
|
|
53
|
-
* @see {@link ListDatabasesCommand}
|
|
54
|
-
*/
|
|
55
|
-
listDatabases(args: ListDatabasesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListDatabasesCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ThrottlingError | ValidationError>;
|
|
56
|
-
/**
|
|
57
|
-
* @see {@link ListTablesCommand}
|
|
58
|
-
*/
|
|
59
|
-
listTables(args: ListTablesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTablesCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
60
|
-
/**
|
|
61
|
-
* @see {@link ListTagsForResourceCommand}
|
|
62
|
-
*/
|
|
63
|
-
listTagsForResource(args: ListTagsForResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsForResourceCommandOutput, Cause.TimeoutException | SdkError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
64
|
-
/**
|
|
65
|
-
* @see {@link ResumeBatchLoadTaskCommand}
|
|
66
|
-
*/
|
|
67
|
-
resumeBatchLoadTask(args: ResumeBatchLoadTaskCommandInput, options?: HttpHandlerOptions): Effect.Effect<ResumeBatchLoadTaskCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
68
|
-
/**
|
|
69
|
-
* @see {@link TagResourceCommand}
|
|
70
|
-
*/
|
|
71
|
-
tagResource(args: TagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagResourceCommandOutput, Cause.TimeoutException | SdkError | InvalidEndpointError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
72
|
-
/**
|
|
73
|
-
* @see {@link UntagResourceCommand}
|
|
74
|
-
*/
|
|
75
|
-
untagResource(args: UntagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagResourceCommandOutput, Cause.TimeoutException | SdkError | InvalidEndpointError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
76
|
-
/**
|
|
77
|
-
* @see {@link UpdateDatabaseCommand}
|
|
78
|
-
*/
|
|
79
|
-
updateDatabase(args: UpdateDatabaseCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateDatabaseCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
80
|
-
/**
|
|
81
|
-
* @see {@link UpdateTableCommand}
|
|
82
|
-
*/
|
|
83
|
-
updateTable(args: UpdateTableCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateTableCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
84
|
-
/**
|
|
85
|
-
* @see {@link WriteRecordsCommand}
|
|
86
|
-
*/
|
|
87
|
-
writeRecords(args: WriteRecordsCommandInput, options?: HttpHandlerOptions): Effect.Effect<WriteRecordsCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | RejectedRecordsError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* @since 1.0.0
|
|
91
|
-
* @category constructors
|
|
92
|
-
*/
|
|
93
|
-
export declare const makeTimestreamWriteService: Effect.Effect<TimestreamWriteService$, never, Instance.TimestreamWriteClientInstance>;
|
|
94
|
-
declare const TimestreamWriteService_base: import("effect/Context").TagClass<TimestreamWriteService, "@effect-aws/client-timestream-write/TimestreamWriteService", TimestreamWriteService$> & Effect.Tag.Proxy<TimestreamWriteService, TimestreamWriteService$> & {
|
|
95
|
-
use: <X>(body: (_: TimestreamWriteService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, TimestreamWriteService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, Cause.UnknownException, TimestreamWriteService> : Effect.Effect<X, never, TimestreamWriteService>;
|
|
96
|
-
};
|
|
97
|
-
/**
|
|
98
|
-
* @since 1.0.0
|
|
99
|
-
* @category models
|
|
100
|
-
*/
|
|
101
|
-
export declare class TimestreamWriteService extends TimestreamWriteService_base {
|
|
102
|
-
static readonly defaultLayer: Layer.Layer<TimestreamWriteService, never, never>;
|
|
103
|
-
static readonly layer: (config: TimestreamWriteService.Config) => Layer.Layer<TimestreamWriteService, never, never>;
|
|
104
|
-
static readonly baseLayer: (evaluate: (defaultConfig: TimestreamWriteClientConfig) => TimestreamWriteClient) => Layer.Layer<TimestreamWriteService, never, never>;
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* @since 1.0.0
|
|
108
|
-
*/
|
|
109
|
-
export declare namespace TimestreamWriteService {
|
|
110
|
-
/**
|
|
111
|
-
* @since 1.0.0
|
|
112
|
-
*/
|
|
113
|
-
interface Config extends Omit<TimestreamWriteClientConfig, "logger"> {
|
|
114
|
-
readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* @since 1.0.0
|
|
118
|
-
*/
|
|
119
|
-
type Type = TimestreamWriteService$;
|
|
120
|
-
}
|
|
121
|
-
export {};
|
|
122
|
-
//# sourceMappingURL=TimestreamWriteService.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TimestreamWriteService.d.ts","sourceRoot":"","sources":["../../src/TimestreamWriteService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB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M,CAAC,QAAQ,CAAC,SAAS,aACb,CAAC,aAAa,EAAE,2BAA2B,KAAK,qBAAqB,uDAS7E;CACL;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,sBAAsB,CAAC;IAC9C;;OAEG;IACH,UAAiB,MAAO,SAAQ,IAAI,CAAC,2BAA2B,EAAE,QAAQ,CAAC;QACzE,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;IAED;;OAEG;IACH,KAAY,IAAI,GAAG,uBAAuB,CAAC;CAC5C"}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.TimestreamWriteService = exports.makeTimestreamWriteService = void 0;
|
|
27
|
-
/**
|
|
28
|
-
* @since 1.0.0
|
|
29
|
-
*/
|
|
30
|
-
const client_timestream_write_1 = require("@aws-sdk/client-timestream-write");
|
|
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("./TimestreamWriteClientInstance.js"));
|
|
35
|
-
const TimestreamWriteServiceConfig = __importStar(require("./TimestreamWriteServiceConfig.js"));
|
|
36
|
-
const commands = {
|
|
37
|
-
CreateBatchLoadTaskCommand: client_timestream_write_1.CreateBatchLoadTaskCommand,
|
|
38
|
-
CreateDatabaseCommand: client_timestream_write_1.CreateDatabaseCommand,
|
|
39
|
-
CreateTableCommand: client_timestream_write_1.CreateTableCommand,
|
|
40
|
-
DeleteDatabaseCommand: client_timestream_write_1.DeleteDatabaseCommand,
|
|
41
|
-
DeleteTableCommand: client_timestream_write_1.DeleteTableCommand,
|
|
42
|
-
DescribeBatchLoadTaskCommand: client_timestream_write_1.DescribeBatchLoadTaskCommand,
|
|
43
|
-
DescribeDatabaseCommand: client_timestream_write_1.DescribeDatabaseCommand,
|
|
44
|
-
DescribeEndpointsCommand: client_timestream_write_1.DescribeEndpointsCommand,
|
|
45
|
-
DescribeTableCommand: client_timestream_write_1.DescribeTableCommand,
|
|
46
|
-
ListBatchLoadTasksCommand: client_timestream_write_1.ListBatchLoadTasksCommand,
|
|
47
|
-
ListDatabasesCommand: client_timestream_write_1.ListDatabasesCommand,
|
|
48
|
-
ListTablesCommand: client_timestream_write_1.ListTablesCommand,
|
|
49
|
-
ListTagsForResourceCommand: client_timestream_write_1.ListTagsForResourceCommand,
|
|
50
|
-
ResumeBatchLoadTaskCommand: client_timestream_write_1.ResumeBatchLoadTaskCommand,
|
|
51
|
-
TagResourceCommand: client_timestream_write_1.TagResourceCommand,
|
|
52
|
-
UntagResourceCommand: client_timestream_write_1.UntagResourceCommand,
|
|
53
|
-
UpdateDatabaseCommand: client_timestream_write_1.UpdateDatabaseCommand,
|
|
54
|
-
UpdateTableCommand: client_timestream_write_1.UpdateTableCommand,
|
|
55
|
-
WriteRecordsCommand: client_timestream_write_1.WriteRecordsCommand,
|
|
56
|
-
};
|
|
57
|
-
/**
|
|
58
|
-
* @since 1.0.0
|
|
59
|
-
* @category constructors
|
|
60
|
-
*/
|
|
61
|
-
exports.makeTimestreamWriteService = effect_1.Effect.gen(function* () {
|
|
62
|
-
const client = yield* Instance.TimestreamWriteClientInstance;
|
|
63
|
-
return yield* commons_1.Service.fromClientAndCommands(client, commands, {
|
|
64
|
-
errorTags: Errors_js_1.AllServiceErrors,
|
|
65
|
-
resolveClientConfig: TimestreamWriteServiceConfig.toTimestreamWriteClientConfig,
|
|
66
|
-
});
|
|
67
|
-
});
|
|
68
|
-
/**
|
|
69
|
-
* @since 1.0.0
|
|
70
|
-
* @category models
|
|
71
|
-
*/
|
|
72
|
-
class TimestreamWriteService extends effect_1.Effect.Tag("@effect-aws/client-timestream-write/TimestreamWriteService")() {
|
|
73
|
-
static defaultLayer = effect_1.Layer.effect(this, exports.makeTimestreamWriteService).pipe(effect_1.Layer.provide(Instance.layer));
|
|
74
|
-
static layer = (config) => effect_1.Layer.effect(this, exports.makeTimestreamWriteService).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(TimestreamWriteServiceConfig.setTimestreamWriteServiceConfig(config)));
|
|
75
|
-
static baseLayer = (evaluate) => effect_1.Layer.effect(this, exports.makeTimestreamWriteService).pipe(effect_1.Layer.provide(effect_1.Layer.effect(Instance.TimestreamWriteClientInstance, effect_1.Effect.map(TimestreamWriteServiceConfig.toTimestreamWriteClientConfig, evaluate))));
|
|
76
|
-
}
|
|
77
|
-
exports.TimestreamWriteService = TimestreamWriteService;
|
|
78
|
-
//# sourceMappingURL=TimestreamWriteService.js.map
|
|
@@ -1 +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C,GAAG,CAAC,4DAA4D,CAAC,EAGjH;IACD,MAAM,CAAU,YAAY,GAAG,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,kCAA0B,CAAC,CAAC,IAAI,CAAC,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IAClH,MAAM,CAAU,KAAK,GAAG,CAAC,MAAqC,EAAE,EAAE,CAChE,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,kCAA0B,CAAC,CAAC,IAAI,CACjD,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC7B,cAAK,CAAC,OAAO,CAAC,4BAA4B,CAAC,+BAA+B,CAAC,MAAM,CAAC,CAAC,CACpF,CAAC;IACJ,MAAM,CAAU,SAAS,GAAG,CAC1B,QAA+E,EAC/E,EAAE,CACF,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,kCAA0B,CAAC,CAAC,IAAI,CACjD,cAAK,CAAC,OAAO,CACX,cAAK,CAAC,MAAM,CACV,QAAQ,CAAC,6BAA6B,EACtC,eAAM,CAAC,GAAG,CAAC,4BAA4B,CAAC,6BAA6B,EAAE,QAAQ,CAAC,CACjF,CACF,CACF,CAAC;;AApBN,wDAqBC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @since 1.0.0
|
|
3
|
-
*/
|
|
4
|
-
import type { TimestreamWriteClientConfig } from "@aws-sdk/client-timestream-write";
|
|
5
|
-
import { Effect, Layer } from "effect";
|
|
6
|
-
import type { TimestreamWriteService } from "./TimestreamWriteService.js";
|
|
7
|
-
/**
|
|
8
|
-
* @since 1.0.0
|
|
9
|
-
* @category timestream-write service config
|
|
10
|
-
*/
|
|
11
|
-
export declare const withTimestreamWriteServiceConfig: {
|
|
12
|
-
(config: TimestreamWriteService.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: TimestreamWriteService.Config): Effect.Effect<A, E, R>;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* @since 1.0.0
|
|
17
|
-
* @category timestream-write service config
|
|
18
|
-
*/
|
|
19
|
-
export declare const setTimestreamWriteServiceConfig: (config: TimestreamWriteService.Config) => Layer.Layer<never, never, never>;
|
|
20
|
-
/**
|
|
21
|
-
* @since 1.0.0
|
|
22
|
-
* @category adapters
|
|
23
|
-
*/
|
|
24
|
-
export declare const toTimestreamWriteClientConfig: Effect.Effect<TimestreamWriteClientConfig>;
|
|
25
|
-
//# sourceMappingURL=TimestreamWriteServiceConfig.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TimestreamWriteServiceConfig.d.ts","sourceRoot":"","sources":["../../src/TimestreamWriteServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAEpF,OAAO,EAAE,MAAM,EAAY,KAAK,EAAE,MAAM,QAAQ,CAAC;AAGjD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAW1E;;;GAGG;AACH,eAAO,MAAM,gCAAgC,EAAE;IAC7C,CAAC,MAAM,EAAE,sBAAsB,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;IAC7G,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,sBAAsB,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAK1G,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,+BAA+B,WAAY,uBAAuB,MAAM,qCACnB,CAAC;AAEnE;;;GAGG;AACH,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAAC,MAAM,CAAC,2BAA2B,CAQnF,CAAC"}
|