@aws-sdk/client-route53-recovery-cluster 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.
@@ -1,22 +1,22 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { Route53RecoveryClusterServiceException as __BaseException } from "./Route53RecoveryClusterServiceException";
2
3
  /**
3
4
  * <p>You don't have sufficient permissions to query the routing control state.</p>
4
5
  */
5
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
6
- name: "AccessDeniedException";
7
- $fault: "client";
8
- message: string | undefined;
6
+ export declare class AccessDeniedException extends __BaseException {
7
+ readonly name: "AccessDeniedException";
8
+ readonly $fault: "client";
9
+ /**
10
+ * @internal
11
+ */
12
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
9
13
  }
10
14
  /**
11
15
  * <p>There was a conflict with this request. Try again.</p>
12
16
  */
13
- export interface ConflictException extends __SmithyException, $MetadataBearer {
14
- name: "ConflictException";
15
- $fault: "client";
16
- /**
17
- * Description of the ConflictException error
18
- */
19
- message: string | undefined;
17
+ export declare class ConflictException extends __BaseException {
18
+ readonly name: "ConflictException";
19
+ readonly $fault: "client";
20
20
  /**
21
21
  * Identifier of the resource in use
22
22
  */
@@ -25,14 +25,21 @@ export interface ConflictException extends __SmithyException, $MetadataBearer {
25
25
  * Type of the resource in use
26
26
  */
27
27
  resourceType: string | undefined;
28
+ /**
29
+ * @internal
30
+ */
31
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
28
32
  }
29
33
  /**
30
34
  * <p>The cluster endpoint isn't available. Try another cluster endpoint.</p>
31
35
  */
32
- export interface EndpointTemporarilyUnavailableException extends __SmithyException, $MetadataBearer {
33
- name: "EndpointTemporarilyUnavailableException";
34
- $fault: "server";
35
- message: string | undefined;
36
+ export declare class EndpointTemporarilyUnavailableException extends __BaseException {
37
+ readonly name: "EndpointTemporarilyUnavailableException";
38
+ readonly $fault: "server";
39
+ /**
40
+ * @internal
41
+ */
42
+ constructor(opts: __ExceptionOptionType<EndpointTemporarilyUnavailableException, __BaseException>);
36
43
  }
37
44
  export interface GetRoutingControlStateRequest {
38
45
  /**
@@ -69,22 +76,24 @@ export declare namespace GetRoutingControlStateResponse {
69
76
  /**
70
77
  * <p>There was an unexpected error during processing of the request.</p>
71
78
  */
72
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
73
- name: "InternalServerException";
74
- $fault: "server";
75
- message: string | undefined;
79
+ export declare class InternalServerException extends __BaseException {
80
+ readonly name: "InternalServerException";
81
+ readonly $fault: "server";
76
82
  /**
77
83
  * Advice to clients on when the call can be safely retried
78
84
  */
79
85
  retryAfterSeconds?: number;
86
+ /**
87
+ * @internal
88
+ */
89
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
80
90
  }
81
91
  /**
82
92
  * <p>The request references a routing control that was not found.</p>
83
93
  */
84
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
85
- name: "ResourceNotFoundException";
86
- $fault: "client";
87
- message: string | undefined;
94
+ export declare class ResourceNotFoundException extends __BaseException {
95
+ readonly name: "ResourceNotFoundException";
96
+ readonly $fault: "client";
88
97
  /**
89
98
  * Hypothetical resource identifier that was not found
90
99
  */
@@ -93,18 +102,25 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
93
102
  * Hypothetical resource type that was not found
94
103
  */
95
104
  resourceType: string | undefined;
105
+ /**
106
+ * @internal
107
+ */
108
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
96
109
  }
97
110
  /**
98
111
  * <p>The request was denied because of request throttling.</p>
99
112
  */
100
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
101
- name: "ThrottlingException";
102
- $fault: "client";
103
- message: string | undefined;
113
+ export declare class ThrottlingException extends __BaseException {
114
+ readonly name: "ThrottlingException";
115
+ readonly $fault: "client";
104
116
  /**
105
117
  * Advice to clients on when the call can be safely retried
106
118
  */
107
119
  retryAfterSeconds?: number;
120
+ /**
121
+ * @internal
122
+ */
123
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
108
124
  }
109
125
  /**
110
126
  * <p>There was a validation error on the request.</p>
@@ -134,10 +150,9 @@ export declare enum ValidationExceptionReason {
134
150
  /**
135
151
  * <p>There was a validation error on the request.</p>
136
152
  */
137
- export interface ValidationException extends __SmithyException, $MetadataBearer {
138
- name: "ValidationException";
139
- $fault: "client";
140
- message: string | undefined;
153
+ export declare class ValidationException extends __BaseException {
154
+ readonly name: "ValidationException";
155
+ readonly $fault: "client";
141
156
  /**
142
157
  * Reason the request failed validation
143
158
  */
@@ -146,6 +161,10 @@ export interface ValidationException extends __SmithyException, $MetadataBearer
146
161
  * The fields that caused the error, if applicable
147
162
  */
148
163
  fields?: ValidationExceptionField[];
164
+ /**
165
+ * @internal
166
+ */
167
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
149
168
  }
150
169
  export interface UpdateRoutingControlStateRequest {
151
170
  /**
@@ -2,3 +2,4 @@ export * from "./Route53RecoveryCluster";
2
2
  export * from "./Route53RecoveryClusterClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export { Route53RecoveryClusterServiceException } from "./models/Route53RecoveryClusterServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class Route53RecoveryClusterServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,26 +1,29 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { Route53RecoveryClusterServiceException as __BaseException } from "./Route53RecoveryClusterServiceException";
2
3
 
3
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
4
- name: "AccessDeniedException";
5
- $fault: "client";
6
- message: string | undefined;
4
+ export declare class AccessDeniedException extends __BaseException {
5
+ readonly name: "AccessDeniedException";
6
+ readonly $fault: "client";
7
+
8
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
7
9
  }
8
10
 
9
- export interface ConflictException extends __SmithyException, $MetadataBearer {
10
- name: "ConflictException";
11
- $fault: "client";
12
-
13
- message: string | undefined;
11
+ export declare class ConflictException extends __BaseException {
12
+ readonly name: "ConflictException";
13
+ readonly $fault: "client";
14
14
 
15
15
  resourceId: string | undefined;
16
16
 
17
17
  resourceType: string | undefined;
18
+
19
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
18
20
  }
19
21
 
20
- export interface EndpointTemporarilyUnavailableException extends __SmithyException, $MetadataBearer {
21
- name: "EndpointTemporarilyUnavailableException";
22
- $fault: "server";
23
- message: string | undefined;
22
+ export declare class EndpointTemporarilyUnavailableException extends __BaseException {
23
+ readonly name: "EndpointTemporarilyUnavailableException";
24
+ readonly $fault: "server";
25
+
26
+ constructor(opts: __ExceptionOptionType<EndpointTemporarilyUnavailableException, __BaseException>);
24
27
  }
25
28
  export interface GetRoutingControlStateRequest {
26
29
 
@@ -45,30 +48,33 @@ export declare namespace GetRoutingControlStateResponse {
45
48
  const filterSensitiveLog: (obj: GetRoutingControlStateResponse) => any;
46
49
  }
47
50
 
48
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
49
- name: "InternalServerException";
50
- $fault: "server";
51
- message: string | undefined;
51
+ export declare class InternalServerException extends __BaseException {
52
+ readonly name: "InternalServerException";
53
+ readonly $fault: "server";
52
54
 
53
55
  retryAfterSeconds?: number;
56
+
57
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
54
58
  }
55
59
 
56
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
57
- name: "ResourceNotFoundException";
58
- $fault: "client";
59
- message: string | undefined;
60
+ export declare class ResourceNotFoundException extends __BaseException {
61
+ readonly name: "ResourceNotFoundException";
62
+ readonly $fault: "client";
60
63
 
61
64
  resourceId: string | undefined;
62
65
 
63
66
  resourceType: string | undefined;
67
+
68
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
64
69
  }
65
70
 
66
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
67
- name: "ThrottlingException";
68
- $fault: "client";
69
- message: string | undefined;
71
+ export declare class ThrottlingException extends __BaseException {
72
+ readonly name: "ThrottlingException";
73
+ readonly $fault: "client";
70
74
 
71
75
  retryAfterSeconds?: number;
76
+
77
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
72
78
  }
73
79
 
74
80
  export interface ValidationExceptionField {
@@ -88,14 +94,15 @@ export declare enum ValidationExceptionReason {
88
94
  UNKNOWN_OPERATION = "unknownOperation"
89
95
  }
90
96
 
91
- export interface ValidationException extends __SmithyException, $MetadataBearer {
92
- name: "ValidationException";
93
- $fault: "client";
94
- message: string | undefined;
97
+ export declare class ValidationException extends __BaseException {
98
+ readonly name: "ValidationException";
99
+ readonly $fault: "client";
95
100
 
96
101
  reason?: ValidationExceptionReason | string;
97
102
 
98
103
  fields?: ValidationExceptionField[];
104
+
105
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
99
106
  }
100
107
  export interface UpdateRoutingControlStateRequest {
101
108
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-route53-recovery-cluster",
3
3
  "description": "AWS SDK for JavaScript Route53 Recovery Cluster 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,34 +18,34 @@
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-host-header": "3.52.0",
29
- "@aws-sdk/middleware-logger": "3.52.0",
30
- "@aws-sdk/middleware-retry": "3.52.0",
31
- "@aws-sdk/middleware-serde": "3.52.0",
32
- "@aws-sdk/middleware-signing": "3.52.0",
33
- "@aws-sdk/middleware-stack": "3.52.0",
34
- "@aws-sdk/middleware-user-agent": "3.52.0",
35
- "@aws-sdk/node-config-provider": "3.52.0",
36
- "@aws-sdk/node-http-handler": "3.52.0",
37
- "@aws-sdk/protocol-http": "3.52.0",
38
- "@aws-sdk/smithy-client": "3.52.0",
39
- "@aws-sdk/types": "3.52.0",
40
- "@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-host-header": "3.53.0",
29
+ "@aws-sdk/middleware-logger": "3.53.0",
30
+ "@aws-sdk/middleware-retry": "3.53.0",
31
+ "@aws-sdk/middleware-serde": "3.53.0",
32
+ "@aws-sdk/middleware-signing": "3.53.0",
33
+ "@aws-sdk/middleware-stack": "3.53.0",
34
+ "@aws-sdk/middleware-user-agent": "3.53.0",
35
+ "@aws-sdk/node-config-provider": "3.53.0",
36
+ "@aws-sdk/node-http-handler": "3.53.0",
37
+ "@aws-sdk/protocol-http": "3.53.0",
38
+ "@aws-sdk/smithy-client": "3.53.0",
39
+ "@aws-sdk/types": "3.53.0",
40
+ "@aws-sdk/url-parser": "3.53.0",
41
41
  "@aws-sdk/util-base64-browser": "3.52.0",
42
42
  "@aws-sdk/util-base64-node": "3.52.0",
43
43
  "@aws-sdk/util-body-length-browser": "3.52.0",
44
44
  "@aws-sdk/util-body-length-node": "3.52.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.52.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.52.0",
47
- "@aws-sdk/util-user-agent-browser": "3.52.0",
48
- "@aws-sdk/util-user-agent-node": "3.52.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.53.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.53.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.53.0",
48
+ "@aws-sdk/util-user-agent-node": "3.53.0",
49
49
  "@aws-sdk/util-utf8-browser": "3.52.0",
50
50
  "@aws-sdk/util-utf8-node": "3.52.0",
51
51
  "tslib": "^2.3.0"