@effect-aws/client-timestream-write 1.10.9 → 2.0.0-beta.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/LICENSE +1 -1
- package/README.md +3 -3
- package/dist/dts/TimestreamWriteClientInstance.d.ts +2 -2
- package/dist/dts/TimestreamWriteClientInstance.d.ts.map +1 -1
- package/dist/dts/TimestreamWriteService.d.ts +21 -23
- package/dist/dts/TimestreamWriteService.d.ts.map +1 -1
- package/dist/dts/TimestreamWriteServiceConfig.d.ts.map +1 -1
- package/dist/esm/TimestreamWriteClientInstance.js +3 -3
- package/dist/esm/TimestreamWriteClientInstance.js.map +1 -1
- package/dist/esm/TimestreamWriteService.js +2 -2
- package/dist/esm/TimestreamWriteService.js.map +1 -1
- package/dist/esm/TimestreamWriteServiceConfig.js +5 -6
- package/dist/esm/TimestreamWriteServiceConfig.js.map +1 -1
- package/package.json +8 -14
- package/src/TimestreamWriteClientInstance.ts +7 -5
- package/src/TimestreamWriteService.ts +22 -22
- package/src/TimestreamWriteServiceConfig.ts +6 -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
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ With default TimestreamWriteClient instance:
|
|
|
16
16
|
```typescript
|
|
17
17
|
import { TimestreamWrite } from "@effect-aws/client-timestream-write";
|
|
18
18
|
|
|
19
|
-
const program = TimestreamWrite.listTables(args);
|
|
19
|
+
const program = TimestreamWrite.use((svc) => svc.listTables(args));
|
|
20
20
|
|
|
21
21
|
const result = pipe(
|
|
22
22
|
program,
|
|
@@ -30,7 +30,7 @@ With custom TimestreamWriteClient instance:
|
|
|
30
30
|
```typescript
|
|
31
31
|
import { TimestreamWrite } from "@effect-aws/client-timestream-write";
|
|
32
32
|
|
|
33
|
-
const program = TimestreamWrite.listTables(args);
|
|
33
|
+
const program = TimestreamWrite.use((svc) => svc.listTables(args));
|
|
34
34
|
|
|
35
35
|
const result = await pipe(
|
|
36
36
|
program,
|
|
@@ -46,7 +46,7 @@ With custom TimestreamWriteClient configuration:
|
|
|
46
46
|
```typescript
|
|
47
47
|
import { TimestreamWrite } from "@effect-aws/client-timestream-write";
|
|
48
48
|
|
|
49
|
-
const program = TimestreamWrite.listTables(args);
|
|
49
|
+
const program = TimestreamWrite.use((svc) => svc.listTables(args));
|
|
50
50
|
|
|
51
51
|
const result = await pipe(
|
|
52
52
|
program,
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { TimestreamWriteClient } from "@aws-sdk/client-timestream-write";
|
|
5
|
-
import {
|
|
6
|
-
declare const TimestreamWriteClientInstance_base:
|
|
5
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
6
|
+
declare const TimestreamWriteClientInstance_base: ServiceMap.ServiceClass<TimestreamWriteClientInstance, "@effect-aws/client-timestream-write/TimestreamWriteClientInstance", TimestreamWriteClient>;
|
|
7
7
|
/**
|
|
8
8
|
* @since 1.0.0
|
|
9
9
|
* @category tags
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;;AAGnD;;;GAGG;AACH,qBAAa,6BACX,SAAQ,kCAEP;CACD;AAEF;;;GAGG;AACH,eAAO,MAAM,IAAI,2EAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,0DAAoD,CAAC"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
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
5
|
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
6
6
|
import type { Cause } from "effect";
|
|
7
|
-
import { Effect, Layer } from "effect";
|
|
7
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
8
8
|
import type { AccessDeniedError, ConflictError, InternalServerError, InvalidEndpointError, RejectedRecordsError, ResourceNotFoundError, SdkError, ServiceQuotaExceededError, ThrottlingError, ValidationError } from "./Errors.js";
|
|
9
9
|
import * as Instance from "./TimestreamWriteClientInstance.js";
|
|
10
10
|
interface TimestreamWriteService$ {
|
|
@@ -12,88 +12,86 @@ interface TimestreamWriteService$ {
|
|
|
12
12
|
/**
|
|
13
13
|
* @see {@link CreateBatchLoadTaskCommand}
|
|
14
14
|
*/
|
|
15
|
-
createBatchLoadTask(args: CreateBatchLoadTaskCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateBatchLoadTaskCommandOutput, Cause.
|
|
15
|
+
createBatchLoadTask(args: CreateBatchLoadTaskCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateBatchLoadTaskCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
16
16
|
/**
|
|
17
17
|
* @see {@link CreateDatabaseCommand}
|
|
18
18
|
*/
|
|
19
|
-
createDatabase(args: CreateDatabaseCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateDatabaseCommandOutput, Cause.
|
|
19
|
+
createDatabase(args: CreateDatabaseCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateDatabaseCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError | InternalServerError | InvalidEndpointError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
20
20
|
/**
|
|
21
21
|
* @see {@link CreateTableCommand}
|
|
22
22
|
*/
|
|
23
|
-
createTable(args: CreateTableCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateTableCommandOutput, Cause.
|
|
23
|
+
createTable(args: CreateTableCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateTableCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
24
24
|
/**
|
|
25
25
|
* @see {@link DeleteDatabaseCommand}
|
|
26
26
|
*/
|
|
27
|
-
deleteDatabase(args: DeleteDatabaseCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteDatabaseCommandOutput, Cause.
|
|
27
|
+
deleteDatabase(args: DeleteDatabaseCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteDatabaseCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
28
28
|
/**
|
|
29
29
|
* @see {@link DeleteTableCommand}
|
|
30
30
|
*/
|
|
31
|
-
deleteTable(args: DeleteTableCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteTableCommandOutput, Cause.
|
|
31
|
+
deleteTable(args: DeleteTableCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteTableCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
32
32
|
/**
|
|
33
33
|
* @see {@link DescribeBatchLoadTaskCommand}
|
|
34
34
|
*/
|
|
35
|
-
describeBatchLoadTask(args: DescribeBatchLoadTaskCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeBatchLoadTaskCommandOutput, Cause.
|
|
35
|
+
describeBatchLoadTask(args: DescribeBatchLoadTaskCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeBatchLoadTaskCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError>;
|
|
36
36
|
/**
|
|
37
37
|
* @see {@link DescribeDatabaseCommand}
|
|
38
38
|
*/
|
|
39
|
-
describeDatabase(args: DescribeDatabaseCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeDatabaseCommandOutput, Cause.
|
|
39
|
+
describeDatabase(args: DescribeDatabaseCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeDatabaseCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
40
40
|
/**
|
|
41
41
|
* @see {@link DescribeEndpointsCommand}
|
|
42
42
|
*/
|
|
43
|
-
describeEndpoints(args: DescribeEndpointsCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeEndpointsCommandOutput, Cause.
|
|
43
|
+
describeEndpoints(args: DescribeEndpointsCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeEndpointsCommandOutput, Cause.TimeoutError | SdkError | InternalServerError | ThrottlingError | ValidationError>;
|
|
44
44
|
/**
|
|
45
45
|
* @see {@link DescribeTableCommand}
|
|
46
46
|
*/
|
|
47
|
-
describeTable(args: DescribeTableCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeTableCommandOutput, Cause.
|
|
47
|
+
describeTable(args: DescribeTableCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeTableCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
48
48
|
/**
|
|
49
49
|
* @see {@link ListBatchLoadTasksCommand}
|
|
50
50
|
*/
|
|
51
|
-
listBatchLoadTasks(args: ListBatchLoadTasksCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListBatchLoadTasksCommandOutput, Cause.
|
|
51
|
+
listBatchLoadTasks(args: ListBatchLoadTasksCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListBatchLoadTasksCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ThrottlingError | ValidationError>;
|
|
52
52
|
/**
|
|
53
53
|
* @see {@link ListDatabasesCommand}
|
|
54
54
|
*/
|
|
55
|
-
listDatabases(args: ListDatabasesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListDatabasesCommandOutput, Cause.
|
|
55
|
+
listDatabases(args: ListDatabasesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListDatabasesCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ThrottlingError | ValidationError>;
|
|
56
56
|
/**
|
|
57
57
|
* @see {@link ListTablesCommand}
|
|
58
58
|
*/
|
|
59
|
-
listTables(args: ListTablesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTablesCommandOutput, Cause.
|
|
59
|
+
listTables(args: ListTablesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTablesCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
60
60
|
/**
|
|
61
61
|
* @see {@link ListTagsForResourceCommand}
|
|
62
62
|
*/
|
|
63
|
-
listTagsForResource(args: ListTagsForResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsForResourceCommandOutput, Cause.
|
|
63
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsForResourceCommandOutput, Cause.TimeoutError | SdkError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
64
64
|
/**
|
|
65
65
|
* @see {@link ResumeBatchLoadTaskCommand}
|
|
66
66
|
*/
|
|
67
|
-
resumeBatchLoadTask(args: ResumeBatchLoadTaskCommandInput, options?: HttpHandlerOptions): Effect.Effect<ResumeBatchLoadTaskCommandOutput, Cause.
|
|
67
|
+
resumeBatchLoadTask(args: ResumeBatchLoadTaskCommandInput, options?: HttpHandlerOptions): Effect.Effect<ResumeBatchLoadTaskCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
68
68
|
/**
|
|
69
69
|
* @see {@link TagResourceCommand}
|
|
70
70
|
*/
|
|
71
|
-
tagResource(args: TagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagResourceCommandOutput, Cause.
|
|
71
|
+
tagResource(args: TagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagResourceCommandOutput, Cause.TimeoutError | SdkError | InvalidEndpointError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
72
72
|
/**
|
|
73
73
|
* @see {@link UntagResourceCommand}
|
|
74
74
|
*/
|
|
75
|
-
untagResource(args: UntagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagResourceCommandOutput, Cause.
|
|
75
|
+
untagResource(args: UntagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagResourceCommandOutput, Cause.TimeoutError | SdkError | InvalidEndpointError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
76
76
|
/**
|
|
77
77
|
* @see {@link UpdateDatabaseCommand}
|
|
78
78
|
*/
|
|
79
|
-
updateDatabase(args: UpdateDatabaseCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateDatabaseCommandOutput, Cause.
|
|
79
|
+
updateDatabase(args: UpdateDatabaseCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateDatabaseCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
80
80
|
/**
|
|
81
81
|
* @see {@link UpdateTableCommand}
|
|
82
82
|
*/
|
|
83
|
-
updateTable(args: UpdateTableCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateTableCommandOutput, Cause.
|
|
83
|
+
updateTable(args: UpdateTableCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateTableCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
84
84
|
/**
|
|
85
85
|
* @see {@link WriteRecordsCommand}
|
|
86
86
|
*/
|
|
87
|
-
writeRecords(args: WriteRecordsCommandInput, options?: HttpHandlerOptions): Effect.Effect<WriteRecordsCommandOutput, Cause.
|
|
87
|
+
writeRecords(args: WriteRecordsCommandInput, options?: HttpHandlerOptions): Effect.Effect<WriteRecordsCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | RejectedRecordsError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
90
90
|
* @since 1.0.0
|
|
91
91
|
* @category constructors
|
|
92
92
|
*/
|
|
93
93
|
export declare const makeTimestreamWriteService: Effect.Effect<TimestreamWriteService$, never, Instance.TimestreamWriteClientInstance>;
|
|
94
|
-
declare const TimestreamWriteService_base:
|
|
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
|
-
};
|
|
94
|
+
declare const TimestreamWriteService_base: ServiceMap.ServiceClass<TimestreamWriteService, "@effect-aws/client-timestream-write/TimestreamWriteService", TimestreamWriteService$>;
|
|
97
95
|
/**
|
|
98
96
|
* @since 1.0.0
|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AAoB,GACpB,qBAAqB,GACrB,eAAe,GACf,eAAe,CAClB,CAAC;CACH;AAED;;;GAGG;AACH,eAAO,MAAM,0BAA0B,uFAWrC,CAAC;;AAEH;;;GAGG;AACH,qBAAa,sBAAuB,SAAQ,2BAGqB;IAC/D,MAAM,CAAC,QAAQ,CAAC,YAAY,oDAAsF;IAClH,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAY,uBAAuB,MAAM,uDAI1D;IACJ,MAAM,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 +1 @@
|
|
|
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,
|
|
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,EAAE,KAAK,EAAc,MAAM,QAAQ,CAAC;AAEnD,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,qCACzB,CAAC;AAE7D;;;GAGG;AACH,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAAC,MAAM,CAAC,2BAA2B,CAQnF,CAAC"}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { TimestreamWriteClient } from "@aws-sdk/client-timestream-write";
|
|
5
|
-
import {
|
|
5
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
6
6
|
import * as TimestreamWriteServiceConfig from "./TimestreamWriteServiceConfig.js";
|
|
7
7
|
/**
|
|
8
8
|
* @since 1.0.0
|
|
9
9
|
* @category tags
|
|
10
10
|
*/
|
|
11
|
-
export class TimestreamWriteClientInstance extends
|
|
11
|
+
export class TimestreamWriteClientInstance extends ServiceMap.Service()("@effect-aws/client-timestream-write/TimestreamWriteClientInstance") {
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* @since 1.0.0
|
|
@@ -19,5 +19,5 @@ export const make = Effect.flatMap(TimestreamWriteServiceConfig.toTimestreamWrit
|
|
|
19
19
|
* @since 1.0.0
|
|
20
20
|
* @category layers
|
|
21
21
|
*/
|
|
22
|
-
export const layer = Layer.
|
|
22
|
+
export const layer = Layer.effect(TimestreamWriteClientInstance, make);
|
|
23
23
|
//# sourceMappingURL=TimestreamWriteClientInstance.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimestreamWriteClientInstance.js","sourceRoot":"","sources":["../../src/TimestreamWriteClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"TimestreamWriteClientInstance.js","sourceRoot":"","sources":["../../src/TimestreamWriteClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACnD,OAAO,KAAK,4BAA4B,MAAM,mCAAmC,CAAC;AAElF;;;GAGG;AACH,MAAM,OAAO,6BACX,SAAQ,UAAU,CAAC,OAAO,EAAwD,CAChF,mEAAmE,CACpE;CACD;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAChC,4BAA4B,CAAC,6BAA6B,EAC1D,CAAC,MAAM,EAAE,EAAE,CACT,MAAM,CAAC,cAAc,CACnB,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,qBAAqB,CAAC,MAAM,CAAC,CAAC,EACpD,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,6BAA6B,EAAE,IAAI,CAAC,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { CreateBatchLoadTaskCommand, CreateDatabaseCommand, CreateTableCommand, DeleteDatabaseCommand, DeleteTableCommand, DescribeBatchLoadTaskCommand, DescribeDatabaseCommand, DescribeEndpointsCommand, DescribeTableCommand, ListBatchLoadTasksCommand, ListDatabasesCommand, ListTablesCommand, ListTagsForResourceCommand, ResumeBatchLoadTaskCommand, TagResourceCommand, UntagResourceCommand, UpdateDatabaseCommand, UpdateTableCommand, WriteRecordsCommand, } from "@aws-sdk/client-timestream-write";
|
|
5
5
|
import { Service } from "@effect-aws/commons";
|
|
6
|
-
import { Effect, Layer } from "effect";
|
|
6
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
7
7
|
import { AllServiceErrors } from "./Errors.js";
|
|
8
8
|
import * as Instance from "./TimestreamWriteClientInstance.js";
|
|
9
9
|
import * as TimestreamWriteServiceConfig from "./TimestreamWriteServiceConfig.js";
|
|
@@ -43,7 +43,7 @@ export const makeTimestreamWriteService = Effect.gen(function* () {
|
|
|
43
43
|
* @since 1.0.0
|
|
44
44
|
* @category models
|
|
45
45
|
*/
|
|
46
|
-
export class TimestreamWriteService extends
|
|
46
|
+
export class TimestreamWriteService extends ServiceMap.Service()("@effect-aws/client-timestream-write/TimestreamWriteService") {
|
|
47
47
|
static defaultLayer = Layer.effect(this, makeTimestreamWriteService).pipe(Layer.provide(Instance.layer));
|
|
48
48
|
static layer = (config) => Layer.effect(this, makeTimestreamWriteService).pipe(Layer.provide(Instance.layer), Layer.provide(TimestreamWriteServiceConfig.setTimestreamWriteServiceConfig(config)));
|
|
49
49
|
static baseLayer = (evaluate) => Layer.effect(this, makeTimestreamWriteService).pipe(Layer.provide(Layer.effect(Instance.TimestreamWriteClientInstance, Effect.map(TimestreamWriteServiceConfig.toTimestreamWriteClientConfig, evaluate))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimestreamWriteService.js","sourceRoot":"","sources":["../../src/TimestreamWriteService.ts"],"names":[],"mappings":"AAAA;;GA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CAAC,IAAI,CACjD,KAAK,CAAC,OAAO,CACX,KAAK,CAAC,MAAM,CACV,QAAQ,CAAC,6BAA6B,EACtC,MAAM,CAAC,GAAG,CAAC,4BAA4B,CAAC,6BAA6B,EAAE,QAAQ,CAAC,CACjF,CACF,CACF,CAAC"}
|
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
import { ServiceLogger } from "@effect-aws/commons";
|
|
2
|
-
import { Effect,
|
|
2
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
3
3
|
import { dual } from "effect/Function";
|
|
4
|
-
import { globalValue } from "effect/GlobalValue";
|
|
5
4
|
/**
|
|
6
5
|
* @since 1.0.0
|
|
7
6
|
* @category timestream-write service config
|
|
8
7
|
*/
|
|
9
|
-
const currentTimestreamWriteServiceConfig =
|
|
8
|
+
const currentTimestreamWriteServiceConfig = ServiceMap.Reference("@effect-aws/client-timestream-write/currentTimestreamWriteServiceConfig", { defaultValue: () => ({}) });
|
|
10
9
|
/**
|
|
11
10
|
* @since 1.0.0
|
|
12
11
|
* @category timestream-write service config
|
|
13
12
|
*/
|
|
14
|
-
export const withTimestreamWriteServiceConfig = dual(2, (effect, config) => Effect.
|
|
13
|
+
export const withTimestreamWriteServiceConfig = dual(2, (effect, config) => Effect.provideService(effect, currentTimestreamWriteServiceConfig, config));
|
|
15
14
|
/**
|
|
16
15
|
* @since 1.0.0
|
|
17
16
|
* @category timestream-write service config
|
|
18
17
|
*/
|
|
19
|
-
export const setTimestreamWriteServiceConfig = (config) => Layer.
|
|
18
|
+
export const setTimestreamWriteServiceConfig = (config) => Layer.succeed(currentTimestreamWriteServiceConfig, config);
|
|
20
19
|
/**
|
|
21
20
|
* @since 1.0.0
|
|
22
21
|
* @category adapters
|
|
23
22
|
*/
|
|
24
23
|
export const toTimestreamWriteClientConfig = Effect.gen(function* () {
|
|
25
|
-
const { logger: serviceLogger, ...config } = yield*
|
|
24
|
+
const { logger: serviceLogger, ...config } = yield* currentTimestreamWriteServiceConfig;
|
|
26
25
|
const logger = serviceLogger === true
|
|
27
26
|
? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
|
|
28
27
|
: (serviceLogger ? yield* ServiceLogger.toClientLogger(ServiceLogger.make(serviceLogger)) : undefined);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimestreamWriteServiceConfig.js","sourceRoot":"","sources":["../../src/TimestreamWriteServiceConfig.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"TimestreamWriteServiceConfig.js","sourceRoot":"","sources":["../../src/TimestreamWriteServiceConfig.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAGvC;;;GAGG;AACH,MAAM,mCAAmC,GAAG,UAAU,CAAC,SAAS,CAC9D,yEAAyE,EACzE,EAAE,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAC7B,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAGzC,IAAI,CACN,CAAC,EACD,CAAU,MAA8B,EAAE,MAAqC,EAA0B,EAAE,CACzG,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,mCAAmC,EAAE,MAAM,CAAC,CAC7E,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,MAAqC,EAAE,EAAE,CACvF,KAAK,CAAC,OAAO,CAAC,mCAAmC,EAAE,MAAM,CAAC,CAAC;AAE7D;;;GAGG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAA+C,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAC3G,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,mCAAmC,CAAC;IAExF,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,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-aws/client-timestream-write",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-beta.0",
|
|
4
4
|
"description": "Effectful AWS Timestream Write client",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -16,40 +16,34 @@
|
|
|
16
16
|
"homepage": "https://floydspace.github.io/effect-aws/docs/client-timestream-write",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@aws-sdk/client-timestream-write": "^3",
|
|
19
|
-
"@effect-aws/commons": "^0.
|
|
19
|
+
"@effect-aws/commons": "^1.0.0-beta.0"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"effect": ">=
|
|
22
|
+
"effect": ">=4.0.0 <5.0.0"
|
|
23
23
|
},
|
|
24
|
-
"main": "./dist/cjs/index.js",
|
|
25
24
|
"module": "./dist/esm/index.js",
|
|
26
25
|
"types": "./dist/dts/index.d.ts",
|
|
27
26
|
"exports": {
|
|
28
27
|
"./package.json": "./package.json",
|
|
29
28
|
".": {
|
|
30
29
|
"types": "./dist/dts/index.d.ts",
|
|
31
|
-
"import": "./dist/esm/index.js"
|
|
32
|
-
"default": "./dist/cjs/index.js"
|
|
30
|
+
"import": "./dist/esm/index.js"
|
|
33
31
|
},
|
|
34
32
|
"./Errors": {
|
|
35
33
|
"types": "./dist/dts/Errors.d.ts",
|
|
36
|
-
"import": "./dist/esm/Errors.js"
|
|
37
|
-
"default": "./dist/cjs/Errors.js"
|
|
34
|
+
"import": "./dist/esm/Errors.js"
|
|
38
35
|
},
|
|
39
36
|
"./TimestreamWriteClientInstance": {
|
|
40
37
|
"types": "./dist/dts/TimestreamWriteClientInstance.d.ts",
|
|
41
|
-
"import": "./dist/esm/TimestreamWriteClientInstance.js"
|
|
42
|
-
"default": "./dist/cjs/TimestreamWriteClientInstance.js"
|
|
38
|
+
"import": "./dist/esm/TimestreamWriteClientInstance.js"
|
|
43
39
|
},
|
|
44
40
|
"./TimestreamWriteService": {
|
|
45
41
|
"types": "./dist/dts/TimestreamWriteService.d.ts",
|
|
46
|
-
"import": "./dist/esm/TimestreamWriteService.js"
|
|
47
|
-
"default": "./dist/cjs/TimestreamWriteService.js"
|
|
42
|
+
"import": "./dist/esm/TimestreamWriteService.js"
|
|
48
43
|
},
|
|
49
44
|
"./TimestreamWriteServiceConfig": {
|
|
50
45
|
"types": "./dist/dts/TimestreamWriteServiceConfig.d.ts",
|
|
51
|
-
"import": "./dist/esm/TimestreamWriteServiceConfig.js"
|
|
52
|
-
"default": "./dist/cjs/TimestreamWriteServiceConfig.js"
|
|
46
|
+
"import": "./dist/esm/TimestreamWriteServiceConfig.js"
|
|
53
47
|
}
|
|
54
48
|
},
|
|
55
49
|
"typesVersions": {
|
|
@@ -2,16 +2,18 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { TimestreamWriteClient } from "@aws-sdk/client-timestream-write";
|
|
5
|
-
import {
|
|
5
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
6
6
|
import * as TimestreamWriteServiceConfig from "./TimestreamWriteServiceConfig.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @since 1.0.0
|
|
10
10
|
* @category tags
|
|
11
11
|
*/
|
|
12
|
-
export class TimestreamWriteClientInstance
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
export class TimestreamWriteClientInstance
|
|
13
|
+
extends ServiceMap.Service<TimestreamWriteClientInstance, TimestreamWriteClient>()(
|
|
14
|
+
"@effect-aws/client-timestream-write/TimestreamWriteClientInstance",
|
|
15
|
+
)
|
|
16
|
+
{}
|
|
15
17
|
|
|
16
18
|
/**
|
|
17
19
|
* @since 1.0.0
|
|
@@ -30,4 +32,4 @@ export const make = Effect.flatMap(
|
|
|
30
32
|
* @since 1.0.0
|
|
31
33
|
* @category layers
|
|
32
34
|
*/
|
|
33
|
-
export const layer = Layer.
|
|
35
|
+
export const layer = Layer.effect(TimestreamWriteClientInstance, make);
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
66
66
|
import { Service } from "@effect-aws/commons";
|
|
67
67
|
import type { Cause } from "effect";
|
|
68
|
-
import { Effect, Layer } from "effect";
|
|
68
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
69
69
|
import type {
|
|
70
70
|
AccessDeniedError,
|
|
71
71
|
ConflictError,
|
|
@@ -115,7 +115,7 @@ interface TimestreamWriteService$ {
|
|
|
115
115
|
options?: HttpHandlerOptions,
|
|
116
116
|
): Effect.Effect<
|
|
117
117
|
CreateBatchLoadTaskCommandOutput,
|
|
118
|
-
| Cause.
|
|
118
|
+
| Cause.TimeoutError
|
|
119
119
|
| SdkError
|
|
120
120
|
| AccessDeniedError
|
|
121
121
|
| ConflictError
|
|
@@ -135,7 +135,7 @@ interface TimestreamWriteService$ {
|
|
|
135
135
|
options?: HttpHandlerOptions,
|
|
136
136
|
): Effect.Effect<
|
|
137
137
|
CreateDatabaseCommandOutput,
|
|
138
|
-
| Cause.
|
|
138
|
+
| Cause.TimeoutError
|
|
139
139
|
| SdkError
|
|
140
140
|
| AccessDeniedError
|
|
141
141
|
| ConflictError
|
|
@@ -154,7 +154,7 @@ interface TimestreamWriteService$ {
|
|
|
154
154
|
options?: HttpHandlerOptions,
|
|
155
155
|
): Effect.Effect<
|
|
156
156
|
CreateTableCommandOutput,
|
|
157
|
-
| Cause.
|
|
157
|
+
| Cause.TimeoutError
|
|
158
158
|
| SdkError
|
|
159
159
|
| AccessDeniedError
|
|
160
160
|
| ConflictError
|
|
@@ -174,7 +174,7 @@ interface TimestreamWriteService$ {
|
|
|
174
174
|
options?: HttpHandlerOptions,
|
|
175
175
|
): Effect.Effect<
|
|
176
176
|
DeleteDatabaseCommandOutput,
|
|
177
|
-
| Cause.
|
|
177
|
+
| Cause.TimeoutError
|
|
178
178
|
| SdkError
|
|
179
179
|
| AccessDeniedError
|
|
180
180
|
| InternalServerError
|
|
@@ -192,7 +192,7 @@ interface TimestreamWriteService$ {
|
|
|
192
192
|
options?: HttpHandlerOptions,
|
|
193
193
|
): Effect.Effect<
|
|
194
194
|
DeleteTableCommandOutput,
|
|
195
|
-
| Cause.
|
|
195
|
+
| Cause.TimeoutError
|
|
196
196
|
| SdkError
|
|
197
197
|
| AccessDeniedError
|
|
198
198
|
| InternalServerError
|
|
@@ -210,7 +210,7 @@ interface TimestreamWriteService$ {
|
|
|
210
210
|
options?: HttpHandlerOptions,
|
|
211
211
|
): Effect.Effect<
|
|
212
212
|
DescribeBatchLoadTaskCommandOutput,
|
|
213
|
-
| Cause.
|
|
213
|
+
| Cause.TimeoutError
|
|
214
214
|
| SdkError
|
|
215
215
|
| AccessDeniedError
|
|
216
216
|
| InternalServerError
|
|
@@ -227,7 +227,7 @@ interface TimestreamWriteService$ {
|
|
|
227
227
|
options?: HttpHandlerOptions,
|
|
228
228
|
): Effect.Effect<
|
|
229
229
|
DescribeDatabaseCommandOutput,
|
|
230
|
-
| Cause.
|
|
230
|
+
| Cause.TimeoutError
|
|
231
231
|
| SdkError
|
|
232
232
|
| AccessDeniedError
|
|
233
233
|
| InternalServerError
|
|
@@ -245,7 +245,7 @@ interface TimestreamWriteService$ {
|
|
|
245
245
|
options?: HttpHandlerOptions,
|
|
246
246
|
): Effect.Effect<
|
|
247
247
|
DescribeEndpointsCommandOutput,
|
|
248
|
-
Cause.
|
|
248
|
+
Cause.TimeoutError | SdkError | InternalServerError | ThrottlingError | ValidationError
|
|
249
249
|
>;
|
|
250
250
|
|
|
251
251
|
/**
|
|
@@ -256,7 +256,7 @@ interface TimestreamWriteService$ {
|
|
|
256
256
|
options?: HttpHandlerOptions,
|
|
257
257
|
): Effect.Effect<
|
|
258
258
|
DescribeTableCommandOutput,
|
|
259
|
-
| Cause.
|
|
259
|
+
| Cause.TimeoutError
|
|
260
260
|
| SdkError
|
|
261
261
|
| AccessDeniedError
|
|
262
262
|
| InternalServerError
|
|
@@ -274,7 +274,7 @@ interface TimestreamWriteService$ {
|
|
|
274
274
|
options?: HttpHandlerOptions,
|
|
275
275
|
): Effect.Effect<
|
|
276
276
|
ListBatchLoadTasksCommandOutput,
|
|
277
|
-
| Cause.
|
|
277
|
+
| Cause.TimeoutError
|
|
278
278
|
| SdkError
|
|
279
279
|
| AccessDeniedError
|
|
280
280
|
| InternalServerError
|
|
@@ -291,7 +291,7 @@ interface TimestreamWriteService$ {
|
|
|
291
291
|
options?: HttpHandlerOptions,
|
|
292
292
|
): Effect.Effect<
|
|
293
293
|
ListDatabasesCommandOutput,
|
|
294
|
-
| Cause.
|
|
294
|
+
| Cause.TimeoutError
|
|
295
295
|
| SdkError
|
|
296
296
|
| AccessDeniedError
|
|
297
297
|
| InternalServerError
|
|
@@ -308,7 +308,7 @@ interface TimestreamWriteService$ {
|
|
|
308
308
|
options?: HttpHandlerOptions,
|
|
309
309
|
): Effect.Effect<
|
|
310
310
|
ListTablesCommandOutput,
|
|
311
|
-
| Cause.
|
|
311
|
+
| Cause.TimeoutError
|
|
312
312
|
| SdkError
|
|
313
313
|
| AccessDeniedError
|
|
314
314
|
| InternalServerError
|
|
@@ -326,7 +326,7 @@ interface TimestreamWriteService$ {
|
|
|
326
326
|
options?: HttpHandlerOptions,
|
|
327
327
|
): Effect.Effect<
|
|
328
328
|
ListTagsForResourceCommandOutput,
|
|
329
|
-
Cause.
|
|
329
|
+
Cause.TimeoutError | SdkError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError
|
|
330
330
|
>;
|
|
331
331
|
|
|
332
332
|
/**
|
|
@@ -337,7 +337,7 @@ interface TimestreamWriteService$ {
|
|
|
337
337
|
options?: HttpHandlerOptions,
|
|
338
338
|
): Effect.Effect<
|
|
339
339
|
ResumeBatchLoadTaskCommandOutput,
|
|
340
|
-
| Cause.
|
|
340
|
+
| Cause.TimeoutError
|
|
341
341
|
| SdkError
|
|
342
342
|
| AccessDeniedError
|
|
343
343
|
| InternalServerError
|
|
@@ -355,7 +355,7 @@ interface TimestreamWriteService$ {
|
|
|
355
355
|
options?: HttpHandlerOptions,
|
|
356
356
|
): Effect.Effect<
|
|
357
357
|
TagResourceCommandOutput,
|
|
358
|
-
| Cause.
|
|
358
|
+
| Cause.TimeoutError
|
|
359
359
|
| SdkError
|
|
360
360
|
| InvalidEndpointError
|
|
361
361
|
| ResourceNotFoundError
|
|
@@ -372,7 +372,7 @@ interface TimestreamWriteService$ {
|
|
|
372
372
|
options?: HttpHandlerOptions,
|
|
373
373
|
): Effect.Effect<
|
|
374
374
|
UntagResourceCommandOutput,
|
|
375
|
-
| Cause.
|
|
375
|
+
| Cause.TimeoutError
|
|
376
376
|
| SdkError
|
|
377
377
|
| InvalidEndpointError
|
|
378
378
|
| ResourceNotFoundError
|
|
@@ -389,7 +389,7 @@ interface TimestreamWriteService$ {
|
|
|
389
389
|
options?: HttpHandlerOptions,
|
|
390
390
|
): Effect.Effect<
|
|
391
391
|
UpdateDatabaseCommandOutput,
|
|
392
|
-
| Cause.
|
|
392
|
+
| Cause.TimeoutError
|
|
393
393
|
| SdkError
|
|
394
394
|
| AccessDeniedError
|
|
395
395
|
| InternalServerError
|
|
@@ -408,7 +408,7 @@ interface TimestreamWriteService$ {
|
|
|
408
408
|
options?: HttpHandlerOptions,
|
|
409
409
|
): Effect.Effect<
|
|
410
410
|
UpdateTableCommandOutput,
|
|
411
|
-
| Cause.
|
|
411
|
+
| Cause.TimeoutError
|
|
412
412
|
| SdkError
|
|
413
413
|
| AccessDeniedError
|
|
414
414
|
| InternalServerError
|
|
@@ -426,7 +426,7 @@ interface TimestreamWriteService$ {
|
|
|
426
426
|
options?: HttpHandlerOptions,
|
|
427
427
|
): Effect.Effect<
|
|
428
428
|
WriteRecordsCommandOutput,
|
|
429
|
-
| Cause.
|
|
429
|
+
| Cause.TimeoutError
|
|
430
430
|
| SdkError
|
|
431
431
|
| AccessDeniedError
|
|
432
432
|
| InternalServerError
|
|
@@ -459,10 +459,10 @@ export const makeTimestreamWriteService = Effect.gen(function*() {
|
|
|
459
459
|
* @since 1.0.0
|
|
460
460
|
* @category models
|
|
461
461
|
*/
|
|
462
|
-
export class TimestreamWriteService extends
|
|
462
|
+
export class TimestreamWriteService extends ServiceMap.Service<
|
|
463
463
|
TimestreamWriteService,
|
|
464
464
|
TimestreamWriteService$
|
|
465
|
-
>() {
|
|
465
|
+
>()("@effect-aws/client-timestream-write/TimestreamWriteService") {
|
|
466
466
|
static readonly defaultLayer = Layer.effect(this, makeTimestreamWriteService).pipe(Layer.provide(Instance.layer));
|
|
467
467
|
static readonly layer = (config: TimestreamWriteService.Config) =>
|
|
468
468
|
Layer.effect(this, makeTimestreamWriteService).pipe(
|
|
@@ -3,18 +3,17 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import type { TimestreamWriteClientConfig } from "@aws-sdk/client-timestream-write";
|
|
5
5
|
import { ServiceLogger } from "@effect-aws/commons";
|
|
6
|
-
import { Effect,
|
|
6
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
7
7
|
import { dual } from "effect/Function";
|
|
8
|
-
import { globalValue } from "effect/GlobalValue";
|
|
9
8
|
import type { TimestreamWriteService } from "./TimestreamWriteService.js";
|
|
10
9
|
|
|
11
10
|
/**
|
|
12
11
|
* @since 1.0.0
|
|
13
12
|
* @category timestream-write service config
|
|
14
13
|
*/
|
|
15
|
-
const currentTimestreamWriteServiceConfig =
|
|
14
|
+
const currentTimestreamWriteServiceConfig = ServiceMap.Reference<TimestreamWriteService.Config>(
|
|
16
15
|
"@effect-aws/client-timestream-write/currentTimestreamWriteServiceConfig",
|
|
17
|
-
() =>
|
|
16
|
+
{ defaultValue: () => ({}) },
|
|
18
17
|
);
|
|
19
18
|
|
|
20
19
|
/**
|
|
@@ -27,7 +26,7 @@ export const withTimestreamWriteServiceConfig: {
|
|
|
27
26
|
} = dual(
|
|
28
27
|
2,
|
|
29
28
|
<A, E, R>(effect: Effect.Effect<A, E, R>, config: TimestreamWriteService.Config): Effect.Effect<A, E, R> =>
|
|
30
|
-
Effect.
|
|
29
|
+
Effect.provideService(effect, currentTimestreamWriteServiceConfig, config),
|
|
31
30
|
);
|
|
32
31
|
|
|
33
32
|
/**
|
|
@@ -35,14 +34,14 @@ export const withTimestreamWriteServiceConfig: {
|
|
|
35
34
|
* @category timestream-write service config
|
|
36
35
|
*/
|
|
37
36
|
export const setTimestreamWriteServiceConfig = (config: TimestreamWriteService.Config) =>
|
|
38
|
-
Layer.
|
|
37
|
+
Layer.succeed(currentTimestreamWriteServiceConfig, config);
|
|
39
38
|
|
|
40
39
|
/**
|
|
41
40
|
* @since 1.0.0
|
|
42
41
|
* @category adapters
|
|
43
42
|
*/
|
|
44
43
|
export const toTimestreamWriteClientConfig: Effect.Effect<TimestreamWriteClientConfig> = Effect.gen(function*() {
|
|
45
|
-
const { logger: serviceLogger, ...config } = yield*
|
|
44
|
+
const { logger: serviceLogger, ...config } = yield* currentTimestreamWriteServiceConfig;
|
|
46
45
|
|
|
47
46
|
const logger = serviceLogger === true
|
|
48
47
|
? 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,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GG;AACH,eAAO,MAAM,0BAA0B,uFAWrC,CAAC;;;;AAEH;;;GAGG;AACH,qBAAa,sBAAuB,SAAQ,2BAGzC;IACD,MAAM,CAAC,QAAQ,CAAC,YAAY,oDAAsF;IAClH,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAY,uBAAuB,MAAM,uDAI1D;IACJ,MAAM,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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TimestreamWriteService.js","sourceRoot":"","sources":["../../src/TimestreamWriteService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,8EA4D0C;AAE1C,iDAA8C;AAE9C,mCAAuC;AAavC,2CAA+C;AAC/C,6EAA+D;AAC/D,gGAAkF;AAElF,MAAM,QAAQ,GAAG;IACf,0BAA0B,EAA1B,oDAA0B;IAC1B,qBAAqB,EAArB,+CAAqB;IACrB,kBAAkB,EAAlB,4CAAkB;IAClB,qBAAqB,EAArB,+CAAqB;IACrB,kBAAkB,EAAlB,4CAAkB;IAClB,4BAA4B,EAA5B,sDAA4B;IAC5B,uBAAuB,EAAvB,iDAAuB;IACvB,wBAAwB,EAAxB,kDAAwB;IACxB,oBAAoB,EAApB,8CAAoB;IACpB,yBAAyB,EAAzB,mDAAyB;IACzB,oBAAoB,EAApB,8CAAoB;IACpB,iBAAiB,EAAjB,2CAAiB;IACjB,0BAA0B,EAA1B,oDAA0B;IAC1B,0BAA0B,EAA1B,oDAA0B;IAC1B,kBAAkB,EAAlB,4CAAkB;IAClB,oBAAoB,EAApB,8CAAoB;IACpB,qBAAqB,EAArB,+CAAqB;IACrB,kBAAkB,EAAlB,4CAAkB;IAClB,mBAAmB,EAAnB,6CAAmB;CACpB,CAAC;AAgVF;;;GAGG;AACU,QAAA,0BAA0B,GAAG,eAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAC5D,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,QAAQ,CAAC,6BAA6B,CAAC;IAE7D,OAAO,KAAK,CAAC,CAAC,iBAAO,CAAC,qBAAqB,CACzC,MAAM,EACN,QAAQ,EACR;QACE,SAAS,EAAE,4BAAgB;QAC3B,mBAAmB,EAAE,4BAA4B,CAAC,6BAA6B;KAChF,CACF,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAa,sBAAuB,SAAQ,eAAM,CAAC,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"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toTimestreamWriteClientConfig = exports.setTimestreamWriteServiceConfig = exports.withTimestreamWriteServiceConfig = 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 timestream-write service config
|
|
11
|
-
*/
|
|
12
|
-
const currentTimestreamWriteServiceConfig = (0, GlobalValue_1.globalValue)("@effect-aws/client-timestream-write/currentTimestreamWriteServiceConfig", () => effect_1.FiberRef.unsafeMake({}));
|
|
13
|
-
/**
|
|
14
|
-
* @since 1.0.0
|
|
15
|
-
* @category timestream-write service config
|
|
16
|
-
*/
|
|
17
|
-
exports.withTimestreamWriteServiceConfig = (0, Function_1.dual)(2, (effect, config) => effect_1.Effect.locally(effect, currentTimestreamWriteServiceConfig, config));
|
|
18
|
-
/**
|
|
19
|
-
* @since 1.0.0
|
|
20
|
-
* @category timestream-write service config
|
|
21
|
-
*/
|
|
22
|
-
const setTimestreamWriteServiceConfig = (config) => effect_1.Layer.locallyScoped(currentTimestreamWriteServiceConfig, config);
|
|
23
|
-
exports.setTimestreamWriteServiceConfig = setTimestreamWriteServiceConfig;
|
|
24
|
-
/**
|
|
25
|
-
* @since 1.0.0
|
|
26
|
-
* @category adapters
|
|
27
|
-
*/
|
|
28
|
-
exports.toTimestreamWriteClientConfig = effect_1.Effect.gen(function* () {
|
|
29
|
-
const { logger: serviceLogger, ...config } = yield* effect_1.FiberRef.get(currentTimestreamWriteServiceConfig);
|
|
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=TimestreamWriteServiceConfig.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TimestreamWriteServiceConfig.js","sourceRoot":"","sources":["../../src/TimestreamWriteServiceConfig.ts"],"names":[],"mappings":";;;AAIA,iDAAoD;AACpD,mCAAiD;AACjD,8CAAuC;AACvC,oDAAiD;AAGjD;;;GAGG;AACH,MAAM,mCAAmC,GAAG,IAAA,yBAAW,EACrD,yEAAyE,EACzE,GAAG,EAAE,CAAC,iBAAQ,CAAC,UAAU,CAAgC,EAAE,CAAC,CAC7D,CAAC;AAEF;;;GAGG;AACU,QAAA,gCAAgC,GAGzC,IAAA,eAAI,EACN,CAAC,EACD,CAAU,MAA8B,EAAE,MAAqC,EAA0B,EAAE,CACzG,eAAM,CAAC,OAAO,CAAC,MAAM,EAAE,mCAAmC,EAAE,MAAM,CAAC,CACtE,CAAC;AAEF;;;GAGG;AACI,MAAM,+BAA+B,GAAG,CAAC,MAAqC,EAAE,EAAE,CACvF,cAAK,CAAC,aAAa,CAAC,mCAAmC,EAAE,MAAM,CAAC,CAAC;AADtD,QAAA,+BAA+B,mCACuB;AAEnE;;;GAGG;AACU,QAAA,6BAA6B,GAA+C,eAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAC3G,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,iBAAQ,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;IAEtG,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,CAAC,CAAC"}
|
package/dist/cjs/index.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @since 1.0.0
|
|
3
|
-
*/
|
|
4
|
-
import { TimestreamWriteService } from "./TimestreamWriteService.js";
|
|
5
|
-
/**
|
|
6
|
-
* @since 1.0.0
|
|
7
|
-
*/
|
|
8
|
-
export * from "./Errors.js";
|
|
9
|
-
/**
|
|
10
|
-
* @since 1.0.0
|
|
11
|
-
*/
|
|
12
|
-
export * as TimestreamWriteClientInstance from "./TimestreamWriteClientInstance.js";
|
|
13
|
-
/**
|
|
14
|
-
* @since 1.0.0
|
|
15
|
-
*/
|
|
16
|
-
export * as TimestreamWriteServiceConfig from "./TimestreamWriteServiceConfig.js";
|
|
17
|
-
/**
|
|
18
|
-
* @since 1.0.0
|
|
19
|
-
*/
|
|
20
|
-
export * from "./TimestreamWriteService.js";
|
|
21
|
-
/**
|
|
22
|
-
* @since 1.0.0
|
|
23
|
-
* @category exports
|
|
24
|
-
* @alias TimestreamWriteService
|
|
25
|
-
*/
|
|
26
|
-
export declare namespace TimestreamWrite {
|
|
27
|
-
/**
|
|
28
|
-
* @since 1.0.0
|
|
29
|
-
* @alias TimestreamWriteService.Config
|
|
30
|
-
*/
|
|
31
|
-
type Config = TimestreamWriteService.Config;
|
|
32
|
-
/**
|
|
33
|
-
* @since 1.0.0
|
|
34
|
-
* @alias TimestreamWriteService.Type
|
|
35
|
-
*/
|
|
36
|
-
type Type = TimestreamWriteService.Type;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* @since 1.0.0
|
|
40
|
-
* @category exports
|
|
41
|
-
* @alias TimestreamWriteService
|
|
42
|
-
*/
|
|
43
|
-
export declare const TimestreamWrite: typeof TimestreamWriteService;
|
|
44
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/cjs/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE;;GAEG;AACH,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,OAAO,KAAK,6BAA6B,MAAM,oCAAoC,CAAC;AAEpF;;GAEG;AACH,OAAO,KAAK,4BAA4B,MAAM,mCAAmC,CAAC;AAElF;;GAEG;AACH,cAAc,6BAA6B,CAAC;AAE5C;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC;;;OAGG;IACH,KAAY,MAAM,GAAG,sBAAsB,CAAC,MAAM,CAAC;IAEnD;;;OAGG;IACH,KAAY,IAAI,GAAG,sBAAsB,CAAC,IAAI,CAAC;CAChD;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,+BAAyB,CAAC"}
|
package/dist/cjs/index.js
DELETED
|
@@ -1,56 +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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
-
};
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.TimestreamWrite = exports.TimestreamWriteServiceConfig = exports.TimestreamWriteClientInstance = void 0;
|
|
30
|
-
/**
|
|
31
|
-
* @since 1.0.0
|
|
32
|
-
*/
|
|
33
|
-
const TimestreamWriteService_js_1 = require("./TimestreamWriteService.js");
|
|
34
|
-
/**
|
|
35
|
-
* @since 1.0.0
|
|
36
|
-
*/
|
|
37
|
-
__exportStar(require("./Errors.js"), exports);
|
|
38
|
-
/**
|
|
39
|
-
* @since 1.0.0
|
|
40
|
-
*/
|
|
41
|
-
exports.TimestreamWriteClientInstance = __importStar(require("./TimestreamWriteClientInstance.js"));
|
|
42
|
-
/**
|
|
43
|
-
* @since 1.0.0
|
|
44
|
-
*/
|
|
45
|
-
exports.TimestreamWriteServiceConfig = __importStar(require("./TimestreamWriteServiceConfig.js"));
|
|
46
|
-
/**
|
|
47
|
-
* @since 1.0.0
|
|
48
|
-
*/
|
|
49
|
-
__exportStar(require("./TimestreamWriteService.js"), exports);
|
|
50
|
-
/**
|
|
51
|
-
* @since 1.0.0
|
|
52
|
-
* @category exports
|
|
53
|
-
* @alias TimestreamWriteService
|
|
54
|
-
*/
|
|
55
|
-
exports.TimestreamWrite = TimestreamWriteService_js_1.TimestreamWriteService;
|
|
56
|
-
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,2EAAqE;AAErE;;GAEG;AACH,8CAA4B;AAE5B;;GAEG;AACH,oGAAoF;AAEpF;;GAEG;AACH,kGAAkF;AAElF;;GAEG;AACH,8DAA4C;AAqB5C;;;;GAIG;AACU,QAAA,eAAe,GAAG,kDAAsB,CAAC"}
|