@effect-aws/client-timestream-write 1.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Errors/package.json +6 -0
- package/LICENSE +19 -0
- package/README.md +58 -0
- package/TimestreamWriteClientInstance/package.json +6 -0
- package/TimestreamWriteService/package.json +6 -0
- package/TimestreamWriteServiceConfig/package.json +6 -0
- package/dist/cjs/Errors.d.ts +16 -0
- package/dist/cjs/Errors.d.ts.map +1 -0
- package/dist/cjs/Errors.js +17 -0
- package/dist/cjs/Errors.js.map +1 -0
- package/dist/cjs/TimestreamWriteClientInstance.d.ts +24 -0
- package/dist/cjs/TimestreamWriteClientInstance.d.ts.map +1 -0
- package/dist/cjs/TimestreamWriteClientInstance.js +50 -0
- package/dist/cjs/TimestreamWriteClientInstance.js.map +1 -0
- package/dist/cjs/TimestreamWriteService.d.ts +117 -0
- package/dist/cjs/TimestreamWriteService.d.ts.map +1 -0
- package/dist/cjs/TimestreamWriteService.js +78 -0
- package/dist/cjs/TimestreamWriteService.js.map +1 -0
- package/dist/cjs/TimestreamWriteServiceConfig.d.ts +25 -0
- package/dist/cjs/TimestreamWriteServiceConfig.d.ts.map +1 -0
- package/dist/cjs/TimestreamWriteServiceConfig.js +35 -0
- package/dist/cjs/TimestreamWriteServiceConfig.js.map +1 -0
- package/dist/cjs/index.d.ts +39 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +56 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/dts/Errors.d.ts +16 -0
- package/dist/dts/Errors.d.ts.map +1 -0
- package/dist/dts/TimestreamWriteClientInstance.d.ts +24 -0
- package/dist/dts/TimestreamWriteClientInstance.d.ts.map +1 -0
- package/dist/dts/TimestreamWriteService.d.ts +117 -0
- package/dist/dts/TimestreamWriteService.d.ts.map +1 -0
- package/dist/dts/TimestreamWriteServiceConfig.d.ts +25 -0
- package/dist/dts/TimestreamWriteServiceConfig.d.ts.map +1 -0
- package/dist/dts/index.d.ts +39 -0
- package/dist/dts/index.d.ts.map +1 -0
- package/dist/esm/Errors.js +14 -0
- package/dist/esm/Errors.js.map +1 -0
- package/dist/esm/TimestreamWriteClientInstance.js +23 -0
- package/dist/esm/TimestreamWriteClientInstance.js.map +1 -0
- package/dist/esm/TimestreamWriteService.js +51 -0
- package/dist/esm/TimestreamWriteService.js.map +1 -0
- package/dist/esm/TimestreamWriteServiceConfig.js +31 -0
- package/dist/esm/TimestreamWriteServiceConfig.js.map +1 -0
- package/dist/esm/index.js +27 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/package.json +4 -0
- package/package.json +71 -0
- package/src/Errors.ts +38 -0
- package/src/TimestreamWriteClientInstance.ts +33 -0
- package/src/TimestreamWriteService.ts +461 -0
- package/src/TimestreamWriteServiceConfig.ts +52 -0
- package/src/index.ts +44 -0
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
4
|
+
export declare const AllServiceErrors: readonly ["AccessDeniedException", "ConflictException", "InternalServerException", "InvalidEndpointException", "RejectedRecordsException", "ResourceNotFoundException", "ServiceQuotaExceededException", "ThrottlingException", "ValidationException"];
|
|
5
|
+
export type AccessDeniedError = TaggedException<AccessDeniedException>;
|
|
6
|
+
export type ConflictError = TaggedException<ConflictException>;
|
|
7
|
+
export type InternalServerError = TaggedException<InternalServerException>;
|
|
8
|
+
export type InvalidEndpointError = TaggedException<InvalidEndpointException>;
|
|
9
|
+
export type RejectedRecordsError = TaggedException<RejectedRecordsException>;
|
|
10
|
+
export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
|
|
11
|
+
export type ServiceQuotaExceededError = TaggedException<ServiceQuotaExceededException>;
|
|
12
|
+
export type ThrottlingError = TaggedException<ThrottlingException>;
|
|
13
|
+
export type ValidationError = TaggedException<ValidationException>;
|
|
14
|
+
export type SdkError = CommonSdkError;
|
|
15
|
+
export declare const SdkError: import("effect/Data").Case.Constructor<CommonSdkError, "_tag">;
|
|
16
|
+
//# sourceMappingURL=Errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,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;AAC3D,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjE,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;AAEnE,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC;AACtC,eAAO,MAAM,QAAQ,gEAAiB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
|
@@ -0,0 +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,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"}
|
|
@@ -0,0 +1,117 @@
|
|
|
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, SdkError, ServiceLogger } from "@effect-aws/commons";
|
|
6
|
+
import { Effect, Layer } from "effect";
|
|
7
|
+
import type { AccessDeniedError, ConflictError, InternalServerError, InvalidEndpointError, RejectedRecordsError, ResourceNotFoundError, ServiceQuotaExceededError, ThrottlingError, ValidationError } from "./Errors.js";
|
|
8
|
+
import * as Instance from "./TimestreamWriteClientInstance.js";
|
|
9
|
+
interface TimestreamWriteService$ {
|
|
10
|
+
readonly _: unique symbol;
|
|
11
|
+
/**
|
|
12
|
+
* @see {@link CreateBatchLoadTaskCommand}
|
|
13
|
+
*/
|
|
14
|
+
createBatchLoadTask(args: CreateBatchLoadTaskCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateBatchLoadTaskCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
15
|
+
/**
|
|
16
|
+
* @see {@link CreateDatabaseCommand}
|
|
17
|
+
*/
|
|
18
|
+
createDatabase(args: CreateDatabaseCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateDatabaseCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | InvalidEndpointError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
19
|
+
/**
|
|
20
|
+
* @see {@link CreateTableCommand}
|
|
21
|
+
*/
|
|
22
|
+
createTable(args: CreateTableCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateTableCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
23
|
+
/**
|
|
24
|
+
* @see {@link DeleteDatabaseCommand}
|
|
25
|
+
*/
|
|
26
|
+
deleteDatabase(args: DeleteDatabaseCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteDatabaseCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
27
|
+
/**
|
|
28
|
+
* @see {@link DeleteTableCommand}
|
|
29
|
+
*/
|
|
30
|
+
deleteTable(args: DeleteTableCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteTableCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
31
|
+
/**
|
|
32
|
+
* @see {@link DescribeBatchLoadTaskCommand}
|
|
33
|
+
*/
|
|
34
|
+
describeBatchLoadTask(args: DescribeBatchLoadTaskCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeBatchLoadTaskCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError>;
|
|
35
|
+
/**
|
|
36
|
+
* @see {@link DescribeDatabaseCommand}
|
|
37
|
+
*/
|
|
38
|
+
describeDatabase(args: DescribeDatabaseCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeDatabaseCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
39
|
+
/**
|
|
40
|
+
* @see {@link DescribeEndpointsCommand}
|
|
41
|
+
*/
|
|
42
|
+
describeEndpoints(args: DescribeEndpointsCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeEndpointsCommandOutput, SdkError | InternalServerError | ThrottlingError | ValidationError>;
|
|
43
|
+
/**
|
|
44
|
+
* @see {@link DescribeTableCommand}
|
|
45
|
+
*/
|
|
46
|
+
describeTable(args: DescribeTableCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeTableCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
47
|
+
/**
|
|
48
|
+
* @see {@link ListBatchLoadTasksCommand}
|
|
49
|
+
*/
|
|
50
|
+
listBatchLoadTasks(args: ListBatchLoadTasksCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListBatchLoadTasksCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ThrottlingError | ValidationError>;
|
|
51
|
+
/**
|
|
52
|
+
* @see {@link ListDatabasesCommand}
|
|
53
|
+
*/
|
|
54
|
+
listDatabases(args: ListDatabasesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListDatabasesCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ThrottlingError | ValidationError>;
|
|
55
|
+
/**
|
|
56
|
+
* @see {@link ListTablesCommand}
|
|
57
|
+
*/
|
|
58
|
+
listTables(args: ListTablesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTablesCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
59
|
+
/**
|
|
60
|
+
* @see {@link ListTagsForResourceCommand}
|
|
61
|
+
*/
|
|
62
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsForResourceCommandOutput, SdkError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
63
|
+
/**
|
|
64
|
+
* @see {@link ResumeBatchLoadTaskCommand}
|
|
65
|
+
*/
|
|
66
|
+
resumeBatchLoadTask(args: ResumeBatchLoadTaskCommandInput, options?: HttpHandlerOptions): Effect.Effect<ResumeBatchLoadTaskCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
67
|
+
/**
|
|
68
|
+
* @see {@link TagResourceCommand}
|
|
69
|
+
*/
|
|
70
|
+
tagResource(args: TagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagResourceCommandOutput, SdkError | InvalidEndpointError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
71
|
+
/**
|
|
72
|
+
* @see {@link UntagResourceCommand}
|
|
73
|
+
*/
|
|
74
|
+
untagResource(args: UntagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagResourceCommandOutput, SdkError | InvalidEndpointError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
75
|
+
/**
|
|
76
|
+
* @see {@link UpdateDatabaseCommand}
|
|
77
|
+
*/
|
|
78
|
+
updateDatabase(args: UpdateDatabaseCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateDatabaseCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
79
|
+
/**
|
|
80
|
+
* @see {@link UpdateTableCommand}
|
|
81
|
+
*/
|
|
82
|
+
updateTable(args: UpdateTableCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateTableCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
83
|
+
/**
|
|
84
|
+
* @see {@link WriteRecordsCommand}
|
|
85
|
+
*/
|
|
86
|
+
writeRecords(args: WriteRecordsCommandInput, options?: HttpHandlerOptions): Effect.Effect<WriteRecordsCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | RejectedRecordsError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* @since 1.0.0
|
|
90
|
+
* @category constructors
|
|
91
|
+
*/
|
|
92
|
+
export declare const makeTimestreamWriteService: Effect.Effect<TimestreamWriteService$, never, Instance.TimestreamWriteClientInstance>;
|
|
93
|
+
declare const TimestreamWriteService_base: import("effect/Context").TagClass<TimestreamWriteService, "@effect-aws/client-timestream-write/TimestreamWriteService", TimestreamWriteService$> & Effect.Tag.Proxy<TimestreamWriteService, TimestreamWriteService$> & {
|
|
94
|
+
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, import("effect/Cause").UnknownException, TimestreamWriteService> : Effect.Effect<X, never, TimestreamWriteService>;
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* @since 1.0.0
|
|
98
|
+
* @category models
|
|
99
|
+
*/
|
|
100
|
+
export declare class TimestreamWriteService extends TimestreamWriteService_base {
|
|
101
|
+
static readonly defaultLayer: Layer.Layer<TimestreamWriteService, never, never>;
|
|
102
|
+
static readonly layer: (config: TimestreamWriteService.Config) => Layer.Layer<TimestreamWriteService, never, never>;
|
|
103
|
+
static readonly baseLayer: (evaluate: (defaultConfig: TimestreamWriteClientConfig) => TimestreamWriteClient) => Layer.Layer<TimestreamWriteService, never, never>;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* @since 1.0.0
|
|
107
|
+
*/
|
|
108
|
+
export declare namespace TimestreamWriteService {
|
|
109
|
+
/**
|
|
110
|
+
* @since 1.0.0
|
|
111
|
+
*/
|
|
112
|
+
interface Config extends Omit<TimestreamWriteClientConfig, "logger"> {
|
|
113
|
+
readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
export {};
|
|
117
|
+
//# sourceMappingURL=TimestreamWriteService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,EAE7B,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EAEvC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAElC,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EAEnC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAE/B,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAE/B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAE5B,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,+BAA+B,EACpC,KAAK,gC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ACnB,oBAAoB,GACpB,oBAAoB,GACpB,qBAAqB,GACrB,eAAe,GACf,eAAe,CAClB,CAAC;CACH;AAED;;;GAGG;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;CACF"}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
|
@@ -0,0 +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,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"}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
/**
|
|
34
|
+
* @since 1.0.0
|
|
35
|
+
* @category exports
|
|
36
|
+
* @alias TimestreamWriteService
|
|
37
|
+
*/
|
|
38
|
+
export declare const TimestreamWrite: typeof TimestreamWriteService;
|
|
39
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,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;CACpD;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,+BAAyB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
2
|
+
export const AllServiceErrors = [
|
|
3
|
+
"AccessDeniedException",
|
|
4
|
+
"ConflictException",
|
|
5
|
+
"InternalServerException",
|
|
6
|
+
"InvalidEndpointException",
|
|
7
|
+
"RejectedRecordsException",
|
|
8
|
+
"ResourceNotFoundException",
|
|
9
|
+
"ServiceQuotaExceededException",
|
|
10
|
+
"ThrottlingException",
|
|
11
|
+
"ValidationException",
|
|
12
|
+
];
|
|
13
|
+
export const SdkError = CommonSdkError;
|
|
14
|
+
//# sourceMappingURL=Errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjE,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,uBAAuB;IACvB,mBAAmB;IACnB,yBAAyB;IACzB,0BAA0B;IAC1B,0BAA0B;IAC1B,2BAA2B;IAC3B,+BAA+B;IAC/B,qBAAqB;IACrB,qBAAqB;CACb,CAAC;AAaX,MAAM,CAAC,MAAM,QAAQ,GAAG,cAAc,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { TimestreamWriteClient } from "@aws-sdk/client-timestream-write";
|
|
5
|
+
import { Context, Effect, Layer } from "effect";
|
|
6
|
+
import * as TimestreamWriteServiceConfig from "./TimestreamWriteServiceConfig.js";
|
|
7
|
+
/**
|
|
8
|
+
* @since 1.0.0
|
|
9
|
+
* @category tags
|
|
10
|
+
*/
|
|
11
|
+
export class TimestreamWriteClientInstance extends Context.Tag("@effect-aws/client-timestream-write/TimestreamWriteClientInstance")() {
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
* @category constructors
|
|
16
|
+
*/
|
|
17
|
+
export const make = Effect.flatMap(TimestreamWriteServiceConfig.toTimestreamWriteClientConfig, (config) => Effect.acquireRelease(Effect.sync(() => new TimestreamWriteClient(config)), (client) => Effect.sync(() => client.destroy())));
|
|
18
|
+
/**
|
|
19
|
+
* @since 1.0.0
|
|
20
|
+
* @category layers
|
|
21
|
+
*/
|
|
22
|
+
export const layer = Layer.scoped(TimestreamWriteClientInstance, make);
|
|
23
|
+
//# sourceMappingURL=TimestreamWriteClientInstance.js.map
|
|
@@ -0,0 +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,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAChD,OAAO,KAAK,4BAA4B,MAAM,mCAAmC,CAAC;AAElF;;;GAGG;AACH,MAAM,OAAO,6BAA8B,SAAQ,OAAO,CAAC,GAAG,CAC5D,mEAAmE,CACpE,EAAwD;CAAG;AAE5D;;;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"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
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
|
+
import { Service } from "@effect-aws/commons";
|
|
6
|
+
import { Effect, Layer } from "effect";
|
|
7
|
+
import { AllServiceErrors } from "./Errors.js";
|
|
8
|
+
import * as Instance from "./TimestreamWriteClientInstance.js";
|
|
9
|
+
import * as TimestreamWriteServiceConfig from "./TimestreamWriteServiceConfig.js";
|
|
10
|
+
const commands = {
|
|
11
|
+
CreateBatchLoadTaskCommand,
|
|
12
|
+
CreateDatabaseCommand,
|
|
13
|
+
CreateTableCommand,
|
|
14
|
+
DeleteDatabaseCommand,
|
|
15
|
+
DeleteTableCommand,
|
|
16
|
+
DescribeBatchLoadTaskCommand,
|
|
17
|
+
DescribeDatabaseCommand,
|
|
18
|
+
DescribeEndpointsCommand,
|
|
19
|
+
DescribeTableCommand,
|
|
20
|
+
ListBatchLoadTasksCommand,
|
|
21
|
+
ListDatabasesCommand,
|
|
22
|
+
ListTablesCommand,
|
|
23
|
+
ListTagsForResourceCommand,
|
|
24
|
+
ResumeBatchLoadTaskCommand,
|
|
25
|
+
TagResourceCommand,
|
|
26
|
+
UntagResourceCommand,
|
|
27
|
+
UpdateDatabaseCommand,
|
|
28
|
+
UpdateTableCommand,
|
|
29
|
+
WriteRecordsCommand,
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* @since 1.0.0
|
|
33
|
+
* @category constructors
|
|
34
|
+
*/
|
|
35
|
+
export const makeTimestreamWriteService = Effect.gen(function* () {
|
|
36
|
+
const client = yield* Instance.TimestreamWriteClientInstance;
|
|
37
|
+
return Service.fromClientAndCommands(client, commands, {
|
|
38
|
+
errorTags: AllServiceErrors,
|
|
39
|
+
resolveClientConfig: TimestreamWriteServiceConfig.toTimestreamWriteClientConfig,
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
/**
|
|
43
|
+
* @since 1.0.0
|
|
44
|
+
* @category models
|
|
45
|
+
*/
|
|
46
|
+
export class TimestreamWriteService extends Effect.Tag("@effect-aws/client-timestream-write/TimestreamWriteService")() {
|
|
47
|
+
static defaultLayer = Layer.effect(this, makeTimestreamWriteService).pipe(Layer.provide(Instance.layer));
|
|
48
|
+
static layer = (config) => Layer.effect(this, makeTimestreamWriteService).pipe(Layer.provide(Instance.layer), Layer.provide(TimestreamWriteServiceConfig.setTimestreamWriteServiceConfig(config)));
|
|
49
|
+
static baseLayer = (evaluate) => Layer.effect(this, makeTimestreamWriteService).pipe(Layer.provide(Layer.effect(Instance.TimestreamWriteClientInstance, Effect.map(TimestreamWriteServiceConfig.toTimestreamWriteClientConfig, evaluate))));
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=TimestreamWriteService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimestreamWriteService.js","sourceRoot":"","sources":["../../src/TimestreamWriteService.ts"],"names":[],"mappings":"AAAA;;GA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AC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,OAAO,sBAAuB,SAAQ,MAAM,CAAC,GAAG,CAAC,4DAA4D,CAAC,EAGjH;IACD,MAAM,CAAU,YAAY,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,0BAA0B,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IAClH,MAAM,CAAU,KAAK,GAAG,CAAC,MAAqC,EAAE,EAAE,CAChE,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,0BAA0B,CAAC,CAAC,IAAI,CACjD,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC7B,KAAK,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,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,0BAA0B,CAAC,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"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ServiceLogger } from "@effect-aws/commons";
|
|
2
|
+
import { Effect, FiberRef, Layer } from "effect";
|
|
3
|
+
import { dual } from "effect/Function";
|
|
4
|
+
import { globalValue } from "effect/GlobalValue";
|
|
5
|
+
/**
|
|
6
|
+
* @since 1.0.0
|
|
7
|
+
* @category timestream-write service config
|
|
8
|
+
*/
|
|
9
|
+
const currentTimestreamWriteServiceConfig = globalValue("@effect-aws/client-timestream-write/currentTimestreamWriteServiceConfig", () => FiberRef.unsafeMake({}));
|
|
10
|
+
/**
|
|
11
|
+
* @since 1.0.0
|
|
12
|
+
* @category timestream-write service config
|
|
13
|
+
*/
|
|
14
|
+
export const withTimestreamWriteServiceConfig = dual(2, (effect, config) => Effect.locally(effect, currentTimestreamWriteServiceConfig, config));
|
|
15
|
+
/**
|
|
16
|
+
* @since 1.0.0
|
|
17
|
+
* @category timestream-write service config
|
|
18
|
+
*/
|
|
19
|
+
export const setTimestreamWriteServiceConfig = (config) => Layer.locallyScoped(currentTimestreamWriteServiceConfig, config);
|
|
20
|
+
/**
|
|
21
|
+
* @since 1.0.0
|
|
22
|
+
* @category adapters
|
|
23
|
+
*/
|
|
24
|
+
export const toTimestreamWriteClientConfig = Effect.gen(function* () {
|
|
25
|
+
const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentTimestreamWriteServiceConfig);
|
|
26
|
+
const logger = serviceLogger === true
|
|
27
|
+
? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
|
|
28
|
+
: (serviceLogger ? yield* ServiceLogger.toClientLogger(ServiceLogger.make(serviceLogger)) : undefined);
|
|
29
|
+
return { logger, ...config };
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=TimestreamWriteServiceConfig.js.map
|
|
@@ -0,0 +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,QAAQ,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD;;;GAGG;AACH,MAAM,mCAAmC,GAAG,WAAW,CACrD,yEAAyE,EACzE,GAAG,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAgC,EAAE,CAAC,CAC7D,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAGzC,IAAI,CACN,CAAC,EACD,CAAU,MAA8B,EAAE,MAAqC,EAA0B,EAAE,CACzG,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,mCAAmC,EAAE,MAAM,CAAC,CACtE,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,MAAqC,EAAE,EAAE,CACvF,KAAK,CAAC,aAAa,CAAC,mCAAmC,EAAE,MAAM,CAAC,CAAC;AAEnE;;;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,QAAQ,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;IAEtG,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"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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 const TimestreamWrite = TimestreamWriteService;
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,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,MAAM,eAAe,GAAG,sBAAsB,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@effect-aws/client-timestream-write",
|
|
3
|
+
"version": "1.9.2",
|
|
4
|
+
"description": "Effectful AWS Timestream Write client",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "github:floydspace/effect-aws",
|
|
9
|
+
"directory": "packages/client-timestream-write"
|
|
10
|
+
},
|
|
11
|
+
"sideEffects": [],
|
|
12
|
+
"author": {
|
|
13
|
+
"name": "Victor Korzunin",
|
|
14
|
+
"email": "ifloydrose@gmail.com"
|
|
15
|
+
},
|
|
16
|
+
"homepage": "https://floydspace.github.io/effect-aws/docs/client-timestream-write",
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@aws-sdk/client-timestream-write": "^3",
|
|
19
|
+
"@effect-aws/commons": "^0.2.0"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"effect": ">=3.0.4 <4.0.0"
|
|
23
|
+
},
|
|
24
|
+
"main": "./dist/cjs/index.js",
|
|
25
|
+
"module": "./dist/esm/index.js",
|
|
26
|
+
"types": "./dist/dts/index.d.ts",
|
|
27
|
+
"exports": {
|
|
28
|
+
"./package.json": "./package.json",
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./dist/dts/index.d.ts",
|
|
31
|
+
"import": "./dist/esm/index.js",
|
|
32
|
+
"default": "./dist/cjs/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./Errors": {
|
|
35
|
+
"types": "./dist/dts/Errors.d.ts",
|
|
36
|
+
"import": "./dist/esm/Errors.js",
|
|
37
|
+
"default": "./dist/cjs/Errors.js"
|
|
38
|
+
},
|
|
39
|
+
"./TimestreamWriteClientInstance": {
|
|
40
|
+
"types": "./dist/dts/TimestreamWriteClientInstance.d.ts",
|
|
41
|
+
"import": "./dist/esm/TimestreamWriteClientInstance.js",
|
|
42
|
+
"default": "./dist/cjs/TimestreamWriteClientInstance.js"
|
|
43
|
+
},
|
|
44
|
+
"./TimestreamWriteService": {
|
|
45
|
+
"types": "./dist/dts/TimestreamWriteService.d.ts",
|
|
46
|
+
"import": "./dist/esm/TimestreamWriteService.js",
|
|
47
|
+
"default": "./dist/cjs/TimestreamWriteService.js"
|
|
48
|
+
},
|
|
49
|
+
"./TimestreamWriteServiceConfig": {
|
|
50
|
+
"types": "./dist/dts/TimestreamWriteServiceConfig.d.ts",
|
|
51
|
+
"import": "./dist/esm/TimestreamWriteServiceConfig.js",
|
|
52
|
+
"default": "./dist/cjs/TimestreamWriteServiceConfig.js"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"typesVersions": {
|
|
56
|
+
"*": {
|
|
57
|
+
"Errors": [
|
|
58
|
+
"./dist/dts/Errors.d.ts"
|
|
59
|
+
],
|
|
60
|
+
"TimestreamWriteClientInstance": [
|
|
61
|
+
"./dist/dts/TimestreamWriteClientInstance.d.ts"
|
|
62
|
+
],
|
|
63
|
+
"TimestreamWriteService": [
|
|
64
|
+
"./dist/dts/TimestreamWriteService.d.ts"
|
|
65
|
+
],
|
|
66
|
+
"TimestreamWriteServiceConfig": [
|
|
67
|
+
"./dist/dts/TimestreamWriteServiceConfig.d.ts"
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
package/src/Errors.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
AccessDeniedException,
|
|
3
|
+
ConflictException,
|
|
4
|
+
InternalServerException,
|
|
5
|
+
InvalidEndpointException,
|
|
6
|
+
RejectedRecordsException,
|
|
7
|
+
ResourceNotFoundException,
|
|
8
|
+
ServiceQuotaExceededException,
|
|
9
|
+
ThrottlingException,
|
|
10
|
+
ValidationException,
|
|
11
|
+
} from "@aws-sdk/client-timestream-write";
|
|
12
|
+
import type { TaggedException } from "@effect-aws/commons";
|
|
13
|
+
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
14
|
+
|
|
15
|
+
export const AllServiceErrors = [
|
|
16
|
+
"AccessDeniedException",
|
|
17
|
+
"ConflictException",
|
|
18
|
+
"InternalServerException",
|
|
19
|
+
"InvalidEndpointException",
|
|
20
|
+
"RejectedRecordsException",
|
|
21
|
+
"ResourceNotFoundException",
|
|
22
|
+
"ServiceQuotaExceededException",
|
|
23
|
+
"ThrottlingException",
|
|
24
|
+
"ValidationException",
|
|
25
|
+
] as const;
|
|
26
|
+
|
|
27
|
+
export type AccessDeniedError = TaggedException<AccessDeniedException>;
|
|
28
|
+
export type ConflictError = TaggedException<ConflictException>;
|
|
29
|
+
export type InternalServerError = TaggedException<InternalServerException>;
|
|
30
|
+
export type InvalidEndpointError = TaggedException<InvalidEndpointException>;
|
|
31
|
+
export type RejectedRecordsError = TaggedException<RejectedRecordsException>;
|
|
32
|
+
export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
|
|
33
|
+
export type ServiceQuotaExceededError = TaggedException<ServiceQuotaExceededException>;
|
|
34
|
+
export type ThrottlingError = TaggedException<ThrottlingException>;
|
|
35
|
+
export type ValidationError = TaggedException<ValidationException>;
|
|
36
|
+
|
|
37
|
+
export type SdkError = CommonSdkError;
|
|
38
|
+
export const SdkError = CommonSdkError;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { TimestreamWriteClient } from "@aws-sdk/client-timestream-write";
|
|
5
|
+
import { Context, Effect, Layer } from "effect";
|
|
6
|
+
import * as TimestreamWriteServiceConfig from "./TimestreamWriteServiceConfig.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @since 1.0.0
|
|
10
|
+
* @category tags
|
|
11
|
+
*/
|
|
12
|
+
export class TimestreamWriteClientInstance extends Context.Tag(
|
|
13
|
+
"@effect-aws/client-timestream-write/TimestreamWriteClientInstance",
|
|
14
|
+
)<TimestreamWriteClientInstance, TimestreamWriteClient>() {}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @since 1.0.0
|
|
18
|
+
* @category constructors
|
|
19
|
+
*/
|
|
20
|
+
export const make = Effect.flatMap(
|
|
21
|
+
TimestreamWriteServiceConfig.toTimestreamWriteClientConfig,
|
|
22
|
+
(config) =>
|
|
23
|
+
Effect.acquireRelease(
|
|
24
|
+
Effect.sync(() => new TimestreamWriteClient(config)),
|
|
25
|
+
(client) => Effect.sync(() => client.destroy()),
|
|
26
|
+
),
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @since 1.0.0
|
|
31
|
+
* @category layers
|
|
32
|
+
*/
|
|
33
|
+
export const layer = Layer.scoped(TimestreamWriteClientInstance, make);
|