@aws-sdk/client-route53-recovery-cluster 3.300.0 → 3.303.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.
@@ -43,11 +43,10 @@ class EndpointTemporarilyUnavailableException extends Route53RecoveryClusterServ
43
43
  }
44
44
  }
45
45
  exports.EndpointTemporarilyUnavailableException = EndpointTemporarilyUnavailableException;
46
- var RoutingControlState;
47
- (function (RoutingControlState) {
48
- RoutingControlState["Off"] = "Off";
49
- RoutingControlState["On"] = "On";
50
- })(RoutingControlState = exports.RoutingControlState || (exports.RoutingControlState = {}));
46
+ exports.RoutingControlState = {
47
+ Off: "Off",
48
+ On: "On",
49
+ };
51
50
  class InternalServerException extends Route53RecoveryClusterServiceException_1.Route53RecoveryClusterServiceException {
52
51
  constructor(opts) {
53
52
  super({
@@ -91,13 +90,12 @@ class ThrottlingException extends Route53RecoveryClusterServiceException_1.Route
91
90
  }
92
91
  }
93
92
  exports.ThrottlingException = ThrottlingException;
94
- var ValidationExceptionReason;
95
- (function (ValidationExceptionReason) {
96
- ValidationExceptionReason["CANNOT_PARSE"] = "cannotParse";
97
- ValidationExceptionReason["FIELD_VALIDATION_FAILED"] = "fieldValidationFailed";
98
- ValidationExceptionReason["OTHER"] = "other";
99
- ValidationExceptionReason["UNKNOWN_OPERATION"] = "unknownOperation";
100
- })(ValidationExceptionReason = exports.ValidationExceptionReason || (exports.ValidationExceptionReason = {}));
93
+ exports.ValidationExceptionReason = {
94
+ CANNOT_PARSE: "cannotParse",
95
+ FIELD_VALIDATION_FAILED: "fieldValidationFailed",
96
+ OTHER: "other",
97
+ UNKNOWN_OPERATION: "unknownOperation",
98
+ };
101
99
  class ValidationException extends Route53RecoveryClusterServiceException_1.Route53RecoveryClusterServiceException {
102
100
  constructor(opts) {
103
101
  super({
@@ -37,11 +37,10 @@ export class EndpointTemporarilyUnavailableException extends __BaseException {
37
37
  Object.setPrototypeOf(this, EndpointTemporarilyUnavailableException.prototype);
38
38
  }
39
39
  }
40
- export var RoutingControlState;
41
- (function (RoutingControlState) {
42
- RoutingControlState["Off"] = "Off";
43
- RoutingControlState["On"] = "On";
44
- })(RoutingControlState || (RoutingControlState = {}));
40
+ export const RoutingControlState = {
41
+ Off: "Off",
42
+ On: "On",
43
+ };
45
44
  export class InternalServerException extends __BaseException {
46
45
  constructor(opts) {
47
46
  super({
@@ -82,13 +81,12 @@ export class ThrottlingException extends __BaseException {
82
81
  this.retryAfterSeconds = opts.retryAfterSeconds;
83
82
  }
84
83
  }
85
- export var ValidationExceptionReason;
86
- (function (ValidationExceptionReason) {
87
- ValidationExceptionReason["CANNOT_PARSE"] = "cannotParse";
88
- ValidationExceptionReason["FIELD_VALIDATION_FAILED"] = "fieldValidationFailed";
89
- ValidationExceptionReason["OTHER"] = "other";
90
- ValidationExceptionReason["UNKNOWN_OPERATION"] = "unknownOperation";
91
- })(ValidationExceptionReason || (ValidationExceptionReason = {}));
84
+ export const ValidationExceptionReason = {
85
+ CANNOT_PARSE: "cannotParse",
86
+ FIELD_VALIDATION_FAILED: "fieldValidationFailed",
87
+ OTHER: "other",
88
+ UNKNOWN_OPERATION: "unknownOperation",
89
+ };
92
90
  export class ValidationException extends __BaseException {
93
91
  constructor(opts) {
94
92
  super({
@@ -56,7 +56,7 @@ export interface GetRoutingControlStateCommandOutput extends GetRoutingControlSt
56
56
  * import { Route53RecoveryClusterClient, GetRoutingControlStateCommand } from "@aws-sdk/client-route53-recovery-cluster"; // ES Modules import
57
57
  * // const { Route53RecoveryClusterClient, GetRoutingControlStateCommand } = require("@aws-sdk/client-route53-recovery-cluster"); // CommonJS import
58
58
  * const client = new Route53RecoveryClusterClient(config);
59
- * const input = {
59
+ * const input = { // GetRoutingControlStateRequest
60
60
  * RoutingControlArn: "STRING_VALUE", // required
61
61
  * };
62
62
  * const command = new GetRoutingControlStateCommand(input);
@@ -57,7 +57,7 @@ export interface ListRoutingControlsCommandOutput extends ListRoutingControlsRes
57
57
  * import { Route53RecoveryClusterClient, ListRoutingControlsCommand } from "@aws-sdk/client-route53-recovery-cluster"; // ES Modules import
58
58
  * // const { Route53RecoveryClusterClient, ListRoutingControlsCommand } = require("@aws-sdk/client-route53-recovery-cluster"); // CommonJS import
59
59
  * const client = new Route53RecoveryClusterClient(config);
60
- * const input = {
60
+ * const input = { // ListRoutingControlsRequest
61
61
  * ControlPanelArn: "STRING_VALUE",
62
62
  * NextToken: "STRING_VALUE",
63
63
  * MaxResults: Number("int"),
@@ -59,10 +59,10 @@ export interface UpdateRoutingControlStateCommandOutput extends UpdateRoutingCon
59
59
  * import { Route53RecoveryClusterClient, UpdateRoutingControlStateCommand } from "@aws-sdk/client-route53-recovery-cluster"; // ES Modules import
60
60
  * // const { Route53RecoveryClusterClient, UpdateRoutingControlStateCommand } = require("@aws-sdk/client-route53-recovery-cluster"); // CommonJS import
61
61
  * const client = new Route53RecoveryClusterClient(config);
62
- * const input = {
62
+ * const input = { // UpdateRoutingControlStateRequest
63
63
  * RoutingControlArn: "STRING_VALUE", // required
64
64
  * RoutingControlState: "STRING_VALUE", // required
65
- * SafetyRulesToOverride: [
65
+ * SafetyRulesToOverride: [ // Arns
66
66
  * "STRING_VALUE",
67
67
  * ],
68
68
  * };
@@ -59,14 +59,14 @@ export interface UpdateRoutingControlStatesCommandOutput extends UpdateRoutingCo
59
59
  * import { Route53RecoveryClusterClient, UpdateRoutingControlStatesCommand } from "@aws-sdk/client-route53-recovery-cluster"; // ES Modules import
60
60
  * // const { Route53RecoveryClusterClient, UpdateRoutingControlStatesCommand } = require("@aws-sdk/client-route53-recovery-cluster"); // CommonJS import
61
61
  * const client = new Route53RecoveryClusterClient(config);
62
- * const input = {
63
- * UpdateRoutingControlStateEntries: [ // required
64
- * {
62
+ * const input = { // UpdateRoutingControlStatesRequest
63
+ * UpdateRoutingControlStateEntries: [ // UpdateRoutingControlStateEntries // required
64
+ * { // UpdateRoutingControlStateEntry
65
65
  * RoutingControlArn: "STRING_VALUE", // required
66
66
  * RoutingControlState: "STRING_VALUE", // required
67
67
  * },
68
68
  * ],
69
- * SafetyRulesToOverride: [
69
+ * SafetyRulesToOverride: [ // Arns
70
70
  * "STRING_VALUE",
71
71
  * ],
72
72
  * };
@@ -55,11 +55,16 @@ export interface GetRoutingControlStateRequest {
55
55
  }
56
56
  /**
57
57
  * @public
58
+ * @enum
58
59
  */
59
- export declare enum RoutingControlState {
60
- Off = "Off",
61
- On = "On"
62
- }
60
+ export declare const RoutingControlState: {
61
+ readonly Off: "Off";
62
+ readonly On: "On";
63
+ };
64
+ /**
65
+ * @public
66
+ */
67
+ export type RoutingControlState = (typeof RoutingControlState)[keyof typeof RoutingControlState];
63
68
  /**
64
69
  * @public
65
70
  */
@@ -145,13 +150,18 @@ export interface ValidationExceptionField {
145
150
  }
146
151
  /**
147
152
  * @public
153
+ * @enum
148
154
  */
149
- export declare enum ValidationExceptionReason {
150
- CANNOT_PARSE = "cannotParse",
151
- FIELD_VALIDATION_FAILED = "fieldValidationFailed",
152
- OTHER = "other",
153
- UNKNOWN_OPERATION = "unknownOperation"
154
- }
155
+ export declare const ValidationExceptionReason: {
156
+ readonly CANNOT_PARSE: "cannotParse";
157
+ readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
158
+ readonly OTHER: "other";
159
+ readonly UNKNOWN_OPERATION: "unknownOperation";
160
+ };
161
+ /**
162
+ * @public
163
+ */
164
+ export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
155
165
  /**
156
166
  * @public
157
167
  * <p>There was a validation error on the request.</p>
@@ -27,10 +27,12 @@ export declare class EndpointTemporarilyUnavailableException extends __BaseExcep
27
27
  export interface GetRoutingControlStateRequest {
28
28
  RoutingControlArn: string | undefined;
29
29
  }
30
- export declare enum RoutingControlState {
31
- Off = "Off",
32
- On = "On",
33
- }
30
+ export declare const RoutingControlState: {
31
+ readonly Off: "Off";
32
+ readonly On: "On";
33
+ };
34
+ export type RoutingControlState =
35
+ (typeof RoutingControlState)[keyof typeof RoutingControlState];
34
36
  export interface GetRoutingControlStateResponse {
35
37
  RoutingControlArn: string | undefined;
36
38
  RoutingControlState: RoutingControlState | string | undefined;
@@ -65,12 +67,14 @@ export interface ValidationExceptionField {
65
67
  name: string | undefined;
66
68
  message: string | undefined;
67
69
  }
68
- export declare enum ValidationExceptionReason {
69
- CANNOT_PARSE = "cannotParse",
70
- FIELD_VALIDATION_FAILED = "fieldValidationFailed",
71
- OTHER = "other",
72
- UNKNOWN_OPERATION = "unknownOperation",
73
- }
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];
74
78
  export declare class ValidationException extends __BaseException {
75
79
  readonly name: "ValidationException";
76
80
  readonly $fault: "client";
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.300.0",
4
+ "version": "3.303.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",
@@ -21,42 +21,42 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.300.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.300.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.303.0",
25
+ "@aws-sdk/config-resolver": "3.303.0",
26
+ "@aws-sdk/credential-provider-node": "3.303.0",
27
+ "@aws-sdk/fetch-http-handler": "3.303.0",
28
+ "@aws-sdk/hash-node": "3.303.0",
29
+ "@aws-sdk/invalid-dependency": "3.303.0",
30
+ "@aws-sdk/middleware-content-length": "3.303.0",
31
+ "@aws-sdk/middleware-endpoint": "3.303.0",
32
+ "@aws-sdk/middleware-host-header": "3.303.0",
33
+ "@aws-sdk/middleware-logger": "3.303.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
+ "@aws-sdk/middleware-retry": "3.303.0",
36
+ "@aws-sdk/middleware-serde": "3.303.0",
37
+ "@aws-sdk/middleware-signing": "3.303.0",
38
+ "@aws-sdk/middleware-stack": "3.303.0",
39
+ "@aws-sdk/middleware-user-agent": "3.303.0",
40
+ "@aws-sdk/node-config-provider": "3.303.0",
41
+ "@aws-sdk/node-http-handler": "3.303.0",
42
+ "@aws-sdk/protocol-http": "3.303.0",
43
+ "@aws-sdk/smithy-client": "3.303.0",
44
+ "@aws-sdk/types": "3.303.0",
45
+ "@aws-sdk/url-parser": "3.303.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.303.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
+ "@aws-sdk/util-endpoints": "3.303.0",
52
+ "@aws-sdk/util-retry": "3.303.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
54
+ "@aws-sdk/util-user-agent-node": "3.303.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
59
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
60
60
  "@tsconfig/node14": "1.0.3",
61
61
  "@types/node": "^14.14.31",
62
62
  "concurrently": "7.0.0",