@aws-sdk/client-arc-zonal-shift 3.462.0 → 3.464.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 +1 -1
@@ -0,0 +1,133 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { ARCZonalShiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ARCZonalShiftClient";
5
+ import { UpdatePracticeRunConfigurationRequest, UpdatePracticeRunConfigurationResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdatePracticeRunConfigurationCommand}.
14
+ */
15
+ export interface UpdatePracticeRunConfigurationCommandInput extends UpdatePracticeRunConfigurationRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdatePracticeRunConfigurationCommand}.
21
+ */
22
+ export interface UpdatePracticeRunConfigurationCommandOutput extends UpdatePracticeRunConfigurationResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Update a practice run configuration to change one or more of the following: add,
27
+ * change, or remove the blocking alarm; change the outcome alarm; or add, change,
28
+ * or remove blocking dates or time windows.</p>
29
+ * @example
30
+ * Use a bare-bones client and the command you need to make an API call.
31
+ * ```javascript
32
+ * import { ARCZonalShiftClient, UpdatePracticeRunConfigurationCommand } from "@aws-sdk/client-arc-zonal-shift"; // ES Modules import
33
+ * // const { ARCZonalShiftClient, UpdatePracticeRunConfigurationCommand } = require("@aws-sdk/client-arc-zonal-shift"); // CommonJS import
34
+ * const client = new ARCZonalShiftClient(config);
35
+ * const input = { // UpdatePracticeRunConfigurationRequest
36
+ * resourceIdentifier: "STRING_VALUE", // required
37
+ * blockedWindows: [ // BlockedWindows
38
+ * "STRING_VALUE",
39
+ * ],
40
+ * blockedDates: [ // BlockedDates
41
+ * "STRING_VALUE",
42
+ * ],
43
+ * blockingAlarms: [ // ControlConditions
44
+ * { // ControlCondition
45
+ * type: "CLOUDWATCH", // required
46
+ * alarmIdentifier: "STRING_VALUE", // required
47
+ * },
48
+ * ],
49
+ * outcomeAlarms: [
50
+ * {
51
+ * type: "CLOUDWATCH", // required
52
+ * alarmIdentifier: "STRING_VALUE", // required
53
+ * },
54
+ * ],
55
+ * };
56
+ * const command = new UpdatePracticeRunConfigurationCommand(input);
57
+ * const response = await client.send(command);
58
+ * // { // UpdatePracticeRunConfigurationResponse
59
+ * // arn: "STRING_VALUE", // required
60
+ * // name: "STRING_VALUE", // required
61
+ * // zonalAutoshiftStatus: "ENABLED" || "DISABLED", // required
62
+ * // practiceRunConfiguration: { // PracticeRunConfiguration
63
+ * // blockingAlarms: [ // ControlConditions
64
+ * // { // ControlCondition
65
+ * // type: "CLOUDWATCH", // required
66
+ * // alarmIdentifier: "STRING_VALUE", // required
67
+ * // },
68
+ * // ],
69
+ * // outcomeAlarms: [ // required
70
+ * // {
71
+ * // type: "CLOUDWATCH", // required
72
+ * // alarmIdentifier: "STRING_VALUE", // required
73
+ * // },
74
+ * // ],
75
+ * // blockedWindows: [ // BlockedWindows
76
+ * // "STRING_VALUE",
77
+ * // ],
78
+ * // blockedDates: [ // BlockedDates
79
+ * // "STRING_VALUE",
80
+ * // ],
81
+ * // },
82
+ * // };
83
+ *
84
+ * ```
85
+ *
86
+ * @param UpdatePracticeRunConfigurationCommandInput - {@link UpdatePracticeRunConfigurationCommandInput}
87
+ * @returns {@link UpdatePracticeRunConfigurationCommandOutput}
88
+ * @see {@link UpdatePracticeRunConfigurationCommandInput} for command's `input` shape.
89
+ * @see {@link UpdatePracticeRunConfigurationCommandOutput} for command's `response` shape.
90
+ * @see {@link ARCZonalShiftClientResolvedConfig | config} for ARCZonalShiftClient's `config` shape.
91
+ *
92
+ * @throws {@link AccessDeniedException} (client fault)
93
+ * <p>You do not have sufficient access to perform this action.</p>
94
+ *
95
+ * @throws {@link ConflictException} (client fault)
96
+ * <p>The request could not be processed because of conflict in the current state of the resource.</p>
97
+ *
98
+ * @throws {@link InternalServerException} (server fault)
99
+ * <p>There was an internal server error.</p>
100
+ *
101
+ * @throws {@link ResourceNotFoundException} (client fault)
102
+ * <p>The input requested a resource that was not found.</p>
103
+ *
104
+ * @throws {@link ThrottlingException} (client fault)
105
+ * <p>The request was denied due to request throttling.</p>
106
+ *
107
+ * @throws {@link ValidationException} (client fault)
108
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
109
+ *
110
+ * @throws {@link ARCZonalShiftServiceException}
111
+ * <p>Base exception class for all service exceptions from ARCZonalShift service.</p>
112
+ *
113
+ */
114
+ export declare class UpdatePracticeRunConfigurationCommand extends $Command<UpdatePracticeRunConfigurationCommandInput, UpdatePracticeRunConfigurationCommandOutput, ARCZonalShiftClientResolvedConfig> {
115
+ readonly input: UpdatePracticeRunConfigurationCommandInput;
116
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
117
+ /**
118
+ * @public
119
+ */
120
+ constructor(input: UpdatePracticeRunConfigurationCommandInput);
121
+ /**
122
+ * @internal
123
+ */
124
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ARCZonalShiftClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdatePracticeRunConfigurationCommandInput, UpdatePracticeRunConfigurationCommandOutput>;
125
+ /**
126
+ * @internal
127
+ */
128
+ private serialize;
129
+ /**
130
+ * @internal
131
+ */
132
+ private deserialize;
133
+ }
@@ -0,0 +1,96 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { ARCZonalShiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ARCZonalShiftClient";
5
+ import { UpdateZonalAutoshiftConfigurationRequest, UpdateZonalAutoshiftConfigurationResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateZonalAutoshiftConfigurationCommand}.
14
+ */
15
+ export interface UpdateZonalAutoshiftConfigurationCommandInput extends UpdateZonalAutoshiftConfigurationRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateZonalAutoshiftConfigurationCommand}.
21
+ */
22
+ export interface UpdateZonalAutoshiftConfigurationCommandOutput extends UpdateZonalAutoshiftConfigurationResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>You can update the zonal autoshift status for a resource, to enable or disable zonal
27
+ * autoshift. When zonal autoshift is <code>ENABLED</code>, Amazon Web Services shifts away
28
+ * resource traffic from an Availability Zone, on your behalf, when Amazon Web Services
29
+ * determines that there's an issue in the Availability Zone that could potentially affect customers.</p>
30
+ * @example
31
+ * Use a bare-bones client and the command you need to make an API call.
32
+ * ```javascript
33
+ * import { ARCZonalShiftClient, UpdateZonalAutoshiftConfigurationCommand } from "@aws-sdk/client-arc-zonal-shift"; // ES Modules import
34
+ * // const { ARCZonalShiftClient, UpdateZonalAutoshiftConfigurationCommand } = require("@aws-sdk/client-arc-zonal-shift"); // CommonJS import
35
+ * const client = new ARCZonalShiftClient(config);
36
+ * const input = { // UpdateZonalAutoshiftConfigurationRequest
37
+ * resourceIdentifier: "STRING_VALUE", // required
38
+ * zonalAutoshiftStatus: "ENABLED" || "DISABLED", // required
39
+ * };
40
+ * const command = new UpdateZonalAutoshiftConfigurationCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // UpdateZonalAutoshiftConfigurationResponse
43
+ * // resourceIdentifier: "STRING_VALUE", // required
44
+ * // zonalAutoshiftStatus: "ENABLED" || "DISABLED", // required
45
+ * // };
46
+ *
47
+ * ```
48
+ *
49
+ * @param UpdateZonalAutoshiftConfigurationCommandInput - {@link UpdateZonalAutoshiftConfigurationCommandInput}
50
+ * @returns {@link UpdateZonalAutoshiftConfigurationCommandOutput}
51
+ * @see {@link UpdateZonalAutoshiftConfigurationCommandInput} for command's `input` shape.
52
+ * @see {@link UpdateZonalAutoshiftConfigurationCommandOutput} for command's `response` shape.
53
+ * @see {@link ARCZonalShiftClientResolvedConfig | config} for ARCZonalShiftClient's `config` shape.
54
+ *
55
+ * @throws {@link AccessDeniedException} (client fault)
56
+ * <p>You do not have sufficient access to perform this action.</p>
57
+ *
58
+ * @throws {@link ConflictException} (client fault)
59
+ * <p>The request could not be processed because of conflict in the current state of the resource.</p>
60
+ *
61
+ * @throws {@link InternalServerException} (server fault)
62
+ * <p>There was an internal server error.</p>
63
+ *
64
+ * @throws {@link ResourceNotFoundException} (client fault)
65
+ * <p>The input requested a resource that was not found.</p>
66
+ *
67
+ * @throws {@link ThrottlingException} (client fault)
68
+ * <p>The request was denied due to request throttling.</p>
69
+ *
70
+ * @throws {@link ValidationException} (client fault)
71
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
72
+ *
73
+ * @throws {@link ARCZonalShiftServiceException}
74
+ * <p>Base exception class for all service exceptions from ARCZonalShift service.</p>
75
+ *
76
+ */
77
+ export declare class UpdateZonalAutoshiftConfigurationCommand extends $Command<UpdateZonalAutoshiftConfigurationCommandInput, UpdateZonalAutoshiftConfigurationCommandOutput, ARCZonalShiftClientResolvedConfig> {
78
+ readonly input: UpdateZonalAutoshiftConfigurationCommandInput;
79
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
80
+ /**
81
+ * @public
82
+ */
83
+ constructor(input: UpdateZonalAutoshiftConfigurationCommandInput);
84
+ /**
85
+ * @internal
86
+ */
87
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ARCZonalShiftClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateZonalAutoshiftConfigurationCommandInput, UpdateZonalAutoshiftConfigurationCommandOutput>;
88
+ /**
89
+ * @internal
90
+ */
91
+ private serialize;
92
+ /**
93
+ * @internal
94
+ */
95
+ private deserialize;
96
+ }
@@ -23,7 +23,7 @@ export interface UpdateZonalShiftCommandOutput extends ZonalShift, __MetadataBea
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <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
26
+ * <p>Update an active zonal shift in Amazon Route 53 Application Recovery Controller in your Amazon Web Services account. You can update a zonal shift to set a new expiration, or
27
27
  * edit or replace the comment for the zonal shift. </p>
28
28
  * @example
29
29
  * Use a bare-bones client and the command you need to make an API call.
@@ -72,7 +72,7 @@ export interface UpdateZonalShiftCommandOutput extends ZonalShift, __MetadataBea
72
72
  * <p>The request was denied due to request throttling.</p>
73
73
  *
74
74
  * @throws {@link ValidationException} (client fault)
75
- * <p>The input fails to satisfy the constraints specified by an AWS service.</p>
75
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
76
76
  *
77
77
  * @throws {@link ARCZonalShiftServiceException}
78
78
  * <p>Base exception class for all service exceptions from ARCZonalShift service.</p>
@@ -1,6 +1,11 @@
1
1
  export * from "./CancelZonalShiftCommand";
2
+ export * from "./CreatePracticeRunConfigurationCommand";
3
+ export * from "./DeletePracticeRunConfigurationCommand";
2
4
  export * from "./GetManagedResourceCommand";
5
+ export * from "./ListAutoshiftsCommand";
3
6
  export * from "./ListManagedResourcesCommand";
4
7
  export * from "./ListZonalShiftsCommand";
5
8
  export * from "./StartZonalShiftCommand";
9
+ export * from "./UpdatePracticeRunConfigurationCommand";
10
+ export * from "./UpdateZonalAutoshiftConfigurationCommand";
6
11
  export * from "./UpdateZonalShiftCommand";
@@ -1,19 +1,31 @@
1
1
  /**
2
- * <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
3
- * zonal shift API actions, data types, and errors.</p>
4
- * <p>Zonal shift is in preview release for Amazon Route 53 Application Recovery Controller and is subject to change.</p>
5
- * <p>Zonal shift in Route 53 ARC enables you to move traffic for a load balancer resource away from an Availability Zone. Starting
6
- * a zonal shift helps your application recover immediately, for example, from a developer's bad code deployment
7
- * or from an AWS infrastructure failure in a single Availability Zone, reducing the impact and time lost from an issue
8
- * in one zone. </p>
9
- * <p>Supported AWS resources are automatically registered with Route 53 ARC. Resources that are registered for zonal shifts
10
- * 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.
11
- * 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>
12
- * <p>Zonal shifts are temporary. You must specify an expiration when you start a zonal shift, of up to three days initially.
13
- * If you want to still keep traffic away from an Availability Zone, you can update the zonal shift and set a new expiration.
14
- * You can also cancel a zonal shift, before it expires, for example, if you're ready to restore traffic to the Availability Zone.</p>
15
- * <p>For more information about using zonal shift, see the
16
- * <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>
2
+ * <p>Welcome to the Zonal Shift API Reference Guide for Amazon Route 53 Application Recovery Controller (Route 53 ARC).</p>
3
+ * <p>You can start a zonal shift to move traffic for a load balancer resource away from an Availability Zone to
4
+ * help your application recover quickly from an impairment in an Availability Zone. For example,
5
+ * you can recover your application from a developer's bad code deployment or from an
6
+ * Amazon Web Services infrastructure failure in a single Availability Zone.</p>
7
+ * <p>You can also configure zonal autoshift for a load balancer resource. Zonal autoshift
8
+ * is a capability in Route 53 ARC where Amazon Web Services shifts away application resource
9
+ * traffic from an Availability Zone, on your behalf, to help reduce your time to recovery during events.
10
+ * Amazon Web Services shifts away traffic for resources that are enabled for zonal autoshift whenever Amazon Web Services
11
+ * determines that there's an issue in the Availability Zone that could potentially affect
12
+ * customers.</p>
13
+ * <p>To ensure that zonal autoshift is safe for your application, you must
14
+ * also configure practice runs when you enable zonal autoshift for a resource. Practice runs start
15
+ * weekly zonal shifts for a resource, to shift
16
+ * traffic for the resource out of an Availability Zone. Practice runs make sure, on a regular basis,
17
+ * that you have enough capacity in all the Availability Zones in an Amazon Web Services Region
18
+ * for your application to continue to operate normally
19
+ * when traffic for a resource is shifted away from one Availability Zone.</p>
20
+ * <important>
21
+ * <p>You must prescale resource capacity in all Availability Zones in the Region
22
+ * where your application is deployed, before you configure practice runs or enable zonal autoshift
23
+ * for a resource. You should not rely on scaling on demand when an autoshift or practice run
24
+ * starts. </p>
25
+ * </important>
26
+ * <p>For more information about using zonal shift and zonal autoshift, see the
27
+ * <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/what-is-route53-recovery.html">Amazon Route 53 Application Recovery Controller
28
+ * Developer Guide</a>.</p>
17
29
  *
18
30
  * @packageDocumentation
19
31
  */