@aws-sdk/client-redshift-data 3.758.0 → 3.772.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/dist-cjs/index.js
CHANGED
|
@@ -19,8 +19,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
20
|
|
|
21
21
|
// src/index.ts
|
|
22
|
-
var
|
|
23
|
-
__export(
|
|
22
|
+
var index_exports = {};
|
|
23
|
+
__export(index_exports, {
|
|
24
24
|
ActiveSessionsExceededException: () => ActiveSessionsExceededException,
|
|
25
25
|
ActiveStatementsExceededException: () => ActiveStatementsExceededException,
|
|
26
26
|
BatchExecuteStatementCommand: () => BatchExecuteStatementCommand,
|
|
@@ -58,7 +58,7 @@ __export(src_exports, {
|
|
|
58
58
|
paginateListStatements: () => paginateListStatements,
|
|
59
59
|
paginateListTables: () => paginateListTables
|
|
60
60
|
});
|
|
61
|
-
module.exports = __toCommonJS(
|
|
61
|
+
module.exports = __toCommonJS(index_exports);
|
|
62
62
|
|
|
63
63
|
// src/RedshiftDataClient.ts
|
|
64
64
|
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
@@ -185,9 +185,9 @@ var RedshiftDataClient = class extends import_smithy_client.Client {
|
|
|
185
185
|
this.middlewareStack.use(
|
|
186
186
|
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
187
187
|
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultRedshiftDataHttpAuthSchemeParametersProvider,
|
|
188
|
-
identityProviderConfigProvider: async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
188
|
+
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
189
189
|
"aws.auth#sigv4": config.credentials
|
|
190
|
-
})
|
|
190
|
+
}), "identityProviderConfigProvider")
|
|
191
191
|
})
|
|
192
192
|
);
|
|
193
193
|
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
@@ -470,26 +470,19 @@ var ExecuteStatementException = class _ExecuteStatementException extends Redshif
|
|
|
470
470
|
var Field;
|
|
471
471
|
((Field3) => {
|
|
472
472
|
Field3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
473
|
-
if (value.isNull !== void 0)
|
|
474
|
-
|
|
475
|
-
if (value.
|
|
476
|
-
|
|
477
|
-
if (value.
|
|
478
|
-
|
|
479
|
-
if (value.doubleValue !== void 0)
|
|
480
|
-
return visitor.doubleValue(value.doubleValue);
|
|
481
|
-
if (value.stringValue !== void 0)
|
|
482
|
-
return visitor.stringValue(value.stringValue);
|
|
483
|
-
if (value.blobValue !== void 0)
|
|
484
|
-
return visitor.blobValue(value.blobValue);
|
|
473
|
+
if (value.isNull !== void 0) return visitor.isNull(value.isNull);
|
|
474
|
+
if (value.booleanValue !== void 0) return visitor.booleanValue(value.booleanValue);
|
|
475
|
+
if (value.longValue !== void 0) return visitor.longValue(value.longValue);
|
|
476
|
+
if (value.doubleValue !== void 0) return visitor.doubleValue(value.doubleValue);
|
|
477
|
+
if (value.stringValue !== void 0) return visitor.stringValue(value.stringValue);
|
|
478
|
+
if (value.blobValue !== void 0) return visitor.blobValue(value.blobValue);
|
|
485
479
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
486
480
|
}, "visit");
|
|
487
481
|
})(Field || (Field = {}));
|
|
488
482
|
var QueryRecords;
|
|
489
483
|
((QueryRecords2) => {
|
|
490
484
|
QueryRecords2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
491
|
-
if (value.CSVRecords !== void 0)
|
|
492
|
-
return visitor.CSVRecords(value.CSVRecords);
|
|
485
|
+
if (value.CSVRecords !== void 0) return visitor.CSVRecords(value.CSVRecords);
|
|
493
486
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
494
487
|
}, "visit");
|
|
495
488
|
})(QueryRecords || (QueryRecords = {}));
|
|
@@ -864,7 +857,7 @@ var se_ExecuteStatementInput = /* @__PURE__ */ __name((input, context) => {
|
|
|
864
857
|
var de_BatchExecuteStatementOutput = /* @__PURE__ */ __name((output, context) => {
|
|
865
858
|
return (0, import_smithy_client.take)(output, {
|
|
866
859
|
ClusterIdentifier: import_smithy_client.expectString,
|
|
867
|
-
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
860
|
+
CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
|
|
868
861
|
Database: import_smithy_client.expectString,
|
|
869
862
|
DbGroups: import_smithy_client._json,
|
|
870
863
|
DbUser: import_smithy_client.expectString,
|
|
@@ -877,7 +870,7 @@ var de_BatchExecuteStatementOutput = /* @__PURE__ */ __name((output, context) =>
|
|
|
877
870
|
var de_DescribeStatementResponse = /* @__PURE__ */ __name((output, context) => {
|
|
878
871
|
return (0, import_smithy_client.take)(output, {
|
|
879
872
|
ClusterIdentifier: import_smithy_client.expectString,
|
|
880
|
-
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
873
|
+
CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
|
|
881
874
|
Database: import_smithy_client.expectString,
|
|
882
875
|
DbUser: import_smithy_client.expectString,
|
|
883
876
|
Duration: import_smithy_client.expectLong,
|
|
@@ -894,15 +887,15 @@ var de_DescribeStatementResponse = /* @__PURE__ */ __name((output, context) => {
|
|
|
894
887
|
SecretArn: import_smithy_client.expectString,
|
|
895
888
|
SessionId: import_smithy_client.expectString,
|
|
896
889
|
Status: import_smithy_client.expectString,
|
|
897
|
-
SubStatements: (_) => de_SubStatementList(_, context),
|
|
898
|
-
UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
890
|
+
SubStatements: /* @__PURE__ */ __name((_) => de_SubStatementList(_, context), "SubStatements"),
|
|
891
|
+
UpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "UpdatedAt"),
|
|
899
892
|
WorkgroupName: import_smithy_client.expectString
|
|
900
893
|
});
|
|
901
894
|
}, "de_DescribeStatementResponse");
|
|
902
895
|
var de_ExecuteStatementOutput = /* @__PURE__ */ __name((output, context) => {
|
|
903
896
|
return (0, import_smithy_client.take)(output, {
|
|
904
897
|
ClusterIdentifier: import_smithy_client.expectString,
|
|
905
|
-
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
898
|
+
CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
|
|
906
899
|
Database: import_smithy_client.expectString,
|
|
907
900
|
DbGroups: import_smithy_client._json,
|
|
908
901
|
DbUser: import_smithy_client.expectString,
|
|
@@ -945,14 +938,14 @@ var de_GetStatementResultResponse = /* @__PURE__ */ __name((output, context) =>
|
|
|
945
938
|
return (0, import_smithy_client.take)(output, {
|
|
946
939
|
ColumnMetadata: import_smithy_client._json,
|
|
947
940
|
NextToken: import_smithy_client.expectString,
|
|
948
|
-
Records: (_) => de_SqlRecords(_, context),
|
|
941
|
+
Records: /* @__PURE__ */ __name((_) => de_SqlRecords(_, context), "Records"),
|
|
949
942
|
TotalNumRows: import_smithy_client.expectLong
|
|
950
943
|
});
|
|
951
944
|
}, "de_GetStatementResultResponse");
|
|
952
945
|
var de_ListStatementsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
953
946
|
return (0, import_smithy_client.take)(output, {
|
|
954
947
|
NextToken: import_smithy_client.expectString,
|
|
955
|
-
Statements: (_) => de_StatementList(_, context)
|
|
948
|
+
Statements: /* @__PURE__ */ __name((_) => de_StatementList(_, context), "Statements")
|
|
956
949
|
});
|
|
957
950
|
}, "de_ListStatementsResponse");
|
|
958
951
|
var de_SqlRecords = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -963,7 +956,7 @@ var de_SqlRecords = /* @__PURE__ */ __name((output, context) => {
|
|
|
963
956
|
}, "de_SqlRecords");
|
|
964
957
|
var de_StatementData = /* @__PURE__ */ __name((output, context) => {
|
|
965
958
|
return (0, import_smithy_client.take)(output, {
|
|
966
|
-
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
959
|
+
CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
|
|
967
960
|
Id: import_smithy_client.expectString,
|
|
968
961
|
IsBatchStatement: import_smithy_client.expectBoolean,
|
|
969
962
|
QueryParameters: import_smithy_client._json,
|
|
@@ -974,7 +967,7 @@ var de_StatementData = /* @__PURE__ */ __name((output, context) => {
|
|
|
974
967
|
SessionId: import_smithy_client.expectString,
|
|
975
968
|
StatementName: import_smithy_client.expectString,
|
|
976
969
|
Status: import_smithy_client.expectString,
|
|
977
|
-
UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
|
|
970
|
+
UpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "UpdatedAt")
|
|
978
971
|
});
|
|
979
972
|
}, "de_StatementData");
|
|
980
973
|
var de_StatementList = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -985,7 +978,7 @@ var de_StatementList = /* @__PURE__ */ __name((output, context) => {
|
|
|
985
978
|
}, "de_StatementList");
|
|
986
979
|
var de_SubStatementData = /* @__PURE__ */ __name((output, context) => {
|
|
987
980
|
return (0, import_smithy_client.take)(output, {
|
|
988
|
-
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
981
|
+
CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
|
|
989
982
|
Duration: import_smithy_client.expectLong,
|
|
990
983
|
Error: import_smithy_client.expectString,
|
|
991
984
|
HasResultSet: import_smithy_client.expectBoolean,
|
|
@@ -995,7 +988,7 @@ var de_SubStatementData = /* @__PURE__ */ __name((output, context) => {
|
|
|
995
988
|
ResultRows: import_smithy_client.expectLong,
|
|
996
989
|
ResultSize: import_smithy_client.expectLong,
|
|
997
990
|
Status: import_smithy_client.expectString,
|
|
998
|
-
UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
|
|
991
|
+
UpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "UpdatedAt")
|
|
999
992
|
});
|
|
1000
993
|
}, "de_SubStatementData");
|
|
1001
994
|
var de_SubStatementList = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -29,6 +29,11 @@ declare const ListStatementsCommand_base: {
|
|
|
29
29
|
/**
|
|
30
30
|
* <p>List of SQL statements. By default, only finished statements are shown.
|
|
31
31
|
* A token is returned to page through the statement list. </p>
|
|
32
|
+
* <p>When you use identity-enhanced role sessions to list statements, you must provide either the
|
|
33
|
+
* <code>cluster-identifier</code> or <code>workgroup-name</code> parameter. This ensures that the IdC user
|
|
34
|
+
* can only access the Amazon Redshift IdC applications they are assigned. For more information, see
|
|
35
|
+
* <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/trustedidentitypropagation-overview.html">
|
|
36
|
+
* Trusted identity propagation overview</a>.</p>
|
|
32
37
|
* <p>For more information about the Amazon Redshift Data API and CLI usage examples, see
|
|
33
38
|
* <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
|
|
34
39
|
* <i>Amazon Redshift Management Guide</i>. </p>
|
|
@@ -44,6 +49,9 @@ declare const ListStatementsCommand_base: {
|
|
|
44
49
|
* StatementName: "STRING_VALUE",
|
|
45
50
|
* Status: "STRING_VALUE",
|
|
46
51
|
* RoleLevel: true || false,
|
|
52
|
+
* Database: "STRING_VALUE",
|
|
53
|
+
* ClusterIdentifier: "STRING_VALUE",
|
|
54
|
+
* WorkgroupName: "STRING_VALUE",
|
|
47
55
|
* };
|
|
48
56
|
* const command = new ListStatementsCommand(input);
|
|
49
57
|
* const response = await client.send(command);
|
|
@@ -67,8 +75,8 @@ declare const ListStatementsCommand_base: {
|
|
|
67
75
|
* // },
|
|
68
76
|
* // ],
|
|
69
77
|
* // IsBatchStatement: true || false,
|
|
70
|
-
* // SessionId: "STRING_VALUE",
|
|
71
78
|
* // ResultFormat: "STRING_VALUE",
|
|
79
|
+
* // SessionId: "STRING_VALUE",
|
|
72
80
|
* // },
|
|
73
81
|
* // ],
|
|
74
82
|
* // NextToken: "STRING_VALUE",
|
|
@@ -1255,6 +1255,24 @@ export interface ListStatementsRequest {
|
|
|
1255
1255
|
* @public
|
|
1256
1256
|
*/
|
|
1257
1257
|
RoleLevel?: boolean | undefined;
|
|
1258
|
+
/**
|
|
1259
|
+
* <p>The name of the database when listing statements run against a <code>ClusterIdentifier</code> or <code>WorkgroupName</code>.
|
|
1260
|
+
* </p>
|
|
1261
|
+
* @public
|
|
1262
|
+
*/
|
|
1263
|
+
Database?: string | undefined;
|
|
1264
|
+
/**
|
|
1265
|
+
* <p>The cluster identifier. Only statements that ran on this cluster are returned.
|
|
1266
|
+
* When providing <code>ClusterIdentifier</code>, then <code>WorkgroupName</code> can't be specified.</p>
|
|
1267
|
+
* @public
|
|
1268
|
+
*/
|
|
1269
|
+
ClusterIdentifier?: string | undefined;
|
|
1270
|
+
/**
|
|
1271
|
+
* <p>The serverless workgroup name or Amazon Resource Name (ARN). Only statements that ran on this workgroup are returned.
|
|
1272
|
+
* When providing <code>WorkgroupName</code>, then <code>ClusterIdentifier</code> can't be specified.</p>
|
|
1273
|
+
* @public
|
|
1274
|
+
*/
|
|
1275
|
+
WorkgroupName?: string | undefined;
|
|
1258
1276
|
}
|
|
1259
1277
|
/**
|
|
1260
1278
|
* <p>The SQL statement to run.</p>
|
|
@@ -1314,15 +1332,15 @@ export interface StatementData {
|
|
|
1314
1332
|
*/
|
|
1315
1333
|
IsBatchStatement?: boolean | undefined;
|
|
1316
1334
|
/**
|
|
1317
|
-
* <p>The
|
|
1335
|
+
* <p>The data format of the result of the SQL statement.</p>
|
|
1318
1336
|
* @public
|
|
1319
1337
|
*/
|
|
1320
|
-
|
|
1338
|
+
ResultFormat?: ResultFormatString | undefined;
|
|
1321
1339
|
/**
|
|
1322
|
-
* <p>The
|
|
1340
|
+
* <p>The session identifier of the query.</p>
|
|
1323
1341
|
* @public
|
|
1324
1342
|
*/
|
|
1325
|
-
|
|
1343
|
+
SessionId?: string | undefined;
|
|
1326
1344
|
}
|
|
1327
1345
|
/**
|
|
1328
1346
|
* @public
|
|
@@ -395,6 +395,9 @@ export interface ListStatementsRequest {
|
|
|
395
395
|
StatementName?: string | undefined;
|
|
396
396
|
Status?: StatusString | undefined;
|
|
397
397
|
RoleLevel?: boolean | undefined;
|
|
398
|
+
Database?: string | undefined;
|
|
399
|
+
ClusterIdentifier?: string | undefined;
|
|
400
|
+
WorkgroupName?: string | undefined;
|
|
398
401
|
}
|
|
399
402
|
export interface StatementData {
|
|
400
403
|
Id: string | undefined;
|
|
@@ -407,8 +410,8 @@ export interface StatementData {
|
|
|
407
410
|
UpdatedAt?: Date | undefined;
|
|
408
411
|
QueryParameters?: SqlParameter[] | undefined;
|
|
409
412
|
IsBatchStatement?: boolean | undefined;
|
|
410
|
-
SessionId?: string | undefined;
|
|
411
413
|
ResultFormat?: ResultFormatString | undefined;
|
|
414
|
+
SessionId?: string | undefined;
|
|
412
415
|
}
|
|
413
416
|
export interface ListStatementsResponse {
|
|
414
417
|
Statements: StatementData[] | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-redshift-data",
|
|
3
3
|
"description": "AWS SDK for JavaScript Redshift Data Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.772.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-redshift-data",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
23
|
"@aws-sdk/core": "3.758.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.772.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.734.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.734.0",
|
|
27
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
27
|
+
"@aws-sdk/middleware-recursion-detection": "3.772.0",
|
|
28
28
|
"@aws-sdk/middleware-user-agent": "3.758.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.734.0",
|
|
30
30
|
"@aws-sdk/types": "3.734.0",
|