@aws-sdk/client-arc-region-switch 3.975.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
@@ -1334,33 +1334,6 @@ class UpdatePlanExecutionStepCommand extends smithyClient.Command
1334
1334
  .build() {
1335
1335
  }
1336
1336
 
1337
- const commands = {
1338
- ApprovePlanExecutionStepCommand,
1339
- CancelPlanExecutionCommand,
1340
- CreatePlanCommand,
1341
- DeletePlanCommand,
1342
- GetPlanCommand,
1343
- GetPlanEvaluationStatusCommand,
1344
- GetPlanExecutionCommand,
1345
- GetPlanInRegionCommand,
1346
- ListPlanExecutionEventsCommand,
1347
- ListPlanExecutionsCommand,
1348
- ListPlansCommand,
1349
- ListPlansInRegionCommand,
1350
- ListRoute53HealthChecksCommand,
1351
- ListRoute53HealthChecksInRegionCommand,
1352
- ListTagsForResourceCommand,
1353
- StartPlanExecutionCommand,
1354
- TagResourceCommand,
1355
- UntagResourceCommand,
1356
- UpdatePlanCommand,
1357
- UpdatePlanExecutionCommand,
1358
- UpdatePlanExecutionStepCommand,
1359
- };
1360
- class ARCRegionSwitch extends ARCRegionSwitchClient {
1361
- }
1362
- smithyClient.createAggregatedClient(commands, ARCRegionSwitch);
1363
-
1364
1337
  const paginateGetPlanEvaluationStatus = core.createPaginator(ARCRegionSwitchClient, GetPlanEvaluationStatusCommand, "nextToken", "nextToken", "maxResults");
1365
1338
 
1366
1339
  const paginateGetPlanExecution = core.createPaginator(ARCRegionSwitchClient, GetPlanExecutionCommand, "nextToken", "nextToken", "maxResults");
@@ -1369,14 +1342,14 @@ const paginateListPlanExecutionEvents = core.createPaginator(ARCRegionSwitchClie
1369
1342
 
1370
1343
  const paginateListPlanExecutions = core.createPaginator(ARCRegionSwitchClient, ListPlanExecutionsCommand, "nextToken", "nextToken", "maxResults");
1371
1344
 
1372
- const paginateListPlans = core.createPaginator(ARCRegionSwitchClient, ListPlansCommand, "nextToken", "nextToken", "maxResults");
1373
-
1374
1345
  const paginateListPlansInRegion = core.createPaginator(ARCRegionSwitchClient, ListPlansInRegionCommand, "nextToken", "nextToken", "maxResults");
1375
1346
 
1376
- const paginateListRoute53HealthChecks = core.createPaginator(ARCRegionSwitchClient, ListRoute53HealthChecksCommand, "nextToken", "nextToken", "maxResults");
1347
+ const paginateListPlans = core.createPaginator(ARCRegionSwitchClient, ListPlansCommand, "nextToken", "nextToken", "maxResults");
1377
1348
 
1378
1349
  const paginateListRoute53HealthChecksInRegion = core.createPaginator(ARCRegionSwitchClient, ListRoute53HealthChecksInRegionCommand, "nextToken", "nextToken", "maxResults");
1379
1350
 
1351
+ const paginateListRoute53HealthChecks = core.createPaginator(ARCRegionSwitchClient, ListRoute53HealthChecksCommand, "nextToken", "nextToken", "maxResults");
1352
+
1380
1353
  const checkState$1 = async (client, input) => {
1381
1354
  let reason;
1382
1355
  try {
@@ -1491,6 +1464,47 @@ const waitUntilPlanExecutionCompleted = async (params, input) => {
1491
1464
  return utilWaiter.checkExceptions(result);
1492
1465
  };
1493
1466
 
1467
+ const commands = {
1468
+ ApprovePlanExecutionStepCommand,
1469
+ CancelPlanExecutionCommand,
1470
+ CreatePlanCommand,
1471
+ DeletePlanCommand,
1472
+ GetPlanCommand,
1473
+ GetPlanEvaluationStatusCommand,
1474
+ GetPlanExecutionCommand,
1475
+ GetPlanInRegionCommand,
1476
+ ListPlanExecutionEventsCommand,
1477
+ ListPlanExecutionsCommand,
1478
+ ListPlansCommand,
1479
+ ListPlansInRegionCommand,
1480
+ ListRoute53HealthChecksCommand,
1481
+ ListRoute53HealthChecksInRegionCommand,
1482
+ ListTagsForResourceCommand,
1483
+ StartPlanExecutionCommand,
1484
+ TagResourceCommand,
1485
+ UntagResourceCommand,
1486
+ UpdatePlanCommand,
1487
+ UpdatePlanExecutionCommand,
1488
+ UpdatePlanExecutionStepCommand,
1489
+ };
1490
+ const paginators = {
1491
+ paginateGetPlanEvaluationStatus,
1492
+ paginateGetPlanExecution,
1493
+ paginateListPlanExecutionEvents,
1494
+ paginateListPlanExecutions,
1495
+ paginateListPlans,
1496
+ paginateListPlansInRegion,
1497
+ paginateListRoute53HealthChecks,
1498
+ paginateListRoute53HealthChecksInRegion,
1499
+ };
1500
+ const waiters = {
1501
+ waitUntilPlanEvaluationStatusPassed,
1502
+ waitUntilPlanExecutionCompleted,
1503
+ };
1504
+ class ARCRegionSwitch extends ARCRegionSwitchClient {
1505
+ }
1506
+ smithyClient.createAggregatedClient(commands, ARCRegionSwitch, { paginators, waiters });
1507
+
1494
1508
  const ExecutionAction = {
1495
1509
  ACTIVATE: "activate",
1496
1510
  DEACTIVATE: "deactivate",
@@ -21,6 +21,16 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
21
21
  import { UpdatePlanCommand } from "./commands/UpdatePlanCommand";
22
22
  import { UpdatePlanExecutionCommand, } from "./commands/UpdatePlanExecutionCommand";
23
23
  import { UpdatePlanExecutionStepCommand, } from "./commands/UpdatePlanExecutionStepCommand";
24
+ import { paginateGetPlanEvaluationStatus } from "./pagination/GetPlanEvaluationStatusPaginator";
25
+ import { paginateGetPlanExecution } from "./pagination/GetPlanExecutionPaginator";
26
+ import { paginateListPlanExecutionEvents } from "./pagination/ListPlanExecutionEventsPaginator";
27
+ import { paginateListPlanExecutions } from "./pagination/ListPlanExecutionsPaginator";
28
+ import { paginateListPlansInRegion } from "./pagination/ListPlansInRegionPaginator";
29
+ import { paginateListPlans } from "./pagination/ListPlansPaginator";
30
+ import { paginateListRoute53HealthChecksInRegion } from "./pagination/ListRoute53HealthChecksInRegionPaginator";
31
+ import { paginateListRoute53HealthChecks } from "./pagination/ListRoute53HealthChecksPaginator";
32
+ import { waitUntilPlanEvaluationStatusPassed } from "./waiters/waitForPlanEvaluationStatusPassed";
33
+ import { waitUntilPlanExecutionCompleted } from "./waiters/waitForPlanExecutionCompleted";
24
34
  const commands = {
25
35
  ApprovePlanExecutionStepCommand,
26
36
  CancelPlanExecutionCommand,
@@ -44,6 +54,20 @@ const commands = {
44
54
  UpdatePlanExecutionCommand,
45
55
  UpdatePlanExecutionStepCommand,
46
56
  };
57
+ const paginators = {
58
+ paginateGetPlanEvaluationStatus,
59
+ paginateGetPlanExecution,
60
+ paginateListPlanExecutionEvents,
61
+ paginateListPlanExecutions,
62
+ paginateListPlans,
63
+ paginateListPlansInRegion,
64
+ paginateListRoute53HealthChecks,
65
+ paginateListRoute53HealthChecksInRegion,
66
+ };
67
+ const waiters = {
68
+ waitUntilPlanEvaluationStatusPassed,
69
+ waitUntilPlanExecutionCompleted,
70
+ };
47
71
  export class ARCRegionSwitch extends ARCRegionSwitchClient {
48
72
  }
49
- createAggregatedClient(commands, ARCRegionSwitch);
73
+ createAggregatedClient(commands, ARCRegionSwitch, { paginators, waiters });
@@ -1,4 +1,5 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator, WaiterConfiguration } from "@smithy/types";
2
+ import type { WaiterResult } from "@smithy/util-waiter";
2
3
  import { ARCRegionSwitchClient } from "./ARCRegionSwitchClient";
3
4
  import { ApprovePlanExecutionStepCommandInput, ApprovePlanExecutionStepCommandOutput } from "./commands/ApprovePlanExecutionStepCommand";
4
5
  import { CancelPlanExecutionCommandInput, CancelPlanExecutionCommandOutput } from "./commands/CancelPlanExecutionCommand";
@@ -150,6 +151,74 @@ export interface ARCRegionSwitch {
150
151
  updatePlanExecutionStep(args: UpdatePlanExecutionStepCommandInput, options?: __HttpHandlerOptions): Promise<UpdatePlanExecutionStepCommandOutput>;
151
152
  updatePlanExecutionStep(args: UpdatePlanExecutionStepCommandInput, cb: (err: any, data?: UpdatePlanExecutionStepCommandOutput) => void): void;
152
153
  updatePlanExecutionStep(args: UpdatePlanExecutionStepCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdatePlanExecutionStepCommandOutput) => void): void;
154
+ /**
155
+ * @see {@link GetPlanEvaluationStatusCommand}
156
+ * @param args - command input.
157
+ * @param paginationConfig - optional pagination config.
158
+ * @returns AsyncIterable of {@link GetPlanEvaluationStatusCommandOutput}.
159
+ */
160
+ paginateGetPlanEvaluationStatus(args: GetPlanEvaluationStatusCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetPlanEvaluationStatusCommandOutput>;
161
+ /**
162
+ * @see {@link GetPlanExecutionCommand}
163
+ * @param args - command input.
164
+ * @param paginationConfig - optional pagination config.
165
+ * @returns AsyncIterable of {@link GetPlanExecutionCommandOutput}.
166
+ */
167
+ paginateGetPlanExecution(args: GetPlanExecutionCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetPlanExecutionCommandOutput>;
168
+ /**
169
+ * @see {@link ListPlanExecutionEventsCommand}
170
+ * @param args - command input.
171
+ * @param paginationConfig - optional pagination config.
172
+ * @returns AsyncIterable of {@link ListPlanExecutionEventsCommandOutput}.
173
+ */
174
+ paginateListPlanExecutionEvents(args: ListPlanExecutionEventsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListPlanExecutionEventsCommandOutput>;
175
+ /**
176
+ * @see {@link ListPlanExecutionsCommand}
177
+ * @param args - command input.
178
+ * @param paginationConfig - optional pagination config.
179
+ * @returns AsyncIterable of {@link ListPlanExecutionsCommandOutput}.
180
+ */
181
+ paginateListPlanExecutions(args: ListPlanExecutionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListPlanExecutionsCommandOutput>;
182
+ /**
183
+ * @see {@link ListPlansCommand}
184
+ * @param args - command input.
185
+ * @param paginationConfig - optional pagination config.
186
+ * @returns AsyncIterable of {@link ListPlansCommandOutput}.
187
+ */
188
+ paginateListPlans(args?: ListPlansCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListPlansCommandOutput>;
189
+ /**
190
+ * @see {@link ListPlansInRegionCommand}
191
+ * @param args - command input.
192
+ * @param paginationConfig - optional pagination config.
193
+ * @returns AsyncIterable of {@link ListPlansInRegionCommandOutput}.
194
+ */
195
+ paginateListPlansInRegion(args?: ListPlansInRegionCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListPlansInRegionCommandOutput>;
196
+ /**
197
+ * @see {@link ListRoute53HealthChecksCommand}
198
+ * @param args - command input.
199
+ * @param paginationConfig - optional pagination config.
200
+ * @returns AsyncIterable of {@link ListRoute53HealthChecksCommandOutput}.
201
+ */
202
+ paginateListRoute53HealthChecks(args: ListRoute53HealthChecksCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListRoute53HealthChecksCommandOutput>;
203
+ /**
204
+ * @see {@link ListRoute53HealthChecksInRegionCommand}
205
+ * @param args - command input.
206
+ * @param paginationConfig - optional pagination config.
207
+ * @returns AsyncIterable of {@link ListRoute53HealthChecksInRegionCommandOutput}.
208
+ */
209
+ paginateListRoute53HealthChecksInRegion(args: ListRoute53HealthChecksInRegionCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListRoute53HealthChecksInRegionCommandOutput>;
210
+ /**
211
+ * @see {@link GetPlanEvaluationStatusCommand}
212
+ * @param args - command input.
213
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
214
+ */
215
+ waitUntilPlanEvaluationStatusPassed(args: GetPlanEvaluationStatusCommandInput, waiterConfig: number | Omit<WaiterConfiguration<ARCRegionSwitch>, "client">): Promise<WaiterResult>;
216
+ /**
217
+ * @see {@link GetPlanExecutionCommand}
218
+ * @param args - command input.
219
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
220
+ */
221
+ waitUntilPlanExecutionCompleted(args: GetPlanExecutionCommandInput, waiterConfig: number | Omit<WaiterConfiguration<ARCRegionSwitch>, "client">): Promise<WaiterResult>;
153
222
  }
154
223
  /**
155
224
  * <p>Amazon Application Recovery Controller (ARC) Region switch helps you to quickly and reliably shift traffic away from an impaired Amazon Web Services Region to a healthy Region. With Region switch, you can create plans that define the steps to shift traffic for your application from one Amazon Web Services Region to another. You can test your plans in practice mode before using them in a real recovery scenario.</p> <p>Region switch provides a structured approach to multi-Region failover, helping you to meet your recovery time objectives (RTOs) and maintain business continuity during regional disruptions.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/region-switch.html">Region switch in ARC</a> in the <i>Amazon Application Recovery Controller User Guide</i>.</p>
@@ -1,4 +1,10 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ PaginationConfiguration,
4
+ Paginator,
5
+ WaiterConfiguration,
6
+ } from "@smithy/types";
7
+ import { WaiterResult } from "@smithy/util-waiter";
2
8
  import { ARCRegionSwitchClient } from "./ARCRegionSwitchClient";
3
9
  import {
4
10
  ApprovePlanExecutionStepCommandInput,
@@ -360,6 +366,80 @@ export interface ARCRegionSwitch {
360
366
  options: __HttpHandlerOptions,
361
367
  cb: (err: any, data?: UpdatePlanExecutionStepCommandOutput) => void
362
368
  ): void;
369
+ paginateGetPlanEvaluationStatus(
370
+ args: GetPlanEvaluationStatusCommandInput,
371
+ paginationConfig?: Pick<
372
+ PaginationConfiguration,
373
+ Exclude<keyof PaginationConfiguration, "client">
374
+ >
375
+ ): Paginator<GetPlanEvaluationStatusCommandOutput>;
376
+ paginateGetPlanExecution(
377
+ args: GetPlanExecutionCommandInput,
378
+ paginationConfig?: Pick<
379
+ PaginationConfiguration,
380
+ Exclude<keyof PaginationConfiguration, "client">
381
+ >
382
+ ): Paginator<GetPlanExecutionCommandOutput>;
383
+ paginateListPlanExecutionEvents(
384
+ args: ListPlanExecutionEventsCommandInput,
385
+ paginationConfig?: Pick<
386
+ PaginationConfiguration,
387
+ Exclude<keyof PaginationConfiguration, "client">
388
+ >
389
+ ): Paginator<ListPlanExecutionEventsCommandOutput>;
390
+ paginateListPlanExecutions(
391
+ args: ListPlanExecutionsCommandInput,
392
+ paginationConfig?: Pick<
393
+ PaginationConfiguration,
394
+ Exclude<keyof PaginationConfiguration, "client">
395
+ >
396
+ ): Paginator<ListPlanExecutionsCommandOutput>;
397
+ paginateListPlans(
398
+ args?: ListPlansCommandInput,
399
+ paginationConfig?: Pick<
400
+ PaginationConfiguration,
401
+ Exclude<keyof PaginationConfiguration, "client">
402
+ >
403
+ ): Paginator<ListPlansCommandOutput>;
404
+ paginateListPlansInRegion(
405
+ args?: ListPlansInRegionCommandInput,
406
+ paginationConfig?: Pick<
407
+ PaginationConfiguration,
408
+ Exclude<keyof PaginationConfiguration, "client">
409
+ >
410
+ ): Paginator<ListPlansInRegionCommandOutput>;
411
+ paginateListRoute53HealthChecks(
412
+ args: ListRoute53HealthChecksCommandInput,
413
+ paginationConfig?: Pick<
414
+ PaginationConfiguration,
415
+ Exclude<keyof PaginationConfiguration, "client">
416
+ >
417
+ ): Paginator<ListRoute53HealthChecksCommandOutput>;
418
+ paginateListRoute53HealthChecksInRegion(
419
+ args: ListRoute53HealthChecksInRegionCommandInput,
420
+ paginationConfig?: Pick<
421
+ PaginationConfiguration,
422
+ Exclude<keyof PaginationConfiguration, "client">
423
+ >
424
+ ): Paginator<ListRoute53HealthChecksInRegionCommandOutput>;
425
+ waitUntilPlanEvaluationStatusPassed(
426
+ args: GetPlanEvaluationStatusCommandInput,
427
+ waiterConfig:
428
+ | number
429
+ | Pick<
430
+ WaiterConfiguration<ARCRegionSwitch>,
431
+ Exclude<keyof WaiterConfiguration<ARCRegionSwitch>, "client">
432
+ >
433
+ ): Promise<WaiterResult>;
434
+ waitUntilPlanExecutionCompleted(
435
+ args: GetPlanExecutionCommandInput,
436
+ waiterConfig:
437
+ | number
438
+ | Pick<
439
+ WaiterConfiguration<ARCRegionSwitch>,
440
+ Exclude<keyof WaiterConfiguration<ARCRegionSwitch>, "client">
441
+ >
442
+ ): Promise<WaiterResult>;
363
443
  }
364
444
  export declare class ARCRegionSwitch
365
445
  extends ARCRegionSwitchClient
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-arc-region-switch",
3
3
  "description": "AWS SDK for JavaScript Arc Region Switch Client for Node.js, Browser and React Native",
4
- "version": "3.975.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-region-switch",
@@ -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.1",
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.2",
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.1",
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.11",
42
- "@smithy/middleware-retry": "^4.4.27",
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.12",
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.26",
55
- "@smithy/util-defaults-mode-node": "^4.2.29",
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",