@aws-sdk/client-arc-zonal-shift 3.315.0 → 3.316.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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ARCZonalShift = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const ARCZonalShiftClient_1 = require("./ARCZonalShiftClient");
5
6
  const CancelZonalShiftCommand_1 = require("./commands/CancelZonalShiftCommand");
6
7
  const GetManagedResourceCommand_1 = require("./commands/GetManagedResourceCommand");
@@ -8,90 +9,15 @@ const ListManagedResourcesCommand_1 = require("./commands/ListManagedResourcesCo
8
9
  const ListZonalShiftsCommand_1 = require("./commands/ListZonalShiftsCommand");
9
10
  const StartZonalShiftCommand_1 = require("./commands/StartZonalShiftCommand");
10
11
  const UpdateZonalShiftCommand_1 = require("./commands/UpdateZonalShiftCommand");
12
+ const commands = {
13
+ CancelZonalShiftCommand: CancelZonalShiftCommand_1.CancelZonalShiftCommand,
14
+ GetManagedResourceCommand: GetManagedResourceCommand_1.GetManagedResourceCommand,
15
+ ListManagedResourcesCommand: ListManagedResourcesCommand_1.ListManagedResourcesCommand,
16
+ ListZonalShiftsCommand: ListZonalShiftsCommand_1.ListZonalShiftsCommand,
17
+ StartZonalShiftCommand: StartZonalShiftCommand_1.StartZonalShiftCommand,
18
+ UpdateZonalShiftCommand: UpdateZonalShiftCommand_1.UpdateZonalShiftCommand,
19
+ };
11
20
  class ARCZonalShift extends ARCZonalShiftClient_1.ARCZonalShiftClient {
12
- cancelZonalShift(args, optionsOrCb, cb) {
13
- const command = new CancelZonalShiftCommand_1.CancelZonalShiftCommand(args);
14
- if (typeof optionsOrCb === "function") {
15
- this.send(command, optionsOrCb);
16
- }
17
- else if (typeof cb === "function") {
18
- if (typeof optionsOrCb !== "object")
19
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
20
- this.send(command, optionsOrCb || {}, cb);
21
- }
22
- else {
23
- return this.send(command, optionsOrCb);
24
- }
25
- }
26
- getManagedResource(args, optionsOrCb, cb) {
27
- const command = new GetManagedResourceCommand_1.GetManagedResourceCommand(args);
28
- if (typeof optionsOrCb === "function") {
29
- this.send(command, optionsOrCb);
30
- }
31
- else if (typeof cb === "function") {
32
- if (typeof optionsOrCb !== "object")
33
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
34
- this.send(command, optionsOrCb || {}, cb);
35
- }
36
- else {
37
- return this.send(command, optionsOrCb);
38
- }
39
- }
40
- listManagedResources(args, optionsOrCb, cb) {
41
- const command = new ListManagedResourcesCommand_1.ListManagedResourcesCommand(args);
42
- if (typeof optionsOrCb === "function") {
43
- this.send(command, optionsOrCb);
44
- }
45
- else if (typeof cb === "function") {
46
- if (typeof optionsOrCb !== "object")
47
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
48
- this.send(command, optionsOrCb || {}, cb);
49
- }
50
- else {
51
- return this.send(command, optionsOrCb);
52
- }
53
- }
54
- listZonalShifts(args, optionsOrCb, cb) {
55
- const command = new ListZonalShiftsCommand_1.ListZonalShiftsCommand(args);
56
- if (typeof optionsOrCb === "function") {
57
- this.send(command, optionsOrCb);
58
- }
59
- else if (typeof cb === "function") {
60
- if (typeof optionsOrCb !== "object")
61
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
62
- this.send(command, optionsOrCb || {}, cb);
63
- }
64
- else {
65
- return this.send(command, optionsOrCb);
66
- }
67
- }
68
- startZonalShift(args, optionsOrCb, cb) {
69
- const command = new StartZonalShiftCommand_1.StartZonalShiftCommand(args);
70
- if (typeof optionsOrCb === "function") {
71
- this.send(command, optionsOrCb);
72
- }
73
- else if (typeof cb === "function") {
74
- if (typeof optionsOrCb !== "object")
75
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
76
- this.send(command, optionsOrCb || {}, cb);
77
- }
78
- else {
79
- return this.send(command, optionsOrCb);
80
- }
81
- }
82
- updateZonalShift(args, optionsOrCb, cb) {
83
- const command = new UpdateZonalShiftCommand_1.UpdateZonalShiftCommand(args);
84
- if (typeof optionsOrCb === "function") {
85
- this.send(command, optionsOrCb);
86
- }
87
- else if (typeof cb === "function") {
88
- if (typeof optionsOrCb !== "object")
89
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
90
- this.send(command, optionsOrCb || {}, cb);
91
- }
92
- else {
93
- return this.send(command, optionsOrCb);
94
- }
95
- }
96
21
  }
97
22
  exports.ARCZonalShift = ARCZonalShift;
23
+ (0, smithy_client_1.createAggregatedClient)(commands, ARCZonalShift);
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { ARCZonalShiftClient } from "./ARCZonalShiftClient";
2
3
  import { CancelZonalShiftCommand, } from "./commands/CancelZonalShiftCommand";
3
4
  import { GetManagedResourceCommand, } from "./commands/GetManagedResourceCommand";
@@ -5,89 +6,14 @@ import { ListManagedResourcesCommand, } from "./commands/ListManagedResourcesCom
5
6
  import { ListZonalShiftsCommand, } from "./commands/ListZonalShiftsCommand";
6
7
  import { StartZonalShiftCommand, } from "./commands/StartZonalShiftCommand";
7
8
  import { UpdateZonalShiftCommand, } from "./commands/UpdateZonalShiftCommand";
9
+ const commands = {
10
+ CancelZonalShiftCommand,
11
+ GetManagedResourceCommand,
12
+ ListManagedResourcesCommand,
13
+ ListZonalShiftsCommand,
14
+ StartZonalShiftCommand,
15
+ UpdateZonalShiftCommand,
16
+ };
8
17
  export class ARCZonalShift extends ARCZonalShiftClient {
9
- cancelZonalShift(args, optionsOrCb, cb) {
10
- const command = new CancelZonalShiftCommand(args);
11
- if (typeof optionsOrCb === "function") {
12
- this.send(command, optionsOrCb);
13
- }
14
- else if (typeof cb === "function") {
15
- if (typeof optionsOrCb !== "object")
16
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
17
- this.send(command, optionsOrCb || {}, cb);
18
- }
19
- else {
20
- return this.send(command, optionsOrCb);
21
- }
22
- }
23
- getManagedResource(args, optionsOrCb, cb) {
24
- const command = new GetManagedResourceCommand(args);
25
- if (typeof optionsOrCb === "function") {
26
- this.send(command, optionsOrCb);
27
- }
28
- else if (typeof cb === "function") {
29
- if (typeof optionsOrCb !== "object")
30
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
31
- this.send(command, optionsOrCb || {}, cb);
32
- }
33
- else {
34
- return this.send(command, optionsOrCb);
35
- }
36
- }
37
- listManagedResources(args, optionsOrCb, cb) {
38
- const command = new ListManagedResourcesCommand(args);
39
- if (typeof optionsOrCb === "function") {
40
- this.send(command, optionsOrCb);
41
- }
42
- else if (typeof cb === "function") {
43
- if (typeof optionsOrCb !== "object")
44
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
45
- this.send(command, optionsOrCb || {}, cb);
46
- }
47
- else {
48
- return this.send(command, optionsOrCb);
49
- }
50
- }
51
- listZonalShifts(args, optionsOrCb, cb) {
52
- const command = new ListZonalShiftsCommand(args);
53
- if (typeof optionsOrCb === "function") {
54
- this.send(command, optionsOrCb);
55
- }
56
- else if (typeof cb === "function") {
57
- if (typeof optionsOrCb !== "object")
58
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
59
- this.send(command, optionsOrCb || {}, cb);
60
- }
61
- else {
62
- return this.send(command, optionsOrCb);
63
- }
64
- }
65
- startZonalShift(args, optionsOrCb, cb) {
66
- const command = new StartZonalShiftCommand(args);
67
- if (typeof optionsOrCb === "function") {
68
- this.send(command, optionsOrCb);
69
- }
70
- else if (typeof cb === "function") {
71
- if (typeof optionsOrCb !== "object")
72
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
73
- this.send(command, optionsOrCb || {}, cb);
74
- }
75
- else {
76
- return this.send(command, optionsOrCb);
77
- }
78
- }
79
- updateZonalShift(args, optionsOrCb, cb) {
80
- const command = new UpdateZonalShiftCommand(args);
81
- if (typeof optionsOrCb === "function") {
82
- this.send(command, optionsOrCb);
83
- }
84
- else if (typeof cb === "function") {
85
- if (typeof optionsOrCb !== "object")
86
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
87
- this.send(command, optionsOrCb || {}, cb);
88
- }
89
- else {
90
- return this.send(command, optionsOrCb);
91
- }
92
- }
93
18
  }
19
+ createAggregatedClient(commands, ARCZonalShift);
@@ -6,79 +6,61 @@ import { ListManagedResourcesCommandInput, ListManagedResourcesCommandOutput } f
6
6
  import { ListZonalShiftsCommandInput, ListZonalShiftsCommandOutput } from "./commands/ListZonalShiftsCommand";
7
7
  import { StartZonalShiftCommandInput, StartZonalShiftCommandOutput } from "./commands/StartZonalShiftCommand";
8
8
  import { UpdateZonalShiftCommandInput, UpdateZonalShiftCommandOutput } from "./commands/UpdateZonalShiftCommand";
9
- /**
10
- * @public
11
- * <p>This is the API Reference Guide for the zonal shift feature of Amazon Route 53 Application Recovery Controller. This guide is for developers who need detailed information about
12
- * zonal shift API actions, data types, and errors.</p>
13
- * <p>Zonal shift is in preview release for Amazon Route 53 Application Recovery Controller and is subject to change.</p>
14
- * <p>Zonal shift in Route 53 ARC enables you to move traffic for a load balancer resource away from an Availability Zone. Starting
15
- * a zonal shift helps your application recover immediately, for example, from a developer's bad code deployment
16
- * or from an AWS infrastructure failure in a single Availability Zone, reducing the impact and time lost from an issue
17
- * in one zone. </p>
18
- * <p>Supported AWS resources are automatically registered with Route 53 ARC. Resources that are registered for zonal shifts
19
- * in Route 53 ARC are managed resources in Route 53 ARC. You can start a zonal shift for any managed resource in your account in a Region.
20
- * At this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.</p>
21
- * <p>Zonal shifts are temporary. You must specify an expiration when you start a zonal shift, of up to three days initially.
22
- * If you want to still keep traffic away from an Availability Zone, you can update the zonal shift and set a new expiration.
23
- * You can also cancel a zonal shift, before it expires, for example, if you're ready to restore traffic to the Availability Zone.</p>
24
- * <p>For more information about using zonal shift, see the
25
- * <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/what-is-route53-recovery.html">Amazon Route 53 Application Recovery Controller Developer Guide</a>.</p>
26
- */
27
- export declare class ARCZonalShift extends ARCZonalShiftClient {
9
+ export interface ARCZonalShift {
28
10
  /**
29
- * @public
30
- * <p>Cancel a zonal shift in Amazon Route 53 Application Recovery Controller that you've started for a resource in your AWS account in an AWS Region. </p>
11
+ * @see {@link CancelZonalShiftCommand}
31
12
  */
32
13
  cancelZonalShift(args: CancelZonalShiftCommandInput, options?: __HttpHandlerOptions): Promise<CancelZonalShiftCommandOutput>;
33
14
  cancelZonalShift(args: CancelZonalShiftCommandInput, cb: (err: any, data?: CancelZonalShiftCommandOutput) => void): void;
34
15
  cancelZonalShift(args: CancelZonalShiftCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelZonalShiftCommandOutput) => void): void;
35
16
  /**
36
- * @public
37
- * <p>Get information about a resource that's been registered for zonal shifts with Amazon Route 53 Application Recovery Controller in this AWS Region. Resources that are registered for
38
- * zonal shifts are managed resources in Route 53 ARC.</p>
39
- * <p>At this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.</p>
17
+ * @see {@link GetManagedResourceCommand}
40
18
  */
41
19
  getManagedResource(args: GetManagedResourceCommandInput, options?: __HttpHandlerOptions): Promise<GetManagedResourceCommandOutput>;
42
20
  getManagedResource(args: GetManagedResourceCommandInput, cb: (err: any, data?: GetManagedResourceCommandOutput) => void): void;
43
21
  getManagedResource(args: GetManagedResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetManagedResourceCommandOutput) => void): void;
44
22
  /**
45
- * @public
46
- * <p>Lists all the resources in your AWS account in this AWS Region that are managed for zonal shifts in Amazon Route 53 Application Recovery Controller, and information
47
- * about them. The information includes their Amazon Resource Names (ARNs), the Availability Zones the resources are deployed in, and
48
- * the resource name.</p>
23
+ * @see {@link ListManagedResourcesCommand}
49
24
  */
50
25
  listManagedResources(args: ListManagedResourcesCommandInput, options?: __HttpHandlerOptions): Promise<ListManagedResourcesCommandOutput>;
51
26
  listManagedResources(args: ListManagedResourcesCommandInput, cb: (err: any, data?: ListManagedResourcesCommandOutput) => void): void;
52
27
  listManagedResources(args: ListManagedResourcesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListManagedResourcesCommandOutput) => void): void;
53
28
  /**
54
- * @public
55
- * <p>Lists all the active zonal shifts in Amazon Route 53 Application Recovery Controller in your AWS account in this AWS Region.</p>
29
+ * @see {@link ListZonalShiftsCommand}
56
30
  */
57
31
  listZonalShifts(args: ListZonalShiftsCommandInput, options?: __HttpHandlerOptions): Promise<ListZonalShiftsCommandOutput>;
58
32
  listZonalShifts(args: ListZonalShiftsCommandInput, cb: (err: any, data?: ListZonalShiftsCommandOutput) => void): void;
59
33
  listZonalShifts(args: ListZonalShiftsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListZonalShiftsCommandOutput) => void): void;
60
34
  /**
61
- * @public
62
- * <p>You start a zonal shift to temporarily move load balancer traffic away from an Availability Zone in a AWS Region,
63
- * to help your application recover immediately, for example, from a developer's bad code deployment or from an AWS
64
- * infrastructure failure in a single Availability Zone. You can start a zonal shift in Route 53 ARC only for managed
65
- * resources in your account in an AWS Region. Resources are automatically registered with Route 53 ARC by AWS services.</p>
66
- * <p>At this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.</p>
67
- * <p>When you start a zonal shift, traffic for the resource is no longer routed to the Availability Zone. The
68
- * zonal shift is created immediately in Route 53 ARC. However, it can take a short time, typically up to a few minutes,
69
- * for existing, in-progress connections in the Availability Zone to complete.</p>
70
- * <p>For more information, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/arc-zonal-shift.html">Zonal shift</a>
71
- * in the Amazon Route 53 Application Recovery Controller Developer Guide.</p>
35
+ * @see {@link StartZonalShiftCommand}
72
36
  */
73
37
  startZonalShift(args: StartZonalShiftCommandInput, options?: __HttpHandlerOptions): Promise<StartZonalShiftCommandOutput>;
74
38
  startZonalShift(args: StartZonalShiftCommandInput, cb: (err: any, data?: StartZonalShiftCommandOutput) => void): void;
75
39
  startZonalShift(args: StartZonalShiftCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartZonalShiftCommandOutput) => void): void;
76
40
  /**
77
- * @public
78
- * <p>Update an active zonal shift in Amazon Route 53 Application Recovery Controller in your AWS account. You can update a zonal shift to set a new expiration, or
79
- * edit or replace the comment for the zonal shift. </p>
41
+ * @see {@link UpdateZonalShiftCommand}
80
42
  */
81
43
  updateZonalShift(args: UpdateZonalShiftCommandInput, options?: __HttpHandlerOptions): Promise<UpdateZonalShiftCommandOutput>;
82
44
  updateZonalShift(args: UpdateZonalShiftCommandInput, cb: (err: any, data?: UpdateZonalShiftCommandOutput) => void): void;
83
45
  updateZonalShift(args: UpdateZonalShiftCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateZonalShiftCommandOutput) => void): void;
84
46
  }
47
+ /**
48
+ * @public
49
+ * <p>This is the API Reference Guide for the zonal shift feature of Amazon Route 53 Application Recovery Controller. This guide is for developers who need detailed information about
50
+ * zonal shift API actions, data types, and errors.</p>
51
+ * <p>Zonal shift is in preview release for Amazon Route 53 Application Recovery Controller and is subject to change.</p>
52
+ * <p>Zonal shift in Route 53 ARC enables you to move traffic for a load balancer resource away from an Availability Zone. Starting
53
+ * a zonal shift helps your application recover immediately, for example, from a developer's bad code deployment
54
+ * or from an AWS infrastructure failure in a single Availability Zone, reducing the impact and time lost from an issue
55
+ * in one zone. </p>
56
+ * <p>Supported AWS resources are automatically registered with Route 53 ARC. Resources that are registered for zonal shifts
57
+ * in Route 53 ARC are managed resources in Route 53 ARC. You can start a zonal shift for any managed resource in your account in a Region.
58
+ * At this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.</p>
59
+ * <p>Zonal shifts are temporary. You must specify an expiration when you start a zonal shift, of up to three days initially.
60
+ * If you want to still keep traffic away from an Availability Zone, you can update the zonal shift and set a new expiration.
61
+ * You can also cancel a zonal shift, before it expires, for example, if you're ready to restore traffic to the Availability Zone.</p>
62
+ * <p>For more information about using zonal shift, see the
63
+ * <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/what-is-route53-recovery.html">Amazon Route 53 Application Recovery Controller Developer Guide</a>.</p>
64
+ */
65
+ export declare class ARCZonalShift extends ARCZonalShiftClient implements ARCZonalShift {
66
+ }
@@ -24,7 +24,7 @@ import {
24
24
  UpdateZonalShiftCommandInput,
25
25
  UpdateZonalShiftCommandOutput,
26
26
  } from "./commands/UpdateZonalShiftCommand";
27
- export declare class ARCZonalShift extends ARCZonalShiftClient {
27
+ export interface ARCZonalShift {
28
28
  cancelZonalShift(
29
29
  args: CancelZonalShiftCommandInput,
30
30
  options?: __HttpHandlerOptions
@@ -104,3 +104,6 @@ export declare class ARCZonalShift extends ARCZonalShiftClient {
104
104
  cb: (err: any, data?: UpdateZonalShiftCommandOutput) => void
105
105
  ): void;
106
106
  }
107
+ export declare class ARCZonalShift
108
+ extends ARCZonalShiftClient
109
+ implements ARCZonalShift {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-arc-zonal-shift",
3
3
  "description": "AWS SDK for JavaScript Arc Zonal Shift Client for Node.js, Browser and React Native",
4
- "version": "3.315.0",
4
+ "version": "3.316.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.315.0",
24
+ "@aws-sdk/client-sts": "3.316.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.315.0",
26
+ "@aws-sdk/credential-provider-node": "3.316.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -40,14 +40,14 @@
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.310.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.315.0",
43
+ "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
51
  "@aws-sdk/util-endpoints": "3.310.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",