@aws-sdk/client-route53-recovery-cluster 3.1075.0 → 3.1077.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
@@ -1,21 +1,58 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultRoute53RecoveryClusterHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { GetRoutingControlState$, ListRoutingControls$, UpdateRoutingControlState$, UpdateRoutingControlStates$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { Route53RecoveryClusterServiceException } = require("./models/Route53RecoveryClusterServiceException");
18
- exports.Route53RecoveryClusterServiceException = Route53RecoveryClusterServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsJson1_0Protocol } = require("@aws-sdk/core/protocols");
16
+ const { Sha256 } = require("@smithy/core/checksum");
17
+
18
+ const defaultRoute53RecoveryClusterHttpAuthSchemeParametersProvider = async (config, context, input) => {
19
+ return {
20
+ operation: getSmithyContext(context).operation,
21
+ region: await normalizeProvider(config.region)() || (() => {
22
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
23
+ })(),
24
+ };
25
+ };
26
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
27
+ return {
28
+ schemeId: "aws.auth#sigv4",
29
+ signingProperties: {
30
+ name: "route53-recovery-cluster",
31
+ region: authParameters.region,
32
+ },
33
+ propertiesExtractor: (config, context) => ({
34
+ signingProperties: {
35
+ config,
36
+ context,
37
+ },
38
+ }),
39
+ };
40
+ }
41
+ const defaultRoute53RecoveryClusterHttpAuthSchemeProvider = (authParameters) => {
42
+ const options = [];
43
+ switch (authParameters.operation) {
44
+ default: {
45
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
46
+ }
47
+ }
48
+ return options;
49
+ };
50
+ const resolveHttpAuthSchemeConfig = (config) => {
51
+ const config_0 = resolveAwsSdkSigV4Config(config);
52
+ return Object.assign(config_0, {
53
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
54
+ });
55
+ };
19
56
 
20
57
  const resolveClientEndpointParameters = (options) => {
21
58
  return Object.assign(options, {
@@ -31,6 +68,447 @@ const commonParams = {
31
68
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
69
  };
33
70
 
71
+ var version = "3.1076.0";
72
+ var packageInfo = {
73
+ version: version};
74
+
75
+ const k = "ref";
76
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
77
+ const _data = {
78
+ conditions: [
79
+ [c, [g]],
80
+ [c, j],
81
+ ["aws.partition", j, d],
82
+ [e, [{ [k]: "UseFIPS" }, b]],
83
+ [e, [{ [k]: "UseDualStack" }, b]],
84
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
85
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
86
+ ],
87
+ results: [
88
+ [a],
89
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
90
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
91
+ [g, i],
92
+ ["https://route53-recovery-cluster-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
93
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
94
+ ["https://route53-recovery-cluster-fips.{Region}.{PartitionResult#dnsSuffix}", i],
95
+ [a, "FIPS is enabled but this partition does not support FIPS"],
96
+ ["https://route53-recovery-cluster.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
97
+ [a, "DualStack is enabled but this partition does not support DualStack"],
98
+ ["https://route53-recovery-cluster.{Region}.{PartitionResult#dnsSuffix}", i],
99
+ [a, "Invalid Configuration: Missing Region"]
100
+ ]
101
+ };
102
+ const root = 2;
103
+ const r = 100_000_000;
104
+ const nodes = new Int32Array([
105
+ -1, 1, -1,
106
+ 0, 12, 3,
107
+ 1, 4, r + 11,
108
+ 2, 5, r + 11,
109
+ 3, 8, 6,
110
+ 4, 7, r + 10,
111
+ 5, r + 8, r + 9,
112
+ 4, 10, 9,
113
+ 6, r + 6, r + 7,
114
+ 5, 11, r + 5,
115
+ 6, r + 4, r + 5,
116
+ 3, r + 1, 13,
117
+ 4, r + 2, r + 3,
118
+ ]);
119
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
120
+
121
+ const cache = new EndpointCache({
122
+ size: 50,
123
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
124
+ });
125
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
126
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
127
+ endpointParams: endpointParams,
128
+ logger: context.logger,
129
+ }));
130
+ };
131
+ customEndpointFunctions.aws = awsEndpointFunctions;
132
+
133
+ class Route53RecoveryClusterServiceException extends ServiceException {
134
+ constructor(options) {
135
+ super(options);
136
+ Object.setPrototypeOf(this, Route53RecoveryClusterServiceException.prototype);
137
+ }
138
+ }
139
+
140
+ class AccessDeniedException extends Route53RecoveryClusterServiceException {
141
+ name = "AccessDeniedException";
142
+ $fault = "client";
143
+ constructor(opts) {
144
+ super({
145
+ name: "AccessDeniedException",
146
+ $fault: "client",
147
+ ...opts,
148
+ });
149
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
150
+ }
151
+ }
152
+ class ConflictException extends Route53RecoveryClusterServiceException {
153
+ name = "ConflictException";
154
+ $fault = "client";
155
+ resourceId;
156
+ resourceType;
157
+ constructor(opts) {
158
+ super({
159
+ name: "ConflictException",
160
+ $fault: "client",
161
+ ...opts,
162
+ });
163
+ Object.setPrototypeOf(this, ConflictException.prototype);
164
+ this.resourceId = opts.resourceId;
165
+ this.resourceType = opts.resourceType;
166
+ }
167
+ }
168
+ class EndpointTemporarilyUnavailableException extends Route53RecoveryClusterServiceException {
169
+ name = "EndpointTemporarilyUnavailableException";
170
+ $fault = "server";
171
+ constructor(opts) {
172
+ super({
173
+ name: "EndpointTemporarilyUnavailableException",
174
+ $fault: "server",
175
+ ...opts,
176
+ });
177
+ Object.setPrototypeOf(this, EndpointTemporarilyUnavailableException.prototype);
178
+ }
179
+ }
180
+ class InternalServerException extends Route53RecoveryClusterServiceException {
181
+ name = "InternalServerException";
182
+ $fault = "server";
183
+ retryAfterSeconds;
184
+ constructor(opts) {
185
+ super({
186
+ name: "InternalServerException",
187
+ $fault: "server",
188
+ ...opts,
189
+ });
190
+ Object.setPrototypeOf(this, InternalServerException.prototype);
191
+ this.retryAfterSeconds = opts.retryAfterSeconds;
192
+ }
193
+ }
194
+ class ResourceNotFoundException extends Route53RecoveryClusterServiceException {
195
+ name = "ResourceNotFoundException";
196
+ $fault = "client";
197
+ resourceId;
198
+ resourceType;
199
+ constructor(opts) {
200
+ super({
201
+ name: "ResourceNotFoundException",
202
+ $fault: "client",
203
+ ...opts,
204
+ });
205
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
206
+ this.resourceId = opts.resourceId;
207
+ this.resourceType = opts.resourceType;
208
+ }
209
+ }
210
+ class ThrottlingException extends Route53RecoveryClusterServiceException {
211
+ name = "ThrottlingException";
212
+ $fault = "client";
213
+ retryAfterSeconds;
214
+ constructor(opts) {
215
+ super({
216
+ name: "ThrottlingException",
217
+ $fault: "client",
218
+ ...opts,
219
+ });
220
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
221
+ this.retryAfterSeconds = opts.retryAfterSeconds;
222
+ }
223
+ }
224
+ class ValidationException extends Route53RecoveryClusterServiceException {
225
+ name = "ValidationException";
226
+ $fault = "client";
227
+ reason;
228
+ fields;
229
+ constructor(opts) {
230
+ super({
231
+ name: "ValidationException",
232
+ $fault: "client",
233
+ ...opts,
234
+ });
235
+ Object.setPrototypeOf(this, ValidationException.prototype);
236
+ this.reason = opts.reason;
237
+ this.fields = opts.fields;
238
+ }
239
+ }
240
+ class ServiceLimitExceededException extends Route53RecoveryClusterServiceException {
241
+ name = "ServiceLimitExceededException";
242
+ $fault = "client";
243
+ resourceId;
244
+ resourceType;
245
+ limitCode;
246
+ serviceCode;
247
+ constructor(opts) {
248
+ super({
249
+ name: "ServiceLimitExceededException",
250
+ $fault: "client",
251
+ ...opts,
252
+ });
253
+ Object.setPrototypeOf(this, ServiceLimitExceededException.prototype);
254
+ this.resourceId = opts.resourceId;
255
+ this.resourceType = opts.resourceType;
256
+ this.limitCode = opts.limitCode;
257
+ this.serviceCode = opts.serviceCode;
258
+ }
259
+ }
260
+
261
+ const _ADE = "AccessDeniedException";
262
+ const _CE = "ConflictException";
263
+ const _CPA = "ControlPanelArn";
264
+ const _CPN = "ControlPanelName";
265
+ const _ETUE = "EndpointTemporarilyUnavailableException";
266
+ const _GRCS = "GetRoutingControlState";
267
+ const _GRCSR = "GetRoutingControlStateRequest";
268
+ const _GRCSRe = "GetRoutingControlStateResponse";
269
+ const _ISE = "InternalServerException";
270
+ const _LRC = "ListRoutingControls";
271
+ const _LRCR = "ListRoutingControlsRequest";
272
+ const _LRCRi = "ListRoutingControlsResponse";
273
+ const _MR = "MaxResults";
274
+ const _NT = "NextToken";
275
+ const _O = "Owner";
276
+ const _RA = "Retry-After";
277
+ const _RC = "RoutingControls";
278
+ const _RCA = "RoutingControlArn";
279
+ const _RCN = "RoutingControlName";
280
+ const _RCS = "RoutingControlState";
281
+ const _RCo = "RoutingControl";
282
+ const _RNFE = "ResourceNotFoundException";
283
+ const _SLEE = "ServiceLimitExceededException";
284
+ const _SRTO = "SafetyRulesToOverride";
285
+ const _TE = "ThrottlingException";
286
+ const _URCS = "UpdateRoutingControlState";
287
+ const _URCSE = "UpdateRoutingControlStateEntry";
288
+ const _URCSEp = "UpdateRoutingControlStateEntries";
289
+ const _URCSR = "UpdateRoutingControlStateRequest";
290
+ const _URCSRp = "UpdateRoutingControlStateResponse";
291
+ const _URCSRpd = "UpdateRoutingControlStatesRequest";
292
+ const _URCSRpda = "UpdateRoutingControlStatesResponse";
293
+ const _URCSp = "UpdateRoutingControlStates";
294
+ const _VE = "ValidationException";
295
+ const _VEF = "ValidationExceptionField";
296
+ const _VEFL = "ValidationExceptionFieldList";
297
+ const _c = "client";
298
+ const _e = "error";
299
+ const _f = "fields";
300
+ const _hE = "httpError";
301
+ const _hH = "httpHeader";
302
+ const _lC = "limitCode";
303
+ const _m = "message";
304
+ const _n = "name";
305
+ const _r = "reason";
306
+ const _rAS = "retryAfterSeconds";
307
+ const _rI = "resourceId";
308
+ const _rT = "resourceType";
309
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.route53recoverycluster";
310
+ const _sC = "serviceCode";
311
+ const _se = "server";
312
+ const n0 = "com.amazonaws.route53recoverycluster";
313
+ const _s_registry = TypeRegistry.for(_s);
314
+ var Route53RecoveryClusterServiceException$ = [-3, _s, "Route53RecoveryClusterServiceException", 0, [], []];
315
+ _s_registry.registerError(Route53RecoveryClusterServiceException$, Route53RecoveryClusterServiceException);
316
+ const n0_registry = TypeRegistry.for(n0);
317
+ var AccessDeniedException$ = [-3, n0, _ADE,
318
+ { [_e]: _c, [_hE]: 403 },
319
+ [_m],
320
+ [0], 1
321
+ ];
322
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
323
+ var ConflictException$ = [-3, n0, _CE,
324
+ { [_e]: _c, [_hE]: 409 },
325
+ [_m, _rI, _rT],
326
+ [0, 0, 0], 3
327
+ ];
328
+ n0_registry.registerError(ConflictException$, ConflictException);
329
+ var EndpointTemporarilyUnavailableException$ = [-3, n0, _ETUE,
330
+ { [_e]: _se, [_hE]: 503 },
331
+ [_m],
332
+ [0], 1
333
+ ];
334
+ n0_registry.registerError(EndpointTemporarilyUnavailableException$, EndpointTemporarilyUnavailableException);
335
+ var InternalServerException$ = [-3, n0, _ISE,
336
+ { [_e]: _se, [_hE]: 500 },
337
+ [_m, _rAS],
338
+ [0, [1, { [_hH]: _RA }]], 1
339
+ ];
340
+ n0_registry.registerError(InternalServerException$, InternalServerException);
341
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
342
+ { [_e]: _c, [_hE]: 404 },
343
+ [_m, _rI, _rT],
344
+ [0, 0, 0], 3
345
+ ];
346
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
347
+ var ServiceLimitExceededException$ = [-3, n0, _SLEE,
348
+ { [_e]: _c, [_hE]: 402 },
349
+ [_m, _lC, _sC, _rI, _rT],
350
+ [0, 0, 0, 0, 0], 3
351
+ ];
352
+ n0_registry.registerError(ServiceLimitExceededException$, ServiceLimitExceededException);
353
+ var ThrottlingException$ = [-3, n0, _TE,
354
+ { [_e]: _c, [_hE]: 429 },
355
+ [_m, _rAS],
356
+ [0, [1, { [_hH]: _RA }]], 1
357
+ ];
358
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
359
+ var ValidationException$ = [-3, n0, _VE,
360
+ { [_e]: _c, [_hE]: 400 },
361
+ [_m, _r, _f],
362
+ [0, 0, () => ValidationExceptionFieldList], 1
363
+ ];
364
+ n0_registry.registerError(ValidationException$, ValidationException);
365
+ const errorTypeRegistries = [
366
+ _s_registry,
367
+ n0_registry,
368
+ ];
369
+ var GetRoutingControlStateRequest$ = [3, n0, _GRCSR,
370
+ 0,
371
+ [_RCA],
372
+ [0], 1
373
+ ];
374
+ var GetRoutingControlStateResponse$ = [3, n0, _GRCSRe,
375
+ 0,
376
+ [_RCA, _RCS, _RCN],
377
+ [0, 0, 0], 2
378
+ ];
379
+ var ListRoutingControlsRequest$ = [3, n0, _LRCR,
380
+ 0,
381
+ [_CPA, _NT, _MR],
382
+ [0, 0, 1]
383
+ ];
384
+ var ListRoutingControlsResponse$ = [3, n0, _LRCRi,
385
+ 0,
386
+ [_RC, _NT],
387
+ [() => RoutingControls, 0], 1
388
+ ];
389
+ var RoutingControl$ = [3, n0, _RCo,
390
+ 0,
391
+ [_CPA, _CPN, _RCA, _RCN, _RCS, _O],
392
+ [0, 0, 0, 0, 0, 0]
393
+ ];
394
+ var UpdateRoutingControlStateEntry$ = [3, n0, _URCSE,
395
+ 0,
396
+ [_RCA, _RCS],
397
+ [0, 0], 2
398
+ ];
399
+ var UpdateRoutingControlStateRequest$ = [3, n0, _URCSR,
400
+ 0,
401
+ [_RCA, _RCS, _SRTO],
402
+ [0, 0, 64 | 0], 2
403
+ ];
404
+ var UpdateRoutingControlStateResponse$ = [3, n0, _URCSRp,
405
+ 0,
406
+ [],
407
+ []
408
+ ];
409
+ var UpdateRoutingControlStatesRequest$ = [3, n0, _URCSRpd,
410
+ 0,
411
+ [_URCSEp, _SRTO],
412
+ [() => UpdateRoutingControlStateEntries, 64 | 0], 1
413
+ ];
414
+ var UpdateRoutingControlStatesResponse$ = [3, n0, _URCSRpda,
415
+ 0,
416
+ [],
417
+ []
418
+ ];
419
+ var ValidationExceptionField$ = [3, n0, _VEF,
420
+ 0,
421
+ [_n, _m],
422
+ [0, 0], 2
423
+ ];
424
+ var RoutingControls = [1, n0, _RC,
425
+ 0, () => RoutingControl$
426
+ ];
427
+ var UpdateRoutingControlStateEntries = [1, n0, _URCSEp,
428
+ 0, () => UpdateRoutingControlStateEntry$
429
+ ];
430
+ var ValidationExceptionFieldList = [1, n0, _VEFL,
431
+ 0, () => ValidationExceptionField$
432
+ ];
433
+ var GetRoutingControlState$ = [9, n0, _GRCS,
434
+ 0, () => GetRoutingControlStateRequest$, () => GetRoutingControlStateResponse$
435
+ ];
436
+ var ListRoutingControls$ = [9, n0, _LRC,
437
+ 0, () => ListRoutingControlsRequest$, () => ListRoutingControlsResponse$
438
+ ];
439
+ var UpdateRoutingControlState$ = [9, n0, _URCS,
440
+ 0, () => UpdateRoutingControlStateRequest$, () => UpdateRoutingControlStateResponse$
441
+ ];
442
+ var UpdateRoutingControlStates$ = [9, n0, _URCSp,
443
+ 0, () => UpdateRoutingControlStatesRequest$, () => UpdateRoutingControlStatesResponse$
444
+ ];
445
+
446
+ const getRuntimeConfig$1 = (config) => {
447
+ return {
448
+ apiVersion: "2019-12-02",
449
+ base64Decoder: config?.base64Decoder ?? fromBase64,
450
+ base64Encoder: config?.base64Encoder ?? toBase64,
451
+ disableHostPrefix: config?.disableHostPrefix ?? false,
452
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
453
+ extensions: config?.extensions ?? [],
454
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultRoute53RecoveryClusterHttpAuthSchemeProvider,
455
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
456
+ {
457
+ schemeId: "aws.auth#sigv4",
458
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
459
+ signer: new AwsSdkSigV4Signer(),
460
+ },
461
+ ],
462
+ logger: config?.logger ?? new NoOpLogger(),
463
+ protocol: config?.protocol ?? AwsJson1_0Protocol,
464
+ protocolSettings: config?.protocolSettings ?? {
465
+ defaultNamespace: "com.amazonaws.route53recoverycluster",
466
+ errorTypeRegistries,
467
+ version: "2019-12-02",
468
+ serviceTarget: "ToggleCustomerAPI",
469
+ },
470
+ serviceId: config?.serviceId ?? "Route53 Recovery Cluster",
471
+ sha256: config?.sha256 ?? Sha256,
472
+ urlParser: config?.urlParser ?? parseUrl,
473
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
474
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
475
+ };
476
+ };
477
+
478
+ const getRuntimeConfig = (config) => {
479
+ emitWarningIfUnsupportedVersion(process.version);
480
+ const defaultsMode = resolveDefaultsModeConfig(config);
481
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
482
+ const clientSharedValues = getRuntimeConfig$1(config);
483
+ emitWarningIfUnsupportedVersion$1(process.version);
484
+ const loaderConfig = {
485
+ profile: config?.profile,
486
+ logger: clientSharedValues.logger,
487
+ };
488
+ return {
489
+ ...clientSharedValues,
490
+ ...config,
491
+ runtime: "node",
492
+ defaultsMode,
493
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
494
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
495
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
496
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
497
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
498
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
499
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
500
+ retryMode: config?.retryMode ??
501
+ loadConfig({
502
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
503
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
504
+ }, config),
505
+ streamCollector: config?.streamCollector ?? streamCollector,
506
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
507
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
508
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
509
+ };
510
+ };
511
+
34
512
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
513
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
514
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -185,12 +663,46 @@ const ValidationExceptionReason = {
185
663
  UNKNOWN_OPERATION: "unknownOperation",
186
664
  };
187
665
 
666
+ exports.AccessDeniedException = AccessDeniedException;
667
+ exports.AccessDeniedException$ = AccessDeniedException$;
668
+ exports.ConflictException = ConflictException;
669
+ exports.ConflictException$ = ConflictException$;
670
+ exports.EndpointTemporarilyUnavailableException = EndpointTemporarilyUnavailableException;
671
+ exports.EndpointTemporarilyUnavailableException$ = EndpointTemporarilyUnavailableException$;
672
+ exports.GetRoutingControlState$ = GetRoutingControlState$;
188
673
  exports.GetRoutingControlStateCommand = GetRoutingControlStateCommand;
674
+ exports.GetRoutingControlStateRequest$ = GetRoutingControlStateRequest$;
675
+ exports.GetRoutingControlStateResponse$ = GetRoutingControlStateResponse$;
676
+ exports.InternalServerException = InternalServerException;
677
+ exports.InternalServerException$ = InternalServerException$;
678
+ exports.ListRoutingControls$ = ListRoutingControls$;
189
679
  exports.ListRoutingControlsCommand = ListRoutingControlsCommand;
680
+ exports.ListRoutingControlsRequest$ = ListRoutingControlsRequest$;
681
+ exports.ListRoutingControlsResponse$ = ListRoutingControlsResponse$;
682
+ exports.ResourceNotFoundException = ResourceNotFoundException;
683
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
190
684
  exports.Route53RecoveryCluster = Route53RecoveryCluster;
191
685
  exports.Route53RecoveryClusterClient = Route53RecoveryClusterClient;
686
+ exports.Route53RecoveryClusterServiceException = Route53RecoveryClusterServiceException;
687
+ exports.Route53RecoveryClusterServiceException$ = Route53RecoveryClusterServiceException$;
688
+ exports.RoutingControl$ = RoutingControl$;
192
689
  exports.RoutingControlState = RoutingControlState;
690
+ exports.ServiceLimitExceededException = ServiceLimitExceededException;
691
+ exports.ServiceLimitExceededException$ = ServiceLimitExceededException$;
692
+ exports.ThrottlingException = ThrottlingException;
693
+ exports.ThrottlingException$ = ThrottlingException$;
694
+ exports.UpdateRoutingControlState$ = UpdateRoutingControlState$;
193
695
  exports.UpdateRoutingControlStateCommand = UpdateRoutingControlStateCommand;
696
+ exports.UpdateRoutingControlStateEntry$ = UpdateRoutingControlStateEntry$;
697
+ exports.UpdateRoutingControlStateRequest$ = UpdateRoutingControlStateRequest$;
698
+ exports.UpdateRoutingControlStateResponse$ = UpdateRoutingControlStateResponse$;
699
+ exports.UpdateRoutingControlStates$ = UpdateRoutingControlStates$;
194
700
  exports.UpdateRoutingControlStatesCommand = UpdateRoutingControlStatesCommand;
701
+ exports.UpdateRoutingControlStatesRequest$ = UpdateRoutingControlStatesRequest$;
702
+ exports.UpdateRoutingControlStatesResponse$ = UpdateRoutingControlStatesResponse$;
703
+ exports.ValidationException = ValidationException;
704
+ exports.ValidationException$ = ValidationException$;
705
+ exports.ValidationExceptionField$ = ValidationExceptionField$;
195
706
  exports.ValidationExceptionReason = ValidationExceptionReason;
707
+ exports.errorTypeRegistries = errorTypeRegistries;
196
708
  exports.paginateListRoutingControls = paginateListRoutingControls;
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
23
22
  region: config?.region ?? invalidProvider("Region is missing"),
24
23
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
24
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
25
  streamCollector: config?.streamCollector ?? streamCollector,
28
26
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
27
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
7
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
11
  export const getRuntimeConfig = (config) => {
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
35
35
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
36
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
37
  }, config),
38
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
38
  streamCollector: config?.streamCollector ?? streamCollector,
40
39
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
40
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
2
  export const getRuntimeConfig = (config) => {
4
3
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
6
5
  ...browserDefaults,
7
6
  ...config,
8
7
  runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
8
  };
11
9
  };
@@ -1,5 +1,6 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsJson1_0Protocol } from "@aws-sdk/core/protocols";
3
+ import { Sha256 } from "@smithy/core/checksum";
3
4
  import { NoOpLogger } from "@smithy/core/client";
4
5
  import { parseUrl } from "@smithy/core/protocols";
5
6
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -31,6 +32,7 @@ export const getRuntimeConfig = (config) => {
31
32
  serviceTarget: "ToggleCustomerAPI",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "Route53 Recovery Cluster",
35
+ sha256: config?.sha256 ?? Sha256,
34
36
  urlParser: config?.urlParser ?? parseUrl,
35
37
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
38
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -13,8 +13,7 @@ export declare const getRuntimeConfig: (config: Route53RecoveryClusterClientConf
13
13
  region: string | import("@smithy/types").Provider<any>;
14
14
  requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
15
15
  retryMode: string | import("@smithy/types").Provider<string>;
16
- sha256: import("@smithy/types").HashConstructor;
17
- streamCollector: import("@smithy/types").StreamCollector;
16
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
18
17
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
19
18
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
20
19
  cacheMiddleware?: boolean | undefined;
@@ -24,6 +23,7 @@ export declare const getRuntimeConfig: (config: Route53RecoveryClusterClientConf
24
23
  [setting: string]: unknown;
25
24
  };
26
25
  apiVersion: string;
26
+ sha256: import("@smithy/types").HashConstructor;
27
27
  urlParser: import("@smithy/types").UrlParser;
28
28
  base64Decoder: import("@smithy/types").Decoder;
29
29
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -14,8 +14,7 @@ export declare const getRuntimeConfig: (config: Route53RecoveryClusterClientConf
14
14
  region: string | import("@smithy/types").Provider<string>;
15
15
  requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
16
16
  retryMode: string | import("@smithy/types").Provider<string>;
17
- sha256: import("@smithy/types").HashConstructor;
18
- streamCollector: import("@smithy/types").StreamCollector;
17
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
19
18
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
20
19
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
20
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
@@ -26,6 +25,7 @@ export declare const getRuntimeConfig: (config: Route53RecoveryClusterClientConf
26
25
  [setting: string]: unknown;
27
26
  };
28
27
  apiVersion: string;
28
+ sha256: import("@smithy/types").HashConstructor;
29
29
  urlParser: import("@smithy/types").UrlParser;
30
30
  base64Decoder: import("@smithy/types").Decoder;
31
31
  base64Encoder: (_input: Uint8Array | string) => string;