@aws-sdk/client-timestream-query 3.52.0 → 3.53.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.
@@ -3,3 +3,4 @@ export * from "./TimestreamQueryClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { TimestreamQueryServiceException } from "./models/TimestreamQueryServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from TimestreamQuery service.
4
+ */
5
+ export declare class TimestreamQueryServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,11 +1,16 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { TimestreamQueryServiceException as __BaseException } from "./TimestreamQueryServiceException";
2
3
  /**
3
4
  * <p> You are not authorized to perform this action. </p>
4
5
  */
5
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
6
- name: "AccessDeniedException";
7
- $fault: "client";
6
+ export declare class AccessDeniedException extends __BaseException {
7
+ readonly name: "AccessDeniedException";
8
+ readonly $fault: "client";
8
9
  Message?: string;
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
9
14
  }
10
15
  export interface CancelQueryRequest {
11
16
  /**
@@ -38,34 +43,50 @@ export declare namespace CancelQueryResponse {
38
43
  * Timestream was unable to fully process this request because of an internal
39
44
  * server error. </p>
40
45
  */
41
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
42
- name: "InternalServerException";
43
- $fault: "server";
46
+ export declare class InternalServerException extends __BaseException {
47
+ readonly name: "InternalServerException";
48
+ readonly $fault: "server";
44
49
  Message?: string;
50
+ /**
51
+ * @internal
52
+ */
53
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
45
54
  }
46
55
  /**
47
56
  * <p>The requested endpoint was not valid.</p>
48
57
  */
49
- export interface InvalidEndpointException extends __SmithyException, $MetadataBearer {
50
- name: "InvalidEndpointException";
51
- $fault: "client";
58
+ export declare class InvalidEndpointException extends __BaseException {
59
+ readonly name: "InvalidEndpointException";
60
+ readonly $fault: "client";
52
61
  Message?: string;
62
+ /**
63
+ * @internal
64
+ */
65
+ constructor(opts: __ExceptionOptionType<InvalidEndpointException, __BaseException>);
53
66
  }
54
67
  /**
55
68
  * <p>The request was denied due to request throttling.</p>
56
69
  */
57
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
58
- name: "ThrottlingException";
59
- $fault: "client";
70
+ export declare class ThrottlingException extends __BaseException {
71
+ readonly name: "ThrottlingException";
72
+ readonly $fault: "client";
60
73
  Message?: string;
74
+ /**
75
+ * @internal
76
+ */
77
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
61
78
  }
62
79
  /**
63
80
  * <p> Invalid or malformed request. </p>
64
81
  */
65
- export interface ValidationException extends __SmithyException, $MetadataBearer {
66
- name: "ValidationException";
67
- $fault: "client";
82
+ export declare class ValidationException extends __BaseException {
83
+ readonly name: "ValidationException";
84
+ readonly $fault: "client";
68
85
  Message?: string;
86
+ /**
87
+ * @internal
88
+ */
89
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
69
90
  }
70
91
  export declare enum ScalarType {
71
92
  BIGINT = "BIGINT",
@@ -83,10 +104,14 @@ export declare enum ScalarType {
83
104
  /**
84
105
  * <p> Unable to poll results for a cancelled query. </p>
85
106
  */
86
- export interface ConflictException extends __SmithyException, $MetadataBearer {
87
- name: "ConflictException";
88
- $fault: "client";
107
+ export declare class ConflictException extends __BaseException {
108
+ readonly name: "ConflictException";
109
+ readonly $fault: "client";
89
110
  Message?: string;
111
+ /**
112
+ * @internal
113
+ */
114
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
90
115
  }
91
116
  export declare enum S3EncryptionOption {
92
117
  SSE_KMS = "SSE_KMS",
@@ -468,10 +493,14 @@ export declare namespace CreateScheduledQueryResponse {
468
493
  /**
469
494
  * <p>You have exceeded the service quota.</p>
470
495
  */
471
- export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
472
- name: "ServiceQuotaExceededException";
473
- $fault: "client";
496
+ export declare class ServiceQuotaExceededException extends __BaseException {
497
+ readonly name: "ServiceQuotaExceededException";
498
+ readonly $fault: "client";
474
499
  Message?: string;
500
+ /**
501
+ * @internal
502
+ */
503
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
475
504
  }
476
505
  export interface DeleteScheduledQueryRequest {
477
506
  /**
@@ -488,14 +517,18 @@ export declare namespace DeleteScheduledQueryRequest {
488
517
  /**
489
518
  * <p>The requested resource could not be found.</p>
490
519
  */
491
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
492
- name: "ResourceNotFoundException";
493
- $fault: "client";
520
+ export declare class ResourceNotFoundException extends __BaseException {
521
+ readonly name: "ResourceNotFoundException";
522
+ readonly $fault: "client";
494
523
  Message?: string;
495
524
  /**
496
525
  * <p>The ARN of the scheduled query.</p>
497
526
  */
498
527
  ScheduledQueryArn?: string;
528
+ /**
529
+ * @internal
530
+ */
531
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
499
532
  }
500
533
  export interface DescribeEndpointsRequest {
501
534
  }
@@ -947,10 +980,14 @@ export declare namespace PrepareQueryRequest {
947
980
  * <p>
948
981
  * Timestream was unable to run the query successfully. </p>
949
982
  */
950
- export interface QueryExecutionException extends __SmithyException, $MetadataBearer {
951
- name: "QueryExecutionException";
952
- $fault: "client";
983
+ export declare class QueryExecutionException extends __BaseException {
984
+ readonly name: "QueryExecutionException";
985
+ readonly $fault: "client";
953
986
  Message?: string;
987
+ /**
988
+ * @internal
989
+ */
990
+ constructor(opts: __ExceptionOptionType<QueryExecutionException, __BaseException>);
954
991
  }
955
992
  export interface QueryRequest {
956
993
  /**
@@ -3,3 +3,4 @@ export * from "./TimestreamQueryClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { TimestreamQueryServiceException } from "./models/TimestreamQueryServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class TimestreamQueryServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,9 +1,12 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { TimestreamQueryServiceException as __BaseException } from "./TimestreamQueryServiceException";
2
3
 
3
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
4
- name: "AccessDeniedException";
5
- $fault: "client";
4
+ export declare class AccessDeniedException extends __BaseException {
5
+ readonly name: "AccessDeniedException";
6
+ readonly $fault: "client";
6
7
  Message?: string;
8
+
9
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
7
10
  }
8
11
  export interface CancelQueryRequest {
9
12
 
@@ -22,28 +25,36 @@ export declare namespace CancelQueryResponse {
22
25
  const filterSensitiveLog: (obj: CancelQueryResponse) => any;
23
26
  }
24
27
 
25
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
26
- name: "InternalServerException";
27
- $fault: "server";
28
+ export declare class InternalServerException extends __BaseException {
29
+ readonly name: "InternalServerException";
30
+ readonly $fault: "server";
28
31
  Message?: string;
32
+
33
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
29
34
  }
30
35
 
31
- export interface InvalidEndpointException extends __SmithyException, $MetadataBearer {
32
- name: "InvalidEndpointException";
33
- $fault: "client";
36
+ export declare class InvalidEndpointException extends __BaseException {
37
+ readonly name: "InvalidEndpointException";
38
+ readonly $fault: "client";
34
39
  Message?: string;
40
+
41
+ constructor(opts: __ExceptionOptionType<InvalidEndpointException, __BaseException>);
35
42
  }
36
43
 
37
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
38
- name: "ThrottlingException";
39
- $fault: "client";
44
+ export declare class ThrottlingException extends __BaseException {
45
+ readonly name: "ThrottlingException";
46
+ readonly $fault: "client";
40
47
  Message?: string;
48
+
49
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
41
50
  }
42
51
 
43
- export interface ValidationException extends __SmithyException, $MetadataBearer {
44
- name: "ValidationException";
45
- $fault: "client";
52
+ export declare class ValidationException extends __BaseException {
53
+ readonly name: "ValidationException";
54
+ readonly $fault: "client";
46
55
  Message?: string;
56
+
57
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
47
58
  }
48
59
  export declare enum ScalarType {
49
60
  BIGINT = "BIGINT",
@@ -59,10 +70,12 @@ export declare enum ScalarType {
59
70
  VARCHAR = "VARCHAR"
60
71
  }
61
72
 
62
- export interface ConflictException extends __SmithyException, $MetadataBearer {
63
- name: "ConflictException";
64
- $fault: "client";
73
+ export declare class ConflictException extends __BaseException {
74
+ readonly name: "ConflictException";
75
+ readonly $fault: "client";
65
76
  Message?: string;
77
+
78
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
66
79
  }
67
80
  export declare enum S3EncryptionOption {
68
81
  SSE_KMS = "SSE_KMS",
@@ -261,10 +274,12 @@ export declare namespace CreateScheduledQueryResponse {
261
274
  const filterSensitiveLog: (obj: CreateScheduledQueryResponse) => any;
262
275
  }
263
276
 
264
- export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
265
- name: "ServiceQuotaExceededException";
266
- $fault: "client";
277
+ export declare class ServiceQuotaExceededException extends __BaseException {
278
+ readonly name: "ServiceQuotaExceededException";
279
+ readonly $fault: "client";
267
280
  Message?: string;
281
+
282
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
268
283
  }
269
284
  export interface DeleteScheduledQueryRequest {
270
285
 
@@ -275,12 +290,14 @@ export declare namespace DeleteScheduledQueryRequest {
275
290
  const filterSensitiveLog: (obj: DeleteScheduledQueryRequest) => any;
276
291
  }
277
292
 
278
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
279
- name: "ResourceNotFoundException";
280
- $fault: "client";
293
+ export declare class ResourceNotFoundException extends __BaseException {
294
+ readonly name: "ResourceNotFoundException";
295
+ readonly $fault: "client";
281
296
  Message?: string;
282
297
 
283
298
  ScheduledQueryArn?: string;
299
+
300
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
284
301
  }
285
302
  export interface DescribeEndpointsRequest {
286
303
  }
@@ -536,10 +553,12 @@ export declare namespace PrepareQueryRequest {
536
553
  const filterSensitiveLog: (obj: PrepareQueryRequest) => any;
537
554
  }
538
555
 
539
- export interface QueryExecutionException extends __SmithyException, $MetadataBearer {
540
- name: "QueryExecutionException";
541
- $fault: "client";
556
+ export declare class QueryExecutionException extends __BaseException {
557
+ readonly name: "QueryExecutionException";
558
+ readonly $fault: "client";
542
559
  Message?: string;
560
+
561
+ constructor(opts: __ExceptionOptionType<QueryExecutionException, __BaseException>);
543
562
  }
544
563
  export interface QueryRequest {
545
564
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-timestream-query",
3
3
  "description": "AWS SDK for JavaScript Timestream Query Client for Node.js, Browser and React Native",
4
- "version": "3.52.0",
4
+ "version": "3.53.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",
@@ -18,35 +18,35 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.52.0",
22
- "@aws-sdk/config-resolver": "3.52.0",
23
- "@aws-sdk/credential-provider-node": "3.52.0",
24
- "@aws-sdk/fetch-http-handler": "3.52.0",
25
- "@aws-sdk/hash-node": "3.52.0",
26
- "@aws-sdk/invalid-dependency": "3.52.0",
27
- "@aws-sdk/middleware-content-length": "3.52.0",
28
- "@aws-sdk/middleware-endpoint-discovery": "3.52.0",
29
- "@aws-sdk/middleware-host-header": "3.52.0",
30
- "@aws-sdk/middleware-logger": "3.52.0",
31
- "@aws-sdk/middleware-retry": "3.52.0",
32
- "@aws-sdk/middleware-serde": "3.52.0",
33
- "@aws-sdk/middleware-signing": "3.52.0",
34
- "@aws-sdk/middleware-stack": "3.52.0",
35
- "@aws-sdk/middleware-user-agent": "3.52.0",
36
- "@aws-sdk/node-config-provider": "3.52.0",
37
- "@aws-sdk/node-http-handler": "3.52.0",
38
- "@aws-sdk/protocol-http": "3.52.0",
39
- "@aws-sdk/smithy-client": "3.52.0",
40
- "@aws-sdk/types": "3.52.0",
41
- "@aws-sdk/url-parser": "3.52.0",
21
+ "@aws-sdk/client-sts": "3.53.0",
22
+ "@aws-sdk/config-resolver": "3.53.0",
23
+ "@aws-sdk/credential-provider-node": "3.53.0",
24
+ "@aws-sdk/fetch-http-handler": "3.53.0",
25
+ "@aws-sdk/hash-node": "3.53.0",
26
+ "@aws-sdk/invalid-dependency": "3.53.0",
27
+ "@aws-sdk/middleware-content-length": "3.53.0",
28
+ "@aws-sdk/middleware-endpoint-discovery": "3.53.0",
29
+ "@aws-sdk/middleware-host-header": "3.53.0",
30
+ "@aws-sdk/middleware-logger": "3.53.0",
31
+ "@aws-sdk/middleware-retry": "3.53.0",
32
+ "@aws-sdk/middleware-serde": "3.53.0",
33
+ "@aws-sdk/middleware-signing": "3.53.0",
34
+ "@aws-sdk/middleware-stack": "3.53.0",
35
+ "@aws-sdk/middleware-user-agent": "3.53.0",
36
+ "@aws-sdk/node-config-provider": "3.53.0",
37
+ "@aws-sdk/node-http-handler": "3.53.0",
38
+ "@aws-sdk/protocol-http": "3.53.0",
39
+ "@aws-sdk/smithy-client": "3.53.0",
40
+ "@aws-sdk/types": "3.53.0",
41
+ "@aws-sdk/url-parser": "3.53.0",
42
42
  "@aws-sdk/util-base64-browser": "3.52.0",
43
43
  "@aws-sdk/util-base64-node": "3.52.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.52.0",
45
45
  "@aws-sdk/util-body-length-node": "3.52.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.52.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.52.0",
48
- "@aws-sdk/util-user-agent-browser": "3.52.0",
49
- "@aws-sdk/util-user-agent-node": "3.52.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.53.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.53.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.53.0",
49
+ "@aws-sdk/util-user-agent-node": "3.53.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.52.0",
51
51
  "@aws-sdk/util-utf8-node": "3.52.0",
52
52
  "tslib": "^2.3.0",