@aws-sdk/client-arc-zonal-shift 3.974.0 → 3.978.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
@@ -760,6 +760,12 @@ class UpdateZonalShiftCommand extends smithyClient.Command
760
760
  .build() {
761
761
  }
762
762
 
763
+ const paginateListAutoshifts = core.createPaginator(ARCZonalShiftClient, ListAutoshiftsCommand, "nextToken", "nextToken", "maxResults");
764
+
765
+ const paginateListManagedResources = core.createPaginator(ARCZonalShiftClient, ListManagedResourcesCommand, "nextToken", "nextToken", "maxResults");
766
+
767
+ const paginateListZonalShifts = core.createPaginator(ARCZonalShiftClient, ListZonalShiftsCommand, "nextToken", "nextToken", "maxResults");
768
+
763
769
  const commands = {
764
770
  CancelPracticeRunCommand,
765
771
  CancelZonalShiftCommand,
@@ -777,15 +783,14 @@ const commands = {
777
783
  UpdateZonalAutoshiftConfigurationCommand,
778
784
  UpdateZonalShiftCommand,
779
785
  };
786
+ const paginators = {
787
+ paginateListAutoshifts,
788
+ paginateListManagedResources,
789
+ paginateListZonalShifts,
790
+ };
780
791
  class ARCZonalShift extends ARCZonalShiftClient {
781
792
  }
782
- smithyClient.createAggregatedClient(commands, ARCZonalShift);
783
-
784
- const paginateListAutoshifts = core.createPaginator(ARCZonalShiftClient, ListAutoshiftsCommand, "nextToken", "nextToken", "maxResults");
785
-
786
- const paginateListManagedResources = core.createPaginator(ARCZonalShiftClient, ListManagedResourcesCommand, "nextToken", "nextToken", "maxResults");
787
-
788
- const paginateListZonalShifts = core.createPaginator(ARCZonalShiftClient, ListZonalShiftsCommand, "nextToken", "nextToken", "maxResults");
793
+ smithyClient.createAggregatedClient(commands, ARCZonalShift, { paginators });
789
794
 
790
795
  const AppliedStatus = {
791
796
  APPLIED: "APPLIED",
@@ -15,6 +15,9 @@ import { UpdateAutoshiftObserverNotificationStatusCommand, } from "./commands/Up
15
15
  import { UpdatePracticeRunConfigurationCommand, } from "./commands/UpdatePracticeRunConfigurationCommand";
16
16
  import { UpdateZonalAutoshiftConfigurationCommand, } from "./commands/UpdateZonalAutoshiftConfigurationCommand";
17
17
  import { UpdateZonalShiftCommand, } from "./commands/UpdateZonalShiftCommand";
18
+ import { paginateListAutoshifts } from "./pagination/ListAutoshiftsPaginator";
19
+ import { paginateListManagedResources } from "./pagination/ListManagedResourcesPaginator";
20
+ import { paginateListZonalShifts } from "./pagination/ListZonalShiftsPaginator";
18
21
  const commands = {
19
22
  CancelPracticeRunCommand,
20
23
  CancelZonalShiftCommand,
@@ -32,6 +35,11 @@ const commands = {
32
35
  UpdateZonalAutoshiftConfigurationCommand,
33
36
  UpdateZonalShiftCommand,
34
37
  };
38
+ const paginators = {
39
+ paginateListAutoshifts,
40
+ paginateListManagedResources,
41
+ paginateListZonalShifts,
42
+ };
35
43
  export class ARCZonalShift extends ARCZonalShiftClient {
36
44
  }
37
- createAggregatedClient(commands, ARCZonalShift);
45
+ createAggregatedClient(commands, ARCZonalShift, { paginators });
@@ -1,4 +1,4 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
2
2
  import { ARCZonalShiftClient } from "./ARCZonalShiftClient";
3
3
  import { CancelPracticeRunCommandInput, CancelPracticeRunCommandOutput } from "./commands/CancelPracticeRunCommand";
4
4
  import { CancelZonalShiftCommandInput, CancelZonalShiftCommandOutput } from "./commands/CancelZonalShiftCommand";
@@ -110,6 +110,27 @@ export interface ARCZonalShift {
110
110
  updateZonalShift(args: UpdateZonalShiftCommandInput, options?: __HttpHandlerOptions): Promise<UpdateZonalShiftCommandOutput>;
111
111
  updateZonalShift(args: UpdateZonalShiftCommandInput, cb: (err: any, data?: UpdateZonalShiftCommandOutput) => void): void;
112
112
  updateZonalShift(args: UpdateZonalShiftCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateZonalShiftCommandOutput) => void): void;
113
+ /**
114
+ * @see {@link ListAutoshiftsCommand}
115
+ * @param args - command input.
116
+ * @param paginationConfig - optional pagination config.
117
+ * @returns AsyncIterable of {@link ListAutoshiftsCommandOutput}.
118
+ */
119
+ paginateListAutoshifts(args?: ListAutoshiftsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListAutoshiftsCommandOutput>;
120
+ /**
121
+ * @see {@link ListManagedResourcesCommand}
122
+ * @param args - command input.
123
+ * @param paginationConfig - optional pagination config.
124
+ * @returns AsyncIterable of {@link ListManagedResourcesCommandOutput}.
125
+ */
126
+ paginateListManagedResources(args?: ListManagedResourcesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListManagedResourcesCommandOutput>;
127
+ /**
128
+ * @see {@link ListZonalShiftsCommand}
129
+ * @param args - command input.
130
+ * @param paginationConfig - optional pagination config.
131
+ * @returns AsyncIterable of {@link ListZonalShiftsCommandOutput}.
132
+ */
133
+ paginateListZonalShifts(args?: ListZonalShiftsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListZonalShiftsCommandOutput>;
113
134
  }
114
135
  /**
115
136
  * <p>Welcome to the API Reference Guide for zonal shift and zonal autoshift in Amazon Application Recovery Controller (ARC).</p> <p>You can start a zonal shift to move traffic for a load balancer resource away from an Availability Zone to help your application recover quickly from an impairment in an Availability Zone. For example, you can recover your application from a developer's bad code deployment or from an Amazon Web Services infrastructure failure in a single Availability Zone.</p> <p>You can also configure zonal autoshift for supported load balancer resources. Zonal autoshift is a capability in ARC where you authorize Amazon Web Services to shift away application resource traffic from an Availability Zone during events, on your behalf, to help reduce your time to recovery. Amazon Web Services starts an autoshift when internal telemetry indicates that there is an Availability Zone impairment that could potentially impact customers.</p> <p>For more information about using zonal shift and zonal autoshift, see the <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/what-is-route53-recovery.html">Amazon Application Recovery Controller Developer Guide</a>.</p>
@@ -1,4 +1,8 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ PaginationConfiguration,
4
+ Paginator,
5
+ } from "@smithy/types";
2
6
  import { ARCZonalShiftClient } from "./ARCZonalShiftClient";
3
7
  import {
4
8
  CancelPracticeRunCommandInput,
@@ -278,6 +282,27 @@ export interface ARCZonalShift {
278
282
  options: __HttpHandlerOptions,
279
283
  cb: (err: any, data?: UpdateZonalShiftCommandOutput) => void
280
284
  ): void;
285
+ paginateListAutoshifts(
286
+ args?: ListAutoshiftsCommandInput,
287
+ paginationConfig?: Pick<
288
+ PaginationConfiguration,
289
+ Exclude<keyof PaginationConfiguration, "client">
290
+ >
291
+ ): Paginator<ListAutoshiftsCommandOutput>;
292
+ paginateListManagedResources(
293
+ args?: ListManagedResourcesCommandInput,
294
+ paginationConfig?: Pick<
295
+ PaginationConfiguration,
296
+ Exclude<keyof PaginationConfiguration, "client">
297
+ >
298
+ ): Paginator<ListManagedResourcesCommandOutput>;
299
+ paginateListZonalShifts(
300
+ args?: ListZonalShiftsCommandInput,
301
+ paginationConfig?: Pick<
302
+ PaginationConfiguration,
303
+ Exclude<keyof PaginationConfiguration, "client">
304
+ >
305
+ ): Paginator<ListZonalShiftsCommandOutput>;
281
306
  }
282
307
  export declare class ARCZonalShift
283
308
  extends ARCZonalShiftClient
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.974.0",
4
+ "version": "3.978.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-arc-zonal-shift",
@@ -21,38 +21,38 @@
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.973.0",
25
- "@aws-sdk/credential-provider-node": "^3.972.1",
26
- "@aws-sdk/middleware-host-header": "^3.972.1",
27
- "@aws-sdk/middleware-logger": "^3.972.1",
28
- "@aws-sdk/middleware-recursion-detection": "^3.972.1",
29
- "@aws-sdk/middleware-user-agent": "^3.972.1",
30
- "@aws-sdk/region-config-resolver": "^3.972.1",
31
- "@aws-sdk/types": "^3.973.0",
24
+ "@aws-sdk/core": "^3.973.4",
25
+ "@aws-sdk/credential-provider-node": "^3.972.2",
26
+ "@aws-sdk/middleware-host-header": "^3.972.2",
27
+ "@aws-sdk/middleware-logger": "^3.972.2",
28
+ "@aws-sdk/middleware-recursion-detection": "^3.972.2",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.4",
30
+ "@aws-sdk/region-config-resolver": "^3.972.2",
31
+ "@aws-sdk/types": "^3.973.1",
32
32
  "@aws-sdk/util-endpoints": "3.972.0",
33
- "@aws-sdk/util-user-agent-browser": "^3.972.1",
34
- "@aws-sdk/util-user-agent-node": "^3.972.1",
33
+ "@aws-sdk/util-user-agent-browser": "^3.972.2",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.2",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.21.0",
36
+ "@smithy/core": "^3.22.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.10",
42
- "@smithy/middleware-retry": "^4.4.26",
41
+ "@smithy/middleware-endpoint": "^4.4.12",
42
+ "@smithy/middleware-retry": "^4.4.29",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
46
  "@smithy/node-http-handler": "^4.4.8",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.10.11",
48
+ "@smithy/smithy-client": "^4.11.1",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.25",
55
- "@smithy/util-defaults-mode-node": "^4.2.28",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.28",
55
+ "@smithy/util-defaults-mode-node": "^4.2.31",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",