@aws-sdk/client-redshift-data 3.229.0 → 3.231.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 CHANGED
@@ -13,7 +13,7 @@ AWS SDK for JavaScript RedshiftData Client for Node.js, Browser and React Native
13
13
  can run SQL statements, which are committed if the statement succeeds. </p>
14
14
  <p>For more information about the Amazon Redshift Data API and CLI usage examples, see
15
15
  <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
16
- <i>Amazon Redshift Cluster Management Guide</i>. </p>
16
+ <i>Amazon Redshift Management Guide</i>. </p>
17
17
 
18
18
  ## Installing
19
19
 
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.deserializeAws_json1_1ListTablesCommand = exports.deserializeAws_json1_1ListStatementsCommand = exports.deserializeAws_json1_1ListSchemasCommand = exports.deserializeAws_json1_1ListDatabasesCommand = exports.deserializeAws_json1_1GetStatementResultCommand = exports.deserializeAws_json1_1ExecuteStatementCommand = exports.deserializeAws_json1_1DescribeTableCommand = exports.deserializeAws_json1_1DescribeStatementCommand = exports.deserializeAws_json1_1CancelStatementCommand = exports.deserializeAws_json1_1BatchExecuteStatementCommand = exports.serializeAws_json1_1ListTablesCommand = exports.serializeAws_json1_1ListStatementsCommand = exports.serializeAws_json1_1ListSchemasCommand = exports.serializeAws_json1_1ListDatabasesCommand = exports.serializeAws_json1_1GetStatementResultCommand = exports.serializeAws_json1_1ExecuteStatementCommand = exports.serializeAws_json1_1DescribeTableCommand = exports.serializeAws_json1_1DescribeStatementCommand = exports.serializeAws_json1_1CancelStatementCommand = exports.serializeAws_json1_1BatchExecuteStatementCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const uuid_1 = require("uuid");
6
7
  const models_0_1 = require("../models/models_0");
7
8
  const RedshiftDataServiceException_1 = require("../models/RedshiftDataServiceException");
8
9
  const serializeAws_json1_1BatchExecuteStatementCommand = async (input, context) => {
@@ -570,6 +571,7 @@ const deserializeAws_json1_1ValidationExceptionResponse = async (parsedOutput, c
570
571
  };
571
572
  const serializeAws_json1_1BatchExecuteStatementInput = (input, context) => {
572
573
  return {
574
+ ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
573
575
  ...(input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier }),
574
576
  ...(input.Database != null && { Database: input.Database }),
575
577
  ...(input.DbUser != null && { DbUser: input.DbUser }),
@@ -606,6 +608,7 @@ const serializeAws_json1_1DescribeTableRequest = (input, context) => {
606
608
  };
607
609
  const serializeAws_json1_1ExecuteStatementInput = (input, context) => {
608
610
  return {
611
+ ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
609
612
  ...(input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier }),
610
613
  ...(input.Database != null && { Database: input.Database }),
611
614
  ...(input.DbUser != null && { DbUser: input.DbUser }),
@@ -1,5 +1,6 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, expectUnion as __expectUnion, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
3
+ import { v4 as generateIdempotencyToken } from "uuid";
3
4
  import { ActiveStatementsExceededException, BatchExecuteStatementException, DatabaseConnectionException, ExecuteStatementException, InternalServerException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
4
5
  import { RedshiftDataServiceException as __BaseException } from "../models/RedshiftDataServiceException";
5
6
  export const serializeAws_json1_1BatchExecuteStatementCommand = async (input, context) => {
@@ -547,6 +548,7 @@ const deserializeAws_json1_1ValidationExceptionResponse = async (parsedOutput, c
547
548
  };
548
549
  const serializeAws_json1_1BatchExecuteStatementInput = (input, context) => {
549
550
  return {
551
+ ClientToken: input.ClientToken ?? generateIdempotencyToken(),
550
552
  ...(input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier }),
551
553
  ...(input.Database != null && { Database: input.Database }),
552
554
  ...(input.DbUser != null && { DbUser: input.DbUser }),
@@ -583,6 +585,7 @@ const serializeAws_json1_1DescribeTableRequest = (input, context) => {
583
585
  };
584
586
  const serializeAws_json1_1ExecuteStatementInput = (input, context) => {
585
587
  return {
588
+ ClientToken: input.ClientToken ?? generateIdempotencyToken(),
586
589
  ...(input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier }),
587
590
  ...(input.Database != null && { Database: input.Database }),
588
591
  ...(input.DbUser != null && { DbUser: input.DbUser }),
@@ -15,7 +15,7 @@ import { RedshiftDataClient } from "./RedshiftDataClient";
15
15
  * can run SQL statements, which are committed if the statement succeeds. </p>
16
16
  * <p>For more information about the Amazon Redshift Data API and CLI usage examples, see
17
17
  * <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
18
- * <i>Amazon Redshift Cluster Management Guide</i>. </p>
18
+ * <i>Amazon Redshift Management Guide</i>. </p>
19
19
  */
20
20
  export declare class RedshiftData extends RedshiftDataClient {
21
21
  /**
@@ -34,12 +34,18 @@ export declare class RedshiftData extends RedshiftDataClient {
34
34
  * When connecting to a serverless workgroup, specify the workgroup name and database name. Also, permission to call the <code>redshift-serverless:GetCredentials</code> operation is required. </p>
35
35
  * </li>
36
36
  * </ul>
37
+ * <p>For more information about the Amazon Redshift Data API and CLI usage examples, see
38
+ * <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
39
+ * <i>Amazon Redshift Management Guide</i>. </p>
37
40
  */
38
41
  batchExecuteStatement(args: BatchExecuteStatementCommandInput, options?: __HttpHandlerOptions): Promise<BatchExecuteStatementCommandOutput>;
39
42
  batchExecuteStatement(args: BatchExecuteStatementCommandInput, cb: (err: any, data?: BatchExecuteStatementCommandOutput) => void): void;
40
43
  batchExecuteStatement(args: BatchExecuteStatementCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchExecuteStatementCommandOutput) => void): void;
41
44
  /**
42
45
  * <p>Cancels a running query. To be canceled, a query must be running. </p>
46
+ * <p>For more information about the Amazon Redshift Data API and CLI usage examples, see
47
+ * <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
48
+ * <i>Amazon Redshift Management Guide</i>. </p>
43
49
  */
44
50
  cancelStatement(args: CancelStatementCommandInput, options?: __HttpHandlerOptions): Promise<CancelStatementCommandOutput>;
45
51
  cancelStatement(args: CancelStatementCommandInput, cb: (err: any, data?: CancelStatementCommandOutput) => void): void;
@@ -48,6 +54,9 @@ export declare class RedshiftData extends RedshiftDataClient {
48
54
  * <p>Describes the details about a specific instance when a query was run by the Amazon Redshift Data API. The information
49
55
  * includes when the query started, when it finished, the query status, the number of rows returned, and the SQL
50
56
  * statement. </p>
57
+ * <p>For more information about the Amazon Redshift Data API and CLI usage examples, see
58
+ * <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
59
+ * <i>Amazon Redshift Management Guide</i>. </p>
51
60
  */
52
61
  describeStatement(args: DescribeStatementCommandInput, options?: __HttpHandlerOptions): Promise<DescribeStatementCommandOutput>;
53
62
  describeStatement(args: DescribeStatementCommandInput, cb: (err: any, data?: DescribeStatementCommandOutput) => void): void;
@@ -69,6 +78,9 @@ export declare class RedshiftData extends RedshiftDataClient {
69
78
  * When connecting to a serverless workgroup, specify the workgroup name and database name. Also, permission to call the <code>redshift-serverless:GetCredentials</code> operation is required. </p>
70
79
  * </li>
71
80
  * </ul>
81
+ * <p>For more information about the Amazon Redshift Data API and CLI usage examples, see
82
+ * <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
83
+ * <i>Amazon Redshift Management Guide</i>. </p>
72
84
  */
73
85
  describeTable(args: DescribeTableCommandInput, options?: __HttpHandlerOptions): Promise<DescribeTableCommandOutput>;
74
86
  describeTable(args: DescribeTableCommandInput, cb: (err: any, data?: DescribeTableCommandOutput) => void): void;
@@ -89,6 +101,9 @@ export declare class RedshiftData extends RedshiftDataClient {
89
101
  * When connecting to a serverless workgroup, specify the workgroup name and database name. Also, permission to call the <code>redshift-serverless:GetCredentials</code> operation is required. </p>
90
102
  * </li>
91
103
  * </ul>
104
+ * <p>For more information about the Amazon Redshift Data API and CLI usage examples, see
105
+ * <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
106
+ * <i>Amazon Redshift Management Guide</i>. </p>
92
107
  */
93
108
  executeStatement(args: ExecuteStatementCommandInput, options?: __HttpHandlerOptions): Promise<ExecuteStatementCommandOutput>;
94
109
  executeStatement(args: ExecuteStatementCommandInput, cb: (err: any, data?: ExecuteStatementCommandOutput) => void): void;
@@ -96,6 +111,9 @@ export declare class RedshiftData extends RedshiftDataClient {
96
111
  /**
97
112
  * <p>Fetches the temporarily cached result of an SQL statement.
98
113
  * A token is returned to page through the statement results. </p>
114
+ * <p>For more information about the Amazon Redshift Data API and CLI usage examples, see
115
+ * <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
116
+ * <i>Amazon Redshift Management Guide</i>. </p>
99
117
  */
100
118
  getStatementResult(args: GetStatementResultCommandInput, options?: __HttpHandlerOptions): Promise<GetStatementResultCommandOutput>;
101
119
  getStatementResult(args: GetStatementResultCommandInput, cb: (err: any, data?: GetStatementResultCommandOutput) => void): void;
@@ -116,6 +134,9 @@ export declare class RedshiftData extends RedshiftDataClient {
116
134
  * When connecting to a serverless workgroup, specify the workgroup name and database name. Also, permission to call the <code>redshift-serverless:GetCredentials</code> operation is required. </p>
117
135
  * </li>
118
136
  * </ul>
137
+ * <p>For more information about the Amazon Redshift Data API and CLI usage examples, see
138
+ * <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
139
+ * <i>Amazon Redshift Management Guide</i>. </p>
119
140
  */
120
141
  listDatabases(args: ListDatabasesCommandInput, options?: __HttpHandlerOptions): Promise<ListDatabasesCommandOutput>;
121
142
  listDatabases(args: ListDatabasesCommandInput, cb: (err: any, data?: ListDatabasesCommandOutput) => void): void;
@@ -136,6 +157,9 @@ export declare class RedshiftData extends RedshiftDataClient {
136
157
  * When connecting to a serverless workgroup, specify the workgroup name and database name. Also, permission to call the <code>redshift-serverless:GetCredentials</code> operation is required. </p>
137
158
  * </li>
138
159
  * </ul>
160
+ * <p>For more information about the Amazon Redshift Data API and CLI usage examples, see
161
+ * <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
162
+ * <i>Amazon Redshift Management Guide</i>. </p>
139
163
  */
140
164
  listSchemas(args: ListSchemasCommandInput, options?: __HttpHandlerOptions): Promise<ListSchemasCommandOutput>;
141
165
  listSchemas(args: ListSchemasCommandInput, cb: (err: any, data?: ListSchemasCommandOutput) => void): void;
@@ -143,6 +167,9 @@ export declare class RedshiftData extends RedshiftDataClient {
143
167
  /**
144
168
  * <p>List of SQL statements. By default, only finished statements are shown.
145
169
  * A token is returned to page through the statement list. </p>
170
+ * <p>For more information about the Amazon Redshift Data API and CLI usage examples, see
171
+ * <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
172
+ * <i>Amazon Redshift Management Guide</i>. </p>
146
173
  */
147
174
  listStatements(args: ListStatementsCommandInput, options?: __HttpHandlerOptions): Promise<ListStatementsCommandOutput>;
148
175
  listStatements(args: ListStatementsCommandInput, cb: (err: any, data?: ListStatementsCommandOutput) => void): void;
@@ -164,6 +191,9 @@ export declare class RedshiftData extends RedshiftDataClient {
164
191
  * When connecting to a serverless workgroup, specify the workgroup name and database name. Also, permission to call the <code>redshift-serverless:GetCredentials</code> operation is required. </p>
165
192
  * </li>
166
193
  * </ul>
194
+ * <p>For more information about the Amazon Redshift Data API and CLI usage examples, see
195
+ * <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
196
+ * <i>Amazon Redshift Management Guide</i>. </p>
167
197
  */
168
198
  listTables(args: ListTablesCommandInput, options?: __HttpHandlerOptions): Promise<ListTablesCommandOutput>;
169
199
  listTables(args: ListTablesCommandInput, cb: (err: any, data?: ListTablesCommandOutput) => void): void;
@@ -137,7 +137,7 @@ export interface RedshiftDataClientResolvedConfig extends RedshiftDataClientReso
137
137
  * can run SQL statements, which are committed if the statement succeeds. </p>
138
138
  * <p>For more information about the Amazon Redshift Data API and CLI usage examples, see
139
139
  * <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
140
- * <i>Amazon Redshift Cluster Management Guide</i>. </p>
140
+ * <i>Amazon Redshift Management Guide</i>. </p>
141
141
  */
142
142
  export declare class RedshiftDataClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, RedshiftDataClientResolvedConfig> {
143
143
  /**
@@ -23,6 +23,9 @@ export interface BatchExecuteStatementCommandOutput extends BatchExecuteStatemen
23
23
  * When connecting to a serverless workgroup, specify the workgroup name and database name. Also, permission to call the <code>redshift-serverless:GetCredentials</code> operation is required. </p>
24
24
  * </li>
25
25
  * </ul>
26
+ * <p>For more information about the Amazon Redshift Data API and CLI usage examples, see
27
+ * <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
28
+ * <i>Amazon Redshift Management Guide</i>. </p>
26
29
  * @example
27
30
  * Use a bare-bones client and the command you need to make an API call.
28
31
  * ```javascript
@@ -9,6 +9,9 @@ export interface CancelStatementCommandOutput extends CancelStatementResponse, _
9
9
  }
10
10
  /**
11
11
  * <p>Cancels a running query. To be canceled, a query must be running. </p>
12
+ * <p>For more information about the Amazon Redshift Data API and CLI usage examples, see
13
+ * <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
14
+ * <i>Amazon Redshift Management Guide</i>. </p>
12
15
  * @example
13
16
  * Use a bare-bones client and the command you need to make an API call.
14
17
  * ```javascript
@@ -11,6 +11,9 @@ export interface DescribeStatementCommandOutput extends DescribeStatementRespons
11
11
  * <p>Describes the details about a specific instance when a query was run by the Amazon Redshift Data API. The information
12
12
  * includes when the query started, when it finished, the query status, the number of rows returned, and the SQL
13
13
  * statement. </p>
14
+ * <p>For more information about the Amazon Redshift Data API and CLI usage examples, see
15
+ * <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
16
+ * <i>Amazon Redshift Management Guide</i>. </p>
14
17
  * @example
15
18
  * Use a bare-bones client and the command you need to make an API call.
16
19
  * ```javascript
@@ -24,6 +24,9 @@ export interface DescribeTableCommandOutput extends DescribeTableResponse, __Met
24
24
  * When connecting to a serverless workgroup, specify the workgroup name and database name. Also, permission to call the <code>redshift-serverless:GetCredentials</code> operation is required. </p>
25
25
  * </li>
26
26
  * </ul>
27
+ * <p>For more information about the Amazon Redshift Data API and CLI usage examples, see
28
+ * <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
29
+ * <i>Amazon Redshift Management Guide</i>. </p>
27
30
  * @example
28
31
  * Use a bare-bones client and the command you need to make an API call.
29
32
  * ```javascript
@@ -23,6 +23,9 @@ export interface ExecuteStatementCommandOutput extends ExecuteStatementOutput, _
23
23
  * When connecting to a serverless workgroup, specify the workgroup name and database name. Also, permission to call the <code>redshift-serverless:GetCredentials</code> operation is required. </p>
24
24
  * </li>
25
25
  * </ul>
26
+ * <p>For more information about the Amazon Redshift Data API and CLI usage examples, see
27
+ * <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
28
+ * <i>Amazon Redshift Management Guide</i>. </p>
26
29
  * @example
27
30
  * Use a bare-bones client and the command you need to make an API call.
28
31
  * ```javascript
@@ -10,6 +10,9 @@ export interface GetStatementResultCommandOutput extends GetStatementResultRespo
10
10
  /**
11
11
  * <p>Fetches the temporarily cached result of an SQL statement.
12
12
  * A token is returned to page through the statement results. </p>
13
+ * <p>For more information about the Amazon Redshift Data API and CLI usage examples, see
14
+ * <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
15
+ * <i>Amazon Redshift Management Guide</i>. </p>
13
16
  * @example
14
17
  * Use a bare-bones client and the command you need to make an API call.
15
18
  * ```javascript
@@ -23,6 +23,9 @@ export interface ListDatabasesCommandOutput extends ListDatabasesResponse, __Met
23
23
  * When connecting to a serverless workgroup, specify the workgroup name and database name. Also, permission to call the <code>redshift-serverless:GetCredentials</code> operation is required. </p>
24
24
  * </li>
25
25
  * </ul>
26
+ * <p>For more information about the Amazon Redshift Data API and CLI usage examples, see
27
+ * <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
28
+ * <i>Amazon Redshift Management Guide</i>. </p>
26
29
  * @example
27
30
  * Use a bare-bones client and the command you need to make an API call.
28
31
  * ```javascript
@@ -23,6 +23,9 @@ export interface ListSchemasCommandOutput extends ListSchemasResponse, __Metadat
23
23
  * When connecting to a serverless workgroup, specify the workgroup name and database name. Also, permission to call the <code>redshift-serverless:GetCredentials</code> operation is required. </p>
24
24
  * </li>
25
25
  * </ul>
26
+ * <p>For more information about the Amazon Redshift Data API and CLI usage examples, see
27
+ * <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
28
+ * <i>Amazon Redshift Management Guide</i>. </p>
26
29
  * @example
27
30
  * Use a bare-bones client and the command you need to make an API call.
28
31
  * ```javascript
@@ -10,6 +10,9 @@ export interface ListStatementsCommandOutput extends ListStatementsResponse, __M
10
10
  /**
11
11
  * <p>List of SQL statements. By default, only finished statements are shown.
12
12
  * A token is returned to page through the statement list. </p>
13
+ * <p>For more information about the Amazon Redshift Data API and CLI usage examples, see
14
+ * <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
15
+ * <i>Amazon Redshift Management Guide</i>. </p>
13
16
  * @example
14
17
  * Use a bare-bones client and the command you need to make an API call.
15
18
  * ```javascript
@@ -24,6 +24,9 @@ export interface ListTablesCommandOutput extends ListTablesResponse, __MetadataB
24
24
  * When connecting to a serverless workgroup, specify the workgroup name and database name. Also, permission to call the <code>redshift-serverless:GetCredentials</code> operation is required. </p>
25
25
  * </li>
26
26
  * </ul>
27
+ * <p>For more information about the Amazon Redshift Data API and CLI usage examples, see
28
+ * <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
29
+ * <i>Amazon Redshift Management Guide</i>. </p>
27
30
  * @example
28
31
  * Use a bare-bones client and the command you need to make an API call.
29
32
  * ```javascript
@@ -30,7 +30,11 @@ export declare class BatchExecuteStatementException extends __BaseException {
30
30
  }
31
31
  export interface BatchExecuteStatementInput {
32
32
  /**
33
- * <p>One or more SQL statements to run. </p>
33
+ * <p>One or more SQL statements to run.
34
+ *
35
+ * The SQL statements are run as a single transaction. They run serially in the order of the array.
36
+ * Subsequent SQL statements don't start until the previous statement in the array completes.
37
+ * If any SQL statement fails, then because they are run as one transaction, all work is rolled back.</p>
34
38
  */
35
39
  Sqls: string[] | undefined;
36
40
  /**
@@ -61,6 +65,10 @@ export interface BatchExecuteStatementInput {
61
65
  * <p>The serverless workgroup name. This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.</p>
62
66
  */
63
67
  WorkgroupName?: string;
68
+ /**
69
+ * <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p>
70
+ */
71
+ ClientToken?: string;
64
72
  }
65
73
  export interface BatchExecuteStatementOutput {
66
74
  /**
@@ -243,7 +251,7 @@ export interface SqlParameter {
243
251
  name: string | undefined;
244
252
  /**
245
253
  * <p>The value of the parameter.
246
- * Amazon Redshift implicitly converts to the proper data type. For more inforation, see
254
+ * Amazon Redshift implicitly converts to the proper data type. For more information, see
247
255
  * <a href="https://docs.aws.amazon.com/redshift/latest/dg/c_Supported_data_types.html">Data types</a> in the
248
256
  * <i>Amazon Redshift Database Developer Guide</i>. </p>
249
257
  */
@@ -542,6 +550,10 @@ export interface ExecuteStatementInput {
542
550
  * <p>The serverless workgroup name. This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.</p>
543
551
  */
544
552
  WorkgroupName?: string;
553
+ /**
554
+ * <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p>
555
+ */
556
+ ClientToken?: string;
545
557
  }
546
558
  export interface ExecuteStatementOutput {
547
559
  /**
@@ -29,6 +29,7 @@ export interface BatchExecuteStatementInput {
29
29
  WithEvent?: boolean;
30
30
  StatementName?: string;
31
31
  WorkgroupName?: string;
32
+ ClientToken?: string;
32
33
  }
33
34
  export interface BatchExecuteStatementOutput {
34
35
  Id?: string;
@@ -187,6 +188,7 @@ export interface ExecuteStatementInput {
187
188
  StatementName?: string;
188
189
  Parameters?: SqlParameter[];
189
190
  WorkgroupName?: string;
191
+ ClientToken?: string;
190
192
  }
191
193
  export interface ExecuteStatementOutput {
192
194
  Id?: string;
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.229.0",
4
+ "version": "3.231.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,9 +19,9 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.229.0",
23
- "@aws-sdk/config-resolver": "3.226.0",
24
- "@aws-sdk/credential-provider-node": "3.229.0",
22
+ "@aws-sdk/client-sts": "3.231.0",
23
+ "@aws-sdk/config-resolver": "3.231.0",
24
+ "@aws-sdk/credential-provider-node": "3.231.0",
25
25
  "@aws-sdk/fetch-http-handler": "3.226.0",
26
26
  "@aws-sdk/hash-node": "3.226.0",
27
27
  "@aws-sdk/invalid-dependency": "3.226.0",
@@ -45,19 +45,21 @@
45
45
  "@aws-sdk/util-body-length-browser": "3.188.0",
46
46
  "@aws-sdk/util-body-length-node": "3.208.0",
47
47
  "@aws-sdk/util-defaults-mode-browser": "3.226.0",
48
- "@aws-sdk/util-defaults-mode-node": "3.226.0",
48
+ "@aws-sdk/util-defaults-mode-node": "3.231.0",
49
49
  "@aws-sdk/util-endpoints": "3.226.0",
50
50
  "@aws-sdk/util-retry": "3.229.0",
51
51
  "@aws-sdk/util-user-agent-browser": "3.226.0",
52
52
  "@aws-sdk/util-user-agent-node": "3.226.0",
53
53
  "@aws-sdk/util-utf8-browser": "3.188.0",
54
54
  "@aws-sdk/util-utf8-node": "3.208.0",
55
- "tslib": "^2.3.1"
55
+ "tslib": "^2.3.1",
56
+ "uuid": "^8.3.2"
56
57
  },
57
58
  "devDependencies": {
58
59
  "@aws-sdk/service-client-documentation-generator": "3.208.0",
59
60
  "@tsconfig/node14": "1.0.3",
60
61
  "@types/node": "^14.14.31",
62
+ "@types/uuid": "^8.3.0",
61
63
  "concurrently": "7.0.0",
62
64
  "downlevel-dts": "0.10.1",
63
65
  "rimraf": "3.0.2",