@aws-sdk/client-redshift-data 3.1092.0 → 3.1094.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/dist-cjs/index.js +109 -30
- package/dist-es/RedshiftData.js +4 -0
- package/dist-es/commands/ListSessionsCommand.js +4 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/enums.js +12 -3
- package/dist-es/models/errors.js +14 -0
- package/dist-es/pagination/ListSessionsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/schemas/schemas_0.js +66 -27
- package/dist-types/RedshiftData.d.ts +15 -0
- package/dist-types/RedshiftDataClient.d.ts +3 -2
- package/dist-types/commands/BatchExecuteStatementCommand.d.ts +5 -0
- package/dist-types/commands/DescribeStatementCommand.d.ts +5 -0
- package/dist-types/commands/ExecuteStatementCommand.d.ts +4 -0
- package/dist-types/commands/GetStatementResultCommand.d.ts +4 -0
- package/dist-types/commands/GetStatementResultV2Command.d.ts +4 -0
- package/dist-types/commands/ListSessionsCommand.d.ts +102 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +30 -5
- package/dist-types/models/errors.d.ts +13 -0
- package/dist-types/models/models_0.d.ts +189 -3
- package/dist-types/pagination/ListSessionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +5 -0
- package/dist-types/ts3.4/RedshiftData.d.ts +25 -0
- package/dist-types/ts3.4/RedshiftDataClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +17 -6
- package/dist-types/ts3.4/models/errors.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +47 -1
- package/dist-types/ts3.4/pagination/ListSessionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +5 -0
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const _ASEE = "ActiveSessionsExceededException";
|
|
2
2
|
const _ASEEc = "ActiveStatementsExceededException";
|
|
3
|
+
const _AWREE = "ActiveWaitingRequestsExceededException";
|
|
3
4
|
const _BES = "BatchExecuteStatement";
|
|
4
5
|
const _BESE = "BatchExecuteStatementException";
|
|
5
6
|
const _BESI = "BatchExecuteStatementInput";
|
|
@@ -11,6 +12,7 @@ const _CL = "ColumnList";
|
|
|
11
12
|
const _CM = "ColumnMetadata";
|
|
12
13
|
const _CML = "ColumnMetadataList";
|
|
13
14
|
const _CS = "CancelStatement";
|
|
15
|
+
const _CSI = "CurrentStatementId";
|
|
14
16
|
const _CSR = "CancelStatementRequest";
|
|
15
17
|
const _CSRa = "CancelStatementResponse";
|
|
16
18
|
const _CSVR = "CSVRecords";
|
|
@@ -28,6 +30,7 @@ const _DU = "DbUser";
|
|
|
28
30
|
const _Da = "Databases";
|
|
29
31
|
const _Du = "Duration";
|
|
30
32
|
const _E = "Error";
|
|
33
|
+
const _EM = "ExecutionMode";
|
|
31
34
|
const _ES = "ExecuteStatement";
|
|
32
35
|
const _ESE = "ExecuteStatementException";
|
|
33
36
|
const _ESI = "ExecuteStatementInput";
|
|
@@ -51,9 +54,12 @@ const _LDRi = "ListDatabasesResponse";
|
|
|
51
54
|
const _LS = "ListSchemas";
|
|
52
55
|
const _LSR = "ListSchemasRequest";
|
|
53
56
|
const _LSRi = "ListSchemasResponse";
|
|
54
|
-
const _LSRis = "
|
|
55
|
-
const _LSRist = "
|
|
56
|
-
const
|
|
57
|
+
const _LSRis = "ListSessionsRequest";
|
|
58
|
+
const _LSRist = "ListSessionsResponse";
|
|
59
|
+
const _LSRistt = "ListStatementsRequest";
|
|
60
|
+
const _LSRistta = "ListStatementsResponse";
|
|
61
|
+
const _LSi = "ListSessions";
|
|
62
|
+
const _LSis = "ListStatements";
|
|
57
63
|
const _LT = "ListTables";
|
|
58
64
|
const _LTR = "ListTablesRequest";
|
|
59
65
|
const _LTRi = "ListTablesResponse";
|
|
@@ -77,11 +83,14 @@ const _RR = "ResultRows";
|
|
|
77
83
|
const _RS = "ResultSize";
|
|
78
84
|
const _S = "Sqls";
|
|
79
85
|
const _SA = "SecretArn";
|
|
80
|
-
const
|
|
86
|
+
const _SAS = "SessionAliveSeconds";
|
|
87
|
+
const _SD = "SessionData";
|
|
88
|
+
const _SDt = "StatementData";
|
|
81
89
|
const _SI = "StatementId";
|
|
82
90
|
const _SIe = "SessionId";
|
|
83
91
|
const _SKAS = "SessionKeepAliveSeconds";
|
|
84
|
-
const _SL = "
|
|
92
|
+
const _SL = "SessionList";
|
|
93
|
+
const _SLt = "StatementList";
|
|
85
94
|
const _SN = "StatementName";
|
|
86
95
|
const _SP = "SchemaPattern";
|
|
87
96
|
const _SPL = "SqlParametersList";
|
|
@@ -90,8 +99,10 @@ const _SR = "SqlRecords";
|
|
|
90
99
|
const _SS = "SubStatements";
|
|
91
100
|
const _SSD = "SubStatementData";
|
|
92
101
|
const _SSL = "SubStatementList";
|
|
102
|
+
const _ST = "SessionTtl";
|
|
93
103
|
const _Sc = "Schema";
|
|
94
104
|
const _Sch = "Schemas";
|
|
105
|
+
const _Se = "Sessions";
|
|
95
106
|
const _Sq = "Sql";
|
|
96
107
|
const _St = "Status";
|
|
97
108
|
const _Sta = "Statements";
|
|
@@ -106,6 +117,7 @@ const _UA = "UpdatedAt";
|
|
|
106
117
|
const _VE = "ValidationException";
|
|
107
118
|
const _WE = "WithEvent";
|
|
108
119
|
const _WN = "WorkgroupName";
|
|
120
|
+
const _WTS = "WaitTimeSeconds";
|
|
109
121
|
const _bV = "booleanValue";
|
|
110
122
|
const _bVl = "blobValue";
|
|
111
123
|
const _c = "client";
|
|
@@ -135,7 +147,7 @@ const _tNy = "typeName";
|
|
|
135
147
|
const _v = "value";
|
|
136
148
|
const n0 = "com.amazonaws.redshiftdata";
|
|
137
149
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
138
|
-
import { ActiveSessionsExceededException, ActiveStatementsExceededException, BatchExecuteStatementException, DatabaseConnectionException, ExecuteStatementException, InternalServerException, QueryTimeoutException, ResourceNotFoundException, ValidationException, } from "../models/errors";
|
|
150
|
+
import { ActiveSessionsExceededException, ActiveStatementsExceededException, ActiveWaitingRequestsExceededException, BatchExecuteStatementException, DatabaseConnectionException, ExecuteStatementException, InternalServerException, QueryTimeoutException, ResourceNotFoundException, ValidationException, } from "../models/errors";
|
|
139
151
|
import { RedshiftDataServiceException } from "../models/RedshiftDataServiceException";
|
|
140
152
|
const _s_registry = TypeRegistry.for(_s);
|
|
141
153
|
export var RedshiftDataServiceException$ = [-3, _s, "RedshiftDataServiceException", 0, [], []];
|
|
@@ -153,6 +165,12 @@ export var ActiveStatementsExceededException$ = [-3, n0, _ASEEc,
|
|
|
153
165
|
[0]
|
|
154
166
|
];
|
|
155
167
|
n0_registry.registerError(ActiveStatementsExceededException$, ActiveStatementsExceededException);
|
|
168
|
+
export var ActiveWaitingRequestsExceededException$ = [-3, n0, _AWREE,
|
|
169
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
170
|
+
[_M],
|
|
171
|
+
[0]
|
|
172
|
+
];
|
|
173
|
+
n0_registry.registerError(ActiveWaitingRequestsExceededException$, ActiveWaitingRequestsExceededException);
|
|
156
174
|
export var BatchExecuteStatementException$ = [-3, n0, _BESE,
|
|
157
175
|
{ [_e]: _se, [_hE]: 500 },
|
|
158
176
|
[_M, _SI],
|
|
@@ -201,13 +219,13 @@ export const errorTypeRegistries = [
|
|
|
201
219
|
];
|
|
202
220
|
export var BatchExecuteStatementInput$ = [3, n0, _BESI,
|
|
203
221
|
0,
|
|
204
|
-
[_S, _CI, _SA, _DU, _D, _WE, _SN, _P, _WN, _CT, _RF, _SKAS, _SIe],
|
|
205
|
-
[64 | 0, 0, 0, 0, 0, 2, 0, () => SqlParametersList, 0, [0, 4], 0, 1, 0], 1
|
|
222
|
+
[_S, _CI, _SA, _DU, _D, _WE, _SN, _P, _WN, _CT, _RF, _SKAS, _SIe, _EM, _WTS],
|
|
223
|
+
[64 | 0, 0, 0, 0, 0, 2, 0, () => SqlParametersList, 0, [0, 4], 0, 1, 0, 0, 1], 1
|
|
206
224
|
];
|
|
207
225
|
export var BatchExecuteStatementOutput$ = [3, n0, _BESO,
|
|
208
226
|
0,
|
|
209
|
-
[_I, _CA, _CI, _DU, _DG, _D, _SA, _WN, _SIe],
|
|
210
|
-
[0, 4, 0, 0, 64 | 0, 0, 0, 0, 0]
|
|
227
|
+
[_I, _CA, _CI, _DU, _DG, _D, _SA, _WN, _SIe, _St, _RP, _HRS],
|
|
228
|
+
[0, 4, 0, 0, 64 | 0, 0, 0, 0, 0, 0, 1, 2]
|
|
211
229
|
];
|
|
212
230
|
export var CancelStatementRequest$ = [3, n0, _CSR,
|
|
213
231
|
0,
|
|
@@ -226,13 +244,13 @@ export var ColumnMetadata$ = [3, n0, _CM,
|
|
|
226
244
|
];
|
|
227
245
|
export var DescribeStatementRequest$ = [3, n0, _DSR,
|
|
228
246
|
0,
|
|
229
|
-
[_I],
|
|
230
|
-
[0], 1
|
|
247
|
+
[_I, _WTS],
|
|
248
|
+
[0, 1], 1
|
|
231
249
|
];
|
|
232
250
|
export var DescribeStatementResponse$ = [3, n0, _DSRe,
|
|
233
251
|
0,
|
|
234
|
-
[_I, _SA, _DU, _D, _CI, _Du, _E, _St, _CA, _UA, _RP, _HRS, _QS, _RR, _RS, _RQI, _QP, _SS, _WN, _RF, _SIe],
|
|
235
|
-
[0, 0, 0, 0, 0, 1, 0, 0, 4, 4, 1, 2, 0, 1, 1, 1, () => SqlParametersList, () => SubStatementList, 0, 0, 0], 1
|
|
252
|
+
[_I, _SA, _DU, _D, _CI, _Du, _E, _St, _CA, _UA, _RP, _HRS, _QS, _RR, _RS, _RQI, _QP, _SS, _WN, _RF, _SIe, _EM],
|
|
253
|
+
[0, 0, 0, 0, 0, 1, 0, 0, 4, 4, 1, 2, 0, 1, 1, 1, () => SqlParametersList, () => SubStatementList, 0, 0, 0, 0], 1
|
|
236
254
|
];
|
|
237
255
|
export var DescribeTableRequest$ = [3, n0, _DTR,
|
|
238
256
|
0,
|
|
@@ -246,18 +264,18 @@ export var DescribeTableResponse$ = [3, n0, _DTRe,
|
|
|
246
264
|
];
|
|
247
265
|
export var ExecuteStatementInput$ = [3, n0, _ESI,
|
|
248
266
|
0,
|
|
249
|
-
[_Sq, _CI, _SA, _DU, _D, _WE, _SN, _P, _WN, _CT, _RF, _SKAS, _SIe],
|
|
250
|
-
[0, 0, 0, 0, 0, 2, 0, () => SqlParametersList, 0, [0, 4], 0, 1, 0], 1
|
|
267
|
+
[_Sq, _CI, _SA, _DU, _D, _WE, _SN, _P, _WN, _CT, _RF, _SKAS, _SIe, _WTS],
|
|
268
|
+
[0, 0, 0, 0, 0, 2, 0, () => SqlParametersList, 0, [0, 4], 0, 1, 0, 1], 1
|
|
251
269
|
];
|
|
252
270
|
export var ExecuteStatementOutput$ = [3, n0, _ESO,
|
|
253
271
|
0,
|
|
254
|
-
[_I, _CA, _CI, _DU, _DG, _D, _SA, _WN, _SIe],
|
|
255
|
-
[0, 4, 0, 0, 64 | 0, 0, 0, 0, 0]
|
|
272
|
+
[_I, _CA, _CI, _DU, _DG, _D, _SA, _WN, _SIe, _St, _RP, _HRS],
|
|
273
|
+
[0, 4, 0, 0, 64 | 0, 0, 0, 0, 0, 0, 1, 2]
|
|
256
274
|
];
|
|
257
275
|
export var GetStatementResultRequest$ = [3, n0, _GSRR,
|
|
258
276
|
0,
|
|
259
|
-
[_I, _NT],
|
|
260
|
-
[0, 0], 1
|
|
277
|
+
[_I, _NT, _WTS],
|
|
278
|
+
[0, 0, 1], 1
|
|
261
279
|
];
|
|
262
280
|
export var GetStatementResultResponse$ = [3, n0, _GSRRe,
|
|
263
281
|
0,
|
|
@@ -266,8 +284,8 @@ export var GetStatementResultResponse$ = [3, n0, _GSRRe,
|
|
|
266
284
|
];
|
|
267
285
|
export var GetStatementResultV2Request$ = [3, n0, _GSRVR,
|
|
268
286
|
0,
|
|
269
|
-
[_I, _NT],
|
|
270
|
-
[0, 0], 1
|
|
287
|
+
[_I, _NT, _WTS],
|
|
288
|
+
[0, 0, 1], 1
|
|
271
289
|
];
|
|
272
290
|
export var GetStatementResultV2Response$ = [3, n0, _GSRVRe,
|
|
273
291
|
0,
|
|
@@ -294,12 +312,22 @@ export var ListSchemasResponse$ = [3, n0, _LSRi,
|
|
|
294
312
|
[_Sch, _NT],
|
|
295
313
|
[64 | 0, 0]
|
|
296
314
|
];
|
|
297
|
-
export var
|
|
315
|
+
export var ListSessionsRequest$ = [3, n0, _LSRis,
|
|
316
|
+
0,
|
|
317
|
+
[_NT, _MR, _SIe, _St, _RL, _CI, _WN, _D],
|
|
318
|
+
[0, 1, 0, 0, 2, 0, 0, 0]
|
|
319
|
+
];
|
|
320
|
+
export var ListSessionsResponse$ = [3, n0, _LSRist,
|
|
321
|
+
0,
|
|
322
|
+
[_Se, _NT],
|
|
323
|
+
[() => SessionList, 0], 1
|
|
324
|
+
];
|
|
325
|
+
export var ListStatementsRequest$ = [3, n0, _LSRistt,
|
|
298
326
|
0,
|
|
299
327
|
[_NT, _MR, _SN, _St, _RL, _D, _CI, _WN],
|
|
300
328
|
[0, 1, 0, 0, 2, 0, 0, 0]
|
|
301
329
|
];
|
|
302
|
-
export var ListStatementsResponse$ = [3, n0,
|
|
330
|
+
export var ListStatementsResponse$ = [3, n0, _LSRistta,
|
|
303
331
|
0,
|
|
304
332
|
[_Sta, _NT],
|
|
305
333
|
[() => StatementList, 0], 1
|
|
@@ -314,12 +342,17 @@ export var ListTablesResponse$ = [3, n0, _LTRi,
|
|
|
314
342
|
[_Ta, _NT],
|
|
315
343
|
[() => TableList, 0]
|
|
316
344
|
];
|
|
345
|
+
export var SessionData$ = [3, n0, _SD,
|
|
346
|
+
0,
|
|
347
|
+
[_SIe, _St, _CA, _UA, _D, _DU, _CI, _WN, _SAS, _ST, _CSI],
|
|
348
|
+
[0, 0, 4, 4, 0, 0, 0, 0, 1, 4, 0], 3
|
|
349
|
+
];
|
|
317
350
|
export var SqlParameter$ = [3, n0, _SPq,
|
|
318
351
|
0,
|
|
319
352
|
[_n, _v],
|
|
320
353
|
[0, 0], 2
|
|
321
354
|
];
|
|
322
|
-
export var StatementData$ = [3, n0,
|
|
355
|
+
export var StatementData$ = [3, n0, _SDt,
|
|
323
356
|
0,
|
|
324
357
|
[_I, _QS, _QSu, _SA, _St, _SN, _CA, _UA, _QP, _IBS, _RF, _SIe],
|
|
325
358
|
[0, 0, 64 | 0, 0, 0, 0, 4, 4, () => SqlParametersList, 2, 0, 0], 1
|
|
@@ -349,6 +382,9 @@ var FormattedSqlRecords = [1, n0, _FSR,
|
|
|
349
382
|
0, () => QueryRecords$
|
|
350
383
|
];
|
|
351
384
|
var SchemaList = 64 | 0;
|
|
385
|
+
var SessionList = [1, n0, _SL,
|
|
386
|
+
0, () => SessionData$
|
|
387
|
+
];
|
|
352
388
|
var SqlList = 64 | 0;
|
|
353
389
|
var SqlParametersList = [1, n0, _SPL,
|
|
354
390
|
0, () => SqlParameter$
|
|
@@ -356,7 +392,7 @@ var SqlParametersList = [1, n0, _SPL,
|
|
|
356
392
|
var SqlRecords = [1, n0, _SR,
|
|
357
393
|
0, () => FieldList
|
|
358
394
|
];
|
|
359
|
-
var StatementList = [1, n0,
|
|
395
|
+
var StatementList = [1, n0, _SLt,
|
|
360
396
|
0, () => StatementData$
|
|
361
397
|
];
|
|
362
398
|
var StatementStringList = 64 | 0;
|
|
@@ -403,7 +439,10 @@ export var ListDatabases$ = [9, n0, _LD,
|
|
|
403
439
|
export var ListSchemas$ = [9, n0, _LS,
|
|
404
440
|
0, () => ListSchemasRequest$, () => ListSchemasResponse$
|
|
405
441
|
];
|
|
406
|
-
export var
|
|
442
|
+
export var ListSessions$ = [9, n0, _LSi,
|
|
443
|
+
0, () => ListSessionsRequest$, () => ListSessionsResponse$
|
|
444
|
+
];
|
|
445
|
+
export var ListStatements$ = [9, n0, _LSis,
|
|
407
446
|
0, () => ListStatementsRequest$, () => ListStatementsResponse$
|
|
408
447
|
];
|
|
409
448
|
export var ListTables$ = [9, n0, _LT,
|
|
@@ -8,6 +8,7 @@ import { type GetStatementResultCommandInput, type GetStatementResultCommandOutp
|
|
|
8
8
|
import { type GetStatementResultV2CommandInput, type GetStatementResultV2CommandOutput } from "./commands/GetStatementResultV2Command";
|
|
9
9
|
import { type ListDatabasesCommandInput, type ListDatabasesCommandOutput } from "./commands/ListDatabasesCommand";
|
|
10
10
|
import { type ListSchemasCommandInput, type ListSchemasCommandOutput } from "./commands/ListSchemasCommand";
|
|
11
|
+
import { type ListSessionsCommandInput, type ListSessionsCommandOutput } from "./commands/ListSessionsCommand";
|
|
11
12
|
import { type ListStatementsCommandInput, type ListStatementsCommandOutput } from "./commands/ListStatementsCommand";
|
|
12
13
|
import { type ListTablesCommandInput, type ListTablesCommandOutput } from "./commands/ListTablesCommand";
|
|
13
14
|
import { RedshiftDataClient } from "./RedshiftDataClient";
|
|
@@ -66,6 +67,13 @@ export interface RedshiftData {
|
|
|
66
67
|
listSchemas(args: ListSchemasCommandInput, options?: __HttpHandlerOptions): Promise<ListSchemasCommandOutput>;
|
|
67
68
|
listSchemas(args: ListSchemasCommandInput, cb: (err: any, data?: ListSchemasCommandOutput) => void): void;
|
|
68
69
|
listSchemas(args: ListSchemasCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSchemasCommandOutput) => void): void;
|
|
70
|
+
/**
|
|
71
|
+
* @see {@link ListSessionsCommand}
|
|
72
|
+
*/
|
|
73
|
+
listSessions(): Promise<ListSessionsCommandOutput>;
|
|
74
|
+
listSessions(args: ListSessionsCommandInput, options?: __HttpHandlerOptions): Promise<ListSessionsCommandOutput>;
|
|
75
|
+
listSessions(args: ListSessionsCommandInput, cb: (err: any, data?: ListSessionsCommandOutput) => void): void;
|
|
76
|
+
listSessions(args: ListSessionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSessionsCommandOutput) => void): void;
|
|
69
77
|
/**
|
|
70
78
|
* @see {@link ListStatementsCommand}
|
|
71
79
|
*/
|
|
@@ -114,6 +122,13 @@ export interface RedshiftData {
|
|
|
114
122
|
* @returns AsyncIterable of {@link ListSchemasCommandOutput}.
|
|
115
123
|
*/
|
|
116
124
|
paginateListSchemas(args: ListSchemasCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListSchemasCommandOutput>;
|
|
125
|
+
/**
|
|
126
|
+
* @see {@link ListSessionsCommand}
|
|
127
|
+
* @param args - command input.
|
|
128
|
+
* @param paginationConfig - optional pagination config.
|
|
129
|
+
* @returns AsyncIterable of {@link ListSessionsCommandOutput}.
|
|
130
|
+
*/
|
|
131
|
+
paginateListSessions(args?: ListSessionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListSessionsCommandOutput>;
|
|
117
132
|
/**
|
|
118
133
|
* @see {@link ListStatementsCommand}
|
|
119
134
|
* @param args - command input.
|
|
@@ -15,6 +15,7 @@ import type { GetStatementResultCommandInput, GetStatementResultCommandOutput }
|
|
|
15
15
|
import type { GetStatementResultV2CommandInput, GetStatementResultV2CommandOutput } from "./commands/GetStatementResultV2Command";
|
|
16
16
|
import type { ListDatabasesCommandInput, ListDatabasesCommandOutput } from "./commands/ListDatabasesCommand";
|
|
17
17
|
import type { ListSchemasCommandInput, ListSchemasCommandOutput } from "./commands/ListSchemasCommand";
|
|
18
|
+
import type { ListSessionsCommandInput, ListSessionsCommandOutput } from "./commands/ListSessionsCommand";
|
|
18
19
|
import type { ListStatementsCommandInput, ListStatementsCommandOutput } from "./commands/ListStatementsCommand";
|
|
19
20
|
import type { ListTablesCommandInput, ListTablesCommandOutput } from "./commands/ListTablesCommand";
|
|
20
21
|
import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
|
|
@@ -23,11 +24,11 @@ export { __Client };
|
|
|
23
24
|
/**
|
|
24
25
|
* @public
|
|
25
26
|
*/
|
|
26
|
-
export type ServiceInputTypes = BatchExecuteStatementCommandInput | CancelStatementCommandInput | DescribeStatementCommandInput | DescribeTableCommandInput | ExecuteStatementCommandInput | GetStatementResultCommandInput | GetStatementResultV2CommandInput | ListDatabasesCommandInput | ListSchemasCommandInput | ListStatementsCommandInput | ListTablesCommandInput;
|
|
27
|
+
export type ServiceInputTypes = BatchExecuteStatementCommandInput | CancelStatementCommandInput | DescribeStatementCommandInput | DescribeTableCommandInput | ExecuteStatementCommandInput | GetStatementResultCommandInput | GetStatementResultV2CommandInput | ListDatabasesCommandInput | ListSchemasCommandInput | ListSessionsCommandInput | ListStatementsCommandInput | ListTablesCommandInput;
|
|
27
28
|
/**
|
|
28
29
|
* @public
|
|
29
30
|
*/
|
|
30
|
-
export type ServiceOutputTypes = BatchExecuteStatementCommandOutput | CancelStatementCommandOutput | DescribeStatementCommandOutput | DescribeTableCommandOutput | ExecuteStatementCommandOutput | GetStatementResultCommandOutput | GetStatementResultV2CommandOutput | ListDatabasesCommandOutput | ListSchemasCommandOutput | ListStatementsCommandOutput | ListTablesCommandOutput;
|
|
31
|
+
export type ServiceOutputTypes = BatchExecuteStatementCommandOutput | CancelStatementCommandOutput | DescribeStatementCommandOutput | DescribeTableCommandOutput | ExecuteStatementCommandOutput | GetStatementResultCommandOutput | GetStatementResultV2CommandOutput | ListDatabasesCommandOutput | ListSchemasCommandOutput | ListSessionsCommandOutput | ListStatementsCommandOutput | ListTablesCommandOutput;
|
|
31
32
|
/**
|
|
32
33
|
* @public
|
|
33
34
|
*/
|
|
@@ -54,6 +54,8 @@ declare const BatchExecuteStatementCommand_base: {
|
|
|
54
54
|
* ResultFormat: "STRING_VALUE",
|
|
55
55
|
* SessionKeepAliveSeconds: Number("int"),
|
|
56
56
|
* SessionId: "STRING_VALUE",
|
|
57
|
+
* ExecutionMode: "STRING_VALUE",
|
|
58
|
+
* WaitTimeSeconds: Number("int"),
|
|
57
59
|
* };
|
|
58
60
|
* const command = new BatchExecuteStatementCommand(input);
|
|
59
61
|
* const response = await client.send(command);
|
|
@@ -69,6 +71,9 @@ declare const BatchExecuteStatementCommand_base: {
|
|
|
69
71
|
* // SecretArn: "STRING_VALUE",
|
|
70
72
|
* // WorkgroupName: "STRING_VALUE",
|
|
71
73
|
* // SessionId: "STRING_VALUE",
|
|
74
|
+
* // Status: "STRING_VALUE",
|
|
75
|
+
* // RedshiftPid: Number("long"),
|
|
76
|
+
* // HasResultSet: true || false,
|
|
72
77
|
* // };
|
|
73
78
|
*
|
|
74
79
|
* ```
|
|
@@ -35,6 +35,7 @@ declare const DescribeStatementCommand_base: {
|
|
|
35
35
|
* const client = new RedshiftDataClient(config);
|
|
36
36
|
* const input = { // DescribeStatementRequest
|
|
37
37
|
* Id: "STRING_VALUE", // required
|
|
38
|
+
* WaitTimeSeconds: Number("int"),
|
|
38
39
|
* };
|
|
39
40
|
* const command = new DescribeStatementCommand(input);
|
|
40
41
|
* const response = await client.send(command);
|
|
@@ -79,6 +80,7 @@ declare const DescribeStatementCommand_base: {
|
|
|
79
80
|
* // WorkgroupName: "STRING_VALUE",
|
|
80
81
|
* // ResultFormat: "STRING_VALUE",
|
|
81
82
|
* // SessionId: "STRING_VALUE",
|
|
83
|
+
* // ExecutionMode: "STRING_VALUE",
|
|
82
84
|
* // };
|
|
83
85
|
*
|
|
84
86
|
* ```
|
|
@@ -89,6 +91,9 @@ declare const DescribeStatementCommand_base: {
|
|
|
89
91
|
* @see {@link DescribeStatementCommandOutput} for command's `response` shape.
|
|
90
92
|
* @see {@link RedshiftDataClientResolvedConfig | config} for RedshiftDataClient's `config` shape.
|
|
91
93
|
*
|
|
94
|
+
* @throws {@link ActiveWaitingRequestsExceededException} (client fault)
|
|
95
|
+
* <p>The number of active requests with <code>WaitTimeSeconds</code> for the same SQL statement exceeds the limit.</p>
|
|
96
|
+
*
|
|
92
97
|
* @throws {@link InternalServerException} (server fault)
|
|
93
98
|
* <p>The Amazon Redshift Data API operation failed due to invalid input. </p>
|
|
94
99
|
*
|
|
@@ -52,6 +52,7 @@ declare const ExecuteStatementCommand_base: {
|
|
|
52
52
|
* ResultFormat: "STRING_VALUE",
|
|
53
53
|
* SessionKeepAliveSeconds: Number("int"),
|
|
54
54
|
* SessionId: "STRING_VALUE",
|
|
55
|
+
* WaitTimeSeconds: Number("int"),
|
|
55
56
|
* };
|
|
56
57
|
* const command = new ExecuteStatementCommand(input);
|
|
57
58
|
* const response = await client.send(command);
|
|
@@ -67,6 +68,9 @@ declare const ExecuteStatementCommand_base: {
|
|
|
67
68
|
* // SecretArn: "STRING_VALUE",
|
|
68
69
|
* // WorkgroupName: "STRING_VALUE",
|
|
69
70
|
* // SessionId: "STRING_VALUE",
|
|
71
|
+
* // Status: "STRING_VALUE",
|
|
72
|
+
* // RedshiftPid: Number("long"),
|
|
73
|
+
* // HasResultSet: true || false,
|
|
70
74
|
* // };
|
|
71
75
|
*
|
|
72
76
|
* ```
|
|
@@ -36,6 +36,7 @@ declare const GetStatementResultCommand_base: {
|
|
|
36
36
|
* const input = { // GetStatementResultRequest
|
|
37
37
|
* Id: "STRING_VALUE", // required
|
|
38
38
|
* NextToken: "STRING_VALUE",
|
|
39
|
+
* WaitTimeSeconds: Number("int"),
|
|
39
40
|
* };
|
|
40
41
|
* const command = new GetStatementResultCommand(input);
|
|
41
42
|
* const response = await client.send(command);
|
|
@@ -81,6 +82,9 @@ declare const GetStatementResultCommand_base: {
|
|
|
81
82
|
* @see {@link GetStatementResultCommandOutput} for command's `response` shape.
|
|
82
83
|
* @see {@link RedshiftDataClientResolvedConfig | config} for RedshiftDataClient's `config` shape.
|
|
83
84
|
*
|
|
85
|
+
* @throws {@link ActiveWaitingRequestsExceededException} (client fault)
|
|
86
|
+
* <p>The number of active requests with <code>WaitTimeSeconds</code> for the same SQL statement exceeds the limit.</p>
|
|
87
|
+
*
|
|
84
88
|
* @throws {@link InternalServerException} (server fault)
|
|
85
89
|
* <p>The Amazon Redshift Data API operation failed due to invalid input. </p>
|
|
86
90
|
*
|
|
@@ -36,6 +36,7 @@ declare const GetStatementResultV2Command_base: {
|
|
|
36
36
|
* const input = { // GetStatementResultV2Request
|
|
37
37
|
* Id: "STRING_VALUE", // required
|
|
38
38
|
* NextToken: "STRING_VALUE",
|
|
39
|
+
* WaitTimeSeconds: Number("int"),
|
|
39
40
|
* };
|
|
40
41
|
* const command = new GetStatementResultV2Command(input);
|
|
41
42
|
* const response = await client.send(command);
|
|
@@ -75,6 +76,9 @@ declare const GetStatementResultV2Command_base: {
|
|
|
75
76
|
* @see {@link GetStatementResultV2CommandOutput} for command's `response` shape.
|
|
76
77
|
* @see {@link RedshiftDataClientResolvedConfig | config} for RedshiftDataClient's `config` shape.
|
|
77
78
|
*
|
|
79
|
+
* @throws {@link ActiveWaitingRequestsExceededException} (client fault)
|
|
80
|
+
* <p>The number of active requests with <code>WaitTimeSeconds</code> for the same SQL statement exceeds the limit.</p>
|
|
81
|
+
*
|
|
78
82
|
* @throws {@link InternalServerException} (server fault)
|
|
79
83
|
* <p>The Amazon Redshift Data API operation failed due to invalid input. </p>
|
|
80
84
|
*
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { ListSessionsRequest, ListSessionsResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link ListSessionsCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface ListSessionsCommandInput extends ListSessionsRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link ListSessionsCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface ListSessionsCommandOutput extends ListSessionsResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const ListSessionsCommand_base: {
|
|
22
|
+
new (input: ListSessionsCommandInput): import("@smithy/core/client").CommandImpl<ListSessionsCommandInput, ListSessionsCommandOutput, import("..").RedshiftDataClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (...[input]: [] | [ListSessionsCommandInput]): import("@smithy/core/client").CommandImpl<ListSessionsCommandInput, ListSessionsCommandOutput, import("..").RedshiftDataClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Lists the sessions that the caller created in the last 24 hours. By default, only sessions with a status of <code>AVAILABLE</code> or <code>BUSY</code> are returned. You can filter the results by session status, compute target (cluster or serverless workgroup), or database. To retrieve the metadata for a single session, provide the <code>SessionId</code> parameter. Use <code>NextToken</code> to page through the session list.</p> <p>Returns only the sessions that the caller created. When identity-enhanced role sessions are used, you must provide either the <code>ClusterIdentifier</code> or <code>WorkgroupName</code> parameter to ensure that the AWS IAM Identity Center user can only access the Amazon Redshift IAM Identity Center applications they are assigned. For more information, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/trustedidentitypropagation-overview.html"> Trusted identity propagation overview</a>.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { RedshiftDataClient, ListSessionsCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import
|
|
32
|
+
* // const { RedshiftDataClient, ListSessionsCommand } = require("@aws-sdk/client-redshift-data"); // CommonJS import
|
|
33
|
+
* // import type { RedshiftDataClientConfig } from "@aws-sdk/client-redshift-data";
|
|
34
|
+
* const config = {}; // type is RedshiftDataClientConfig
|
|
35
|
+
* const client = new RedshiftDataClient(config);
|
|
36
|
+
* const input = { // ListSessionsRequest
|
|
37
|
+
* NextToken: "STRING_VALUE",
|
|
38
|
+
* MaxResults: Number("int"),
|
|
39
|
+
* SessionId: "STRING_VALUE",
|
|
40
|
+
* Status: "STRING_VALUE",
|
|
41
|
+
* RoleLevel: true || false,
|
|
42
|
+
* ClusterIdentifier: "STRING_VALUE",
|
|
43
|
+
* WorkgroupName: "STRING_VALUE",
|
|
44
|
+
* Database: "STRING_VALUE",
|
|
45
|
+
* };
|
|
46
|
+
* const command = new ListSessionsCommand(input);
|
|
47
|
+
* const response = await client.send(command);
|
|
48
|
+
* // { // ListSessionsResponse
|
|
49
|
+
* // Sessions: [ // SessionList // required
|
|
50
|
+
* // { // SessionData
|
|
51
|
+
* // SessionId: "STRING_VALUE", // required
|
|
52
|
+
* // Status: "STRING_VALUE", // required
|
|
53
|
+
* // CreatedAt: new Date("TIMESTAMP"), // required
|
|
54
|
+
* // UpdatedAt: new Date("TIMESTAMP"),
|
|
55
|
+
* // Database: "STRING_VALUE",
|
|
56
|
+
* // DbUser: "STRING_VALUE",
|
|
57
|
+
* // ClusterIdentifier: "STRING_VALUE",
|
|
58
|
+
* // WorkgroupName: "STRING_VALUE",
|
|
59
|
+
* // SessionAliveSeconds: Number("int"),
|
|
60
|
+
* // SessionTtl: new Date("TIMESTAMP"),
|
|
61
|
+
* // CurrentStatementId: "STRING_VALUE",
|
|
62
|
+
* // },
|
|
63
|
+
* // ],
|
|
64
|
+
* // NextToken: "STRING_VALUE",
|
|
65
|
+
* // };
|
|
66
|
+
*
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
69
|
+
* @param ListSessionsCommandInput - {@link ListSessionsCommandInput}
|
|
70
|
+
* @returns {@link ListSessionsCommandOutput}
|
|
71
|
+
* @see {@link ListSessionsCommandInput} for command's `input` shape.
|
|
72
|
+
* @see {@link ListSessionsCommandOutput} for command's `response` shape.
|
|
73
|
+
* @see {@link RedshiftDataClientResolvedConfig | config} for RedshiftDataClient's `config` shape.
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link InternalServerException} (server fault)
|
|
76
|
+
* <p>The Amazon Redshift Data API operation failed due to invalid input. </p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
79
|
+
* <p>The Amazon Redshift Data API operation failed due to a missing resource. </p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ValidationException} (client fault)
|
|
82
|
+
* <p>The Amazon Redshift Data API operation failed due to invalid input. </p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link RedshiftDataServiceException}
|
|
85
|
+
* <p>Base exception class for all service exceptions from RedshiftData service.</p>
|
|
86
|
+
*
|
|
87
|
+
*
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
export declare class ListSessionsCommand extends ListSessionsCommand_base {
|
|
91
|
+
/** @internal type navigation helper, not in runtime. */
|
|
92
|
+
protected static __types: {
|
|
93
|
+
api: {
|
|
94
|
+
input: ListSessionsRequest;
|
|
95
|
+
output: ListSessionsResponse;
|
|
96
|
+
};
|
|
97
|
+
sdk: {
|
|
98
|
+
input: ListSessionsCommandInput;
|
|
99
|
+
output: ListSessionsCommandOutput;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
}
|
|
@@ -7,5 +7,6 @@ export * from "./GetStatementResultCommand";
|
|
|
7
7
|
export * from "./GetStatementResultV2Command";
|
|
8
8
|
export * from "./ListDatabasesCommand";
|
|
9
9
|
export * from "./ListSchemasCommand";
|
|
10
|
+
export * from "./ListSessionsCommand";
|
|
10
11
|
export * from "./ListStatementsCommand";
|
|
11
12
|
export * from "./ListTablesCommand";
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
* @enum
|
|
4
|
+
*/
|
|
5
|
+
export declare const ExecutionMode: {
|
|
6
|
+
readonly AUTO_COMMIT: "AUTO_COMMIT";
|
|
7
|
+
readonly TRANSACTION: "TRANSACTION";
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export type ExecutionMode = (typeof ExecutionMode)[keyof typeof ExecutionMode];
|
|
1
13
|
/**
|
|
2
14
|
* @public
|
|
3
15
|
* @enum
|
|
@@ -14,9 +26,8 @@ export type ResultFormatString = (typeof ResultFormatString)[keyof typeof Result
|
|
|
14
26
|
* @public
|
|
15
27
|
* @enum
|
|
16
28
|
*/
|
|
17
|
-
export declare const
|
|
29
|
+
export declare const StatementStatusString: {
|
|
18
30
|
readonly ABORTED: "ABORTED";
|
|
19
|
-
readonly ALL: "ALL";
|
|
20
31
|
readonly FAILED: "FAILED";
|
|
21
32
|
readonly FINISHED: "FINISHED";
|
|
22
33
|
readonly PICKED: "PICKED";
|
|
@@ -26,13 +37,14 @@ export declare const StatusString: {
|
|
|
26
37
|
/**
|
|
27
38
|
* @public
|
|
28
39
|
*/
|
|
29
|
-
export type
|
|
40
|
+
export type StatementStatusString = (typeof StatementStatusString)[keyof typeof StatementStatusString];
|
|
30
41
|
/**
|
|
31
42
|
* @public
|
|
32
43
|
* @enum
|
|
33
44
|
*/
|
|
34
|
-
export declare const
|
|
45
|
+
export declare const StatusString: {
|
|
35
46
|
readonly ABORTED: "ABORTED";
|
|
47
|
+
readonly ALL: "ALL";
|
|
36
48
|
readonly FAILED: "FAILED";
|
|
37
49
|
readonly FINISHED: "FINISHED";
|
|
38
50
|
readonly PICKED: "PICKED";
|
|
@@ -42,4 +54,17 @@ export declare const StatementStatusString: {
|
|
|
42
54
|
/**
|
|
43
55
|
* @public
|
|
44
56
|
*/
|
|
45
|
-
export type
|
|
57
|
+
export type StatusString = (typeof StatusString)[keyof typeof StatusString];
|
|
58
|
+
/**
|
|
59
|
+
* @public
|
|
60
|
+
* @enum
|
|
61
|
+
*/
|
|
62
|
+
export declare const SessionStatusString: {
|
|
63
|
+
readonly AVAILABLE: "AVAILABLE";
|
|
64
|
+
readonly BUSY: "BUSY";
|
|
65
|
+
readonly CLOSED: "CLOSED";
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* @public
|
|
69
|
+
*/
|
|
70
|
+
export type SessionStatusString = (typeof SessionStatusString)[keyof typeof SessionStatusString];
|
|
@@ -26,6 +26,19 @@ export declare class ActiveStatementsExceededException extends __BaseException {
|
|
|
26
26
|
*/
|
|
27
27
|
constructor(opts: __ExceptionOptionType<ActiveStatementsExceededException, __BaseException>);
|
|
28
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* <p>The number of active requests with <code>WaitTimeSeconds</code> for the same SQL statement exceeds the limit.</p>
|
|
31
|
+
* @public
|
|
32
|
+
*/
|
|
33
|
+
export declare class ActiveWaitingRequestsExceededException extends __BaseException {
|
|
34
|
+
readonly name: "ActiveWaitingRequestsExceededException";
|
|
35
|
+
readonly $fault: "client";
|
|
36
|
+
Message?: string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
40
|
+
constructor(opts: __ExceptionOptionType<ActiveWaitingRequestsExceededException, __BaseException>);
|
|
41
|
+
}
|
|
29
42
|
/**
|
|
30
43
|
* <p>An SQL statement encountered an environmental error while running.</p>
|
|
31
44
|
* @public
|