@aws-sdk/client-redshift-data 3.934.0 → 3.935.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
@@ -161,10 +161,6 @@ let BatchExecuteStatementException$1 = class BatchExecuteStatementException exte
161
161
  this.StatementId = opts.StatementId;
162
162
  }
163
163
  };
164
- const ResultFormatString = {
165
- CSV: "CSV",
166
- JSON: "JSON",
167
- };
168
164
  let InternalServerException$1 = class InternalServerException extends RedshiftDataServiceException$1 {
169
165
  name = "InternalServerException";
170
166
  $fault = "server";
@@ -223,23 +219,6 @@ let ResourceNotFoundException$1 = class ResourceNotFoundException extends Redshi
223
219
  this.ResourceId = opts.ResourceId;
224
220
  }
225
221
  };
226
- const StatusString = {
227
- ABORTED: "ABORTED",
228
- ALL: "ALL",
229
- FAILED: "FAILED",
230
- FINISHED: "FINISHED",
231
- PICKED: "PICKED",
232
- STARTED: "STARTED",
233
- SUBMITTED: "SUBMITTED",
234
- };
235
- const StatementStatusString = {
236
- ABORTED: "ABORTED",
237
- FAILED: "FAILED",
238
- FINISHED: "FINISHED",
239
- PICKED: "PICKED",
240
- STARTED: "STARTED",
241
- SUBMITTED: "SUBMITTED",
242
- };
243
222
  let QueryTimeoutException$1 = class QueryTimeoutException extends RedshiftDataServiceException$1 {
244
223
  name = "QueryTimeoutException";
245
224
  $fault = "client";
@@ -928,9 +907,6 @@ exports.RedshiftData = RedshiftData;
928
907
  exports.RedshiftDataClient = RedshiftDataClient;
929
908
  exports.RedshiftDataServiceException = RedshiftDataServiceException$1;
930
909
  exports.ResourceNotFoundException = ResourceNotFoundException$1;
931
- exports.ResultFormatString = ResultFormatString;
932
- exports.StatementStatusString = StatementStatusString;
933
- exports.StatusString = StatusString;
934
910
  exports.ValidationException = ValidationException$1;
935
911
  exports.paginateDescribeTable = paginateDescribeTable;
936
912
  exports.paginateGetStatementResult = paginateGetStatementResult;
package/dist-es/index.js CHANGED
@@ -2,5 +2,5 @@ export * from "./RedshiftDataClient";
2
2
  export * from "./RedshiftData";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
- export * from "./models";
5
+ export * from "./models/errors";
6
6
  export { RedshiftDataServiceException } from "./models/RedshiftDataServiceException";
@@ -0,0 +1,133 @@
1
+ import { RedshiftDataServiceException as __BaseException } from "./RedshiftDataServiceException";
2
+ export class ActiveSessionsExceededException extends __BaseException {
3
+ name = "ActiveSessionsExceededException";
4
+ $fault = "client";
5
+ Message;
6
+ constructor(opts) {
7
+ super({
8
+ name: "ActiveSessionsExceededException",
9
+ $fault: "client",
10
+ ...opts,
11
+ });
12
+ Object.setPrototypeOf(this, ActiveSessionsExceededException.prototype);
13
+ this.Message = opts.Message;
14
+ }
15
+ }
16
+ export class ActiveStatementsExceededException extends __BaseException {
17
+ name = "ActiveStatementsExceededException";
18
+ $fault = "client";
19
+ Message;
20
+ constructor(opts) {
21
+ super({
22
+ name: "ActiveStatementsExceededException",
23
+ $fault: "client",
24
+ ...opts,
25
+ });
26
+ Object.setPrototypeOf(this, ActiveStatementsExceededException.prototype);
27
+ this.Message = opts.Message;
28
+ }
29
+ }
30
+ export class BatchExecuteStatementException extends __BaseException {
31
+ name = "BatchExecuteStatementException";
32
+ $fault = "server";
33
+ Message;
34
+ StatementId;
35
+ constructor(opts) {
36
+ super({
37
+ name: "BatchExecuteStatementException",
38
+ $fault: "server",
39
+ ...opts,
40
+ });
41
+ Object.setPrototypeOf(this, BatchExecuteStatementException.prototype);
42
+ this.Message = opts.Message;
43
+ this.StatementId = opts.StatementId;
44
+ }
45
+ }
46
+ export class InternalServerException extends __BaseException {
47
+ name = "InternalServerException";
48
+ $fault = "server";
49
+ Message;
50
+ constructor(opts) {
51
+ super({
52
+ name: "InternalServerException",
53
+ $fault: "server",
54
+ ...opts,
55
+ });
56
+ Object.setPrototypeOf(this, InternalServerException.prototype);
57
+ this.Message = opts.Message;
58
+ }
59
+ }
60
+ export class ValidationException extends __BaseException {
61
+ name = "ValidationException";
62
+ $fault = "client";
63
+ Message;
64
+ constructor(opts) {
65
+ super({
66
+ name: "ValidationException",
67
+ $fault: "client",
68
+ ...opts,
69
+ });
70
+ Object.setPrototypeOf(this, ValidationException.prototype);
71
+ this.Message = opts.Message;
72
+ }
73
+ }
74
+ export class DatabaseConnectionException extends __BaseException {
75
+ name = "DatabaseConnectionException";
76
+ $fault = "server";
77
+ Message;
78
+ constructor(opts) {
79
+ super({
80
+ name: "DatabaseConnectionException",
81
+ $fault: "server",
82
+ ...opts,
83
+ });
84
+ Object.setPrototypeOf(this, DatabaseConnectionException.prototype);
85
+ this.Message = opts.Message;
86
+ }
87
+ }
88
+ export class ResourceNotFoundException extends __BaseException {
89
+ name = "ResourceNotFoundException";
90
+ $fault = "client";
91
+ Message;
92
+ ResourceId;
93
+ constructor(opts) {
94
+ super({
95
+ name: "ResourceNotFoundException",
96
+ $fault: "client",
97
+ ...opts,
98
+ });
99
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
100
+ this.Message = opts.Message;
101
+ this.ResourceId = opts.ResourceId;
102
+ }
103
+ }
104
+ export class QueryTimeoutException extends __BaseException {
105
+ name = "QueryTimeoutException";
106
+ $fault = "client";
107
+ Message;
108
+ constructor(opts) {
109
+ super({
110
+ name: "QueryTimeoutException",
111
+ $fault: "client",
112
+ ...opts,
113
+ });
114
+ Object.setPrototypeOf(this, QueryTimeoutException.prototype);
115
+ this.Message = opts.Message;
116
+ }
117
+ }
118
+ export class ExecuteStatementException extends __BaseException {
119
+ name = "ExecuteStatementException";
120
+ $fault = "server";
121
+ Message;
122
+ StatementId;
123
+ constructor(opts) {
124
+ super({
125
+ name: "ExecuteStatementException",
126
+ $fault: "server",
127
+ ...opts,
128
+ });
129
+ Object.setPrototypeOf(this, ExecuteStatementException.prototype);
130
+ this.Message = opts.Message;
131
+ this.StatementId = opts.StatementId;
132
+ }
133
+ }
@@ -1,110 +1,7 @@
1
- import { RedshiftDataServiceException as __BaseException } from "./RedshiftDataServiceException";
2
- export class ActiveSessionsExceededException extends __BaseException {
3
- name = "ActiveSessionsExceededException";
4
- $fault = "client";
5
- Message;
6
- constructor(opts) {
7
- super({
8
- name: "ActiveSessionsExceededException",
9
- $fault: "client",
10
- ...opts,
11
- });
12
- Object.setPrototypeOf(this, ActiveSessionsExceededException.prototype);
13
- this.Message = opts.Message;
14
- }
15
- }
16
- export class ActiveStatementsExceededException extends __BaseException {
17
- name = "ActiveStatementsExceededException";
18
- $fault = "client";
19
- Message;
20
- constructor(opts) {
21
- super({
22
- name: "ActiveStatementsExceededException",
23
- $fault: "client",
24
- ...opts,
25
- });
26
- Object.setPrototypeOf(this, ActiveStatementsExceededException.prototype);
27
- this.Message = opts.Message;
28
- }
29
- }
30
- export class BatchExecuteStatementException extends __BaseException {
31
- name = "BatchExecuteStatementException";
32
- $fault = "server";
33
- Message;
34
- StatementId;
35
- constructor(opts) {
36
- super({
37
- name: "BatchExecuteStatementException",
38
- $fault: "server",
39
- ...opts,
40
- });
41
- Object.setPrototypeOf(this, BatchExecuteStatementException.prototype);
42
- this.Message = opts.Message;
43
- this.StatementId = opts.StatementId;
44
- }
45
- }
46
1
  export const ResultFormatString = {
47
2
  CSV: "CSV",
48
3
  JSON: "JSON",
49
4
  };
50
- export class InternalServerException extends __BaseException {
51
- name = "InternalServerException";
52
- $fault = "server";
53
- Message;
54
- constructor(opts) {
55
- super({
56
- name: "InternalServerException",
57
- $fault: "server",
58
- ...opts,
59
- });
60
- Object.setPrototypeOf(this, InternalServerException.prototype);
61
- this.Message = opts.Message;
62
- }
63
- }
64
- export class ValidationException extends __BaseException {
65
- name = "ValidationException";
66
- $fault = "client";
67
- Message;
68
- constructor(opts) {
69
- super({
70
- name: "ValidationException",
71
- $fault: "client",
72
- ...opts,
73
- });
74
- Object.setPrototypeOf(this, ValidationException.prototype);
75
- this.Message = opts.Message;
76
- }
77
- }
78
- export class DatabaseConnectionException extends __BaseException {
79
- name = "DatabaseConnectionException";
80
- $fault = "server";
81
- Message;
82
- constructor(opts) {
83
- super({
84
- name: "DatabaseConnectionException",
85
- $fault: "server",
86
- ...opts,
87
- });
88
- Object.setPrototypeOf(this, DatabaseConnectionException.prototype);
89
- this.Message = opts.Message;
90
- }
91
- }
92
- export class ResourceNotFoundException extends __BaseException {
93
- name = "ResourceNotFoundException";
94
- $fault = "client";
95
- Message;
96
- ResourceId;
97
- constructor(opts) {
98
- super({
99
- name: "ResourceNotFoundException",
100
- $fault: "client",
101
- ...opts,
102
- });
103
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
104
- this.Message = opts.Message;
105
- this.ResourceId = opts.ResourceId;
106
- }
107
- }
108
5
  export const StatusString = {
109
6
  ABORTED: "ABORTED",
110
7
  ALL: "ALL",
@@ -122,33 +19,3 @@ export const StatementStatusString = {
122
19
  STARTED: "STARTED",
123
20
  SUBMITTED: "SUBMITTED",
124
21
  };
125
- export class QueryTimeoutException extends __BaseException {
126
- name = "QueryTimeoutException";
127
- $fault = "client";
128
- Message;
129
- constructor(opts) {
130
- super({
131
- name: "QueryTimeoutException",
132
- $fault: "client",
133
- ...opts,
134
- });
135
- Object.setPrototypeOf(this, QueryTimeoutException.prototype);
136
- this.Message = opts.Message;
137
- }
138
- }
139
- export class ExecuteStatementException extends __BaseException {
140
- name = "ExecuteStatementException";
141
- $fault = "server";
142
- Message;
143
- StatementId;
144
- constructor(opts) {
145
- super({
146
- name: "ExecuteStatementException",
147
- $fault: "server",
148
- ...opts,
149
- });
150
- Object.setPrototypeOf(this, ExecuteStatementException.prototype);
151
- this.Message = opts.Message;
152
- this.StatementId = opts.StatementId;
153
- }
154
- }
@@ -135,7 +135,7 @@ const _tNy = "typeName";
135
135
  const _v = "value";
136
136
  const n0 = "com.amazonaws.redshiftdata";
137
137
  import { TypeRegistry } from "@smithy/core/schema";
138
- import { ActiveSessionsExceededException as __ActiveSessionsExceededException, ActiveStatementsExceededException as __ActiveStatementsExceededException, BatchExecuteStatementException as __BatchExecuteStatementException, DatabaseConnectionException as __DatabaseConnectionException, ExecuteStatementException as __ExecuteStatementException, InternalServerException as __InternalServerException, QueryTimeoutException as __QueryTimeoutException, ResourceNotFoundException as __ResourceNotFoundException, ValidationException as __ValidationException, } from "../models/index";
138
+ import { ActiveSessionsExceededException as __ActiveSessionsExceededException, ActiveStatementsExceededException as __ActiveStatementsExceededException, BatchExecuteStatementException as __BatchExecuteStatementException, DatabaseConnectionException as __DatabaseConnectionException, ExecuteStatementException as __ExecuteStatementException, InternalServerException as __InternalServerException, QueryTimeoutException as __QueryTimeoutException, ResourceNotFoundException as __ResourceNotFoundException, ValidationException as __ValidationException, } from "../models/errors";
139
139
  import { RedshiftDataServiceException as __RedshiftDataServiceException } from "../models/RedshiftDataServiceException";
140
140
  export var ActiveSessionsExceededException = [
141
141
  -3,
@@ -14,5 +14,6 @@ export type { RuntimeExtension } from "./runtimeExtensions";
14
14
  export type { RedshiftDataExtensionConfiguration } from "./extensionConfiguration";
15
15
  export * from "./commands";
16
16
  export * from "./pagination";
17
- export * from "./models";
17
+ export * from "./models/errors";
18
+ export type * from "./models/models_0";
18
19
  export { RedshiftDataServiceException } from "./models/RedshiftDataServiceException";
@@ -0,0 +1,150 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { RedshiftDataServiceException as __BaseException } from "./RedshiftDataServiceException";
3
+ /**
4
+ * <p>The Amazon Redshift Data API operation failed because the maximum number of active sessions exceeded.</p>
5
+ * @public
6
+ */
7
+ export declare class ActiveSessionsExceededException extends __BaseException {
8
+ readonly name: "ActiveSessionsExceededException";
9
+ readonly $fault: "client";
10
+ Message?: string | undefined;
11
+ /**
12
+ * @internal
13
+ */
14
+ constructor(opts: __ExceptionOptionType<ActiveSessionsExceededException, __BaseException>);
15
+ }
16
+ /**
17
+ * <p>The number of active statements exceeds the limit.</p>
18
+ * @public
19
+ */
20
+ export declare class ActiveStatementsExceededException extends __BaseException {
21
+ readonly name: "ActiveStatementsExceededException";
22
+ readonly $fault: "client";
23
+ Message?: string | undefined;
24
+ /**
25
+ * @internal
26
+ */
27
+ constructor(opts: __ExceptionOptionType<ActiveStatementsExceededException, __BaseException>);
28
+ }
29
+ /**
30
+ * <p>An SQL statement encountered an environmental error while running.</p>
31
+ * @public
32
+ */
33
+ export declare class BatchExecuteStatementException extends __BaseException {
34
+ readonly name: "BatchExecuteStatementException";
35
+ readonly $fault: "server";
36
+ Message: string | undefined;
37
+ /**
38
+ * <p>Statement identifier of the exception.</p>
39
+ * @public
40
+ */
41
+ StatementId: string | undefined;
42
+ /**
43
+ * @internal
44
+ */
45
+ constructor(opts: __ExceptionOptionType<BatchExecuteStatementException, __BaseException>);
46
+ }
47
+ /**
48
+ * <p>The Amazon Redshift Data API operation failed due to invalid input. </p>
49
+ * @public
50
+ */
51
+ export declare class InternalServerException extends __BaseException {
52
+ readonly name: "InternalServerException";
53
+ readonly $fault: "server";
54
+ /**
55
+ * <p>The exception message.</p>
56
+ * @public
57
+ */
58
+ Message: string | undefined;
59
+ /**
60
+ * @internal
61
+ */
62
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
63
+ }
64
+ /**
65
+ * <p>The Amazon Redshift Data API operation failed due to invalid input. </p>
66
+ * @public
67
+ */
68
+ export declare class ValidationException extends __BaseException {
69
+ readonly name: "ValidationException";
70
+ readonly $fault: "client";
71
+ /**
72
+ * <p>The exception message.</p>
73
+ * @public
74
+ */
75
+ Message?: string | undefined;
76
+ /**
77
+ * @internal
78
+ */
79
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
80
+ }
81
+ /**
82
+ * <p>Connection to a database failed.</p>
83
+ * @public
84
+ */
85
+ export declare class DatabaseConnectionException extends __BaseException {
86
+ readonly name: "DatabaseConnectionException";
87
+ readonly $fault: "server";
88
+ Message: string | undefined;
89
+ /**
90
+ * @internal
91
+ */
92
+ constructor(opts: __ExceptionOptionType<DatabaseConnectionException, __BaseException>);
93
+ }
94
+ /**
95
+ * <p>The Amazon Redshift Data API operation failed due to a missing resource. </p>
96
+ * @public
97
+ */
98
+ export declare class ResourceNotFoundException extends __BaseException {
99
+ readonly name: "ResourceNotFoundException";
100
+ readonly $fault: "client";
101
+ /**
102
+ * <p>The exception message.</p>
103
+ * @public
104
+ */
105
+ Message: string | undefined;
106
+ /**
107
+ * <p>Resource identifier associated with the exception.</p>
108
+ * @public
109
+ */
110
+ ResourceId: string | undefined;
111
+ /**
112
+ * @internal
113
+ */
114
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
115
+ }
116
+ /**
117
+ * <p>The Amazon Redshift Data API operation failed due to timeout.</p>
118
+ * @public
119
+ */
120
+ export declare class QueryTimeoutException extends __BaseException {
121
+ readonly name: "QueryTimeoutException";
122
+ readonly $fault: "client";
123
+ Message?: string | undefined;
124
+ /**
125
+ * @internal
126
+ */
127
+ constructor(opts: __ExceptionOptionType<QueryTimeoutException, __BaseException>);
128
+ }
129
+ /**
130
+ * <p>The SQL statement encountered an environmental error while running.</p>
131
+ * @public
132
+ */
133
+ export declare class ExecuteStatementException extends __BaseException {
134
+ readonly name: "ExecuteStatementException";
135
+ readonly $fault: "server";
136
+ /**
137
+ * <p>The exception message.</p>
138
+ * @public
139
+ */
140
+ Message: string | undefined;
141
+ /**
142
+ * <p>Statement identifier of the exception.</p>
143
+ * @public
144
+ */
145
+ StatementId: string | undefined;
146
+ /**
147
+ * @internal
148
+ */
149
+ constructor(opts: __ExceptionOptionType<ExecuteStatementException, __BaseException>);
150
+ }
@@ -1,49 +1,3 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { RedshiftDataServiceException as __BaseException } from "./RedshiftDataServiceException";
3
- /**
4
- * <p>The Amazon Redshift Data API operation failed because the maximum number of active sessions exceeded.</p>
5
- * @public
6
- */
7
- export declare class ActiveSessionsExceededException extends __BaseException {
8
- readonly name: "ActiveSessionsExceededException";
9
- readonly $fault: "client";
10
- Message?: string | undefined;
11
- /**
12
- * @internal
13
- */
14
- constructor(opts: __ExceptionOptionType<ActiveSessionsExceededException, __BaseException>);
15
- }
16
- /**
17
- * <p>The number of active statements exceeds the limit.</p>
18
- * @public
19
- */
20
- export declare class ActiveStatementsExceededException extends __BaseException {
21
- readonly name: "ActiveStatementsExceededException";
22
- readonly $fault: "client";
23
- Message?: string | undefined;
24
- /**
25
- * @internal
26
- */
27
- constructor(opts: __ExceptionOptionType<ActiveStatementsExceededException, __BaseException>);
28
- }
29
- /**
30
- * <p>An SQL statement encountered an environmental error while running.</p>
31
- * @public
32
- */
33
- export declare class BatchExecuteStatementException extends __BaseException {
34
- readonly name: "BatchExecuteStatementException";
35
- readonly $fault: "server";
36
- Message: string | undefined;
37
- /**
38
- * <p>Statement identifier of the exception.</p>
39
- * @public
40
- */
41
- StatementId: string | undefined;
42
- /**
43
- * @internal
44
- */
45
- constructor(opts: __ExceptionOptionType<BatchExecuteStatementException, __BaseException>);
46
- }
47
1
  /**
48
2
  * @public
49
3
  * @enum
@@ -176,40 +130,6 @@ export interface BatchExecuteStatementOutput {
176
130
  */
177
131
  SessionId?: string | undefined;
178
132
  }
179
- /**
180
- * <p>The Amazon Redshift Data API operation failed due to invalid input. </p>
181
- * @public
182
- */
183
- export declare class InternalServerException extends __BaseException {
184
- readonly name: "InternalServerException";
185
- readonly $fault: "server";
186
- /**
187
- * <p>The exception message.</p>
188
- * @public
189
- */
190
- Message: string | undefined;
191
- /**
192
- * @internal
193
- */
194
- constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
195
- }
196
- /**
197
- * <p>The Amazon Redshift Data API operation failed due to invalid input. </p>
198
- * @public
199
- */
200
- export declare class ValidationException extends __BaseException {
201
- readonly name: "ValidationException";
202
- readonly $fault: "client";
203
- /**
204
- * <p>The exception message.</p>
205
- * @public
206
- */
207
- Message?: string | undefined;
208
- /**
209
- * @internal
210
- */
211
- constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
212
- }
213
133
  /**
214
134
  * @public
215
135
  */
@@ -231,41 +151,6 @@ export interface CancelStatementResponse {
231
151
  */
232
152
  Status?: boolean | undefined;
233
153
  }
234
- /**
235
- * <p>Connection to a database failed.</p>
236
- * @public
237
- */
238
- export declare class DatabaseConnectionException extends __BaseException {
239
- readonly name: "DatabaseConnectionException";
240
- readonly $fault: "server";
241
- Message: string | undefined;
242
- /**
243
- * @internal
244
- */
245
- constructor(opts: __ExceptionOptionType<DatabaseConnectionException, __BaseException>);
246
- }
247
- /**
248
- * <p>The Amazon Redshift Data API operation failed due to a missing resource. </p>
249
- * @public
250
- */
251
- export declare class ResourceNotFoundException extends __BaseException {
252
- readonly name: "ResourceNotFoundException";
253
- readonly $fault: "client";
254
- /**
255
- * <p>The exception message.</p>
256
- * @public
257
- */
258
- Message: string | undefined;
259
- /**
260
- * <p>Resource identifier associated with the exception.</p>
261
- * @public
262
- */
263
- ResourceId: string | undefined;
264
- /**
265
- * @internal
266
- */
267
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
268
- }
269
154
  /**
270
155
  * <p>The properties (metadata) of a column. </p>
271
156
  * @public
@@ -685,41 +570,6 @@ export interface DescribeTableResponse {
685
570
  */
686
571
  NextToken?: string | undefined;
687
572
  }
688
- /**
689
- * <p>The Amazon Redshift Data API operation failed due to timeout.</p>
690
- * @public
691
- */
692
- export declare class QueryTimeoutException extends __BaseException {
693
- readonly name: "QueryTimeoutException";
694
- readonly $fault: "client";
695
- Message?: string | undefined;
696
- /**
697
- * @internal
698
- */
699
- constructor(opts: __ExceptionOptionType<QueryTimeoutException, __BaseException>);
700
- }
701
- /**
702
- * <p>The SQL statement encountered an environmental error while running.</p>
703
- * @public
704
- */
705
- export declare class ExecuteStatementException extends __BaseException {
706
- readonly name: "ExecuteStatementException";
707
- readonly $fault: "server";
708
- /**
709
- * <p>The exception message.</p>
710
- * @public
711
- */
712
- Message: string | undefined;
713
- /**
714
- * <p>Statement identifier of the exception.</p>
715
- * @public
716
- */
717
- StatementId: string | undefined;
718
- /**
719
- * @internal
720
- */
721
- constructor(opts: __ExceptionOptionType<ExecuteStatementException, __BaseException>);
722
- }
723
573
  /**
724
574
  * @public
725
575
  */
@@ -5,5 +5,6 @@ export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { RedshiftDataExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
7
  export * from "./pagination";
8
- export * from "./models";
8
+ export * from "./models/errors";
9
+ export * from "./models/models_0";
9
10
  export { RedshiftDataServiceException } from "./models/RedshiftDataServiceException";
@@ -0,0 +1,83 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { RedshiftDataServiceException as __BaseException } from "./RedshiftDataServiceException";
3
+ export declare class ActiveSessionsExceededException extends __BaseException {
4
+ readonly name: "ActiveSessionsExceededException";
5
+ readonly $fault: "client";
6
+ Message?: string | undefined;
7
+ constructor(
8
+ opts: __ExceptionOptionType<
9
+ ActiveSessionsExceededException,
10
+ __BaseException
11
+ >
12
+ );
13
+ }
14
+ export declare class ActiveStatementsExceededException extends __BaseException {
15
+ readonly name: "ActiveStatementsExceededException";
16
+ readonly $fault: "client";
17
+ Message?: string | undefined;
18
+ constructor(
19
+ opts: __ExceptionOptionType<
20
+ ActiveStatementsExceededException,
21
+ __BaseException
22
+ >
23
+ );
24
+ }
25
+ export declare class BatchExecuteStatementException extends __BaseException {
26
+ readonly name: "BatchExecuteStatementException";
27
+ readonly $fault: "server";
28
+ Message: string | undefined;
29
+ StatementId: string | undefined;
30
+ constructor(
31
+ opts: __ExceptionOptionType<BatchExecuteStatementException, __BaseException>
32
+ );
33
+ }
34
+ export declare class InternalServerException extends __BaseException {
35
+ readonly name: "InternalServerException";
36
+ readonly $fault: "server";
37
+ Message: string | undefined;
38
+ constructor(
39
+ opts: __ExceptionOptionType<InternalServerException, __BaseException>
40
+ );
41
+ }
42
+ export declare class ValidationException extends __BaseException {
43
+ readonly name: "ValidationException";
44
+ readonly $fault: "client";
45
+ Message?: string | undefined;
46
+ constructor(
47
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
48
+ );
49
+ }
50
+ export declare class DatabaseConnectionException extends __BaseException {
51
+ readonly name: "DatabaseConnectionException";
52
+ readonly $fault: "server";
53
+ Message: string | undefined;
54
+ constructor(
55
+ opts: __ExceptionOptionType<DatabaseConnectionException, __BaseException>
56
+ );
57
+ }
58
+ export declare class ResourceNotFoundException extends __BaseException {
59
+ readonly name: "ResourceNotFoundException";
60
+ readonly $fault: "client";
61
+ Message: string | undefined;
62
+ ResourceId: string | undefined;
63
+ constructor(
64
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
65
+ );
66
+ }
67
+ export declare class QueryTimeoutException extends __BaseException {
68
+ readonly name: "QueryTimeoutException";
69
+ readonly $fault: "client";
70
+ Message?: string | undefined;
71
+ constructor(
72
+ opts: __ExceptionOptionType<QueryTimeoutException, __BaseException>
73
+ );
74
+ }
75
+ export declare class ExecuteStatementException extends __BaseException {
76
+ readonly name: "ExecuteStatementException";
77
+ readonly $fault: "server";
78
+ Message: string | undefined;
79
+ StatementId: string | undefined;
80
+ constructor(
81
+ opts: __ExceptionOptionType<ExecuteStatementException, __BaseException>
82
+ );
83
+ }
@@ -1,36 +1,3 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { RedshiftDataServiceException as __BaseException } from "./RedshiftDataServiceException";
3
- export declare class ActiveSessionsExceededException extends __BaseException {
4
- readonly name: "ActiveSessionsExceededException";
5
- readonly $fault: "client";
6
- Message?: string | undefined;
7
- constructor(
8
- opts: __ExceptionOptionType<
9
- ActiveSessionsExceededException,
10
- __BaseException
11
- >
12
- );
13
- }
14
- export declare class ActiveStatementsExceededException extends __BaseException {
15
- readonly name: "ActiveStatementsExceededException";
16
- readonly $fault: "client";
17
- Message?: string | undefined;
18
- constructor(
19
- opts: __ExceptionOptionType<
20
- ActiveStatementsExceededException,
21
- __BaseException
22
- >
23
- );
24
- }
25
- export declare class BatchExecuteStatementException extends __BaseException {
26
- readonly name: "BatchExecuteStatementException";
27
- readonly $fault: "server";
28
- Message: string | undefined;
29
- StatementId: string | undefined;
30
- constructor(
31
- opts: __ExceptionOptionType<BatchExecuteStatementException, __BaseException>
32
- );
33
- }
34
1
  export declare const ResultFormatString: {
35
2
  readonly CSV: "CSV";
36
3
  readonly JSON: "JSON";
@@ -62,45 +29,12 @@ export interface BatchExecuteStatementOutput {
62
29
  WorkgroupName?: string | undefined;
63
30
  SessionId?: string | undefined;
64
31
  }
65
- export declare class InternalServerException extends __BaseException {
66
- readonly name: "InternalServerException";
67
- readonly $fault: "server";
68
- Message: string | undefined;
69
- constructor(
70
- opts: __ExceptionOptionType<InternalServerException, __BaseException>
71
- );
72
- }
73
- export declare class ValidationException extends __BaseException {
74
- readonly name: "ValidationException";
75
- readonly $fault: "client";
76
- Message?: string | undefined;
77
- constructor(
78
- opts: __ExceptionOptionType<ValidationException, __BaseException>
79
- );
80
- }
81
32
  export interface CancelStatementRequest {
82
33
  Id: string | undefined;
83
34
  }
84
35
  export interface CancelStatementResponse {
85
36
  Status?: boolean | undefined;
86
37
  }
87
- export declare class DatabaseConnectionException extends __BaseException {
88
- readonly name: "DatabaseConnectionException";
89
- readonly $fault: "server";
90
- Message: string | undefined;
91
- constructor(
92
- opts: __ExceptionOptionType<DatabaseConnectionException, __BaseException>
93
- );
94
- }
95
- export declare class ResourceNotFoundException extends __BaseException {
96
- readonly name: "ResourceNotFoundException";
97
- readonly $fault: "client";
98
- Message: string | undefined;
99
- ResourceId: string | undefined;
100
- constructor(
101
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
102
- );
103
- }
104
38
  export interface ColumnMetadata {
105
39
  isCaseSensitive?: boolean | undefined;
106
40
  isCurrency?: boolean | undefined;
@@ -196,23 +130,6 @@ export interface DescribeTableResponse {
196
130
  ColumnList?: ColumnMetadata[] | undefined;
197
131
  NextToken?: string | undefined;
198
132
  }
199
- export declare class QueryTimeoutException extends __BaseException {
200
- readonly name: "QueryTimeoutException";
201
- readonly $fault: "client";
202
- Message?: string | undefined;
203
- constructor(
204
- opts: __ExceptionOptionType<QueryTimeoutException, __BaseException>
205
- );
206
- }
207
- export declare class ExecuteStatementException extends __BaseException {
208
- readonly name: "ExecuteStatementException";
209
- readonly $fault: "server";
210
- Message: string | undefined;
211
- StatementId: string | undefined;
212
- constructor(
213
- opts: __ExceptionOptionType<ExecuteStatementException, __BaseException>
214
- );
215
- }
216
133
  export interface ExecuteStatementInput {
217
134
  Sql: string | undefined;
218
135
  ClusterIdentifier?: string | 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.934.0",
4
+ "version": "3.935.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",
@@ -20,38 +20,38 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.934.0",
24
- "@aws-sdk/credential-provider-node": "3.934.0",
23
+ "@aws-sdk/core": "3.935.0",
24
+ "@aws-sdk/credential-provider-node": "3.935.0",
25
25
  "@aws-sdk/middleware-host-header": "3.930.0",
26
26
  "@aws-sdk/middleware-logger": "3.930.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.933.0",
28
- "@aws-sdk/middleware-user-agent": "3.934.0",
28
+ "@aws-sdk/middleware-user-agent": "3.935.0",
29
29
  "@aws-sdk/region-config-resolver": "3.930.0",
30
30
  "@aws-sdk/types": "3.930.0",
31
31
  "@aws-sdk/util-endpoints": "3.930.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.930.0",
33
- "@aws-sdk/util-user-agent-node": "3.934.0",
33
+ "@aws-sdk/util-user-agent-node": "3.935.0",
34
34
  "@smithy/config-resolver": "^4.4.3",
35
- "@smithy/core": "^3.18.2",
35
+ "@smithy/core": "^3.18.5",
36
36
  "@smithy/fetch-http-handler": "^5.3.6",
37
37
  "@smithy/hash-node": "^4.2.5",
38
38
  "@smithy/invalid-dependency": "^4.2.5",
39
39
  "@smithy/middleware-content-length": "^4.2.5",
40
- "@smithy/middleware-endpoint": "^4.3.9",
41
- "@smithy/middleware-retry": "^4.4.9",
42
- "@smithy/middleware-serde": "^4.2.5",
40
+ "@smithy/middleware-endpoint": "^4.3.12",
41
+ "@smithy/middleware-retry": "^4.4.12",
42
+ "@smithy/middleware-serde": "^4.2.6",
43
43
  "@smithy/middleware-stack": "^4.2.5",
44
44
  "@smithy/node-config-provider": "^4.3.5",
45
45
  "@smithy/node-http-handler": "^4.4.5",
46
46
  "@smithy/protocol-http": "^5.3.5",
47
- "@smithy/smithy-client": "^4.9.5",
47
+ "@smithy/smithy-client": "^4.9.8",
48
48
  "@smithy/types": "^4.9.0",
49
49
  "@smithy/url-parser": "^4.2.5",
50
50
  "@smithy/util-base64": "^4.3.0",
51
51
  "@smithy/util-body-length-browser": "^4.2.0",
52
52
  "@smithy/util-body-length-node": "^4.2.1",
53
- "@smithy/util-defaults-mode-browser": "^4.3.8",
54
- "@smithy/util-defaults-mode-node": "^4.2.11",
53
+ "@smithy/util-defaults-mode-browser": "^4.3.11",
54
+ "@smithy/util-defaults-mode-node": "^4.2.14",
55
55
  "@smithy/util-endpoints": "^3.2.5",
56
56
  "@smithy/util-middleware": "^4.2.5",
57
57
  "@smithy/util-retry": "^4.2.5",
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";