@aws-sdk/client-route53-recovery-cluster 3.34.0 → 3.37.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.
Files changed (113) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/Route53RecoveryCluster.js +1 -26
  3. package/dist-cjs/Route53RecoveryClusterClient.js +35 -0
  4. package/dist-cjs/commands/GetRoutingControlStateCommand.js +36 -0
  5. package/{dist/cjs → dist-cjs}/commands/UpdateRoutingControlStateCommand.js +2 -31
  6. package/{dist/cjs → dist-cjs}/commands/UpdateRoutingControlStatesCommand.js +2 -31
  7. package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
  8. package/{dist/cjs → dist-cjs}/index.js +0 -1
  9. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  10. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -46
  11. package/{dist/cjs → dist-cjs}/protocols/Aws_json1_0.js +0 -6
  12. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  13. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  14. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  15. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  16. package/{dist/es → dist-es}/Route53RecoveryCluster.js +1 -2
  17. package/{dist/es → dist-es}/Route53RecoveryClusterClient.js +1 -2
  18. package/{dist/es → dist-es}/commands/GetRoutingControlStateCommand.js +2 -3
  19. package/{dist/es → dist-es}/commands/UpdateRoutingControlStateCommand.js +2 -3
  20. package/{dist/es → dist-es}/commands/UpdateRoutingControlStatesCommand.js +2 -3
  21. package/{dist/es → dist-es}/endpoints.js +1 -2
  22. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  23. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  24. package/{dist/es → dist-es}/models/models_0.js +0 -1
  25. package/{dist/es → dist-es}/protocols/Aws_json1_0.js +0 -1
  26. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
  27. package/{dist/es → dist-es}/runtimeConfig.js +1 -2
  28. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
  29. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
  30. package/{dist/types → dist-types}/Route53RecoveryCluster.d.ts +2 -2
  31. package/{dist/types → dist-types}/Route53RecoveryClusterClient.d.ts +4 -4
  32. package/{dist/types → dist-types}/commands/GetRoutingControlStateCommand.d.ts +3 -3
  33. package/{dist/types → dist-types}/commands/UpdateRoutingControlStateCommand.d.ts +3 -3
  34. package/{dist/types → dist-types}/commands/UpdateRoutingControlStatesCommand.d.ts +3 -3
  35. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  36. package/{index.ts → dist-types/index.d.ts} +0 -0
  37. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  38. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  39. package/{dist/types → dist-types}/protocols/Aws_json1_0.d.ts +2 -2
  40. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +3 -1
  41. package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
  42. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  43. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  44. package/dist-types/ts3.4/Route53RecoveryCluster.d.ts +20 -0
  45. package/dist-types/ts3.4/Route53RecoveryClusterClient.d.ts +70 -0
  46. package/dist-types/ts3.4/commands/GetRoutingControlStateCommand.d.ts +17 -0
  47. package/dist-types/ts3.4/commands/UpdateRoutingControlStateCommand.d.ts +17 -0
  48. package/dist-types/ts3.4/commands/UpdateRoutingControlStatesCommand.d.ts +17 -0
  49. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  50. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  51. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  52. package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +43 -129
  53. package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_0.d.ts +2 -2
  54. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +2 -4
  55. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
  56. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  57. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  58. package/package.json +45 -42
  59. package/Route53RecoveryCluster.ts +0 -156
  60. package/Route53RecoveryClusterClient.ts +0 -274
  61. package/commands/GetRoutingControlStateCommand.ts +0 -107
  62. package/commands/UpdateRoutingControlStateCommand.ts +0 -105
  63. package/commands/UpdateRoutingControlStatesCommand.ts +0 -105
  64. package/dist/cjs/Route53RecoveryCluster.js.map +0 -1
  65. package/dist/cjs/Route53RecoveryClusterClient.js +0 -65
  66. package/dist/cjs/Route53RecoveryClusterClient.js.map +0 -1
  67. package/dist/cjs/commands/GetRoutingControlStateCommand.js +0 -70
  68. package/dist/cjs/commands/GetRoutingControlStateCommand.js.map +0 -1
  69. package/dist/cjs/commands/UpdateRoutingControlStateCommand.js.map +0 -1
  70. package/dist/cjs/commands/UpdateRoutingControlStatesCommand.js.map +0 -1
  71. package/dist/cjs/endpoints.js.map +0 -1
  72. package/dist/cjs/index.js.map +0 -1
  73. package/dist/cjs/models/index.js.map +0 -1
  74. package/dist/cjs/models/models_0.js.map +0 -1
  75. package/dist/cjs/package.json +0 -91
  76. package/dist/cjs/protocols/Aws_json1_0.js.map +0 -1
  77. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  78. package/dist/cjs/runtimeConfig.js.map +0 -1
  79. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  80. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  81. package/dist/es/Route53RecoveryCluster.js.map +0 -1
  82. package/dist/es/Route53RecoveryClusterClient.js.map +0 -1
  83. package/dist/es/commands/GetRoutingControlStateCommand.js.map +0 -1
  84. package/dist/es/commands/UpdateRoutingControlStateCommand.js.map +0 -1
  85. package/dist/es/commands/UpdateRoutingControlStatesCommand.js.map +0 -1
  86. package/dist/es/endpoints.js.map +0 -1
  87. package/dist/es/index.js +0 -7
  88. package/dist/es/index.js.map +0 -1
  89. package/dist/es/models/index.js +0 -2
  90. package/dist/es/models/index.js.map +0 -1
  91. package/dist/es/models/models_0.js.map +0 -1
  92. package/dist/es/package.json +0 -91
  93. package/dist/es/protocols/Aws_json1_0.js.map +0 -1
  94. package/dist/es/runtimeConfig.browser.js.map +0 -1
  95. package/dist/es/runtimeConfig.js.map +0 -1
  96. package/dist/es/runtimeConfig.native.js.map +0 -1
  97. package/dist/es/runtimeConfig.shared.js.map +0 -1
  98. package/dist/types/ts3.4/Route53RecoveryCluster.d.ts +0 -66
  99. package/dist/types/ts3.4/Route53RecoveryClusterClient.d.ts +0 -156
  100. package/dist/types/ts3.4/commands/GetRoutingControlStateCommand.d.ts +0 -44
  101. package/dist/types/ts3.4/commands/UpdateRoutingControlStateCommand.d.ts +0 -39
  102. package/dist/types/ts3.4/commands/UpdateRoutingControlStatesCommand.d.ts +0 -39
  103. package/endpoints.ts +0 -57
  104. package/jest.config.js +0 -4
  105. package/models/models_0.ts +0 -322
  106. package/protocols/Aws_json1_0.ts +0 -739
  107. package/runtimeConfig.browser.ts +0 -40
  108. package/runtimeConfig.native.ts +0 -16
  109. package/runtimeConfig.shared.ts +0 -16
  110. package/runtimeConfig.ts +0 -45
  111. package/tsconfig.es.json +0 -10
  112. package/tsconfig.json +0 -31
  113. package/tsconfig.types.json +0 -8
@@ -1,67 +1,45 @@
1
1
  import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
- /**
3
- * <p>You don't have sufficient permissions to query the routing control state.</p>
4
- */
2
+
5
3
  export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
6
4
  name: "AccessDeniedException";
7
5
  $fault: "client";
8
6
  message: string | undefined;
9
7
  }
10
8
  export declare namespace AccessDeniedException {
11
- /**
12
- * @internal
13
- */
9
+
14
10
  const filterSensitiveLog: (obj: AccessDeniedException) => any;
15
11
  }
16
- /**
17
- * <p>There was a conflict with this request. Try again.</p>
18
- */
12
+
19
13
  export interface ConflictException extends __SmithyException, $MetadataBearer {
20
14
  name: "ConflictException";
21
15
  $fault: "client";
22
- /**
23
- * Description of the ConflictException error
24
- */
16
+
25
17
  message: string | undefined;
26
- /**
27
- * Identifier of the resource in use
28
- */
18
+
29
19
  resourceId: string | undefined;
30
- /**
31
- * Type of the resource in use
32
- */
20
+
33
21
  resourceType: string | undefined;
34
22
  }
35
23
  export declare namespace ConflictException {
36
- /**
37
- * @internal
38
- */
24
+
39
25
  const filterSensitiveLog: (obj: ConflictException) => any;
40
26
  }
41
- /**
42
- * <p>The cluster endpoint isn't available. Try another cluster endpoint.</p>
43
- */
27
+
44
28
  export interface EndpointTemporarilyUnavailableException extends __SmithyException, $MetadataBearer {
45
29
  name: "EndpointTemporarilyUnavailableException";
46
30
  $fault: "server";
47
31
  message: string | undefined;
48
32
  }
49
33
  export declare namespace EndpointTemporarilyUnavailableException {
50
- /**
51
- * @internal
52
- */
34
+
53
35
  const filterSensitiveLog: (obj: EndpointTemporarilyUnavailableException) => any;
54
36
  }
55
37
  export interface GetRoutingControlStateRequest {
56
- /**
57
- * <p>The Amazon Resource Number (ARN) for the routing control that you want to get the state for.</p>
58
- */
38
+
59
39
  RoutingControlArn: string | undefined;
60
40
  }
61
41
  export declare namespace GetRoutingControlStateRequest {
62
- /**
63
- * @internal
64
- */
42
+
65
43
  const filterSensitiveLog: (obj: GetRoutingControlStateRequest) => any;
66
44
  }
67
45
  export declare enum RoutingControlState {
@@ -69,96 +47,62 @@ export declare enum RoutingControlState {
69
47
  On = "On"
70
48
  }
71
49
  export interface GetRoutingControlStateResponse {
72
- /**
73
- * <p>The Amazon Resource Number (ARN) of the response.</p>
74
- */
50
+
75
51
  RoutingControlArn: string | undefined;
76
- /**
77
- * <p>The state of the routing control.</p>
78
- */
52
+
79
53
  RoutingControlState: RoutingControlState | string | undefined;
80
54
  }
81
55
  export declare namespace GetRoutingControlStateResponse {
82
- /**
83
- * @internal
84
- */
56
+
85
57
  const filterSensitiveLog: (obj: GetRoutingControlStateResponse) => any;
86
58
  }
87
- /**
88
- * <p>There was an unexpected error during processing of the request.</p>
89
- */
59
+
90
60
  export interface InternalServerException extends __SmithyException, $MetadataBearer {
91
61
  name: "InternalServerException";
92
62
  $fault: "server";
93
63
  message: string | undefined;
94
- /**
95
- * Advice to clients on when the call can be safely retried
96
- */
64
+
97
65
  retryAfterSeconds?: number;
98
66
  }
99
67
  export declare namespace InternalServerException {
100
- /**
101
- * @internal
102
- */
68
+
103
69
  const filterSensitiveLog: (obj: InternalServerException) => any;
104
70
  }
105
- /**
106
- * <p>The request references a routing control that was not found.</p>
107
- */
71
+
108
72
  export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
109
73
  name: "ResourceNotFoundException";
110
74
  $fault: "client";
111
75
  message: string | undefined;
112
- /**
113
- * Hypothetical resource identifier that was not found
114
- */
76
+
115
77
  resourceId: string | undefined;
116
- /**
117
- * Hypothetical resource type that was not found
118
- */
78
+
119
79
  resourceType: string | undefined;
120
80
  }
121
81
  export declare namespace ResourceNotFoundException {
122
- /**
123
- * @internal
124
- */
82
+
125
83
  const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
126
84
  }
127
- /**
128
- * <p>The request was denied because of request throttling.</p>
129
- */
85
+
130
86
  export interface ThrottlingException extends __SmithyException, $MetadataBearer {
131
87
  name: "ThrottlingException";
132
88
  $fault: "client";
133
89
  message: string | undefined;
134
- /**
135
- * Advice to clients on when the call can be safely retried
136
- */
90
+
137
91
  retryAfterSeconds?: number;
138
92
  }
139
93
  export declare namespace ThrottlingException {
140
- /**
141
- * @internal
142
- */
94
+
143
95
  const filterSensitiveLog: (obj: ThrottlingException) => any;
144
96
  }
145
- /**
146
- * <p>There was a validation error on the request.</p>
147
- */
97
+
148
98
  export interface ValidationExceptionField {
149
- /**
150
- * <p>The field that had the validation exception.</p>
151
- */
99
+
152
100
  name: string | undefined;
153
- /**
154
- * <p>Information about the validation exception.</p>
155
- */
101
+
156
102
  message: string | undefined;
157
103
  }
158
104
  export declare namespace ValidationExceptionField {
159
- /**
160
- * @internal
161
- */
105
+
162
106
  const filterSensitiveLog: (obj: ValidationExceptionField) => any;
163
107
  }
164
108
  export declare enum ValidationExceptionReason {
@@ -167,88 +111,58 @@ export declare enum ValidationExceptionReason {
167
111
  OTHER = "other",
168
112
  UNKNOWN_OPERATION = "unknownOperation"
169
113
  }
170
- /**
171
- * <p>There was a validation error on the request.</p>
172
- */
114
+
173
115
  export interface ValidationException extends __SmithyException, $MetadataBearer {
174
116
  name: "ValidationException";
175
117
  $fault: "client";
176
118
  message: string | undefined;
177
- /**
178
- * Reason the request failed validation
179
- */
119
+
180
120
  reason?: ValidationExceptionReason | string;
181
- /**
182
- * The fields that caused the error, if applicable
183
- */
121
+
184
122
  fields?: ValidationExceptionField[];
185
123
  }
186
124
  export declare namespace ValidationException {
187
- /**
188
- * @internal
189
- */
125
+
190
126
  const filterSensitiveLog: (obj: ValidationException) => any;
191
127
  }
192
128
  export interface UpdateRoutingControlStateRequest {
193
- /**
194
- * <p>The Amazon Resource Number (ARN) for the routing control that you want to update the state for.</p>
195
- */
129
+
196
130
  RoutingControlArn: string | undefined;
197
- /**
198
- * <p>The state of the routing control. You can set the value to be On or Off.</p>
199
- */
131
+
200
132
  RoutingControlState: RoutingControlState | string | undefined;
201
133
  }
202
134
  export declare namespace UpdateRoutingControlStateRequest {
203
- /**
204
- * @internal
205
- */
135
+
206
136
  const filterSensitiveLog: (obj: UpdateRoutingControlStateRequest) => any;
207
137
  }
208
138
  export interface UpdateRoutingControlStateResponse {
209
139
  }
210
140
  export declare namespace UpdateRoutingControlStateResponse {
211
- /**
212
- * @internal
213
- */
141
+
214
142
  const filterSensitiveLog: (obj: UpdateRoutingControlStateResponse) => any;
215
143
  }
216
- /**
217
- * <p>A routing control state.</p>
218
- */
144
+
219
145
  export interface UpdateRoutingControlStateEntry {
220
- /**
221
- * <p>The Amazon Resource Number (ARN) for the routing control state entry.</p>
222
- */
146
+
223
147
  RoutingControlArn: string | undefined;
224
- /**
225
- * <p>The routing control state in a set of routing control state entries.</p>
226
- */
148
+
227
149
  RoutingControlState: RoutingControlState | string | undefined;
228
150
  }
229
151
  export declare namespace UpdateRoutingControlStateEntry {
230
- /**
231
- * @internal
232
- */
152
+
233
153
  const filterSensitiveLog: (obj: UpdateRoutingControlStateEntry) => any;
234
154
  }
235
155
  export interface UpdateRoutingControlStatesRequest {
236
- /**
237
- * <p>A set of routing control entries that you want to update.</p>
238
- */
156
+
239
157
  UpdateRoutingControlStateEntries: UpdateRoutingControlStateEntry[] | undefined;
240
158
  }
241
159
  export declare namespace UpdateRoutingControlStatesRequest {
242
- /**
243
- * @internal
244
- */
160
+
245
161
  const filterSensitiveLog: (obj: UpdateRoutingControlStatesRequest) => any;
246
162
  }
247
163
  export interface UpdateRoutingControlStatesResponse {
248
164
  }
249
165
  export declare namespace UpdateRoutingControlStatesResponse {
250
- /**
251
- * @internal
252
- */
166
+
253
167
  const filterSensitiveLog: (obj: UpdateRoutingControlStatesResponse) => any;
254
168
  }
@@ -1,8 +1,8 @@
1
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
2
+ import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
1
3
  import { GetRoutingControlStateCommandInput, GetRoutingControlStateCommandOutput } from "../commands/GetRoutingControlStateCommand";
2
4
  import { UpdateRoutingControlStateCommandInput, UpdateRoutingControlStateCommandOutput } from "../commands/UpdateRoutingControlStateCommand";
3
5
  import { UpdateRoutingControlStatesCommandInput, UpdateRoutingControlStatesCommandOutput } from "../commands/UpdateRoutingControlStatesCommand";
4
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
5
- import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
6
6
  export declare const serializeAws_json1_0GetRoutingControlStateCommand: (input: GetRoutingControlStateCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
7
7
  export declare const serializeAws_json1_0UpdateRoutingControlStateCommand: (input: UpdateRoutingControlStateCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
8
8
  export declare const serializeAws_json1_0UpdateRoutingControlStatesCommand: (input: UpdateRoutingControlStatesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -1,8 +1,6 @@
1
1
  import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { Route53RecoveryClusterClientConfig } from "./Route53RecoveryClusterClient";
3
- /**
4
- * @internal
5
- */
3
+
6
4
  export declare const getRuntimeConfig: (config: Route53RecoveryClusterClientConfig) => {
7
5
  runtime: string;
8
6
  base64Decoder: import("@aws-sdk/types").Decoder;
@@ -31,7 +29,7 @@ export declare const getRuntimeConfig: (config: Route53RecoveryClusterClientConf
31
29
  signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
32
30
  signingEscapePath?: boolean | undefined;
33
31
  systemClockOffset?: number | undefined;
34
- signingRegion?: string | undefined;
32
+ signingRegion?: string | undefined;
35
33
  signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
36
34
  customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
37
35
  };
@@ -1,14 +1,12 @@
1
1
  import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
2
2
  import { Route53RecoveryClusterClientConfig } from "./Route53RecoveryClusterClient";
3
- /**
4
- * @internal
5
- */
3
+
6
4
  export declare const getRuntimeConfig: (config: Route53RecoveryClusterClientConfig) => {
7
5
  runtime: string;
8
6
  base64Decoder: import("@aws-sdk/types").Decoder;
9
7
  base64Encoder: import("@aws-sdk/types").Encoder;
10
8
  bodyLengthChecker: (body: any) => number | undefined;
11
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist/types/defaultStsRoleAssumers").DefaultCredentialProvider;
9
+ credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
12
10
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
11
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
12
  region: string | import("@aws-sdk/types").Provider<string>;
@@ -1,7 +1,5 @@
1
1
  import { Route53RecoveryClusterClientConfig } from "./Route53RecoveryClusterClient";
2
- /**
3
- * @internal
4
- */
2
+
5
3
  export declare const getRuntimeConfig: (config: Route53RecoveryClusterClientConfig) => {
6
4
  runtime: string;
7
5
  sha256: import("@aws-sdk/types").HashConstructor;
@@ -1,8 +1,6 @@
1
1
  import { Logger as __Logger } from "@aws-sdk/types";
2
2
  import { Route53RecoveryClusterClientConfig } from "./Route53RecoveryClusterClient";
3
- /**
4
- * @internal
5
- */
3
+
6
4
  export declare const getRuntimeConfig: (config: Route53RecoveryClusterClientConfig) => {
7
5
  apiVersion: string;
8
6
  disableHostPrefix: boolean;
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.34.0",
4
+ "version": "3.37.0",
5
5
  "scripts": {
6
6
  "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
7
  "build:cjs": "tsc -p tsconfig.json",
@@ -11,54 +11,48 @@
11
11
  "clean": "yarn clean:dist && yarn clean:docs",
12
12
  "clean:dist": "rimraf ./dist",
13
13
  "clean:docs": "rimraf ./docs",
14
- "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4",
14
+ "downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
15
15
  "test": "jest --coverage --passWithNoTests"
16
16
  },
17
- "main": "./dist/cjs/index.js",
18
- "types": "./dist/types/index.d.ts",
19
- "module": "./dist/es/index.js",
20
- "browser": {
21
- "./runtimeConfig": "./runtimeConfig.browser"
22
- },
23
- "react-native": {
24
- "./runtimeConfig": "./runtimeConfig.native"
25
- },
17
+ "main": "./dist-cjs/index.js",
18
+ "types": "./dist-types/index.d.ts",
19
+ "module": "./dist-es/index.js",
26
20
  "sideEffects": false,
27
21
  "dependencies": {
28
22
  "@aws-crypto/sha256-browser": "^1.1.0",
29
23
  "@aws-crypto/sha256-js": "^1.1.0",
30
- "@aws-sdk/client-sts": "3.34.0",
31
- "@aws-sdk/config-resolver": "3.34.0",
32
- "@aws-sdk/credential-provider-node": "3.34.0",
33
- "@aws-sdk/fetch-http-handler": "3.34.0",
34
- "@aws-sdk/hash-node": "3.34.0",
35
- "@aws-sdk/invalid-dependency": "3.34.0",
36
- "@aws-sdk/middleware-content-length": "3.34.0",
37
- "@aws-sdk/middleware-host-header": "3.34.0",
38
- "@aws-sdk/middleware-logger": "3.34.0",
39
- "@aws-sdk/middleware-retry": "3.34.0",
40
- "@aws-sdk/middleware-serde": "3.34.0",
41
- "@aws-sdk/middleware-signing": "3.34.0",
42
- "@aws-sdk/middleware-stack": "3.34.0",
43
- "@aws-sdk/middleware-user-agent": "3.34.0",
44
- "@aws-sdk/node-config-provider": "3.34.0",
45
- "@aws-sdk/node-http-handler": "3.34.0",
46
- "@aws-sdk/protocol-http": "3.34.0",
47
- "@aws-sdk/smithy-client": "3.34.0",
48
- "@aws-sdk/types": "3.34.0",
49
- "@aws-sdk/url-parser": "3.34.0",
50
- "@aws-sdk/util-base64-browser": "3.34.0",
51
- "@aws-sdk/util-base64-node": "3.34.0",
52
- "@aws-sdk/util-body-length-browser": "3.34.0",
53
- "@aws-sdk/util-body-length-node": "3.34.0",
54
- "@aws-sdk/util-user-agent-browser": "3.34.0",
55
- "@aws-sdk/util-user-agent-node": "3.34.0",
56
- "@aws-sdk/util-utf8-browser": "3.34.0",
57
- "@aws-sdk/util-utf8-node": "3.34.0",
24
+ "@aws-sdk/client-sts": "3.37.0",
25
+ "@aws-sdk/config-resolver": "3.37.0",
26
+ "@aws-sdk/credential-provider-node": "3.37.0",
27
+ "@aws-sdk/fetch-http-handler": "3.37.0",
28
+ "@aws-sdk/hash-node": "3.37.0",
29
+ "@aws-sdk/invalid-dependency": "3.37.0",
30
+ "@aws-sdk/middleware-content-length": "3.37.0",
31
+ "@aws-sdk/middleware-host-header": "3.37.0",
32
+ "@aws-sdk/middleware-logger": "3.37.0",
33
+ "@aws-sdk/middleware-retry": "3.37.0",
34
+ "@aws-sdk/middleware-serde": "3.37.0",
35
+ "@aws-sdk/middleware-signing": "3.37.0",
36
+ "@aws-sdk/middleware-stack": "3.37.0",
37
+ "@aws-sdk/middleware-user-agent": "3.37.0",
38
+ "@aws-sdk/node-config-provider": "3.37.0",
39
+ "@aws-sdk/node-http-handler": "3.37.0",
40
+ "@aws-sdk/protocol-http": "3.37.0",
41
+ "@aws-sdk/smithy-client": "3.37.0",
42
+ "@aws-sdk/types": "3.37.0",
43
+ "@aws-sdk/url-parser": "3.37.0",
44
+ "@aws-sdk/util-base64-browser": "3.37.0",
45
+ "@aws-sdk/util-base64-node": "3.37.0",
46
+ "@aws-sdk/util-body-length-browser": "3.37.0",
47
+ "@aws-sdk/util-body-length-node": "3.37.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.37.0",
49
+ "@aws-sdk/util-user-agent-node": "3.37.0",
50
+ "@aws-sdk/util-utf8-browser": "3.37.0",
51
+ "@aws-sdk/util-utf8-node": "3.37.0",
58
52
  "tslib": "^2.3.0"
59
53
  },
60
54
  "devDependencies": {
61
- "@aws-sdk/client-documentation-generator": "3.34.0",
55
+ "@aws-sdk/client-documentation-generator": "3.37.0",
62
56
  "@types/node": "^12.7.5",
63
57
  "downlevel-dts": "0.7.0",
64
58
  "jest": "^26.1.0",
@@ -72,16 +66,25 @@
72
66
  },
73
67
  "typesVersions": {
74
68
  "<4.0": {
75
- "dist/types/*": [
76
- "dist/types/ts3.4/*"
69
+ "dist-types/*": [
70
+ "dist-types/ts3.4/*"
77
71
  ]
78
72
  }
79
73
  },
74
+ "files": [
75
+ "dist-*"
76
+ ],
80
77
  "author": {
81
78
  "name": "AWS SDK for JavaScript Team",
82
79
  "url": "https://aws.amazon.com/javascript/"
83
80
  },
84
81
  "license": "Apache-2.0",
82
+ "browser": {
83
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
84
+ },
85
+ "react-native": {
86
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
87
+ },
85
88
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-route53-recovery-cluster",
86
89
  "repository": {
87
90
  "type": "git",
@@ -1,156 +0,0 @@
1
- import { Route53RecoveryClusterClient } from "./Route53RecoveryClusterClient";
2
- import {
3
- GetRoutingControlStateCommand,
4
- GetRoutingControlStateCommandInput,
5
- GetRoutingControlStateCommandOutput,
6
- } from "./commands/GetRoutingControlStateCommand";
7
- import {
8
- UpdateRoutingControlStateCommand,
9
- UpdateRoutingControlStateCommandInput,
10
- UpdateRoutingControlStateCommandOutput,
11
- } from "./commands/UpdateRoutingControlStateCommand";
12
- import {
13
- UpdateRoutingControlStatesCommand,
14
- UpdateRoutingControlStatesCommandInput,
15
- UpdateRoutingControlStatesCommandOutput,
16
- } from "./commands/UpdateRoutingControlStatesCommand";
17
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
18
-
19
- /**
20
- * <p>Welcome to the Amazon Route 53 Application Recovery Controller API Reference Guide for Recovery Control Data Plane .</p>
21
- * <p>Recovery control in Route 53 Application Recovery Controller includes extremely reliable routing controls that enable you to recover applications
22
- * by rerouting traffic, for example, across Availability Zones or AWS Regions. Routing controls are simple on/off switches
23
- * hosted on a cluster. A cluster is a set of five redundant regional endpoints against which you can execute API calls to update or
24
- * get the state of routing controls. You use routing controls to failover traffic to recover your application
25
- * across Availability Zones or Regions.</p>
26
- * <p>This API guide includes information about how to get and update routing control states in Route 53 Application Recovery Controller.</p>
27
- * <p>For more information about Route 53 Application Recovery Controller, see the following:</p>
28
- * <ul>
29
- * <li>
30
- * <p>You can create clusters, routing controls, and control panels by using the control plane API for Recovery
31
- * Control. For more information, see <a href="https://docs.aws.amazon.com/recovery-cluster/latest/api/">Amazon Route 53 Application Recovery Controller Recovery Control API Reference</a>.</p>
32
- * </li>
33
- * <li>
34
- * <p>Route 53 Application Recovery Controller also provides continuous readiness checks to ensure that your applications are scaled to handle failover traffic.
35
- * For more information about the related API actions, see <a href="https://docs.aws.amazon.com/recovery-readiness/latest/api/">Amazon Route 53 Application Recovery Controller Recovery Readiness API Reference</a>.</p>
36
- * </li>
37
- * <li>
38
- * <p>For more information about creating resilient applications and preparing for recovery readiness with Route 53 Application Recovery Controller,
39
- * see the <a href="r53recovery/latest/dg/">Amazon Route 53 Application Recovery Controller Developer Guide</a>.</p>
40
- * </li>
41
- * </ul>
42
- */
43
- export class Route53RecoveryCluster extends Route53RecoveryClusterClient {
44
- /**
45
- * <p>Get the state for a routing control. A routing control is a simple on/off switch
46
- * that you can use to route traffic to cells. When the state is On, traffic flows to a cell. When it's off, traffic does not flow. </p>
47
- * <p>Before you can create a routing control, you first must create a cluster to host the control.
48
- * For more information, see
49
- * <a href="https://docs.aws.amazon.com/recovery-cluster/latest/api/cluster.html">CreateCluster</a>.
50
- * Access one of the endpoints for the cluster to get or update the routing control state to
51
- * redirect traffic.</p>
52
- * <p>For more information about working with routing controls, see
53
- * <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.html">Routing control</a>
54
- * in the Route 53 Application Recovery Controller Developer Guide.</p>
55
- */
56
- public getRoutingControlState(
57
- args: GetRoutingControlStateCommandInput,
58
- options?: __HttpHandlerOptions
59
- ): Promise<GetRoutingControlStateCommandOutput>;
60
- public getRoutingControlState(
61
- args: GetRoutingControlStateCommandInput,
62
- cb: (err: any, data?: GetRoutingControlStateCommandOutput) => void
63
- ): void;
64
- public getRoutingControlState(
65
- args: GetRoutingControlStateCommandInput,
66
- options: __HttpHandlerOptions,
67
- cb: (err: any, data?: GetRoutingControlStateCommandOutput) => void
68
- ): void;
69
- public getRoutingControlState(
70
- args: GetRoutingControlStateCommandInput,
71
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetRoutingControlStateCommandOutput) => void),
72
- cb?: (err: any, data?: GetRoutingControlStateCommandOutput) => void
73
- ): Promise<GetRoutingControlStateCommandOutput> | void {
74
- const command = new GetRoutingControlStateCommand(args);
75
- if (typeof optionsOrCb === "function") {
76
- this.send(command, optionsOrCb);
77
- } else if (typeof cb === "function") {
78
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
79
- this.send(command, optionsOrCb || {}, cb);
80
- } else {
81
- return this.send(command, optionsOrCb);
82
- }
83
- }
84
-
85
- /**
86
- * <p>Set the state of the routing control to reroute traffic. You can set the value to be On or Off.
87
- * When the state is On, traffic flows to a cell. When it's off, traffic does not flow.</p>
88
- * <p>For more information about working with routing controls, see
89
- * <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.html">Routing control</a>
90
- * in the Route 53 Application Recovery Controller Developer Guide.</p>
91
- */
92
- public updateRoutingControlState(
93
- args: UpdateRoutingControlStateCommandInput,
94
- options?: __HttpHandlerOptions
95
- ): Promise<UpdateRoutingControlStateCommandOutput>;
96
- public updateRoutingControlState(
97
- args: UpdateRoutingControlStateCommandInput,
98
- cb: (err: any, data?: UpdateRoutingControlStateCommandOutput) => void
99
- ): void;
100
- public updateRoutingControlState(
101
- args: UpdateRoutingControlStateCommandInput,
102
- options: __HttpHandlerOptions,
103
- cb: (err: any, data?: UpdateRoutingControlStateCommandOutput) => void
104
- ): void;
105
- public updateRoutingControlState(
106
- args: UpdateRoutingControlStateCommandInput,
107
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateRoutingControlStateCommandOutput) => void),
108
- cb?: (err: any, data?: UpdateRoutingControlStateCommandOutput) => void
109
- ): Promise<UpdateRoutingControlStateCommandOutput> | void {
110
- const command = new UpdateRoutingControlStateCommand(args);
111
- if (typeof optionsOrCb === "function") {
112
- this.send(command, optionsOrCb);
113
- } else if (typeof cb === "function") {
114
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
115
- this.send(command, optionsOrCb || {}, cb);
116
- } else {
117
- return this.send(command, optionsOrCb);
118
- }
119
- }
120
-
121
- /**
122
- * <p>Set multiple routing control states. You can set the value for each state to be On or Off.
123
- * When the state is On, traffic flows to a cell. When it's off, traffic does not flow.</p>
124
- * <p>For more information about working with routing controls, see
125
- * <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.html">Routing control</a>
126
- * in the Route 53 Application Recovery Controller Developer Guide.</p>
127
- */
128
- public updateRoutingControlStates(
129
- args: UpdateRoutingControlStatesCommandInput,
130
- options?: __HttpHandlerOptions
131
- ): Promise<UpdateRoutingControlStatesCommandOutput>;
132
- public updateRoutingControlStates(
133
- args: UpdateRoutingControlStatesCommandInput,
134
- cb: (err: any, data?: UpdateRoutingControlStatesCommandOutput) => void
135
- ): void;
136
- public updateRoutingControlStates(
137
- args: UpdateRoutingControlStatesCommandInput,
138
- options: __HttpHandlerOptions,
139
- cb: (err: any, data?: UpdateRoutingControlStatesCommandOutput) => void
140
- ): void;
141
- public updateRoutingControlStates(
142
- args: UpdateRoutingControlStatesCommandInput,
143
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateRoutingControlStatesCommandOutput) => void),
144
- cb?: (err: any, data?: UpdateRoutingControlStatesCommandOutput) => void
145
- ): Promise<UpdateRoutingControlStatesCommandOutput> | void {
146
- const command = new UpdateRoutingControlStatesCommand(args);
147
- if (typeof optionsOrCb === "function") {
148
- this.send(command, optionsOrCb);
149
- } else if (typeof cb === "function") {
150
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
151
- this.send(command, optionsOrCb || {}, cb);
152
- } else {
153
- return this.send(command, optionsOrCb);
154
- }
155
- }
156
- }