@aws-sdk/client-route53-recovery-cluster 3.933.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
@@ -157,10 +157,6 @@ let EndpointTemporarilyUnavailableException$1 = class EndpointTemporarilyUnavail
157
157
  Object.setPrototypeOf(this, EndpointTemporarilyUnavailableException.prototype);
158
158
  }
159
159
  };
160
- const RoutingControlState = {
161
- Off: "Off",
162
- On: "On",
163
- };
164
160
  let InternalServerException$1 = class InternalServerException extends Route53RecoveryClusterServiceException$1 {
165
161
  name = "InternalServerException";
166
162
  $fault = "server";
@@ -205,12 +201,6 @@ let ThrottlingException$1 = class ThrottlingException extends Route53RecoveryClu
205
201
  this.retryAfterSeconds = opts.retryAfterSeconds;
206
202
  }
207
203
  };
208
- const ValidationExceptionReason = {
209
- CANNOT_PARSE: "cannotParse",
210
- FIELD_VALIDATION_FAILED: "fieldValidationFailed",
211
- OTHER: "other",
212
- UNKNOWN_OPERATION: "unknownOperation",
213
- };
214
204
  let ValidationException$1 = class ValidationException extends Route53RecoveryClusterServiceException$1 {
215
205
  name = "ValidationException";
216
206
  $fault = "client";
@@ -562,6 +552,17 @@ smithyClient.createAggregatedClient(commands, Route53RecoveryCluster);
562
552
 
563
553
  const paginateListRoutingControls = core.createPaginator(Route53RecoveryClusterClient, ListRoutingControlsCommand, "NextToken", "NextToken", "MaxResults");
564
554
 
555
+ const RoutingControlState = {
556
+ Off: "Off",
557
+ On: "On",
558
+ };
559
+ const ValidationExceptionReason = {
560
+ CANNOT_PARSE: "cannotParse",
561
+ FIELD_VALIDATION_FAILED: "fieldValidationFailed",
562
+ OTHER: "other",
563
+ UNKNOWN_OPERATION: "unknownOperation",
564
+ };
565
+
565
566
  Object.defineProperty(exports, "$Command", {
566
567
  enumerable: true,
567
568
  get: function () { return smithyClient.Command; }
package/dist-es/index.js CHANGED
@@ -2,5 +2,6 @@ export * from "./Route53RecoveryClusterClient";
2
2
  export * from "./Route53RecoveryCluster";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
- export * from "./models";
5
+ export * from "./models/enums";
6
+ export * from "./models/errors";
6
7
  export { Route53RecoveryClusterServiceException } from "./models/Route53RecoveryClusterServiceException";
@@ -0,0 +1,10 @@
1
+ export const RoutingControlState = {
2
+ Off: "Off",
3
+ On: "On",
4
+ };
5
+ export const ValidationExceptionReason = {
6
+ CANNOT_PARSE: "cannotParse",
7
+ FIELD_VALIDATION_FAILED: "fieldValidationFailed",
8
+ OTHER: "other",
9
+ UNKNOWN_OPERATION: "unknownOperation",
10
+ };
@@ -0,0 +1,121 @@
1
+ import { Route53RecoveryClusterServiceException as __BaseException } from "./Route53RecoveryClusterServiceException";
2
+ export class AccessDeniedException extends __BaseException {
3
+ name = "AccessDeniedException";
4
+ $fault = "client";
5
+ constructor(opts) {
6
+ super({
7
+ name: "AccessDeniedException",
8
+ $fault: "client",
9
+ ...opts,
10
+ });
11
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
+ }
13
+ }
14
+ export class ConflictException extends __BaseException {
15
+ name = "ConflictException";
16
+ $fault = "client";
17
+ resourceId;
18
+ resourceType;
19
+ constructor(opts) {
20
+ super({
21
+ name: "ConflictException",
22
+ $fault: "client",
23
+ ...opts,
24
+ });
25
+ Object.setPrototypeOf(this, ConflictException.prototype);
26
+ this.resourceId = opts.resourceId;
27
+ this.resourceType = opts.resourceType;
28
+ }
29
+ }
30
+ export class EndpointTemporarilyUnavailableException extends __BaseException {
31
+ name = "EndpointTemporarilyUnavailableException";
32
+ $fault = "server";
33
+ constructor(opts) {
34
+ super({
35
+ name: "EndpointTemporarilyUnavailableException",
36
+ $fault: "server",
37
+ ...opts,
38
+ });
39
+ Object.setPrototypeOf(this, EndpointTemporarilyUnavailableException.prototype);
40
+ }
41
+ }
42
+ export class InternalServerException extends __BaseException {
43
+ name = "InternalServerException";
44
+ $fault = "server";
45
+ retryAfterSeconds;
46
+ constructor(opts) {
47
+ super({
48
+ name: "InternalServerException",
49
+ $fault: "server",
50
+ ...opts,
51
+ });
52
+ Object.setPrototypeOf(this, InternalServerException.prototype);
53
+ this.retryAfterSeconds = opts.retryAfterSeconds;
54
+ }
55
+ }
56
+ export class ResourceNotFoundException extends __BaseException {
57
+ name = "ResourceNotFoundException";
58
+ $fault = "client";
59
+ resourceId;
60
+ resourceType;
61
+ constructor(opts) {
62
+ super({
63
+ name: "ResourceNotFoundException",
64
+ $fault: "client",
65
+ ...opts,
66
+ });
67
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
68
+ this.resourceId = opts.resourceId;
69
+ this.resourceType = opts.resourceType;
70
+ }
71
+ }
72
+ export class ThrottlingException extends __BaseException {
73
+ name = "ThrottlingException";
74
+ $fault = "client";
75
+ retryAfterSeconds;
76
+ constructor(opts) {
77
+ super({
78
+ name: "ThrottlingException",
79
+ $fault: "client",
80
+ ...opts,
81
+ });
82
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
83
+ this.retryAfterSeconds = opts.retryAfterSeconds;
84
+ }
85
+ }
86
+ export class ValidationException extends __BaseException {
87
+ name = "ValidationException";
88
+ $fault = "client";
89
+ reason;
90
+ fields;
91
+ constructor(opts) {
92
+ super({
93
+ name: "ValidationException",
94
+ $fault: "client",
95
+ ...opts,
96
+ });
97
+ Object.setPrototypeOf(this, ValidationException.prototype);
98
+ this.reason = opts.reason;
99
+ this.fields = opts.fields;
100
+ }
101
+ }
102
+ export class ServiceLimitExceededException extends __BaseException {
103
+ name = "ServiceLimitExceededException";
104
+ $fault = "client";
105
+ resourceId;
106
+ resourceType;
107
+ limitCode;
108
+ serviceCode;
109
+ constructor(opts) {
110
+ super({
111
+ name: "ServiceLimitExceededException",
112
+ $fault: "client",
113
+ ...opts,
114
+ });
115
+ Object.setPrototypeOf(this, ServiceLimitExceededException.prototype);
116
+ this.resourceId = opts.resourceId;
117
+ this.resourceType = opts.resourceType;
118
+ this.limitCode = opts.limitCode;
119
+ this.serviceCode = opts.serviceCode;
120
+ }
121
+ }
@@ -1,131 +1 @@
1
- import { Route53RecoveryClusterServiceException as __BaseException } from "./Route53RecoveryClusterServiceException";
2
- export class AccessDeniedException extends __BaseException {
3
- name = "AccessDeniedException";
4
- $fault = "client";
5
- constructor(opts) {
6
- super({
7
- name: "AccessDeniedException",
8
- $fault: "client",
9
- ...opts,
10
- });
11
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
- }
13
- }
14
- export class ConflictException extends __BaseException {
15
- name = "ConflictException";
16
- $fault = "client";
17
- resourceId;
18
- resourceType;
19
- constructor(opts) {
20
- super({
21
- name: "ConflictException",
22
- $fault: "client",
23
- ...opts,
24
- });
25
- Object.setPrototypeOf(this, ConflictException.prototype);
26
- this.resourceId = opts.resourceId;
27
- this.resourceType = opts.resourceType;
28
- }
29
- }
30
- export class EndpointTemporarilyUnavailableException extends __BaseException {
31
- name = "EndpointTemporarilyUnavailableException";
32
- $fault = "server";
33
- constructor(opts) {
34
- super({
35
- name: "EndpointTemporarilyUnavailableException",
36
- $fault: "server",
37
- ...opts,
38
- });
39
- Object.setPrototypeOf(this, EndpointTemporarilyUnavailableException.prototype);
40
- }
41
- }
42
- export const RoutingControlState = {
43
- Off: "Off",
44
- On: "On",
45
- };
46
- export class InternalServerException extends __BaseException {
47
- name = "InternalServerException";
48
- $fault = "server";
49
- retryAfterSeconds;
50
- constructor(opts) {
51
- super({
52
- name: "InternalServerException",
53
- $fault: "server",
54
- ...opts,
55
- });
56
- Object.setPrototypeOf(this, InternalServerException.prototype);
57
- this.retryAfterSeconds = opts.retryAfterSeconds;
58
- }
59
- }
60
- export class ResourceNotFoundException extends __BaseException {
61
- name = "ResourceNotFoundException";
62
- $fault = "client";
63
- resourceId;
64
- resourceType;
65
- constructor(opts) {
66
- super({
67
- name: "ResourceNotFoundException",
68
- $fault: "client",
69
- ...opts,
70
- });
71
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
72
- this.resourceId = opts.resourceId;
73
- this.resourceType = opts.resourceType;
74
- }
75
- }
76
- export class ThrottlingException extends __BaseException {
77
- name = "ThrottlingException";
78
- $fault = "client";
79
- retryAfterSeconds;
80
- constructor(opts) {
81
- super({
82
- name: "ThrottlingException",
83
- $fault: "client",
84
- ...opts,
85
- });
86
- Object.setPrototypeOf(this, ThrottlingException.prototype);
87
- this.retryAfterSeconds = opts.retryAfterSeconds;
88
- }
89
- }
90
- export const ValidationExceptionReason = {
91
- CANNOT_PARSE: "cannotParse",
92
- FIELD_VALIDATION_FAILED: "fieldValidationFailed",
93
- OTHER: "other",
94
- UNKNOWN_OPERATION: "unknownOperation",
95
- };
96
- export class ValidationException extends __BaseException {
97
- name = "ValidationException";
98
- $fault = "client";
99
- reason;
100
- fields;
101
- constructor(opts) {
102
- super({
103
- name: "ValidationException",
104
- $fault: "client",
105
- ...opts,
106
- });
107
- Object.setPrototypeOf(this, ValidationException.prototype);
108
- this.reason = opts.reason;
109
- this.fields = opts.fields;
110
- }
111
- }
112
- export class ServiceLimitExceededException extends __BaseException {
113
- name = "ServiceLimitExceededException";
114
- $fault = "client";
115
- resourceId;
116
- resourceType;
117
- limitCode;
118
- serviceCode;
119
- constructor(opts) {
120
- super({
121
- name: "ServiceLimitExceededException",
122
- $fault: "client",
123
- ...opts,
124
- });
125
- Object.setPrototypeOf(this, ServiceLimitExceededException.prototype);
126
- this.resourceId = opts.resourceId;
127
- this.resourceType = opts.resourceType;
128
- this.limitCode = opts.limitCode;
129
- this.serviceCode = opts.serviceCode;
130
- }
131
- }
1
+ export {};
@@ -51,7 +51,7 @@ const _sC = "serviceCode";
51
51
  const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.route53recoverycluster";
52
52
  const n0 = "com.amazonaws.route53recoverycluster";
53
53
  import { TypeRegistry } from "@smithy/core/schema";
54
- import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, EndpointTemporarilyUnavailableException as __EndpointTemporarilyUnavailableException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ServiceLimitExceededException as __ServiceLimitExceededException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/index";
54
+ import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, EndpointTemporarilyUnavailableException as __EndpointTemporarilyUnavailableException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ServiceLimitExceededException as __ServiceLimitExceededException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/errors";
55
55
  import { Route53RecoveryClusterServiceException as __Route53RecoveryClusterServiceException } from "../models/Route53RecoveryClusterServiceException";
56
56
  export var AccessDeniedException = [
57
57
  -3,
@@ -49,5 +49,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
49
49
  export type { Route53RecoveryClusterExtensionConfiguration } from "./extensionConfiguration";
50
50
  export * from "./commands";
51
51
  export * from "./pagination";
52
- export * from "./models";
52
+ export * from "./models/enums";
53
+ export * from "./models/errors";
54
+ export type * from "./models/models_0";
53
55
  export { Route53RecoveryClusterServiceException } from "./models/Route53RecoveryClusterServiceException";
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const RoutingControlState: {
6
+ readonly Off: "Off";
7
+ readonly On: "On";
8
+ };
9
+ /**
10
+ * @public
11
+ */
12
+ export type RoutingControlState = (typeof RoutingControlState)[keyof typeof RoutingControlState];
13
+ /**
14
+ * @public
15
+ * @enum
16
+ */
17
+ export declare const ValidationExceptionReason: {
18
+ readonly CANNOT_PARSE: "cannotParse";
19
+ readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
20
+ readonly OTHER: "other";
21
+ readonly UNKNOWN_OPERATION: "unknownOperation";
22
+ };
23
+ /**
24
+ * @public
25
+ */
26
+ export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
@@ -0,0 +1,160 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { ValidationExceptionReason } from "./enums";
3
+ import { ValidationExceptionField } from "./models_0";
4
+ import { Route53RecoveryClusterServiceException as __BaseException } from "./Route53RecoveryClusterServiceException";
5
+ /**
6
+ * <p>You don't have sufficient permissions to perform this action.</p>
7
+ * @public
8
+ */
9
+ export declare class AccessDeniedException extends __BaseException {
10
+ readonly name: "AccessDeniedException";
11
+ readonly $fault: "client";
12
+ /**
13
+ * @internal
14
+ */
15
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
16
+ }
17
+ /**
18
+ * <p>There was a conflict with this request. Try again.</p>
19
+ * @public
20
+ */
21
+ export declare class ConflictException extends __BaseException {
22
+ readonly name: "ConflictException";
23
+ readonly $fault: "client";
24
+ /**
25
+ * Identifier of the resource in use
26
+ * @public
27
+ */
28
+ resourceId: string | undefined;
29
+ /**
30
+ * Type of the resource in use
31
+ * @public
32
+ */
33
+ resourceType: string | undefined;
34
+ /**
35
+ * @internal
36
+ */
37
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
38
+ }
39
+ /**
40
+ * <p>The cluster endpoint isn't available. Try another cluster endpoint.</p>
41
+ * @public
42
+ */
43
+ export declare class EndpointTemporarilyUnavailableException extends __BaseException {
44
+ readonly name: "EndpointTemporarilyUnavailableException";
45
+ readonly $fault: "server";
46
+ /**
47
+ * @internal
48
+ */
49
+ constructor(opts: __ExceptionOptionType<EndpointTemporarilyUnavailableException, __BaseException>);
50
+ }
51
+ /**
52
+ * <p>There was an unexpected error during processing of the request.</p>
53
+ * @public
54
+ */
55
+ export declare class InternalServerException extends __BaseException {
56
+ readonly name: "InternalServerException";
57
+ readonly $fault: "server";
58
+ /**
59
+ * Advice to clients on when the call can be safely retried
60
+ * @public
61
+ */
62
+ retryAfterSeconds?: number | undefined;
63
+ /**
64
+ * @internal
65
+ */
66
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
67
+ }
68
+ /**
69
+ * <p>The request references a routing control or control panel that was not found.</p>
70
+ * @public
71
+ */
72
+ export declare class ResourceNotFoundException extends __BaseException {
73
+ readonly name: "ResourceNotFoundException";
74
+ readonly $fault: "client";
75
+ /**
76
+ * Hypothetical resource identifier that was not found
77
+ * @public
78
+ */
79
+ resourceId: string | undefined;
80
+ /**
81
+ * Hypothetical resource type that was not found
82
+ * @public
83
+ */
84
+ resourceType: string | undefined;
85
+ /**
86
+ * @internal
87
+ */
88
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
89
+ }
90
+ /**
91
+ * <p>The request was denied because of request throttling.</p>
92
+ * @public
93
+ */
94
+ export declare class ThrottlingException extends __BaseException {
95
+ readonly name: "ThrottlingException";
96
+ readonly $fault: "client";
97
+ /**
98
+ * Advice to clients on when the call can be safely retried
99
+ * @public
100
+ */
101
+ retryAfterSeconds?: number | undefined;
102
+ /**
103
+ * @internal
104
+ */
105
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
106
+ }
107
+ /**
108
+ * <p>There was a validation error on the request.</p>
109
+ * @public
110
+ */
111
+ export declare class ValidationException extends __BaseException {
112
+ readonly name: "ValidationException";
113
+ readonly $fault: "client";
114
+ /**
115
+ * Reason the request failed validation
116
+ * @public
117
+ */
118
+ reason?: ValidationExceptionReason | undefined;
119
+ /**
120
+ * The fields that caused the error, if applicable
121
+ * @public
122
+ */
123
+ fields?: ValidationExceptionField[] | undefined;
124
+ /**
125
+ * @internal
126
+ */
127
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
128
+ }
129
+ /**
130
+ * <p>The request can't update that many routing control states at the same time. Try again with fewer routing control states.</p>
131
+ * @public
132
+ */
133
+ export declare class ServiceLimitExceededException extends __BaseException {
134
+ readonly name: "ServiceLimitExceededException";
135
+ readonly $fault: "client";
136
+ /**
137
+ * <p>The resource identifier of the limit that was exceeded.</p>
138
+ * @public
139
+ */
140
+ resourceId?: string | undefined;
141
+ /**
142
+ * <p>The resource type of the limit that was exceeded.</p>
143
+ * @public
144
+ */
145
+ resourceType?: string | undefined;
146
+ /**
147
+ * <p>The code of the limit that was exceeded.</p>
148
+ * @public
149
+ */
150
+ limitCode: string | undefined;
151
+ /**
152
+ * <p>The service code of the limit that was exceeded.</p>
153
+ * @public
154
+ */
155
+ serviceCode: string | undefined;
156
+ /**
157
+ * @internal
158
+ */
159
+ constructor(opts: __ExceptionOptionType<ServiceLimitExceededException, __BaseException>);
160
+ }
@@ -1,51 +1,4 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { Route53RecoveryClusterServiceException as __BaseException } from "./Route53RecoveryClusterServiceException";
3
- /**
4
- * <p>You don't have sufficient permissions to perform this action.</p>
5
- * @public
6
- */
7
- export declare class AccessDeniedException extends __BaseException {
8
- readonly name: "AccessDeniedException";
9
- readonly $fault: "client";
10
- /**
11
- * @internal
12
- */
13
- constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
14
- }
15
- /**
16
- * <p>There was a conflict with this request. Try again.</p>
17
- * @public
18
- */
19
- export declare class ConflictException extends __BaseException {
20
- readonly name: "ConflictException";
21
- readonly $fault: "client";
22
- /**
23
- * Identifier of the resource in use
24
- * @public
25
- */
26
- resourceId: string | undefined;
27
- /**
28
- * Type of the resource in use
29
- * @public
30
- */
31
- resourceType: string | undefined;
32
- /**
33
- * @internal
34
- */
35
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
36
- }
37
- /**
38
- * <p>The cluster endpoint isn't available. Try another cluster endpoint.</p>
39
- * @public
40
- */
41
- export declare class EndpointTemporarilyUnavailableException extends __BaseException {
42
- readonly name: "EndpointTemporarilyUnavailableException";
43
- readonly $fault: "server";
44
- /**
45
- * @internal
46
- */
47
- constructor(opts: __ExceptionOptionType<EndpointTemporarilyUnavailableException, __BaseException>);
48
- }
1
+ import { RoutingControlState } from "./enums";
49
2
  /**
50
3
  * @public
51
4
  */
@@ -56,18 +9,6 @@ export interface GetRoutingControlStateRequest {
56
9
  */
57
10
  RoutingControlArn: string | undefined;
58
11
  }
59
- /**
60
- * @public
61
- * @enum
62
- */
63
- export declare const RoutingControlState: {
64
- readonly Off: "Off";
65
- readonly On: "On";
66
- };
67
- /**
68
- * @public
69
- */
70
- export type RoutingControlState = (typeof RoutingControlState)[keyof typeof RoutingControlState];
71
12
  /**
72
13
  * @public
73
14
  */
@@ -88,62 +29,6 @@ export interface GetRoutingControlStateResponse {
88
29
  */
89
30
  RoutingControlName?: string | undefined;
90
31
  }
91
- /**
92
- * <p>There was an unexpected error during processing of the request.</p>
93
- * @public
94
- */
95
- export declare class InternalServerException extends __BaseException {
96
- readonly name: "InternalServerException";
97
- readonly $fault: "server";
98
- /**
99
- * Advice to clients on when the call can be safely retried
100
- * @public
101
- */
102
- retryAfterSeconds?: number | undefined;
103
- /**
104
- * @internal
105
- */
106
- constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
107
- }
108
- /**
109
- * <p>The request references a routing control or control panel that was not found.</p>
110
- * @public
111
- */
112
- export declare class ResourceNotFoundException extends __BaseException {
113
- readonly name: "ResourceNotFoundException";
114
- readonly $fault: "client";
115
- /**
116
- * Hypothetical resource identifier that was not found
117
- * @public
118
- */
119
- resourceId: string | undefined;
120
- /**
121
- * Hypothetical resource type that was not found
122
- * @public
123
- */
124
- resourceType: string | undefined;
125
- /**
126
- * @internal
127
- */
128
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
129
- }
130
- /**
131
- * <p>The request was denied because of request throttling.</p>
132
- * @public
133
- */
134
- export declare class ThrottlingException extends __BaseException {
135
- readonly name: "ThrottlingException";
136
- readonly $fault: "client";
137
- /**
138
- * Advice to clients on when the call can be safely retried
139
- * @public
140
- */
141
- retryAfterSeconds?: number | undefined;
142
- /**
143
- * @internal
144
- */
145
- constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
146
- }
147
32
  /**
148
33
  * <p>There was a validation error on the request.</p>
149
34
  * @public
@@ -160,42 +45,6 @@ export interface ValidationExceptionField {
160
45
  */
161
46
  message: string | undefined;
162
47
  }
163
- /**
164
- * @public
165
- * @enum
166
- */
167
- export declare const ValidationExceptionReason: {
168
- readonly CANNOT_PARSE: "cannotParse";
169
- readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
170
- readonly OTHER: "other";
171
- readonly UNKNOWN_OPERATION: "unknownOperation";
172
- };
173
- /**
174
- * @public
175
- */
176
- export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
177
- /**
178
- * <p>There was a validation error on the request.</p>
179
- * @public
180
- */
181
- export declare class ValidationException extends __BaseException {
182
- readonly name: "ValidationException";
183
- readonly $fault: "client";
184
- /**
185
- * Reason the request failed validation
186
- * @public
187
- */
188
- reason?: ValidationExceptionReason | undefined;
189
- /**
190
- * The fields that caused the error, if applicable
191
- * @public
192
- */
193
- fields?: ValidationExceptionField[] | undefined;
194
- /**
195
- * @internal
196
- */
197
- constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
198
- }
199
48
  /**
200
49
  * @public
201
50
  */
@@ -271,38 +120,6 @@ export interface ListRoutingControlsResponse {
271
120
  */
272
121
  NextToken?: string | undefined;
273
122
  }
274
- /**
275
- * <p>The request can't update that many routing control states at the same time. Try again with fewer routing control states.</p>
276
- * @public
277
- */
278
- export declare class ServiceLimitExceededException extends __BaseException {
279
- readonly name: "ServiceLimitExceededException";
280
- readonly $fault: "client";
281
- /**
282
- * <p>The resource identifier of the limit that was exceeded.</p>
283
- * @public
284
- */
285
- resourceId?: string | undefined;
286
- /**
287
- * <p>The resource type of the limit that was exceeded.</p>
288
- * @public
289
- */
290
- resourceType?: string | undefined;
291
- /**
292
- * <p>The code of the limit that was exceeded.</p>
293
- * @public
294
- */
295
- limitCode: string | undefined;
296
- /**
297
- * <p>The service code of the limit that was exceeded.</p>
298
- * @public
299
- */
300
- serviceCode: string | undefined;
301
- /**
302
- * @internal
303
- */
304
- constructor(opts: __ExceptionOptionType<ServiceLimitExceededException, __BaseException>);
305
- }
306
123
  /**
307
124
  * @public
308
125
  */
@@ -5,5 +5,7 @@ export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { Route53RecoveryClusterExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
7
  export * from "./pagination";
8
- export * from "./models";
8
+ export * from "./models/enums";
9
+ export * from "./models/errors";
10
+ export * from "./models/models_0";
9
11
  export { Route53RecoveryClusterServiceException } from "./models/Route53RecoveryClusterServiceException";
@@ -0,0 +1,14 @@
1
+ export declare const RoutingControlState: {
2
+ readonly Off: "Off";
3
+ readonly On: "On";
4
+ };
5
+ export type RoutingControlState =
6
+ (typeof RoutingControlState)[keyof typeof RoutingControlState];
7
+ export declare const ValidationExceptionReason: {
8
+ readonly CANNOT_PARSE: "cannotParse";
9
+ readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
10
+ readonly OTHER: "other";
11
+ readonly UNKNOWN_OPERATION: "unknownOperation";
12
+ };
13
+ export type ValidationExceptionReason =
14
+ (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
@@ -0,0 +1,73 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { ValidationExceptionReason } from "./enums";
3
+ import { ValidationExceptionField } from "./models_0";
4
+ import { Route53RecoveryClusterServiceException as __BaseException } from "./Route53RecoveryClusterServiceException";
5
+ export declare class AccessDeniedException extends __BaseException {
6
+ readonly name: "AccessDeniedException";
7
+ readonly $fault: "client";
8
+ constructor(
9
+ opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
10
+ );
11
+ }
12
+ export declare class ConflictException extends __BaseException {
13
+ readonly name: "ConflictException";
14
+ readonly $fault: "client";
15
+ resourceId: string | undefined;
16
+ resourceType: string | undefined;
17
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
18
+ }
19
+ export declare class EndpointTemporarilyUnavailableException extends __BaseException {
20
+ readonly name: "EndpointTemporarilyUnavailableException";
21
+ readonly $fault: "server";
22
+ constructor(
23
+ opts: __ExceptionOptionType<
24
+ EndpointTemporarilyUnavailableException,
25
+ __BaseException
26
+ >
27
+ );
28
+ }
29
+ export declare class InternalServerException extends __BaseException {
30
+ readonly name: "InternalServerException";
31
+ readonly $fault: "server";
32
+ retryAfterSeconds?: number | undefined;
33
+ constructor(
34
+ opts: __ExceptionOptionType<InternalServerException, __BaseException>
35
+ );
36
+ }
37
+ export declare class ResourceNotFoundException extends __BaseException {
38
+ readonly name: "ResourceNotFoundException";
39
+ readonly $fault: "client";
40
+ resourceId: string | undefined;
41
+ resourceType: string | undefined;
42
+ constructor(
43
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
44
+ );
45
+ }
46
+ export declare class ThrottlingException extends __BaseException {
47
+ readonly name: "ThrottlingException";
48
+ readonly $fault: "client";
49
+ retryAfterSeconds?: number | undefined;
50
+ constructor(
51
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
52
+ );
53
+ }
54
+ export declare class ValidationException extends __BaseException {
55
+ readonly name: "ValidationException";
56
+ readonly $fault: "client";
57
+ reason?: ValidationExceptionReason | undefined;
58
+ fields?: ValidationExceptionField[] | undefined;
59
+ constructor(
60
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
61
+ );
62
+ }
63
+ export declare class ServiceLimitExceededException extends __BaseException {
64
+ readonly name: "ServiceLimitExceededException";
65
+ readonly $fault: "client";
66
+ resourceId?: string | undefined;
67
+ resourceType?: string | undefined;
68
+ limitCode: string | undefined;
69
+ serviceCode: string | undefined;
70
+ constructor(
71
+ opts: __ExceptionOptionType<ServiceLimitExceededException, __BaseException>
72
+ );
73
+ }
@@ -1,89 +1,16 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { Route53RecoveryClusterServiceException as __BaseException } from "./Route53RecoveryClusterServiceException";
3
- export declare class AccessDeniedException extends __BaseException {
4
- readonly name: "AccessDeniedException";
5
- readonly $fault: "client";
6
- constructor(
7
- opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
8
- );
9
- }
10
- export declare class ConflictException extends __BaseException {
11
- readonly name: "ConflictException";
12
- readonly $fault: "client";
13
- resourceId: string | undefined;
14
- resourceType: string | undefined;
15
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
16
- }
17
- export declare class EndpointTemporarilyUnavailableException extends __BaseException {
18
- readonly name: "EndpointTemporarilyUnavailableException";
19
- readonly $fault: "server";
20
- constructor(
21
- opts: __ExceptionOptionType<
22
- EndpointTemporarilyUnavailableException,
23
- __BaseException
24
- >
25
- );
26
- }
1
+ import { RoutingControlState } from "./enums";
27
2
  export interface GetRoutingControlStateRequest {
28
3
  RoutingControlArn: string | undefined;
29
4
  }
30
- export declare const RoutingControlState: {
31
- readonly Off: "Off";
32
- readonly On: "On";
33
- };
34
- export type RoutingControlState =
35
- (typeof RoutingControlState)[keyof typeof RoutingControlState];
36
5
  export interface GetRoutingControlStateResponse {
37
6
  RoutingControlArn: string | undefined;
38
7
  RoutingControlState: RoutingControlState | undefined;
39
8
  RoutingControlName?: string | undefined;
40
9
  }
41
- export declare class InternalServerException extends __BaseException {
42
- readonly name: "InternalServerException";
43
- readonly $fault: "server";
44
- retryAfterSeconds?: number | undefined;
45
- constructor(
46
- opts: __ExceptionOptionType<InternalServerException, __BaseException>
47
- );
48
- }
49
- export declare class ResourceNotFoundException extends __BaseException {
50
- readonly name: "ResourceNotFoundException";
51
- readonly $fault: "client";
52
- resourceId: string | undefined;
53
- resourceType: string | undefined;
54
- constructor(
55
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
56
- );
57
- }
58
- export declare class ThrottlingException extends __BaseException {
59
- readonly name: "ThrottlingException";
60
- readonly $fault: "client";
61
- retryAfterSeconds?: number | undefined;
62
- constructor(
63
- opts: __ExceptionOptionType<ThrottlingException, __BaseException>
64
- );
65
- }
66
10
  export interface ValidationExceptionField {
67
11
  name: string | undefined;
68
12
  message: string | undefined;
69
13
  }
70
- export declare const ValidationExceptionReason: {
71
- readonly CANNOT_PARSE: "cannotParse";
72
- readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
73
- readonly OTHER: "other";
74
- readonly UNKNOWN_OPERATION: "unknownOperation";
75
- };
76
- export type ValidationExceptionReason =
77
- (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
78
- export declare class ValidationException extends __BaseException {
79
- readonly name: "ValidationException";
80
- readonly $fault: "client";
81
- reason?: ValidationExceptionReason | undefined;
82
- fields?: ValidationExceptionField[] | undefined;
83
- constructor(
84
- opts: __ExceptionOptionType<ValidationException, __BaseException>
85
- );
86
- }
87
14
  export interface ListRoutingControlsRequest {
88
15
  ControlPanelArn?: string | undefined;
89
16
  NextToken?: string | undefined;
@@ -101,17 +28,6 @@ export interface ListRoutingControlsResponse {
101
28
  RoutingControls: RoutingControl[] | undefined;
102
29
  NextToken?: string | undefined;
103
30
  }
104
- export declare class ServiceLimitExceededException extends __BaseException {
105
- readonly name: "ServiceLimitExceededException";
106
- readonly $fault: "client";
107
- resourceId?: string | undefined;
108
- resourceType?: string | undefined;
109
- limitCode: string | undefined;
110
- serviceCode: string | undefined;
111
- constructor(
112
- opts: __ExceptionOptionType<ServiceLimitExceededException, __BaseException>
113
- );
114
- }
115
31
  export interface UpdateRoutingControlStateRequest {
116
32
  RoutingControlArn: string | undefined;
117
33
  RoutingControlState: RoutingControlState | undefined;
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.933.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-route53-recovery-cluster",
@@ -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.932.0",
24
- "@aws-sdk/credential-provider-node": "3.933.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.932.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.932.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";