@effect-aws/client-timestream-write 2.0.0-beta.1 → 2.0.0-beta.3
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/dist/dts/Errors.d.ts +1 -1
- package/dist/dts/Errors.d.ts.map +1 -1
- package/dist/dts/TimestreamWriteService.d.ts +7 -3
- package/dist/dts/TimestreamWriteService.d.ts.map +1 -1
- package/dist/esm/TimestreamWriteService.js +8 -3
- package/dist/esm/TimestreamWriteService.js.map +1 -1
- package/dist/esm/TimestreamWriteServiceConfig.js +1 -1
- package/dist/esm/TimestreamWriteServiceConfig.js.map +1 -1
- package/package.json +2 -2
- package/src/Errors.ts +1 -1
- package/src/TimestreamWriteService.ts +57 -4
- package/src/TimestreamWriteServiceConfig.ts +1 -1
package/dist/dts/Errors.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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";
|
|
2
|
+
import type { TaggedException } from "@effect-aws/commons/Errors";
|
|
3
3
|
export declare const AllServiceErrors: readonly ["AccessDeniedException", "ConflictException", "InternalServerException", "InvalidEndpointException", "RejectedRecordsException", "ResourceNotFoundException", "ServiceQuotaExceededException", "ThrottlingException", "ValidationException"];
|
|
4
4
|
export type AccessDeniedError = TaggedException<AccessDeniedException>;
|
|
5
5
|
export type ConflictError = TaggedException<ConflictException>;
|
package/dist/dts/Errors.d.ts.map
CHANGED
|
@@ -1 +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,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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
|
|
5
|
+
import type * as ServiceLogger from "@effect-aws/commons/ServiceLogger";
|
|
6
|
+
import type { HttpHandlerOptions } from "@effect-aws/commons/Types";
|
|
6
7
|
import type * as Cause from "effect/Cause";
|
|
7
8
|
import * as Effect from "effect/Effect";
|
|
8
9
|
import * as Layer from "effect/Layer";
|
|
9
10
|
import * as ServiceMap from "effect/ServiceMap";
|
|
11
|
+
import type * as Stream from "effect/Stream";
|
|
10
12
|
import type { AccessDeniedError, ConflictError, InternalServerError, InvalidEndpointError, RejectedRecordsError, ResourceNotFoundError, SdkError, ServiceQuotaExceededError, ThrottlingError, ValidationError } from "./Errors.js";
|
|
11
13
|
import * as Instance from "./TimestreamWriteClientInstance.js";
|
|
12
|
-
interface TimestreamWriteService$ {
|
|
13
|
-
readonly _: unique symbol;
|
|
14
|
+
export interface TimestreamWriteService$ {
|
|
14
15
|
/**
|
|
15
16
|
* @see {@link CreateBatchLoadTaskCommand}
|
|
16
17
|
*/
|
|
@@ -51,14 +52,17 @@ interface TimestreamWriteService$ {
|
|
|
51
52
|
* @see {@link ListBatchLoadTasksCommand}
|
|
52
53
|
*/
|
|
53
54
|
listBatchLoadTasks(args: ListBatchLoadTasksCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListBatchLoadTasksCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ThrottlingError | ValidationError>;
|
|
55
|
+
listBatchLoadTasksStream(args: ListBatchLoadTasksCommandInput, options?: HttpHandlerOptions): Stream.Stream<ListBatchLoadTasksCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ThrottlingError | ValidationError>;
|
|
54
56
|
/**
|
|
55
57
|
* @see {@link ListDatabasesCommand}
|
|
56
58
|
*/
|
|
57
59
|
listDatabases(args: ListDatabasesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListDatabasesCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ThrottlingError | ValidationError>;
|
|
60
|
+
listDatabasesStream(args: ListDatabasesCommandInput, options?: HttpHandlerOptions): Stream.Stream<ListDatabasesCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ThrottlingError | ValidationError>;
|
|
58
61
|
/**
|
|
59
62
|
* @see {@link ListTablesCommand}
|
|
60
63
|
*/
|
|
61
64
|
listTables(args: ListTablesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTablesCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
65
|
+
listTablesStream(args: ListTablesCommandInput, options?: HttpHandlerOptions): Stream.Stream<ListTablesCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | InvalidEndpointError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
62
66
|
/**
|
|
63
67
|
* @see {@link ListTagsForResourceCommand}
|
|
64
68
|
*/
|
|
@@ -1 +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,
|
|
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,E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ableCommand, DescribeBatchLoadTaskCommand, DescribeDatabaseCommand, DescribeEndpointsCommand, DescribeTableCommand, ListBatchLoadTasksCommand, ListDatabasesCommand, ListTablesCommand, ListTagsForResourceCommand, ResumeBatchLoadTaskCommand, TagResourceCommand, UntagResourceCommand, UpdateDatabaseCommand, UpdateTableCommand, WriteRecordsCommand, } from "@aws-sdk/client-timestream-write";
|
|
5
|
-
import
|
|
4
|
+
import { CreateBatchLoadTaskCommand, CreateDatabaseCommand, CreateTableCommand, DeleteDatabaseCommand, DeleteTableCommand, DescribeBatchLoadTaskCommand, DescribeDatabaseCommand, DescribeEndpointsCommand, DescribeTableCommand, ListBatchLoadTasksCommand, ListDatabasesCommand, ListTablesCommand, ListTagsForResourceCommand, paginateListBatchLoadTasks, paginateListDatabases, paginateListTables, ResumeBatchLoadTaskCommand, TagResourceCommand, UntagResourceCommand, UpdateDatabaseCommand, UpdateTableCommand, WriteRecordsCommand, } from "@aws-sdk/client-timestream-write";
|
|
5
|
+
import * as Service from "@effect-aws/commons/Service";
|
|
6
6
|
import * as Effect from "effect/Effect";
|
|
7
7
|
import * as Layer from "effect/Layer";
|
|
8
8
|
import * as ServiceMap from "effect/ServiceMap";
|
|
@@ -30,6 +30,11 @@ const commands = {
|
|
|
30
30
|
UpdateTableCommand,
|
|
31
31
|
WriteRecordsCommand,
|
|
32
32
|
};
|
|
33
|
+
const paginators = {
|
|
34
|
+
paginateListBatchLoadTasks,
|
|
35
|
+
paginateListDatabases,
|
|
36
|
+
paginateListTables,
|
|
37
|
+
};
|
|
33
38
|
/**
|
|
34
39
|
* @since 1.0.0
|
|
35
40
|
* @category constructors
|
|
@@ -39,7 +44,7 @@ export const makeTimestreamWriteService = Effect.gen(function* () {
|
|
|
39
44
|
return yield* Service.fromClientAndCommands(client, commands, {
|
|
40
45
|
errorTags: AllServiceErrors,
|
|
41
46
|
resolveClientConfig: TimestreamWriteServiceConfig.toTimestreamWriteClientConfig,
|
|
42
|
-
});
|
|
47
|
+
}, paginators);
|
|
43
48
|
});
|
|
44
49
|
/**
|
|
45
50
|
* @since 1.0.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimestreamWriteService.js","sourceRoot":"","sources":["../../src/TimestreamWriteService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,0BAA0B,EAG1B,qBAAqB,EAGrB,kBAAkB,EAGlB,qBAAqB,EAGrB,kBAAkB,EAGlB,4BAA4B,EAG5B,uBAAuB,EAGvB,wBAAwB,EAGxB,oBAAoB,EAGpB,yBAAyB,EAGzB,oBAAoB,EAGpB,iBAAiB,EAGjB,0BAA0B,EAG1B,0BAA0B,EAG1B,kBAAkB,EAKlB,oBAAoB,EAGpB,qBAAqB,EAGrB,kBAAkB,EAGlB,mBAAmB,GAGpB,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"TimestreamWriteService.js","sourceRoot":"","sources":["../../src/TimestreamWriteService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,0BAA0B,EAG1B,qBAAqB,EAGrB,kBAAkB,EAGlB,qBAAqB,EAGrB,kBAAkB,EAGlB,4BAA4B,EAG5B,uBAAuB,EAGvB,wBAAwB,EAGxB,oBAAoB,EAGpB,yBAAyB,EAGzB,oBAAoB,EAGpB,iBAAiB,EAGjB,0BAA0B,EAG1B,0BAA0B,EAC1B,qBAAqB,EACrB,kBAAkB,EAClB,0BAA0B,EAG1B,kBAAkB,EAKlB,oBAAoB,EAGpB,qBAAqB,EAGrB,kBAAkB,EAGlB,mBAAmB,GAGpB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,OAAO,MAAM,6BAA6B,CAAC;AAIvD,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAchD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OA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K,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimestreamWriteServiceConfig.js","sourceRoot":"","sources":["../../src/TimestreamWriteServiceConfig.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"TimestreamWriteServiceConfig.js","sourceRoot":"","sources":["../../src/TimestreamWriteServiceConfig.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,aAAa,MAAM,mCAAmC,CAAC;AACnE,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAGhD;;;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": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.3",
|
|
4
4
|
"description": "Effectful AWS Timestream Write client",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -16,7 +16,7 @@
|
|
|
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": "^1.0.0-beta.
|
|
19
|
+
"@effect-aws/commons": "^1.0.0-beta.3"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"effect": ">=4.0.0 <5.0.0"
|
package/src/Errors.ts
CHANGED
|
@@ -9,7 +9,7 @@ import type {
|
|
|
9
9
|
ThrottlingException,
|
|
10
10
|
ValidationException,
|
|
11
11
|
} from "@aws-sdk/client-timestream-write";
|
|
12
|
-
import type { TaggedException } from "@effect-aws/commons";
|
|
12
|
+
import type { TaggedException } from "@effect-aws/commons/Errors";
|
|
13
13
|
|
|
14
14
|
export const AllServiceErrors = [
|
|
15
15
|
"AccessDeniedException",
|
|
@@ -41,6 +41,9 @@ import {
|
|
|
41
41
|
ListTagsForResourceCommand,
|
|
42
42
|
type ListTagsForResourceCommandInput,
|
|
43
43
|
type ListTagsForResourceCommandOutput,
|
|
44
|
+
paginateListBatchLoadTasks,
|
|
45
|
+
paginateListDatabases,
|
|
46
|
+
paginateListTables,
|
|
44
47
|
ResumeBatchLoadTaskCommand,
|
|
45
48
|
type ResumeBatchLoadTaskCommandInput,
|
|
46
49
|
type ResumeBatchLoadTaskCommandOutput,
|
|
@@ -62,12 +65,14 @@ import {
|
|
|
62
65
|
type WriteRecordsCommandInput,
|
|
63
66
|
type WriteRecordsCommandOutput,
|
|
64
67
|
} from "@aws-sdk/client-timestream-write";
|
|
65
|
-
import
|
|
66
|
-
import
|
|
68
|
+
import * as Service from "@effect-aws/commons/Service";
|
|
69
|
+
import type * as ServiceLogger from "@effect-aws/commons/ServiceLogger";
|
|
70
|
+
import type { HttpHandlerOptions } from "@effect-aws/commons/Types";
|
|
67
71
|
import type * as Cause from "effect/Cause";
|
|
68
72
|
import * as Effect from "effect/Effect";
|
|
69
73
|
import * as Layer from "effect/Layer";
|
|
70
74
|
import * as ServiceMap from "effect/ServiceMap";
|
|
75
|
+
import type * as Stream from "effect/Stream";
|
|
71
76
|
import type {
|
|
72
77
|
AccessDeniedError,
|
|
73
78
|
ConflictError,
|
|
@@ -106,9 +111,13 @@ const commands = {
|
|
|
106
111
|
WriteRecordsCommand,
|
|
107
112
|
};
|
|
108
113
|
|
|
109
|
-
|
|
110
|
-
|
|
114
|
+
const paginators = {
|
|
115
|
+
paginateListBatchLoadTasks,
|
|
116
|
+
paginateListDatabases,
|
|
117
|
+
paginateListTables,
|
|
118
|
+
};
|
|
111
119
|
|
|
120
|
+
export interface TimestreamWriteService$ {
|
|
112
121
|
/**
|
|
113
122
|
* @see {@link CreateBatchLoadTaskCommand}
|
|
114
123
|
*/
|
|
@@ -285,6 +294,20 @@ interface TimestreamWriteService$ {
|
|
|
285
294
|
| ValidationError
|
|
286
295
|
>;
|
|
287
296
|
|
|
297
|
+
listBatchLoadTasksStream(
|
|
298
|
+
args: ListBatchLoadTasksCommandInput,
|
|
299
|
+
options?: HttpHandlerOptions,
|
|
300
|
+
): Stream.Stream<
|
|
301
|
+
ListBatchLoadTasksCommandOutput,
|
|
302
|
+
| Cause.TimeoutError
|
|
303
|
+
| SdkError
|
|
304
|
+
| AccessDeniedError
|
|
305
|
+
| InternalServerError
|
|
306
|
+
| InvalidEndpointError
|
|
307
|
+
| ThrottlingError
|
|
308
|
+
| ValidationError
|
|
309
|
+
>;
|
|
310
|
+
|
|
288
311
|
/**
|
|
289
312
|
* @see {@link ListDatabasesCommand}
|
|
290
313
|
*/
|
|
@@ -302,6 +325,20 @@ interface TimestreamWriteService$ {
|
|
|
302
325
|
| ValidationError
|
|
303
326
|
>;
|
|
304
327
|
|
|
328
|
+
listDatabasesStream(
|
|
329
|
+
args: ListDatabasesCommandInput,
|
|
330
|
+
options?: HttpHandlerOptions,
|
|
331
|
+
): Stream.Stream<
|
|
332
|
+
ListDatabasesCommandOutput,
|
|
333
|
+
| Cause.TimeoutError
|
|
334
|
+
| SdkError
|
|
335
|
+
| AccessDeniedError
|
|
336
|
+
| InternalServerError
|
|
337
|
+
| InvalidEndpointError
|
|
338
|
+
| ThrottlingError
|
|
339
|
+
| ValidationError
|
|
340
|
+
>;
|
|
341
|
+
|
|
305
342
|
/**
|
|
306
343
|
* @see {@link ListTablesCommand}
|
|
307
344
|
*/
|
|
@@ -320,6 +357,21 @@ interface TimestreamWriteService$ {
|
|
|
320
357
|
| ValidationError
|
|
321
358
|
>;
|
|
322
359
|
|
|
360
|
+
listTablesStream(
|
|
361
|
+
args: ListTablesCommandInput,
|
|
362
|
+
options?: HttpHandlerOptions,
|
|
363
|
+
): Stream.Stream<
|
|
364
|
+
ListTablesCommandOutput,
|
|
365
|
+
| Cause.TimeoutError
|
|
366
|
+
| SdkError
|
|
367
|
+
| AccessDeniedError
|
|
368
|
+
| InternalServerError
|
|
369
|
+
| InvalidEndpointError
|
|
370
|
+
| ResourceNotFoundError
|
|
371
|
+
| ThrottlingError
|
|
372
|
+
| ValidationError
|
|
373
|
+
>;
|
|
374
|
+
|
|
323
375
|
/**
|
|
324
376
|
* @see {@link ListTagsForResourceCommand}
|
|
325
377
|
*/
|
|
@@ -454,6 +506,7 @@ export const makeTimestreamWriteService = Effect.gen(function*() {
|
|
|
454
506
|
errorTags: AllServiceErrors,
|
|
455
507
|
resolveClientConfig: TimestreamWriteServiceConfig.toTimestreamWriteClientConfig,
|
|
456
508
|
},
|
|
509
|
+
paginators,
|
|
457
510
|
);
|
|
458
511
|
});
|
|
459
512
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import type { TimestreamWriteClientConfig } from "@aws-sdk/client-timestream-write";
|
|
5
|
-
import
|
|
5
|
+
import * as ServiceLogger from "@effect-aws/commons/ServiceLogger";
|
|
6
6
|
import * as Effect from "effect/Effect";
|
|
7
7
|
import { dual } from "effect/Function";
|
|
8
8
|
import * as Layer from "effect/Layer";
|