@aws-sdk/client-route53-recovery-cluster 3.53.0 → 3.55.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/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.55.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.1...v3.55.0) (2022-03-21)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-route53-recovery-cluster
9
+
10
+
11
+
12
+
13
+
14
+ ## [3.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-route53-recovery-cluster
17
+
18
+
19
+
20
+
21
+
22
+ # [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
23
+
24
+
25
+ ### Features
26
+
27
+ * **clients:** update clients as of 2022/03/10 ([#3411](https://github.com/aws/aws-sdk-js-v3/issues/3411)) ([8fa517a](https://github.com/aws/aws-sdk-js-v3/commit/8fa517a2c56d2f98a2e4a9c4ea6fd99b6ce61a71))
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
7
34
 
8
35
 
package/README.md CHANGED
@@ -7,26 +7,43 @@
7
7
 
8
8
  AWS SDK for JavaScript Route53RecoveryCluster Client for Node.js, Browser and React Native.
9
9
 
10
- <p>Welcome to the Amazon Route 53 Application Recovery Controller API Reference Guide for Recovery Control Data Plane .</p>
11
- <p>Recovery control in Route 53 Application Recovery Controller includes extremely reliable routing controls that enable you to recover applications
12
- by rerouting traffic, for example, across Availability Zones or AWS Regions. Routing controls are simple on/off switches
13
- hosted on a cluster. A cluster is a set of five redundant regional endpoints against which you can execute API calls to update or
14
- get the state of routing controls. You use routing controls to failover traffic to recover your application
15
- across Availability Zones or Regions.</p>
16
- <p>This API guide includes information about how to get and update routing control states in Route 53 Application Recovery Controller.</p>
17
- <p>For more information about Route 53 Application Recovery Controller, see the following:</p>
10
+ <p>Welcome to the Routing Control (Recovery Cluster) API Reference Guide for Amazon Route 53 Application Recovery Controller.</p>
11
+ <p>With Amazon Route 53 Application Recovery Controller, you can use routing control with extreme reliability to
12
+ recover applications by rerouting traffic across
13
+ Availability Zones or AWS Regions. Routing controls are simple on/off switches hosted
14
+ on a highly available cluster in Application Recovery Controller. A cluster provides a set of five redundant Regional endpoints against which you
15
+ can run API calls to get or update the state of routing controls. To implement failover, you set
16
+ one routing control on and another one off, to reroute traffic from one Availability Zone or Amazon Web Services Region
17
+ to another. </p>
18
+ <p>
19
+ <i>Be aware that you must specify the Regional endpoints for a cluster when you work with API cluster operations
20
+ to get or update routing control states in Application Recovery Controller.</i> In addition, you must specify the US West (Oregon) Region
21
+ for Application Recovery Controller API calls. For example, use the parameter <code>region us-west-2</code> with AWS CLI commands.
22
+ For more information, see
23
+ <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.update.api.html">
24
+ Get and update routing control states using the API</a> in the Amazon Route 53 Application Recovery Controller Developer Guide.</p>
25
+ <p>This API guide includes information about the API operations for how to get and update routing control states
26
+ in Application Recovery Controller. You also must set up the structures to support routing controls: clusters and control panels.</p>
27
+ <p>For more information about working with routing control in Application Recovery Controller, see the following:</p>
18
28
  <ul>
19
29
  <li>
20
- <p>You can create clusters, routing controls, and control panels by using the control plane API for Recovery
21
- 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>
30
+ <p>To create clusters, routing controls, and control panels by using the control plane API
31
+ for routing control, see the <a href="https://docs.aws.amazon.com/recovery-cluster/latest/api/">Recovery Control Configuration API Reference Guide for Amazon Route 53 Application Recovery Controller</a>.</p>
22
32
  </li>
23
33
  <li>
24
- <p>Route 53 Application Recovery Controller also provides continuous readiness checks to ensure that your applications are scaled to handle failover traffic.
25
- 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>
34
+ <p>Learn about the components in recovery control configuration, including clusters,
35
+ routing controls, and control panels. For more information, see
36
+ <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/introduction-components.html#introduction-components-routing">
37
+ Recovery control components</a> in the Amazon Route 53 Application Recovery Controller Developer Guide.</p>
26
38
  </li>
27
39
  <li>
28
- <p>For more information about creating resilient applications and preparing for recovery readiness with Route 53 Application Recovery Controller,
29
- see the <a href="r53recovery/latest/dg/">Amazon Route 53 Application Recovery Controller Developer Guide</a>.</p>
40
+ <p>Application Recovery Controller also provides readiness checks that run continually to help make sure that your
41
+ applications are scaled and ready to handle failover traffic. For more information about
42
+ the related API actions, see the <a href="https://docs.aws.amazon.com/recovery-readiness/latest/api/">Recovery Readiness API Reference Guide for Amazon Route 53 Application Recovery Controller</a>.</p>
43
+ </li>
44
+ <li>
45
+ <p>For more information about creating resilient applications and preparing for
46
+ recovery readiness with Application Recovery Controller, see the <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/">Amazon Route 53 Application Recovery Controller Developer Guide</a>.</p>
30
47
  </li>
31
48
  </ul>
32
49
 
@@ -12,21 +12,21 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
12
12
  const runtimeConfig_1 = require("./runtimeConfig");
13
13
  class Route53RecoveryClusterClient extends smithy_client_1.Client {
14
14
  constructor(configuration) {
15
- const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
16
- const _config_1 = config_resolver_1.resolveRegionConfig(_config_0);
17
- const _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1);
18
- const _config_3 = middleware_retry_1.resolveRetryConfig(_config_2);
19
- const _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3);
20
- const _config_5 = middleware_signing_1.resolveAwsAuthConfig(_config_4);
21
- const _config_6 = middleware_user_agent_1.resolveUserAgentConfig(_config_5);
15
+ const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration);
16
+ const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0);
17
+ const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1);
18
+ const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);
19
+ const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3);
20
+ const _config_5 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_4);
21
+ const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5);
22
22
  super(_config_6);
23
23
  this.config = _config_6;
24
- this.middlewareStack.use(middleware_retry_1.getRetryPlugin(this.config));
25
- this.middlewareStack.use(middleware_content_length_1.getContentLengthPlugin(this.config));
26
- this.middlewareStack.use(middleware_host_header_1.getHostHeaderPlugin(this.config));
27
- this.middlewareStack.use(middleware_logger_1.getLoggerPlugin(this.config));
28
- this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
29
- this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
24
+ this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
25
+ this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
26
+ this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
27
+ this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
28
+ this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
29
+ this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
30
30
  }
31
31
  destroy() {
32
32
  super.destroy();
@@ -11,7 +11,7 @@ class GetRoutingControlStateCommand extends smithy_client_1.Command {
11
11
  this.input = input;
12
12
  }
13
13
  resolveMiddleware(clientStack, configuration, options) {
14
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
15
  const stack = clientStack.concat(this.middlewareStack);
16
16
  const { logger } = configuration;
17
17
  const clientName = "Route53RecoveryClusterClient";
@@ -27,10 +27,10 @@ class GetRoutingControlStateCommand extends smithy_client_1.Command {
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
28
  }
29
29
  serialize(input, context) {
30
- return Aws_json1_0_1.serializeAws_json1_0GetRoutingControlStateCommand(input, context);
30
+ return (0, Aws_json1_0_1.serializeAws_json1_0GetRoutingControlStateCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_json1_0_1.deserializeAws_json1_0GetRoutingControlStateCommand(output, context);
33
+ return (0, Aws_json1_0_1.deserializeAws_json1_0GetRoutingControlStateCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.GetRoutingControlStateCommand = GetRoutingControlStateCommand;
@@ -11,7 +11,7 @@ class UpdateRoutingControlStateCommand extends smithy_client_1.Command {
11
11
  this.input = input;
12
12
  }
13
13
  resolveMiddleware(clientStack, configuration, options) {
14
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
15
  const stack = clientStack.concat(this.middlewareStack);
16
16
  const { logger } = configuration;
17
17
  const clientName = "Route53RecoveryClusterClient";
@@ -27,10 +27,10 @@ class UpdateRoutingControlStateCommand extends smithy_client_1.Command {
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
28
  }
29
29
  serialize(input, context) {
30
- return Aws_json1_0_1.serializeAws_json1_0UpdateRoutingControlStateCommand(input, context);
30
+ return (0, Aws_json1_0_1.serializeAws_json1_0UpdateRoutingControlStateCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_json1_0_1.deserializeAws_json1_0UpdateRoutingControlStateCommand(output, context);
33
+ return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateRoutingControlStateCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.UpdateRoutingControlStateCommand = UpdateRoutingControlStateCommand;
@@ -11,7 +11,7 @@ class UpdateRoutingControlStatesCommand extends smithy_client_1.Command {
11
11
  this.input = input;
12
12
  }
13
13
  resolveMiddleware(clientStack, configuration, options) {
14
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
15
  const stack = clientStack.concat(this.middlewareStack);
16
16
  const { logger } = configuration;
17
17
  const clientName = "Route53RecoveryClusterClient";
@@ -27,10 +27,10 @@ class UpdateRoutingControlStatesCommand extends smithy_client_1.Command {
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
28
  }
29
29
  serialize(input, context) {
30
- return Aws_json1_0_1.serializeAws_json1_0UpdateRoutingControlStatesCommand(input, context);
30
+ return (0, Aws_json1_0_1.serializeAws_json1_0UpdateRoutingControlStatesCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_json1_0_1.deserializeAws_json1_0UpdateRoutingControlStatesCommand(output, context);
33
+ return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateRoutingControlStatesCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.UpdateRoutingControlStatesCommand = UpdateRoutingControlStatesCommand;
@@ -122,7 +122,7 @@ const partitionHash = {
122
122
  ],
123
123
  },
124
124
  };
125
- const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
125
+ const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, {
126
126
  ...options,
127
127
  signingService: "route53-recovery-cluster",
128
128
  regionHash,
@@ -83,7 +83,7 @@ const deserializeAws_json1_0GetRoutingControlStateCommandError = async (output,
83
83
  $fault: "client",
84
84
  $metadata: deserializeMetadata(output),
85
85
  });
86
- throw smithy_client_1.decorateServiceException(response, parsedBody);
86
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
87
87
  }
88
88
  };
89
89
  const deserializeAws_json1_0UpdateRoutingControlStateCommand = async (output, context) => {
@@ -137,7 +137,7 @@ const deserializeAws_json1_0UpdateRoutingControlStateCommandError = async (outpu
137
137
  $fault: "client",
138
138
  $metadata: deserializeMetadata(output),
139
139
  });
140
- throw smithy_client_1.decorateServiceException(response, parsedBody);
140
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
141
141
  }
142
142
  };
143
143
  const deserializeAws_json1_0UpdateRoutingControlStatesCommand = async (output, context) => {
@@ -191,7 +191,7 @@ const deserializeAws_json1_0UpdateRoutingControlStatesCommandError = async (outp
191
191
  $fault: "client",
192
192
  $metadata: deserializeMetadata(output),
193
193
  });
194
- throw smithy_client_1.decorateServiceException(response, parsedBody);
194
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
195
195
  }
196
196
  };
197
197
  const deserializeAws_json1_0AccessDeniedExceptionResponse = async (parsedOutput, context) => {
@@ -201,7 +201,7 @@ const deserializeAws_json1_0AccessDeniedExceptionResponse = async (parsedOutput,
201
201
  $metadata: deserializeMetadata(parsedOutput),
202
202
  ...deserialized,
203
203
  });
204
- return smithy_client_1.decorateServiceException(exception, body);
204
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
205
205
  };
206
206
  const deserializeAws_json1_0ConflictExceptionResponse = async (parsedOutput, context) => {
207
207
  const body = parsedOutput.body;
@@ -210,7 +210,7 @@ const deserializeAws_json1_0ConflictExceptionResponse = async (parsedOutput, con
210
210
  $metadata: deserializeMetadata(parsedOutput),
211
211
  ...deserialized,
212
212
  });
213
- return smithy_client_1.decorateServiceException(exception, body);
213
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
214
214
  };
215
215
  const deserializeAws_json1_0EndpointTemporarilyUnavailableExceptionResponse = async (parsedOutput, context) => {
216
216
  const body = parsedOutput.body;
@@ -219,7 +219,7 @@ const deserializeAws_json1_0EndpointTemporarilyUnavailableExceptionResponse = as
219
219
  $metadata: deserializeMetadata(parsedOutput),
220
220
  ...deserialized,
221
221
  });
222
- return smithy_client_1.decorateServiceException(exception, body);
222
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
223
223
  };
224
224
  const deserializeAws_json1_0InternalServerExceptionResponse = async (parsedOutput, context) => {
225
225
  const body = parsedOutput.body;
@@ -228,7 +228,7 @@ const deserializeAws_json1_0InternalServerExceptionResponse = async (parsedOutpu
228
228
  $metadata: deserializeMetadata(parsedOutput),
229
229
  ...deserialized,
230
230
  });
231
- return smithy_client_1.decorateServiceException(exception, body);
231
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
232
232
  };
233
233
  const deserializeAws_json1_0ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
234
234
  const body = parsedOutput.body;
@@ -237,7 +237,7 @@ const deserializeAws_json1_0ResourceNotFoundExceptionResponse = async (parsedOut
237
237
  $metadata: deserializeMetadata(parsedOutput),
238
238
  ...deserialized,
239
239
  });
240
- return smithy_client_1.decorateServiceException(exception, body);
240
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
241
241
  };
242
242
  const deserializeAws_json1_0ThrottlingExceptionResponse = async (parsedOutput, context) => {
243
243
  const body = parsedOutput.body;
@@ -246,7 +246,7 @@ const deserializeAws_json1_0ThrottlingExceptionResponse = async (parsedOutput, c
246
246
  $metadata: deserializeMetadata(parsedOutput),
247
247
  ...deserialized,
248
248
  });
249
- return smithy_client_1.decorateServiceException(exception, body);
249
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
250
250
  };
251
251
  const deserializeAws_json1_0ValidationExceptionResponse = async (parsedOutput, context) => {
252
252
  const body = parsedOutput.body;
@@ -255,7 +255,17 @@ const deserializeAws_json1_0ValidationExceptionResponse = async (parsedOutput, c
255
255
  $metadata: deserializeMetadata(parsedOutput),
256
256
  ...deserialized,
257
257
  });
258
- return smithy_client_1.decorateServiceException(exception, body);
258
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
259
+ };
260
+ const serializeAws_json1_0Arns = (input, context) => {
261
+ return input
262
+ .filter((e) => e != null)
263
+ .map((entry) => {
264
+ if (entry === null) {
265
+ return null;
266
+ }
267
+ return entry;
268
+ });
259
269
  };
260
270
  const serializeAws_json1_0GetRoutingControlStateRequest = (input, context) => {
261
271
  return {
@@ -287,10 +297,18 @@ const serializeAws_json1_0UpdateRoutingControlStateRequest = (input, context) =>
287
297
  input.RoutingControlArn !== null && { RoutingControlArn: input.RoutingControlArn }),
288
298
  ...(input.RoutingControlState !== undefined &&
289
299
  input.RoutingControlState !== null && { RoutingControlState: input.RoutingControlState }),
300
+ ...(input.SafetyRulesToOverride !== undefined &&
301
+ input.SafetyRulesToOverride !== null && {
302
+ SafetyRulesToOverride: serializeAws_json1_0Arns(input.SafetyRulesToOverride, context),
303
+ }),
290
304
  };
291
305
  };
292
306
  const serializeAws_json1_0UpdateRoutingControlStatesRequest = (input, context) => {
293
307
  return {
308
+ ...(input.SafetyRulesToOverride !== undefined &&
309
+ input.SafetyRulesToOverride !== null && {
310
+ SafetyRulesToOverride: serializeAws_json1_0Arns(input.SafetyRulesToOverride, context),
311
+ }),
294
312
  ...(input.UpdateRoutingControlStateEntries !== undefined &&
295
313
  input.UpdateRoutingControlStateEntries !== null && {
296
314
  UpdateRoutingControlStateEntries: serializeAws_json1_0UpdateRoutingControlStateEntries(input.UpdateRoutingControlStateEntries, context),
@@ -299,44 +317,44 @@ const serializeAws_json1_0UpdateRoutingControlStatesRequest = (input, context) =
299
317
  };
300
318
  const deserializeAws_json1_0AccessDeniedException = (output, context) => {
301
319
  return {
302
- message: smithy_client_1.expectString(output.message),
320
+ message: (0, smithy_client_1.expectString)(output.message),
303
321
  };
304
322
  };
305
323
  const deserializeAws_json1_0ConflictException = (output, context) => {
306
324
  return {
307
- message: smithy_client_1.expectString(output.message),
308
- resourceId: smithy_client_1.expectString(output.resourceId),
309
- resourceType: smithy_client_1.expectString(output.resourceType),
325
+ message: (0, smithy_client_1.expectString)(output.message),
326
+ resourceId: (0, smithy_client_1.expectString)(output.resourceId),
327
+ resourceType: (0, smithy_client_1.expectString)(output.resourceType),
310
328
  };
311
329
  };
312
330
  const deserializeAws_json1_0EndpointTemporarilyUnavailableException = (output, context) => {
313
331
  return {
314
- message: smithy_client_1.expectString(output.message),
332
+ message: (0, smithy_client_1.expectString)(output.message),
315
333
  };
316
334
  };
317
335
  const deserializeAws_json1_0GetRoutingControlStateResponse = (output, context) => {
318
336
  return {
319
- RoutingControlArn: smithy_client_1.expectString(output.RoutingControlArn),
320
- RoutingControlState: smithy_client_1.expectString(output.RoutingControlState),
337
+ RoutingControlArn: (0, smithy_client_1.expectString)(output.RoutingControlArn),
338
+ RoutingControlState: (0, smithy_client_1.expectString)(output.RoutingControlState),
321
339
  };
322
340
  };
323
341
  const deserializeAws_json1_0InternalServerException = (output, context) => {
324
342
  return {
325
- message: smithy_client_1.expectString(output.message),
326
- retryAfterSeconds: smithy_client_1.expectInt32(output.retryAfterSeconds),
343
+ message: (0, smithy_client_1.expectString)(output.message),
344
+ retryAfterSeconds: (0, smithy_client_1.expectInt32)(output.retryAfterSeconds),
327
345
  };
328
346
  };
329
347
  const deserializeAws_json1_0ResourceNotFoundException = (output, context) => {
330
348
  return {
331
- message: smithy_client_1.expectString(output.message),
332
- resourceId: smithy_client_1.expectString(output.resourceId),
333
- resourceType: smithy_client_1.expectString(output.resourceType),
349
+ message: (0, smithy_client_1.expectString)(output.message),
350
+ resourceId: (0, smithy_client_1.expectString)(output.resourceId),
351
+ resourceType: (0, smithy_client_1.expectString)(output.resourceType),
334
352
  };
335
353
  };
336
354
  const deserializeAws_json1_0ThrottlingException = (output, context) => {
337
355
  return {
338
- message: smithy_client_1.expectString(output.message),
339
- retryAfterSeconds: smithy_client_1.expectInt32(output.retryAfterSeconds),
356
+ message: (0, smithy_client_1.expectString)(output.message),
357
+ retryAfterSeconds: (0, smithy_client_1.expectInt32)(output.retryAfterSeconds),
340
358
  };
341
359
  };
342
360
  const deserializeAws_json1_0UpdateRoutingControlStateResponse = (output, context) => {
@@ -350,14 +368,14 @@ const deserializeAws_json1_0ValidationException = (output, context) => {
350
368
  fields: output.fields !== undefined && output.fields !== null
351
369
  ? deserializeAws_json1_0ValidationExceptionFieldList(output.fields, context)
352
370
  : undefined,
353
- message: smithy_client_1.expectString(output.message),
354
- reason: smithy_client_1.expectString(output.reason),
371
+ message: (0, smithy_client_1.expectString)(output.message),
372
+ reason: (0, smithy_client_1.expectString)(output.reason),
355
373
  };
356
374
  };
357
375
  const deserializeAws_json1_0ValidationExceptionField = (output, context) => {
358
376
  return {
359
- message: smithy_client_1.expectString(output.message),
360
- name: smithy_client_1.expectString(output.name),
377
+ message: (0, smithy_client_1.expectString)(output.message),
378
+ name: (0, smithy_client_1.expectString)(output.name),
361
379
  };
362
380
  };
363
381
  const deserializeAws_json1_0ValidationExceptionFieldList = (output, context) => {
@@ -17,9 +17,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
17
  const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
18
18
  const getRuntimeConfig = (config) => {
19
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
- const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
20
+ const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
21
21
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
- const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
22
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
23
23
  return {
24
24
  ...clientSharedValues,
25
25
  ...config,
@@ -29,9 +29,9 @@ const getRuntimeConfig = (config) => {
29
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
30
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
31
31
  credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
32
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
32
+ defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
33
33
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
34
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
34
+ region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
35
35
  requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
36
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
37
37
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
@@ -19,9 +19,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
20
20
  const getRuntimeConfig = (config) => {
21
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
22
- const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
22
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
23
23
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
- const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
24
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
25
25
  return {
26
26
  ...clientSharedValues,
27
27
  ...config,
@@ -30,19 +30,19 @@ const getRuntimeConfig = (config) => {
30
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
31
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
32
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
33
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
34
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
36
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
33
+ credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
34
+ defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
+ maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
36
+ region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
37
37
  requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
38
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
38
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
39
39
  ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
40
  default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
41
41
  }),
42
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
43
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
44
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
45
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
44
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
45
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
46
46
  utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
47
47
  utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
48
48
  };
@@ -5,7 +5,7 @@ const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
6
  const getRuntimeConfig = (config) => {
7
7
  var _a;
8
- const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
8
+ const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
9
9
  return {
10
10
  ...browserDefaults,
11
11
  ...config,
@@ -15,7 +15,7 @@ var Route53RecoveryCluster = (function (_super) {
15
15
  }
16
16
  else if (typeof cb === "function") {
17
17
  if (typeof optionsOrCb !== "object")
18
- throw new Error("Expect http options but get " + typeof optionsOrCb);
18
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
19
19
  this.send(command, optionsOrCb || {}, cb);
20
20
  }
21
21
  else {
@@ -29,7 +29,7 @@ var Route53RecoveryCluster = (function (_super) {
29
29
  }
30
30
  else if (typeof cb === "function") {
31
31
  if (typeof optionsOrCb !== "object")
32
- throw new Error("Expect http options but get " + typeof optionsOrCb);
32
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
33
33
  this.send(command, optionsOrCb || {}, cb);
34
34
  }
35
35
  else {
@@ -43,7 +43,7 @@ var Route53RecoveryCluster = (function (_super) {
43
43
  }
44
44
  else if (typeof cb === "function") {
45
45
  if (typeof optionsOrCb !== "object")
46
- throw new Error("Expect http options but get " + typeof optionsOrCb);
46
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
47
47
  this.send(command, optionsOrCb || {}, cb);
48
48
  }
49
49
  else {
@@ -317,6 +317,16 @@ var deserializeAws_json1_0ValidationExceptionResponse = function (parsedOutput,
317
317
  return [2, __decorateServiceException(exception, body)];
318
318
  });
319
319
  }); };
320
+ var serializeAws_json1_0Arns = function (input, context) {
321
+ return input
322
+ .filter(function (e) { return e != null; })
323
+ .map(function (entry) {
324
+ if (entry === null) {
325
+ return null;
326
+ }
327
+ return entry;
328
+ });
329
+ };
320
330
  var serializeAws_json1_0GetRoutingControlStateRequest = function (input, context) {
321
331
  return __assign({}, (input.RoutingControlArn !== undefined &&
322
332
  input.RoutingControlArn !== null && { RoutingControlArn: input.RoutingControlArn }));
@@ -337,12 +347,18 @@ var serializeAws_json1_0UpdateRoutingControlStateEntry = function (input, contex
337
347
  input.RoutingControlState !== null && { RoutingControlState: input.RoutingControlState }));
338
348
  };
339
349
  var serializeAws_json1_0UpdateRoutingControlStateRequest = function (input, context) {
340
- return __assign(__assign({}, (input.RoutingControlArn !== undefined &&
350
+ return __assign(__assign(__assign({}, (input.RoutingControlArn !== undefined &&
341
351
  input.RoutingControlArn !== null && { RoutingControlArn: input.RoutingControlArn })), (input.RoutingControlState !== undefined &&
342
- input.RoutingControlState !== null && { RoutingControlState: input.RoutingControlState }));
352
+ input.RoutingControlState !== null && { RoutingControlState: input.RoutingControlState })), (input.SafetyRulesToOverride !== undefined &&
353
+ input.SafetyRulesToOverride !== null && {
354
+ SafetyRulesToOverride: serializeAws_json1_0Arns(input.SafetyRulesToOverride, context),
355
+ }));
343
356
  };
344
357
  var serializeAws_json1_0UpdateRoutingControlStatesRequest = function (input, context) {
345
- return __assign({}, (input.UpdateRoutingControlStateEntries !== undefined &&
358
+ return __assign(__assign({}, (input.SafetyRulesToOverride !== undefined &&
359
+ input.SafetyRulesToOverride !== null && {
360
+ SafetyRulesToOverride: serializeAws_json1_0Arns(input.SafetyRulesToOverride, context),
361
+ })), (input.UpdateRoutingControlStateEntries !== undefined &&
346
362
  input.UpdateRoutingControlStateEntries !== null && {
347
363
  UpdateRoutingControlStateEntries: serializeAws_json1_0UpdateRoutingControlStateEntries(input.UpdateRoutingControlStateEntries, context),
348
364
  }));