@aws-sdk/client-arc-zonal-shift 3.462.0 → 3.465.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.
Files changed (55) hide show
  1. package/README.md +74 -22
  2. package/dist-cjs/ARCZonalShift.js +10 -0
  3. package/dist-cjs/commands/CreatePracticeRunConfigurationCommand.js +51 -0
  4. package/dist-cjs/commands/DeletePracticeRunConfigurationCommand.js +51 -0
  5. package/dist-cjs/commands/ListAutoshiftsCommand.js +51 -0
  6. package/dist-cjs/commands/UpdatePracticeRunConfigurationCommand.js +51 -0
  7. package/dist-cjs/commands/UpdateZonalAutoshiftConfigurationCommand.js +51 -0
  8. package/dist-cjs/commands/index.js +5 -0
  9. package/dist-cjs/models/models_0.js +61 -34
  10. package/dist-cjs/pagination/ListAutoshiftsPaginator.js +29 -0
  11. package/dist-cjs/pagination/index.js +1 -0
  12. package/dist-cjs/protocols/Aws_restJson1.js +419 -2
  13. package/dist-es/ARCZonalShift.js +10 -0
  14. package/dist-es/commands/CreatePracticeRunConfigurationCommand.js +47 -0
  15. package/dist-es/commands/DeletePracticeRunConfigurationCommand.js +47 -0
  16. package/dist-es/commands/ListAutoshiftsCommand.js +47 -0
  17. package/dist-es/commands/UpdatePracticeRunConfigurationCommand.js +47 -0
  18. package/dist-es/commands/UpdateZonalAutoshiftConfigurationCommand.js +47 -0
  19. package/dist-es/commands/index.js +5 -0
  20. package/dist-es/models/models_0.js +58 -31
  21. package/dist-es/pagination/ListAutoshiftsPaginator.js +25 -0
  22. package/dist-es/pagination/index.js +1 -0
  23. package/dist-es/protocols/Aws_restJson1.js +408 -1
  24. package/dist-types/ARCZonalShift.d.ts +62 -15
  25. package/dist-types/ARCZonalShiftClient.d.ts +34 -17
  26. package/dist-types/commands/CancelZonalShiftCommand.d.ts +5 -2
  27. package/dist-types/commands/CreatePracticeRunConfigurationCommand.d.ts +138 -0
  28. package/dist-types/commands/DeletePracticeRunConfigurationCommand.d.ts +95 -0
  29. package/dist-types/commands/GetManagedResourceCommand.d.ts +33 -4
  30. package/dist-types/commands/ListAutoshiftsCommand.d.ts +95 -0
  31. package/dist-types/commands/ListManagedResourcesCommand.d.ts +28 -3
  32. package/dist-types/commands/ListZonalShiftsCommand.d.ts +8 -2
  33. package/dist-types/commands/StartZonalShiftCommand.d.ts +8 -7
  34. package/dist-types/commands/UpdatePracticeRunConfigurationCommand.d.ts +133 -0
  35. package/dist-types/commands/UpdateZonalAutoshiftConfigurationCommand.d.ts +96 -0
  36. package/dist-types/commands/UpdateZonalShiftCommand.d.ts +2 -2
  37. package/dist-types/commands/index.d.ts +5 -0
  38. package/dist-types/index.d.ts +27 -15
  39. package/dist-types/models/models_0.d.ts +698 -95
  40. package/dist-types/pagination/ListAutoshiftsPaginator.d.ts +7 -0
  41. package/dist-types/pagination/index.d.ts +1 -0
  42. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  43. package/dist-types/ts3.4/ARCZonalShift.d.ts +91 -0
  44. package/dist-types/ts3.4/ARCZonalShiftClient.d.ts +30 -0
  45. package/dist-types/ts3.4/commands/CreatePracticeRunConfigurationCommand.d.ts +42 -0
  46. package/dist-types/ts3.4/commands/DeletePracticeRunConfigurationCommand.d.ts +42 -0
  47. package/dist-types/ts3.4/commands/ListAutoshiftsCommand.d.ts +38 -0
  48. package/dist-types/ts3.4/commands/UpdatePracticeRunConfigurationCommand.d.ts +42 -0
  49. package/dist-types/ts3.4/commands/UpdateZonalAutoshiftConfigurationCommand.d.ts +42 -0
  50. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  51. package/dist-types/ts3.4/models/models_0.d.ts +143 -23
  52. package/dist-types/ts3.4/pagination/ListAutoshiftsPaginator.d.ts +11 -0
  53. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  54. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  55. package/package.json +14 -16
package/README.md CHANGED
@@ -6,21 +6,33 @@
6
6
 
7
7
  AWS SDK for JavaScript ARCZonalShift Client for Node.js, Browser and React Native.
8
8
 
9
- <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
10
- zonal shift API actions, data types, and errors.</p>
11
- <p>Zonal shift is in preview release for Amazon Route 53 Application Recovery Controller and is subject to change.</p>
12
- <p>Zonal shift in Route 53 ARC enables you to move traffic for a load balancer resource away from an Availability Zone. Starting
13
- a zonal shift helps your application recover immediately, for example, from a developer's bad code deployment
14
- or from an AWS infrastructure failure in a single Availability Zone, reducing the impact and time lost from an issue
15
- in one zone. </p>
16
- <p>Supported AWS resources are automatically registered with Route 53 ARC. Resources that are registered for zonal shifts
17
- 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.
18
- 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>
19
- <p>Zonal shifts are temporary. You must specify an expiration when you start a zonal shift, of up to three days initially.
20
- If you want to still keep traffic away from an Availability Zone, you can update the zonal shift and set a new expiration.
21
- You can also cancel a zonal shift, before it expires, for example, if you're ready to restore traffic to the Availability Zone.</p>
22
- <p>For more information about using zonal shift, see the
23
- <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>
9
+ <p>Welcome to the Zonal Shift API Reference Guide for Amazon Route 53 Application Recovery Controller (Route 53 ARC).</p>
10
+ <p>You can start a zonal shift to move traffic for a load balancer resource away from an Availability Zone to
11
+ help your application recover quickly from an impairment in an Availability Zone. For example,
12
+ you can recover your application from a developer's bad code deployment or from an
13
+ Amazon Web Services infrastructure failure in a single Availability Zone.</p>
14
+ <p>You can also configure zonal autoshift for a load balancer resource. Zonal autoshift
15
+ is a capability in Route 53 ARC where Amazon Web Services shifts away application resource
16
+ traffic from an Availability Zone, on your behalf, to help reduce your time to recovery during events.
17
+ Amazon Web Services shifts away traffic for resources that are enabled for zonal autoshift whenever Amazon Web Services
18
+ determines that there's an issue in the Availability Zone that could potentially affect
19
+ customers.</p>
20
+ <p>To ensure that zonal autoshift is safe for your application, you must
21
+ also configure practice runs when you enable zonal autoshift for a resource. Practice runs start
22
+ weekly zonal shifts for a resource, to shift
23
+ traffic for the resource out of an Availability Zone. Practice runs make sure, on a regular basis,
24
+ that you have enough capacity in all the Availability Zones in an Amazon Web Services Region
25
+ for your application to continue to operate normally
26
+ when traffic for a resource is shifted away from one Availability Zone.</p>
27
+ <important>
28
+ <p>You must prescale resource capacity in all Availability Zones in the Region
29
+ where your application is deployed, before you configure practice runs or enable zonal autoshift
30
+ for a resource. You should not rely on scaling on demand when an autoshift or practice run
31
+ starts. </p>
32
+ </important>
33
+ <p>For more information about using zonal shift and zonal autoshift, see the
34
+ <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/what-is-route53-recovery.html">Amazon Route 53 Application Recovery Controller
35
+ Developer Guide</a>.</p>
24
36
 
25
37
  ## Installing
26
38
 
@@ -37,16 +49,16 @@ using your favorite package manager:
37
49
 
38
50
  The AWS SDK is modulized by clients and commands.
39
51
  To send a request, you only need to import the `ARCZonalShiftClient` and
40
- the commands you need, for example `ListZonalShiftsCommand`:
52
+ the commands you need, for example `ListAutoshiftsCommand`:
41
53
 
42
54
  ```js
43
55
  // ES5 example
44
- const { ARCZonalShiftClient, ListZonalShiftsCommand } = require("@aws-sdk/client-arc-zonal-shift");
56
+ const { ARCZonalShiftClient, ListAutoshiftsCommand } = require("@aws-sdk/client-arc-zonal-shift");
45
57
  ```
46
58
 
47
59
  ```ts
48
60
  // ES6+ example
49
- import { ARCZonalShiftClient, ListZonalShiftsCommand } from "@aws-sdk/client-arc-zonal-shift";
61
+ import { ARCZonalShiftClient, ListAutoshiftsCommand } from "@aws-sdk/client-arc-zonal-shift";
50
62
  ```
51
63
 
52
64
  ### Usage
@@ -65,7 +77,7 @@ const client = new ARCZonalShiftClient({ region: "REGION" });
65
77
  const params = {
66
78
  /** input parameters */
67
79
  };
68
- const command = new ListZonalShiftsCommand(params);
80
+ const command = new ListAutoshiftsCommand(params);
69
81
  ```
70
82
 
71
83
  #### Async/await
@@ -144,7 +156,7 @@ const client = new AWS.ARCZonalShift({ region: "REGION" });
144
156
 
145
157
  // async/await.
146
158
  try {
147
- const data = await client.listZonalShifts(params);
159
+ const data = await client.listAutoshifts(params);
148
160
  // process data.
149
161
  } catch (error) {
150
162
  // error handling.
@@ -152,7 +164,7 @@ try {
152
164
 
153
165
  // Promises.
154
166
  client
155
- .listZonalShifts(params)
167
+ .listAutoshifts(params)
156
168
  .then((data) => {
157
169
  // process data.
158
170
  })
@@ -161,7 +173,7 @@ client
161
173
  });
162
174
 
163
175
  // callbacks.
164
- client.listZonalShifts(params, (err, data) => {
176
+ client.listAutoshifts(params, (err, data) => {
165
177
  // process err and data.
166
178
  });
167
179
  ```
@@ -224,6 +236,22 @@ CancelZonalShift
224
236
 
225
237
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/arc-zonal-shift/command/CancelZonalShiftCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-arc-zonal-shift/Interface/CancelZonalShiftCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-arc-zonal-shift/Interface/CancelZonalShiftCommandOutput/)
226
238
 
239
+ </details>
240
+ <details>
241
+ <summary>
242
+ CreatePracticeRunConfiguration
243
+ </summary>
244
+
245
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/arc-zonal-shift/command/CreatePracticeRunConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-arc-zonal-shift/Interface/CreatePracticeRunConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-arc-zonal-shift/Interface/CreatePracticeRunConfigurationCommandOutput/)
246
+
247
+ </details>
248
+ <details>
249
+ <summary>
250
+ DeletePracticeRunConfiguration
251
+ </summary>
252
+
253
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/arc-zonal-shift/command/DeletePracticeRunConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-arc-zonal-shift/Interface/DeletePracticeRunConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-arc-zonal-shift/Interface/DeletePracticeRunConfigurationCommandOutput/)
254
+
227
255
  </details>
228
256
  <details>
229
257
  <summary>
@@ -232,6 +260,14 @@ GetManagedResource
232
260
 
233
261
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/arc-zonal-shift/command/GetManagedResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-arc-zonal-shift/Interface/GetManagedResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-arc-zonal-shift/Interface/GetManagedResourceCommandOutput/)
234
262
 
263
+ </details>
264
+ <details>
265
+ <summary>
266
+ ListAutoshifts
267
+ </summary>
268
+
269
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/arc-zonal-shift/command/ListAutoshiftsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-arc-zonal-shift/Interface/ListAutoshiftsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-arc-zonal-shift/Interface/ListAutoshiftsCommandOutput/)
270
+
235
271
  </details>
236
272
  <details>
237
273
  <summary>
@@ -256,6 +292,22 @@ StartZonalShift
256
292
 
257
293
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/arc-zonal-shift/command/StartZonalShiftCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-arc-zonal-shift/Interface/StartZonalShiftCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-arc-zonal-shift/Interface/StartZonalShiftCommandOutput/)
258
294
 
295
+ </details>
296
+ <details>
297
+ <summary>
298
+ UpdatePracticeRunConfiguration
299
+ </summary>
300
+
301
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/arc-zonal-shift/command/UpdatePracticeRunConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-arc-zonal-shift/Interface/UpdatePracticeRunConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-arc-zonal-shift/Interface/UpdatePracticeRunConfigurationCommandOutput/)
302
+
303
+ </details>
304
+ <details>
305
+ <summary>
306
+ UpdateZonalAutoshiftConfiguration
307
+ </summary>
308
+
309
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/arc-zonal-shift/command/UpdateZonalAutoshiftConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-arc-zonal-shift/Interface/UpdateZonalAutoshiftConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-arc-zonal-shift/Interface/UpdateZonalAutoshiftConfigurationCommandOutput/)
310
+
259
311
  </details>
260
312
  <details>
261
313
  <summary>
@@ -4,17 +4,27 @@ exports.ARCZonalShift = void 0;
4
4
  const smithy_client_1 = require("@smithy/smithy-client");
5
5
  const ARCZonalShiftClient_1 = require("./ARCZonalShiftClient");
6
6
  const CancelZonalShiftCommand_1 = require("./commands/CancelZonalShiftCommand");
7
+ const CreatePracticeRunConfigurationCommand_1 = require("./commands/CreatePracticeRunConfigurationCommand");
8
+ const DeletePracticeRunConfigurationCommand_1 = require("./commands/DeletePracticeRunConfigurationCommand");
7
9
  const GetManagedResourceCommand_1 = require("./commands/GetManagedResourceCommand");
10
+ const ListAutoshiftsCommand_1 = require("./commands/ListAutoshiftsCommand");
8
11
  const ListManagedResourcesCommand_1 = require("./commands/ListManagedResourcesCommand");
9
12
  const ListZonalShiftsCommand_1 = require("./commands/ListZonalShiftsCommand");
10
13
  const StartZonalShiftCommand_1 = require("./commands/StartZonalShiftCommand");
14
+ const UpdatePracticeRunConfigurationCommand_1 = require("./commands/UpdatePracticeRunConfigurationCommand");
15
+ const UpdateZonalAutoshiftConfigurationCommand_1 = require("./commands/UpdateZonalAutoshiftConfigurationCommand");
11
16
  const UpdateZonalShiftCommand_1 = require("./commands/UpdateZonalShiftCommand");
12
17
  const commands = {
13
18
  CancelZonalShiftCommand: CancelZonalShiftCommand_1.CancelZonalShiftCommand,
19
+ CreatePracticeRunConfigurationCommand: CreatePracticeRunConfigurationCommand_1.CreatePracticeRunConfigurationCommand,
20
+ DeletePracticeRunConfigurationCommand: DeletePracticeRunConfigurationCommand_1.DeletePracticeRunConfigurationCommand,
14
21
  GetManagedResourceCommand: GetManagedResourceCommand_1.GetManagedResourceCommand,
22
+ ListAutoshiftsCommand: ListAutoshiftsCommand_1.ListAutoshiftsCommand,
15
23
  ListManagedResourcesCommand: ListManagedResourcesCommand_1.ListManagedResourcesCommand,
16
24
  ListZonalShiftsCommand: ListZonalShiftsCommand_1.ListZonalShiftsCommand,
17
25
  StartZonalShiftCommand: StartZonalShiftCommand_1.StartZonalShiftCommand,
26
+ UpdatePracticeRunConfigurationCommand: UpdatePracticeRunConfigurationCommand_1.UpdatePracticeRunConfigurationCommand,
27
+ UpdateZonalAutoshiftConfigurationCommand: UpdateZonalAutoshiftConfigurationCommand_1.UpdateZonalAutoshiftConfigurationCommand,
18
28
  UpdateZonalShiftCommand: UpdateZonalShiftCommand_1.UpdateZonalShiftCommand,
19
29
  };
20
30
  class ARCZonalShift extends ARCZonalShiftClient_1.ARCZonalShiftClient {
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreatePracticeRunConfigurationCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class CreatePracticeRunConfigurationCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreatePracticeRunConfigurationCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "ARCZonalShiftClient";
29
+ const commandName = "CreatePracticeRunConfigurationCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "PercDataPlane",
38
+ operation: "CreatePracticeRunConfiguration",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_CreatePracticeRunConfigurationCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_CreatePracticeRunConfigurationCommand)(output, context);
49
+ }
50
+ }
51
+ exports.CreatePracticeRunConfigurationCommand = CreatePracticeRunConfigurationCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeletePracticeRunConfigurationCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class DeletePracticeRunConfigurationCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeletePracticeRunConfigurationCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "ARCZonalShiftClient";
29
+ const commandName = "DeletePracticeRunConfigurationCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "PercDataPlane",
38
+ operation: "DeletePracticeRunConfiguration",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_DeletePracticeRunConfigurationCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_DeletePracticeRunConfigurationCommand)(output, context);
49
+ }
50
+ }
51
+ exports.DeletePracticeRunConfigurationCommand = DeletePracticeRunConfigurationCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListAutoshiftsCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class ListAutoshiftsCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListAutoshiftsCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "ARCZonalShiftClient";
29
+ const commandName = "ListAutoshiftsCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "PercDataPlane",
38
+ operation: "ListAutoshifts",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_ListAutoshiftsCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_ListAutoshiftsCommand)(output, context);
49
+ }
50
+ }
51
+ exports.ListAutoshiftsCommand = ListAutoshiftsCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdatePracticeRunConfigurationCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class UpdatePracticeRunConfigurationCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdatePracticeRunConfigurationCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "ARCZonalShiftClient";
29
+ const commandName = "UpdatePracticeRunConfigurationCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "PercDataPlane",
38
+ operation: "UpdatePracticeRunConfiguration",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_UpdatePracticeRunConfigurationCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_UpdatePracticeRunConfigurationCommand)(output, context);
49
+ }
50
+ }
51
+ exports.UpdatePracticeRunConfigurationCommand = UpdatePracticeRunConfigurationCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateZonalAutoshiftConfigurationCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class UpdateZonalAutoshiftConfigurationCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateZonalAutoshiftConfigurationCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "ARCZonalShiftClient";
29
+ const commandName = "UpdateZonalAutoshiftConfigurationCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "PercDataPlane",
38
+ operation: "UpdateZonalAutoshiftConfiguration",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_UpdateZonalAutoshiftConfigurationCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_UpdateZonalAutoshiftConfigurationCommand)(output, context);
49
+ }
50
+ }
51
+ exports.UpdateZonalAutoshiftConfigurationCommand = UpdateZonalAutoshiftConfigurationCommand;
@@ -2,8 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./CancelZonalShiftCommand"), exports);
5
+ tslib_1.__exportStar(require("./CreatePracticeRunConfigurationCommand"), exports);
6
+ tslib_1.__exportStar(require("./DeletePracticeRunConfigurationCommand"), exports);
5
7
  tslib_1.__exportStar(require("./GetManagedResourceCommand"), exports);
8
+ tslib_1.__exportStar(require("./ListAutoshiftsCommand"), exports);
6
9
  tslib_1.__exportStar(require("./ListManagedResourcesCommand"), exports);
7
10
  tslib_1.__exportStar(require("./ListZonalShiftsCommand"), exports);
8
11
  tslib_1.__exportStar(require("./StartZonalShiftCommand"), exports);
12
+ tslib_1.__exportStar(require("./UpdatePracticeRunConfigurationCommand"), exports);
13
+ tslib_1.__exportStar(require("./UpdateZonalAutoshiftConfigurationCommand"), exports);
9
14
  tslib_1.__exportStar(require("./UpdateZonalShiftCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ZonalShiftStatus = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.ConflictExceptionReason = exports.AppliedStatus = exports.AccessDeniedException = void 0;
3
+ exports.PracticeRunOutcome = exports.ZonalAutoshiftStatus = exports.ControlConditionType = exports.ZonalShiftStatus = exports.ResourceNotFoundException = exports.ConflictException = exports.ConflictExceptionReason = exports.AutoshiftAppliedStatus = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.AutoshiftExecutionStatus = exports.InternalServerException = exports.AppliedStatus = exports.AccessDeniedException = void 0;
4
4
  const ARCZonalShiftServiceException_1 = require("./ARCZonalShiftServiceException");
5
5
  class AccessDeniedException extends ARCZonalShiftServiceException_1.ARCZonalShiftServiceException {
6
6
  constructor(opts) {
@@ -19,26 +19,6 @@ exports.AppliedStatus = {
19
19
  APPLIED: "APPLIED",
20
20
  NOT_APPLIED: "NOT_APPLIED",
21
21
  };
22
- exports.ConflictExceptionReason = {
23
- SIMULTANEOUS_ZONAL_SHIFTS_CONFLICT: "SimultaneousZonalShiftsConflict",
24
- ZONAL_SHIFT_ALREADY_EXISTS: "ZonalShiftAlreadyExists",
25
- ZONAL_SHIFT_STATUS_NOT_ACTIVE: "ZonalShiftStatusNotActive",
26
- };
27
- class ConflictException extends ARCZonalShiftServiceException_1.ARCZonalShiftServiceException {
28
- constructor(opts) {
29
- super({
30
- name: "ConflictException",
31
- $fault: "client",
32
- ...opts,
33
- });
34
- this.name = "ConflictException";
35
- this.$fault = "client";
36
- Object.setPrototypeOf(this, ConflictException.prototype);
37
- this.reason = opts.reason;
38
- this.zonalShiftId = opts.zonalShiftId;
39
- }
40
- }
41
- exports.ConflictException = ConflictException;
42
22
  class InternalServerException extends ARCZonalShiftServiceException_1.ARCZonalShiftServiceException {
43
23
  constructor(opts) {
44
24
  super({
@@ -52,19 +32,10 @@ class InternalServerException extends ARCZonalShiftServiceException_1.ARCZonalSh
52
32
  }
53
33
  }
54
34
  exports.InternalServerException = InternalServerException;
55
- class ResourceNotFoundException extends ARCZonalShiftServiceException_1.ARCZonalShiftServiceException {
56
- constructor(opts) {
57
- super({
58
- name: "ResourceNotFoundException",
59
- $fault: "client",
60
- ...opts,
61
- });
62
- this.name = "ResourceNotFoundException";
63
- this.$fault = "client";
64
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
65
- }
66
- }
67
- exports.ResourceNotFoundException = ResourceNotFoundException;
35
+ exports.AutoshiftExecutionStatus = {
36
+ ACTIVE: "ACTIVE",
37
+ COMPLETED: "COMPLETED",
38
+ };
68
39
  class ThrottlingException extends ARCZonalShiftServiceException_1.ARCZonalShiftServiceException {
69
40
  constructor(opts) {
70
41
  super({
@@ -79,8 +50,11 @@ class ThrottlingException extends ARCZonalShiftServiceException_1.ARCZonalShiftS
79
50
  }
80
51
  exports.ThrottlingException = ThrottlingException;
81
52
  exports.ValidationExceptionReason = {
53
+ INVALID_ALARM_CONDITION: "InvalidAlarmCondition",
82
54
  INVALID_AZ: "InvalidAz",
55
+ INVALID_CONDITION_TYPE: "InvalidConditionType",
83
56
  INVALID_EXPIRES_IN: "InvalidExpiresIn",
57
+ INVALID_PRACTICE_BLOCKER: "InvalidPracticeBlocker",
84
58
  INVALID_RESOURCE_IDENTIFIER: "InvalidResourceIdentifier",
85
59
  INVALID_STATUS: "InvalidStatus",
86
60
  INVALID_TOKEN: "InvalidToken",
@@ -101,8 +75,61 @@ class ValidationException extends ARCZonalShiftServiceException_1.ARCZonalShiftS
101
75
  }
102
76
  }
103
77
  exports.ValidationException = ValidationException;
78
+ exports.AutoshiftAppliedStatus = {
79
+ APPLIED: "APPLIED",
80
+ NOT_APPLIED: "NOT_APPLIED",
81
+ };
82
+ exports.ConflictExceptionReason = {
83
+ AUTOSHIFT_ENABLED: "AutoShiftEnabled",
84
+ PRACTICE_CONFIGURATION_ALREADY_EXISTS: "PracticeConfigurationAlreadyExists",
85
+ PRACTICE_CONFIGURATION_DOES_NOT_EXIST: "PracticeConfigurationDoesNotExist",
86
+ SIMULTANEOUS_ZONAL_SHIFTS_CONFLICT: "SimultaneousZonalShiftsConflict",
87
+ ZONAL_SHIFT_ALREADY_EXISTS: "ZonalShiftAlreadyExists",
88
+ ZONAL_SHIFT_STATUS_NOT_ACTIVE: "ZonalShiftStatusNotActive",
89
+ };
90
+ class ConflictException extends ARCZonalShiftServiceException_1.ARCZonalShiftServiceException {
91
+ constructor(opts) {
92
+ super({
93
+ name: "ConflictException",
94
+ $fault: "client",
95
+ ...opts,
96
+ });
97
+ this.name = "ConflictException";
98
+ this.$fault = "client";
99
+ Object.setPrototypeOf(this, ConflictException.prototype);
100
+ this.reason = opts.reason;
101
+ this.zonalShiftId = opts.zonalShiftId;
102
+ }
103
+ }
104
+ exports.ConflictException = ConflictException;
105
+ class ResourceNotFoundException extends ARCZonalShiftServiceException_1.ARCZonalShiftServiceException {
106
+ constructor(opts) {
107
+ super({
108
+ name: "ResourceNotFoundException",
109
+ $fault: "client",
110
+ ...opts,
111
+ });
112
+ this.name = "ResourceNotFoundException";
113
+ this.$fault = "client";
114
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
115
+ }
116
+ }
117
+ exports.ResourceNotFoundException = ResourceNotFoundException;
104
118
  exports.ZonalShiftStatus = {
105
119
  ACTIVE: "ACTIVE",
106
120
  CANCELED: "CANCELED",
107
121
  EXPIRED: "EXPIRED",
108
122
  };
123
+ exports.ControlConditionType = {
124
+ CLOUDWATCH: "CLOUDWATCH",
125
+ };
126
+ exports.ZonalAutoshiftStatus = {
127
+ DISABLED: "DISABLED",
128
+ ENABLED: "ENABLED",
129
+ };
130
+ exports.PracticeRunOutcome = {
131
+ FAILED: "FAILED",
132
+ INTERRUPTED: "INTERRUPTED",
133
+ PENDING: "PENDING",
134
+ SUCCEEDED: "SUCCEEDED",
135
+ };
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListAutoshifts = void 0;
4
+ const ARCZonalShiftClient_1 = require("../ARCZonalShiftClient");
5
+ const ListAutoshiftsCommand_1 = require("../commands/ListAutoshiftsCommand");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListAutoshiftsCommand_1.ListAutoshiftsCommand(input), ...args);
8
+ };
9
+ async function* paginateListAutoshifts(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["maxResults"] = config.pageSize;
16
+ if (config.client instanceof ARCZonalShiftClient_1.ARCZonalShiftClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected ARCZonalShift | ARCZonalShiftClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListAutoshifts = paginateListAutoshifts;
@@ -2,5 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./Interfaces"), exports);
5
+ tslib_1.__exportStar(require("./ListAutoshiftsPaginator"), exports);
5
6
  tslib_1.__exportStar(require("./ListManagedResourcesPaginator"), exports);
6
7
  tslib_1.__exportStar(require("./ListZonalShiftsPaginator"), exports);