@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.
Files changed (53) hide show
  1. package/Errors/package.json +6 -0
  2. package/LICENSE +19 -0
  3. package/README.md +58 -0
  4. package/TimestreamWriteClientInstance/package.json +6 -0
  5. package/TimestreamWriteService/package.json +6 -0
  6. package/TimestreamWriteServiceConfig/package.json +6 -0
  7. package/dist/cjs/Errors.d.ts +16 -0
  8. package/dist/cjs/Errors.d.ts.map +1 -0
  9. package/dist/cjs/Errors.js +17 -0
  10. package/dist/cjs/Errors.js.map +1 -0
  11. package/dist/cjs/TimestreamWriteClientInstance.d.ts +24 -0
  12. package/dist/cjs/TimestreamWriteClientInstance.d.ts.map +1 -0
  13. package/dist/cjs/TimestreamWriteClientInstance.js +50 -0
  14. package/dist/cjs/TimestreamWriteClientInstance.js.map +1 -0
  15. package/dist/cjs/TimestreamWriteService.d.ts +117 -0
  16. package/dist/cjs/TimestreamWriteService.d.ts.map +1 -0
  17. package/dist/cjs/TimestreamWriteService.js +78 -0
  18. package/dist/cjs/TimestreamWriteService.js.map +1 -0
  19. package/dist/cjs/TimestreamWriteServiceConfig.d.ts +25 -0
  20. package/dist/cjs/TimestreamWriteServiceConfig.d.ts.map +1 -0
  21. package/dist/cjs/TimestreamWriteServiceConfig.js +35 -0
  22. package/dist/cjs/TimestreamWriteServiceConfig.js.map +1 -0
  23. package/dist/cjs/index.d.ts +39 -0
  24. package/dist/cjs/index.d.ts.map +1 -0
  25. package/dist/cjs/index.js +56 -0
  26. package/dist/cjs/index.js.map +1 -0
  27. package/dist/dts/Errors.d.ts +16 -0
  28. package/dist/dts/Errors.d.ts.map +1 -0
  29. package/dist/dts/TimestreamWriteClientInstance.d.ts +24 -0
  30. package/dist/dts/TimestreamWriteClientInstance.d.ts.map +1 -0
  31. package/dist/dts/TimestreamWriteService.d.ts +117 -0
  32. package/dist/dts/TimestreamWriteService.d.ts.map +1 -0
  33. package/dist/dts/TimestreamWriteServiceConfig.d.ts +25 -0
  34. package/dist/dts/TimestreamWriteServiceConfig.d.ts.map +1 -0
  35. package/dist/dts/index.d.ts +39 -0
  36. package/dist/dts/index.d.ts.map +1 -0
  37. package/dist/esm/Errors.js +14 -0
  38. package/dist/esm/Errors.js.map +1 -0
  39. package/dist/esm/TimestreamWriteClientInstance.js +23 -0
  40. package/dist/esm/TimestreamWriteClientInstance.js.map +1 -0
  41. package/dist/esm/TimestreamWriteService.js +51 -0
  42. package/dist/esm/TimestreamWriteService.js.map +1 -0
  43. package/dist/esm/TimestreamWriteServiceConfig.js +31 -0
  44. package/dist/esm/TimestreamWriteServiceConfig.js.map +1 -0
  45. package/dist/esm/index.js +27 -0
  46. package/dist/esm/index.js.map +1 -0
  47. package/dist/esm/package.json +4 -0
  48. package/package.json +71 -0
  49. package/src/Errors.ts +38 -0
  50. package/src/TimestreamWriteClientInstance.ts +33 -0
  51. package/src/TimestreamWriteService.ts +461 -0
  52. package/src/TimestreamWriteServiceConfig.ts +52 -0
  53. package/src/index.ts +44 -0
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/Errors.js",
3
+ "module": "../dist/esm/Errors.js",
4
+ "types": "../dist/dts/Errors.d.ts",
5
+ "sideEffects": []
6
+ }
package/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2025 Victor Korzunin
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,58 @@
1
+ # @effect-aws/client-timestream-write
2
+
3
+ [![npm version](https://img.shields.io/npm/v/%40effect-aws%2Fclient-timestream-write?color=brightgreen&label=npm%20package)](https://www.npmjs.com/package/@effect-aws/client-timestream-write)
4
+ [![npm downloads](https://img.shields.io/npm/dm/%40effect-aws%2Fclient-timestream-write)](https://www.npmjs.com/package/@effect-aws/client-timestream-write)
5
+
6
+ ## Installation
7
+
8
+ ```bash
9
+ npm install --save @effect-aws/client-timestream-write
10
+ ```
11
+
12
+ ## Usage
13
+
14
+ With default TimestreamWriteClient instance:
15
+
16
+ ```typescript
17
+ import { TimestreamWrite } from "@effect-aws/client-timestream-write";
18
+
19
+ const program = TimestreamWrite.listTables(args);
20
+
21
+ const result = pipe(
22
+ program,
23
+ Effect.provide(TimestreamWrite.defaultLayer),
24
+ Effect.runPromise,
25
+ );
26
+ ```
27
+
28
+ With custom TimestreamWriteClient instance:
29
+
30
+ ```typescript
31
+ import { TimestreamWrite } from "@effect-aws/client-timestream-write";
32
+
33
+ const program = TimestreamWrite.listTables(args);
34
+
35
+ const result = await pipe(
36
+ program,
37
+ Effect.provide(
38
+ TimestreamWrite.baseLayer(() => new TimestreamWriteClient({ region: "eu-central-1" })),
39
+ ),
40
+ Effect.runPromise,
41
+ );
42
+ ```
43
+
44
+ With custom TimestreamWriteClient configuration:
45
+
46
+ ```typescript
47
+ import { TimestreamWrite } from "@effect-aws/client-timestream-write";
48
+
49
+ const program = TimestreamWrite.listTables(args);
50
+
51
+ const result = await pipe(
52
+ program,
53
+ Effect.provide(TimestreamWrite.layer({ region: "eu-central-1" })),
54
+ Effect.runPromiseExit,
55
+ );
56
+ ```
57
+
58
+ or use `TimestreamWrite.baseLayer((default) => new TimestreamWriteClient({ ...default, region: "eu-central-1" }))`
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/TimestreamWriteClientInstance.js",
3
+ "module": "../dist/esm/TimestreamWriteClientInstance.js",
4
+ "types": "../dist/dts/TimestreamWriteClientInstance.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/TimestreamWriteService.js",
3
+ "module": "../dist/esm/TimestreamWriteService.js",
4
+ "types": "../dist/dts/TimestreamWriteService.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/TimestreamWriteServiceConfig.js",
3
+ "module": "../dist/esm/TimestreamWriteServiceConfig.js",
4
+ "types": "../dist/dts/TimestreamWriteServiceConfig.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -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,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SdkError = exports.AllServiceErrors = void 0;
4
+ const commons_1 = require("@effect-aws/commons");
5
+ exports.AllServiceErrors = [
6
+ "AccessDeniedException",
7
+ "ConflictException",
8
+ "InternalServerException",
9
+ "InvalidEndpointException",
10
+ "RejectedRecordsException",
11
+ "ResourceNotFoundException",
12
+ "ServiceQuotaExceededException",
13
+ "ThrottlingException",
14
+ "ValidationException",
15
+ ];
16
+ exports.SdkError = commons_1.SdkError;
17
+ //# sourceMappingURL=Errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAYA,iDAAiE;AAEpD,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;AAaE,QAAA,QAAQ,GAAG,kBAAc,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,50 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.layer = exports.make = exports.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
@@ -0,0 +1 @@
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"}
@@ -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,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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 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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TimestreamWriteService.js","sourceRoot":"","sources":["../../src/TimestreamWriteService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,8EA4D0C;AAE1C,iDAA8C;AAC9C,mCAAuC;AAYvC,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;AAgTF;;;GAGG;AACU,QAAA,0BAA0B,GAAG,eAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAC5D,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,QAAQ,CAAC,6BAA6B,CAAC;IAE7D,OAAO,iBAAO,CAAC,qBAAqB,CAClC,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"}
@@ -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,35 @@
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
@@ -0,0 +1 @@
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"}
@@ -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,56 @@
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
@@ -0,0 +1 @@
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;AAe5C;;;;GAIG;AACU,QAAA,eAAe,GAAG,kDAAsB,CAAC"}