@aws-sdk/client-route53-recovery-cluster 3.956.0 → 3.958.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/README.md +2 -13
- package/dist-cjs/auth/httpAuthSchemeProvider.js +3 -4
- package/dist-cjs/index.js +81 -96
- package/dist-cjs/runtimeConfig.browser.js +1 -2
- package/dist-cjs/runtimeConfig.js +2 -4
- package/dist-es/auth/httpAuthSchemeProvider.js +3 -4
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +4 -6
- package/dist-es/schemas/schemas_0.js +81 -96
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -48,10 +48,8 @@ recovery readiness with Route 53 ARC, see the <a href="https://docs.aws.amazon.c
|
|
|
48
48
|
</ul>
|
|
49
49
|
|
|
50
50
|
## Installing
|
|
51
|
-
|
|
52
51
|
To install this package, simply type add or install @aws-sdk/client-route53-recovery-cluster
|
|
53
52
|
using your favorite package manager:
|
|
54
|
-
|
|
55
53
|
- `npm install @aws-sdk/client-route53-recovery-cluster`
|
|
56
54
|
- `yarn add @aws-sdk/client-route53-recovery-cluster`
|
|
57
55
|
- `pnpm add @aws-sdk/client-route53-recovery-cluster`
|
|
@@ -66,10 +64,7 @@ the commands you need, for example `ListRoutingControlsCommand`:
|
|
|
66
64
|
|
|
67
65
|
```js
|
|
68
66
|
// ES5 example
|
|
69
|
-
const {
|
|
70
|
-
Route53RecoveryClusterClient,
|
|
71
|
-
ListRoutingControlsCommand,
|
|
72
|
-
} = require("@aws-sdk/client-route53-recovery-cluster");
|
|
67
|
+
const { Route53RecoveryClusterClient, ListRoutingControlsCommand } = require("@aws-sdk/client-route53-recovery-cluster");
|
|
73
68
|
```
|
|
74
69
|
|
|
75
70
|
```ts
|
|
@@ -90,9 +85,7 @@ To send a request, you:
|
|
|
90
85
|
// a client can be shared by different commands.
|
|
91
86
|
const client = new Route53RecoveryClusterClient({ region: "REGION" });
|
|
92
87
|
|
|
93
|
-
const params = {
|
|
94
|
-
/** input parameters */
|
|
95
|
-
};
|
|
88
|
+
const params = { /** input parameters */ };
|
|
96
89
|
const command = new ListRoutingControlsCommand(params);
|
|
97
90
|
```
|
|
98
91
|
|
|
@@ -251,7 +244,6 @@ GetRoutingControlState
|
|
|
251
244
|
</summary>
|
|
252
245
|
|
|
253
246
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53-recovery-cluster/command/GetRoutingControlStateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53-recovery-cluster/Interface/GetRoutingControlStateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53-recovery-cluster/Interface/GetRoutingControlStateCommandOutput/)
|
|
254
|
-
|
|
255
247
|
</details>
|
|
256
248
|
<details>
|
|
257
249
|
<summary>
|
|
@@ -259,7 +251,6 @@ ListRoutingControls
|
|
|
259
251
|
</summary>
|
|
260
252
|
|
|
261
253
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53-recovery-cluster/command/ListRoutingControlsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53-recovery-cluster/Interface/ListRoutingControlsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53-recovery-cluster/Interface/ListRoutingControlsCommandOutput/)
|
|
262
|
-
|
|
263
254
|
</details>
|
|
264
255
|
<details>
|
|
265
256
|
<summary>
|
|
@@ -267,7 +258,6 @@ UpdateRoutingControlState
|
|
|
267
258
|
</summary>
|
|
268
259
|
|
|
269
260
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53-recovery-cluster/command/UpdateRoutingControlStateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53-recovery-cluster/Interface/UpdateRoutingControlStateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53-recovery-cluster/Interface/UpdateRoutingControlStateCommandOutput/)
|
|
270
|
-
|
|
271
261
|
</details>
|
|
272
262
|
<details>
|
|
273
263
|
<summary>
|
|
@@ -275,5 +265,4 @@ UpdateRoutingControlStates
|
|
|
275
265
|
</summary>
|
|
276
266
|
|
|
277
267
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53-recovery-cluster/command/UpdateRoutingControlStatesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53-recovery-cluster/Interface/UpdateRoutingControlStatesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53-recovery-cluster/Interface/UpdateRoutingControlStatesCommandOutput/)
|
|
278
|
-
|
|
279
268
|
</details>
|
|
@@ -6,10 +6,9 @@ const util_middleware_1 = require("@smithy/util-middleware");
|
|
|
6
6
|
const defaultRoute53RecoveryClusterHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
7
|
return {
|
|
8
8
|
operation: (0, util_middleware_1.getSmithyContext)(context).operation,
|
|
9
|
-
region:
|
|
10
|
-
(
|
|
11
|
-
|
|
12
|
-
})(),
|
|
9
|
+
region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
|
|
10
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
11
|
+
})(),
|
|
13
12
|
};
|
|
14
13
|
};
|
|
15
14
|
exports.defaultRoute53RecoveryClusterHttpAuthSchemeParametersProvider = defaultRoute53RecoveryClusterHttpAuthSchemeParametersProvider;
|
package/dist-cjs/index.js
CHANGED
|
@@ -290,146 +290,131 @@ const _s = "server";
|
|
|
290
290
|
const _sC = "serviceCode";
|
|
291
291
|
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.route53recoverycluster";
|
|
292
292
|
const n0 = "com.amazonaws.route53recoverycluster";
|
|
293
|
-
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
293
|
+
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
294
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
295
|
+
[_m],
|
|
296
|
+
[0]
|
|
297
|
+
];
|
|
294
298
|
schema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
|
|
295
|
-
var ConflictException$ = [-3, n0, _CE,
|
|
299
|
+
var ConflictException$ = [-3, n0, _CE,
|
|
300
|
+
{ [_e]: _c, [_hE]: 409 },
|
|
301
|
+
[_m, _rI, _rT],
|
|
302
|
+
[0, 0, 0]
|
|
303
|
+
];
|
|
296
304
|
schema.TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
|
|
297
|
-
var EndpointTemporarilyUnavailableException$ = [
|
|
298
|
-
-3,
|
|
299
|
-
n0,
|
|
300
|
-
_ETUE,
|
|
305
|
+
var EndpointTemporarilyUnavailableException$ = [-3, n0, _ETUE,
|
|
301
306
|
{ [_e]: _s, [_hE]: 503 },
|
|
302
307
|
[_m],
|
|
303
|
-
[0]
|
|
308
|
+
[0]
|
|
304
309
|
];
|
|
305
310
|
schema.TypeRegistry.for(n0).registerError(EndpointTemporarilyUnavailableException$, EndpointTemporarilyUnavailableException);
|
|
306
|
-
var GetRoutingControlStateRequest$ = [3, n0, _GRCSR,
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
311
|
+
var GetRoutingControlStateRequest$ = [3, n0, _GRCSR,
|
|
312
|
+
0,
|
|
313
|
+
[_RCA],
|
|
314
|
+
[0]
|
|
315
|
+
];
|
|
316
|
+
var GetRoutingControlStateResponse$ = [3, n0, _GRCSRe,
|
|
317
|
+
0,
|
|
318
|
+
[_RCA, _RCS, _RCN],
|
|
319
|
+
[0, 0, 0]
|
|
320
|
+
];
|
|
321
|
+
var InternalServerException$ = [-3, n0, _ISE,
|
|
312
322
|
{ [_e]: _s, [_hE]: 500 },
|
|
313
323
|
[_m, _rAS],
|
|
314
|
-
[0, [1, { [_hH]: _RA }]]
|
|
324
|
+
[0, [1, { [_hH]: _RA }]]
|
|
315
325
|
];
|
|
316
326
|
schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
|
|
317
|
-
var ListRoutingControlsRequest$ = [3, n0, _LRCR,
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
327
|
+
var ListRoutingControlsRequest$ = [3, n0, _LRCR,
|
|
328
|
+
0,
|
|
329
|
+
[_CPA, _NT, _MR],
|
|
330
|
+
[0, 0, 1]
|
|
331
|
+
];
|
|
332
|
+
var ListRoutingControlsResponse$ = [3, n0, _LRCRi,
|
|
322
333
|
0,
|
|
323
334
|
[_RC, _NT],
|
|
324
|
-
[() => RoutingControls, 0]
|
|
335
|
+
[() => RoutingControls, 0]
|
|
325
336
|
];
|
|
326
|
-
var ResourceNotFoundException$ = [
|
|
327
|
-
-3,
|
|
328
|
-
n0,
|
|
329
|
-
_RNFE,
|
|
337
|
+
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
330
338
|
{ [_e]: _c, [_hE]: 404 },
|
|
331
339
|
[_m, _rI, _rT],
|
|
332
|
-
[0, 0, 0]
|
|
340
|
+
[0, 0, 0]
|
|
333
341
|
];
|
|
334
342
|
schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
335
|
-
var RoutingControl$ = [
|
|
336
|
-
3,
|
|
337
|
-
n0,
|
|
338
|
-
_RCo,
|
|
343
|
+
var RoutingControl$ = [3, n0, _RCo,
|
|
339
344
|
0,
|
|
340
345
|
[_CPA, _CPN, _RCA, _RCN, _RCS, _O],
|
|
341
|
-
[0, 0, 0, 0, 0, 0]
|
|
346
|
+
[0, 0, 0, 0, 0, 0]
|
|
342
347
|
];
|
|
343
|
-
var ServiceLimitExceededException$ = [
|
|
344
|
-
-3,
|
|
345
|
-
n0,
|
|
346
|
-
_SLEE,
|
|
348
|
+
var ServiceLimitExceededException$ = [-3, n0, _SLEE,
|
|
347
349
|
{ [_e]: _c, [_hE]: 402 },
|
|
348
350
|
[_m, _rI, _rT, _lC, _sC],
|
|
349
|
-
[0, 0, 0, 0, 0]
|
|
351
|
+
[0, 0, 0, 0, 0]
|
|
350
352
|
];
|
|
351
353
|
schema.TypeRegistry.for(n0).registerError(ServiceLimitExceededException$, ServiceLimitExceededException);
|
|
352
|
-
var ThrottlingException$ = [
|
|
353
|
-
-3,
|
|
354
|
-
n0,
|
|
355
|
-
_TE,
|
|
354
|
+
var ThrottlingException$ = [-3, n0, _TE,
|
|
356
355
|
{ [_e]: _c, [_hE]: 429 },
|
|
357
356
|
[_m, _rAS],
|
|
358
|
-
[0, [1, { [_hH]: _RA }]]
|
|
357
|
+
[0, [1, { [_hH]: _RA }]]
|
|
359
358
|
];
|
|
360
359
|
schema.TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
|
|
361
|
-
var UpdateRoutingControlStateEntry$ = [3, n0, _URCSE,
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
360
|
+
var UpdateRoutingControlStateEntry$ = [3, n0, _URCSE,
|
|
361
|
+
0,
|
|
362
|
+
[_RCA, _RCS],
|
|
363
|
+
[0, 0]
|
|
364
|
+
];
|
|
365
|
+
var UpdateRoutingControlStateRequest$ = [3, n0, _URCSR,
|
|
366
366
|
0,
|
|
367
367
|
[_RCA, _RCS, _SRTO],
|
|
368
|
-
[0, 0, 64 | 0]
|
|
368
|
+
[0, 0, 64 | 0]
|
|
369
369
|
];
|
|
370
|
-
var UpdateRoutingControlStateResponse$ = [3, n0, _URCSRp,
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
370
|
+
var UpdateRoutingControlStateResponse$ = [3, n0, _URCSRp,
|
|
371
|
+
0,
|
|
372
|
+
[],
|
|
373
|
+
[]
|
|
374
|
+
];
|
|
375
|
+
var UpdateRoutingControlStatesRequest$ = [3, n0, _URCSRpd,
|
|
375
376
|
0,
|
|
376
377
|
[_URCSEp, _SRTO],
|
|
377
|
-
[() => UpdateRoutingControlStateEntries, 64 | 0]
|
|
378
|
+
[() => UpdateRoutingControlStateEntries, 64 | 0]
|
|
379
|
+
];
|
|
380
|
+
var UpdateRoutingControlStatesResponse$ = [3, n0, _URCSRpda,
|
|
381
|
+
0,
|
|
382
|
+
[],
|
|
383
|
+
[]
|
|
378
384
|
];
|
|
379
|
-
var
|
|
380
|
-
var ValidationException$ = [
|
|
381
|
-
-3,
|
|
382
|
-
n0,
|
|
383
|
-
_VE,
|
|
385
|
+
var ValidationException$ = [-3, n0, _VE,
|
|
384
386
|
{ [_e]: _c, [_hE]: 400 },
|
|
385
387
|
[_m, _r, _f],
|
|
386
|
-
[0, 0, () => ValidationExceptionFieldList]
|
|
388
|
+
[0, 0, () => ValidationExceptionFieldList]
|
|
387
389
|
];
|
|
388
390
|
schema.TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
|
|
389
|
-
var ValidationExceptionField$ = [3, n0, _VEF,
|
|
390
|
-
var Route53RecoveryClusterServiceException$ = [
|
|
391
|
-
-3,
|
|
392
|
-
_sm,
|
|
393
|
-
"Route53RecoveryClusterServiceException",
|
|
391
|
+
var ValidationExceptionField$ = [3, n0, _VEF,
|
|
394
392
|
0,
|
|
395
|
-
[],
|
|
396
|
-
[]
|
|
393
|
+
[_n, _m],
|
|
394
|
+
[0, 0]
|
|
397
395
|
];
|
|
396
|
+
var Route53RecoveryClusterServiceException$ = [-3, _sm, "Route53RecoveryClusterServiceException", 0, [], []];
|
|
398
397
|
schema.TypeRegistry.for(_sm).registerError(Route53RecoveryClusterServiceException$, Route53RecoveryClusterServiceException);
|
|
399
|
-
var RoutingControls = [1, n0, _RC,
|
|
400
|
-
|
|
401
|
-
var ValidationExceptionFieldList = [1, n0, _VEFL, 0, () => ValidationExceptionField$];
|
|
402
|
-
var GetRoutingControlState$ = [
|
|
403
|
-
9,
|
|
404
|
-
n0,
|
|
405
|
-
_GRCS,
|
|
406
|
-
0,
|
|
407
|
-
() => GetRoutingControlStateRequest$,
|
|
408
|
-
() => GetRoutingControlStateResponse$,
|
|
398
|
+
var RoutingControls = [1, n0, _RC,
|
|
399
|
+
0, () => RoutingControl$
|
|
409
400
|
];
|
|
410
|
-
var
|
|
411
|
-
|
|
412
|
-
n0,
|
|
413
|
-
_LRC,
|
|
414
|
-
0,
|
|
415
|
-
() => ListRoutingControlsRequest$,
|
|
416
|
-
() => ListRoutingControlsResponse$,
|
|
401
|
+
var UpdateRoutingControlStateEntries = [1, n0, _URCSEp,
|
|
402
|
+
0, () => UpdateRoutingControlStateEntry$
|
|
417
403
|
];
|
|
418
|
-
var
|
|
419
|
-
|
|
420
|
-
n0,
|
|
421
|
-
_URCS,
|
|
422
|
-
0,
|
|
423
|
-
() => UpdateRoutingControlStateRequest$,
|
|
424
|
-
() => UpdateRoutingControlStateResponse$,
|
|
404
|
+
var ValidationExceptionFieldList = [1, n0, _VEFL,
|
|
405
|
+
0, () => ValidationExceptionField$
|
|
425
406
|
];
|
|
426
|
-
var
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
0,
|
|
431
|
-
|
|
432
|
-
|
|
407
|
+
var GetRoutingControlState$ = [9, n0, _GRCS,
|
|
408
|
+
0, () => GetRoutingControlStateRequest$, () => GetRoutingControlStateResponse$
|
|
409
|
+
];
|
|
410
|
+
var ListRoutingControls$ = [9, n0, _LRC,
|
|
411
|
+
0, () => ListRoutingControlsRequest$, () => ListRoutingControlsResponse$
|
|
412
|
+
];
|
|
413
|
+
var UpdateRoutingControlState$ = [9, n0, _URCS,
|
|
414
|
+
0, () => UpdateRoutingControlStateRequest$, () => UpdateRoutingControlStateResponse$
|
|
415
|
+
];
|
|
416
|
+
var UpdateRoutingControlStates$ = [9, n0, _URCSp,
|
|
417
|
+
0, () => UpdateRoutingControlStatesRequest$, () => UpdateRoutingControlStatesResponse$
|
|
433
418
|
];
|
|
434
419
|
|
|
435
420
|
class GetRoutingControlStateCommand extends smithyClient.Command
|
|
@@ -24,8 +24,7 @@ const getRuntimeConfig = (config) => {
|
|
|
24
24
|
defaultsMode,
|
|
25
25
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
26
26
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
27
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
28
|
-
(0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
27
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
29
28
|
maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
30
29
|
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
31
30
|
requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
@@ -34,11 +34,9 @@ const getRuntimeConfig = (config) => {
|
|
|
34
34
|
authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
35
35
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
36
36
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
|
|
37
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
38
|
-
(0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
37
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
39
38
|
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
40
|
-
region: config?.region ??
|
|
41
|
-
(0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
39
|
+
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
42
40
|
requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
43
41
|
retryMode: config?.retryMode ??
|
|
44
42
|
(0, node_config_provider_1.loadConfig)({
|
|
@@ -3,10 +3,9 @@ import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
|
|
|
3
3
|
export const defaultRoute53RecoveryClusterHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
4
|
return {
|
|
5
5
|
operation: getSmithyContext(context).operation,
|
|
6
|
-
region:
|
|
7
|
-
(
|
|
8
|
-
|
|
9
|
-
})(),
|
|
6
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
7
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
8
|
+
})(),
|
|
10
9
|
};
|
|
11
10
|
};
|
|
12
11
|
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
@@ -20,8 +20,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
20
20
|
defaultsMode,
|
|
21
21
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
22
22
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
23
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
24
|
-
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
23
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
25
24
|
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
26
25
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
27
26
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import {
|
|
2
|
+
import { emitWarningIfUnsupportedVersion as awsCheckVersion, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core";
|
|
3
3
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
4
|
-
import {
|
|
4
|
+
import { createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS } from "@aws-sdk/util-user-agent-node";
|
|
5
5
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
6
6
|
import { Hash } from "@smithy/hash-node";
|
|
7
7
|
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
|
|
@@ -30,11 +30,9 @@ export const getRuntimeConfig = (config) => {
|
|
|
30
30
|
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
31
31
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
32
32
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
33
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
34
|
-
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
33
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
35
34
|
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
36
|
-
region: config?.region ??
|
|
37
|
-
loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
35
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
38
36
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
39
37
|
retryMode: config?.retryMode ??
|
|
40
38
|
loadNodeConfig({
|
|
@@ -53,145 +53,130 @@ const n0 = "com.amazonaws.route53recoverycluster";
|
|
|
53
53
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
54
54
|
import { AccessDeniedException, ConflictException, EndpointTemporarilyUnavailableException, InternalServerException, ResourceNotFoundException, ServiceLimitExceededException, ThrottlingException, ValidationException, } from "../models/errors";
|
|
55
55
|
import { Route53RecoveryClusterServiceException } from "../models/Route53RecoveryClusterServiceException";
|
|
56
|
-
export var AccessDeniedException$ = [-3, n0, _ADE,
|
|
56
|
+
export var AccessDeniedException$ = [-3, n0, _ADE,
|
|
57
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
58
|
+
[_m],
|
|
59
|
+
[0]
|
|
60
|
+
];
|
|
57
61
|
TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
|
|
58
|
-
export var ConflictException$ = [-3, n0, _CE,
|
|
62
|
+
export var ConflictException$ = [-3, n0, _CE,
|
|
63
|
+
{ [_e]: _c, [_hE]: 409 },
|
|
64
|
+
[_m, _rI, _rT],
|
|
65
|
+
[0, 0, 0]
|
|
66
|
+
];
|
|
59
67
|
TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
|
|
60
|
-
export var EndpointTemporarilyUnavailableException$ = [
|
|
61
|
-
-3,
|
|
62
|
-
n0,
|
|
63
|
-
_ETUE,
|
|
68
|
+
export var EndpointTemporarilyUnavailableException$ = [-3, n0, _ETUE,
|
|
64
69
|
{ [_e]: _s, [_hE]: 503 },
|
|
65
70
|
[_m],
|
|
66
|
-
[0]
|
|
71
|
+
[0]
|
|
67
72
|
];
|
|
68
73
|
TypeRegistry.for(n0).registerError(EndpointTemporarilyUnavailableException$, EndpointTemporarilyUnavailableException);
|
|
69
|
-
export var GetRoutingControlStateRequest$ = [3, n0, _GRCSR,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
export var GetRoutingControlStateRequest$ = [3, n0, _GRCSR,
|
|
75
|
+
0,
|
|
76
|
+
[_RCA],
|
|
77
|
+
[0]
|
|
78
|
+
];
|
|
79
|
+
export var GetRoutingControlStateResponse$ = [3, n0, _GRCSRe,
|
|
80
|
+
0,
|
|
81
|
+
[_RCA, _RCS, _RCN],
|
|
82
|
+
[0, 0, 0]
|
|
83
|
+
];
|
|
84
|
+
export var InternalServerException$ = [-3, n0, _ISE,
|
|
75
85
|
{ [_e]: _s, [_hE]: 500 },
|
|
76
86
|
[_m, _rAS],
|
|
77
|
-
[0, [1, { [_hH]: _RA }]]
|
|
87
|
+
[0, [1, { [_hH]: _RA }]]
|
|
78
88
|
];
|
|
79
89
|
TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
|
|
80
|
-
export var ListRoutingControlsRequest$ = [3, n0, _LRCR,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
90
|
+
export var ListRoutingControlsRequest$ = [3, n0, _LRCR,
|
|
91
|
+
0,
|
|
92
|
+
[_CPA, _NT, _MR],
|
|
93
|
+
[0, 0, 1]
|
|
94
|
+
];
|
|
95
|
+
export var ListRoutingControlsResponse$ = [3, n0, _LRCRi,
|
|
85
96
|
0,
|
|
86
97
|
[_RC, _NT],
|
|
87
|
-
[() => RoutingControls, 0]
|
|
98
|
+
[() => RoutingControls, 0]
|
|
88
99
|
];
|
|
89
|
-
export var ResourceNotFoundException$ = [
|
|
90
|
-
-3,
|
|
91
|
-
n0,
|
|
92
|
-
_RNFE,
|
|
100
|
+
export var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
93
101
|
{ [_e]: _c, [_hE]: 404 },
|
|
94
102
|
[_m, _rI, _rT],
|
|
95
|
-
[0, 0, 0]
|
|
103
|
+
[0, 0, 0]
|
|
96
104
|
];
|
|
97
105
|
TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
98
|
-
export var RoutingControl$ = [
|
|
99
|
-
3,
|
|
100
|
-
n0,
|
|
101
|
-
_RCo,
|
|
106
|
+
export var RoutingControl$ = [3, n0, _RCo,
|
|
102
107
|
0,
|
|
103
108
|
[_CPA, _CPN, _RCA, _RCN, _RCS, _O],
|
|
104
|
-
[0, 0, 0, 0, 0, 0]
|
|
109
|
+
[0, 0, 0, 0, 0, 0]
|
|
105
110
|
];
|
|
106
|
-
export var ServiceLimitExceededException$ = [
|
|
107
|
-
-3,
|
|
108
|
-
n0,
|
|
109
|
-
_SLEE,
|
|
111
|
+
export var ServiceLimitExceededException$ = [-3, n0, _SLEE,
|
|
110
112
|
{ [_e]: _c, [_hE]: 402 },
|
|
111
113
|
[_m, _rI, _rT, _lC, _sC],
|
|
112
|
-
[0, 0, 0, 0, 0]
|
|
114
|
+
[0, 0, 0, 0, 0]
|
|
113
115
|
];
|
|
114
116
|
TypeRegistry.for(n0).registerError(ServiceLimitExceededException$, ServiceLimitExceededException);
|
|
115
|
-
export var ThrottlingException$ = [
|
|
116
|
-
-3,
|
|
117
|
-
n0,
|
|
118
|
-
_TE,
|
|
117
|
+
export var ThrottlingException$ = [-3, n0, _TE,
|
|
119
118
|
{ [_e]: _c, [_hE]: 429 },
|
|
120
119
|
[_m, _rAS],
|
|
121
|
-
[0, [1, { [_hH]: _RA }]]
|
|
120
|
+
[0, [1, { [_hH]: _RA }]]
|
|
122
121
|
];
|
|
123
122
|
TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
|
|
124
|
-
export var UpdateRoutingControlStateEntry$ = [3, n0, _URCSE,
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
123
|
+
export var UpdateRoutingControlStateEntry$ = [3, n0, _URCSE,
|
|
124
|
+
0,
|
|
125
|
+
[_RCA, _RCS],
|
|
126
|
+
[0, 0]
|
|
127
|
+
];
|
|
128
|
+
export var UpdateRoutingControlStateRequest$ = [3, n0, _URCSR,
|
|
129
129
|
0,
|
|
130
130
|
[_RCA, _RCS, _SRTO],
|
|
131
|
-
[0, 0, 64 | 0]
|
|
131
|
+
[0, 0, 64 | 0]
|
|
132
132
|
];
|
|
133
|
-
export var UpdateRoutingControlStateResponse$ = [3, n0, _URCSRp,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
133
|
+
export var UpdateRoutingControlStateResponse$ = [3, n0, _URCSRp,
|
|
134
|
+
0,
|
|
135
|
+
[],
|
|
136
|
+
[]
|
|
137
|
+
];
|
|
138
|
+
export var UpdateRoutingControlStatesRequest$ = [3, n0, _URCSRpd,
|
|
138
139
|
0,
|
|
139
140
|
[_URCSEp, _SRTO],
|
|
140
|
-
[() => UpdateRoutingControlStateEntries, 64 | 0]
|
|
141
|
+
[() => UpdateRoutingControlStateEntries, 64 | 0]
|
|
142
|
+
];
|
|
143
|
+
export var UpdateRoutingControlStatesResponse$ = [3, n0, _URCSRpda,
|
|
144
|
+
0,
|
|
145
|
+
[],
|
|
146
|
+
[]
|
|
141
147
|
];
|
|
142
|
-
export var
|
|
143
|
-
export var ValidationException$ = [
|
|
144
|
-
-3,
|
|
145
|
-
n0,
|
|
146
|
-
_VE,
|
|
148
|
+
export var ValidationException$ = [-3, n0, _VE,
|
|
147
149
|
{ [_e]: _c, [_hE]: 400 },
|
|
148
150
|
[_m, _r, _f],
|
|
149
|
-
[0, 0, () => ValidationExceptionFieldList]
|
|
151
|
+
[0, 0, () => ValidationExceptionFieldList]
|
|
150
152
|
];
|
|
151
153
|
TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
|
|
152
|
-
export var ValidationExceptionField$ = [3, n0, _VEF,
|
|
153
|
-
export var Route53RecoveryClusterServiceException$ = [
|
|
154
|
-
-3,
|
|
155
|
-
_sm,
|
|
156
|
-
"Route53RecoveryClusterServiceException",
|
|
154
|
+
export var ValidationExceptionField$ = [3, n0, _VEF,
|
|
157
155
|
0,
|
|
158
|
-
[],
|
|
159
|
-
[]
|
|
156
|
+
[_n, _m],
|
|
157
|
+
[0, 0]
|
|
160
158
|
];
|
|
159
|
+
export var Route53RecoveryClusterServiceException$ = [-3, _sm, "Route53RecoveryClusterServiceException", 0, [], []];
|
|
161
160
|
TypeRegistry.for(_sm).registerError(Route53RecoveryClusterServiceException$, Route53RecoveryClusterServiceException);
|
|
162
161
|
var Arns = 64 | 0;
|
|
163
|
-
var RoutingControls = [1, n0, _RC,
|
|
164
|
-
|
|
165
|
-
var ValidationExceptionFieldList = [1, n0, _VEFL, 0, () => ValidationExceptionField$];
|
|
166
|
-
export var GetRoutingControlState$ = [
|
|
167
|
-
9,
|
|
168
|
-
n0,
|
|
169
|
-
_GRCS,
|
|
170
|
-
0,
|
|
171
|
-
() => GetRoutingControlStateRequest$,
|
|
172
|
-
() => GetRoutingControlStateResponse$,
|
|
162
|
+
var RoutingControls = [1, n0, _RC,
|
|
163
|
+
0, () => RoutingControl$
|
|
173
164
|
];
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
n0,
|
|
177
|
-
_LRC,
|
|
178
|
-
0,
|
|
179
|
-
() => ListRoutingControlsRequest$,
|
|
180
|
-
() => ListRoutingControlsResponse$,
|
|
165
|
+
var UpdateRoutingControlStateEntries = [1, n0, _URCSEp,
|
|
166
|
+
0, () => UpdateRoutingControlStateEntry$
|
|
181
167
|
];
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
n0,
|
|
185
|
-
_URCS,
|
|
186
|
-
0,
|
|
187
|
-
() => UpdateRoutingControlStateRequest$,
|
|
188
|
-
() => UpdateRoutingControlStateResponse$,
|
|
168
|
+
var ValidationExceptionFieldList = [1, n0, _VEFL,
|
|
169
|
+
0, () => ValidationExceptionField$
|
|
189
170
|
];
|
|
190
|
-
export var
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
0,
|
|
195
|
-
|
|
196
|
-
|
|
171
|
+
export var GetRoutingControlState$ = [9, n0, _GRCS,
|
|
172
|
+
0, () => GetRoutingControlStateRequest$, () => GetRoutingControlStateResponse$
|
|
173
|
+
];
|
|
174
|
+
export var ListRoutingControls$ = [9, n0, _LRC,
|
|
175
|
+
0, () => ListRoutingControlsRequest$, () => ListRoutingControlsResponse$
|
|
176
|
+
];
|
|
177
|
+
export var UpdateRoutingControlState$ = [9, n0, _URCS,
|
|
178
|
+
0, () => UpdateRoutingControlStateRequest$, () => UpdateRoutingControlStateResponse$
|
|
179
|
+
];
|
|
180
|
+
export var UpdateRoutingControlStates$ = [9, n0, _URCSp,
|
|
181
|
+
0, () => UpdateRoutingControlStatesRequest$, () => UpdateRoutingControlStatesResponse$
|
|
197
182
|
];
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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.
|
|
4
|
+
"version": "3.958.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-route53-recovery-cluster",
|
|
8
8
|
"build:es": "tsc -p tsconfig.es.json",
|
|
9
|
-
"build:include:deps": "
|
|
9
|
+
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
11
11
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
12
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
@@ -21,17 +21,17 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
31
|
-
"@aws-sdk/types": "3.
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
24
|
+
"@aws-sdk/core": "3.957.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.958.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.957.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.957.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.957.0",
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "3.957.0",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "3.957.0",
|
|
31
|
+
"@aws-sdk/types": "3.957.0",
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.957.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-browser": "3.957.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.957.0",
|
|
35
35
|
"@smithy/config-resolver": "^4.4.5",
|
|
36
36
|
"@smithy/core": "^3.20.0",
|
|
37
37
|
"@smithy/fetch-http-handler": "^5.3.8",
|