@aws-sdk/client-arc-zonal-shift 3.873.0 → 3.876.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 +9 -4
- package/dist-es/models/models_0.js +6 -3
- package/dist-es/protocols/Aws_restJson1.js +2 -0
- package/dist-types/commands/CreatePracticeRunConfigurationCommand.d.ts +10 -4
- package/dist-types/commands/GetManagedResourceCommand.d.ts +5 -2
- package/dist-types/commands/UpdatePracticeRunConfigurationCommand.d.ts +10 -4
- package/dist-types/commands/UpdateZonalAutoshiftConfigurationCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +53 -35
- package/dist-types/ts3.4/models/models_0.d.ts +15 -9
- package/package.json +6 -6
package/dist-cjs/index.js
CHANGED
|
@@ -297,11 +297,13 @@ var ThrottlingException = class _ThrottlingException extends ARCZonalShiftServic
|
|
|
297
297
|
};
|
|
298
298
|
var ValidationExceptionReason = {
|
|
299
299
|
AUTOSHIFT_UPDATE_NOT_ALLOWED: "AutoshiftUpdateNotAllowed",
|
|
300
|
+
CONFLICTING_PRACTICE_WINDOWS: "InvalidPracticeWindows",
|
|
300
301
|
FIS_EXPERIMENT_UPDATE_NOT_ALLOWED: "FISExperimentUpdateNotAllowed",
|
|
301
302
|
INVALID_ALARM_CONDITION: "InvalidAlarmCondition",
|
|
302
303
|
INVALID_AZ: "InvalidAz",
|
|
303
304
|
INVALID_CONDITION_TYPE: "InvalidConditionType",
|
|
304
305
|
INVALID_EXPIRES_IN: "InvalidExpiresIn",
|
|
306
|
+
INVALID_PRACTICE_ALLOWED_WINDOW: "InvalidPracticeAllowedWindow",
|
|
305
307
|
INVALID_PRACTICE_BLOCKER: "InvalidPracticeBlocker",
|
|
306
308
|
INVALID_RESOURCE_IDENTIFIER: "InvalidResourceIdentifier",
|
|
307
309
|
INVALID_STATUS: "InvalidStatus",
|
|
@@ -342,6 +344,9 @@ var AutoshiftObserverNotificationStatus = {
|
|
|
342
344
|
DISABLED: "DISABLED",
|
|
343
345
|
ENABLED: "ENABLED"
|
|
344
346
|
};
|
|
347
|
+
var ControlConditionType = {
|
|
348
|
+
CLOUDWATCH: "CLOUDWATCH"
|
|
349
|
+
};
|
|
345
350
|
var ZonalShiftStatus = {
|
|
346
351
|
ACTIVE: "ACTIVE",
|
|
347
352
|
CANCELED: "CANCELED",
|
|
@@ -355,6 +360,7 @@ var ConflictExceptionReason = {
|
|
|
355
360
|
PRACTICE_IN_BLOCKED_DATES: "PracticeInBlockedDates",
|
|
356
361
|
PRACTICE_IN_BLOCKED_WINDOWS: "PracticeInBlockedWindows",
|
|
357
362
|
PRACTICE_OUTCOME_ALARMS_RED: "PracticeOutcomeAlarmsRed",
|
|
363
|
+
PRACTICE_OUTSIDE_ALLOWED_WINDOWS: "PracticeOutsideAllowedWindows",
|
|
358
364
|
SIMULTANEOUS_ZONAL_SHIFTS_CONFLICT: "SimultaneousZonalShiftsConflict",
|
|
359
365
|
ZONAL_AUTOSHIFT_ACTIVE: "ZonalAutoshiftActive",
|
|
360
366
|
ZONAL_SHIFT_ALREADY_EXISTS: "ZonalShiftAlreadyExists",
|
|
@@ -408,9 +414,6 @@ var ResourceNotFoundException = class _ResourceNotFoundException extends ARCZona
|
|
|
408
414
|
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
409
415
|
}
|
|
410
416
|
};
|
|
411
|
-
var ControlConditionType = {
|
|
412
|
-
CLOUDWATCH: "CLOUDWATCH"
|
|
413
|
-
};
|
|
414
417
|
var ZonalAutoshiftStatus = {
|
|
415
418
|
DISABLED: "DISABLED",
|
|
416
419
|
ENABLED: "ENABLED"
|
|
@@ -457,6 +460,7 @@ var se_CreatePracticeRunConfigurationCommand = /* @__PURE__ */ __name(async (inp
|
|
|
457
460
|
let body;
|
|
458
461
|
body = JSON.stringify(
|
|
459
462
|
(0, import_smithy_client.take)(input, {
|
|
463
|
+
allowedWindows: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "allowedWindows"),
|
|
460
464
|
blockedDates: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "blockedDates"),
|
|
461
465
|
blockedWindows: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "blockedWindows"),
|
|
462
466
|
blockingAlarms: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "blockingAlarms"),
|
|
@@ -592,6 +596,7 @@ var se_UpdatePracticeRunConfigurationCommand = /* @__PURE__ */ __name(async (inp
|
|
|
592
596
|
let body;
|
|
593
597
|
body = JSON.stringify(
|
|
594
598
|
(0, import_smithy_client.take)(input, {
|
|
599
|
+
allowedWindows: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "allowedWindows"),
|
|
595
600
|
blockedDates: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "blockedDates"),
|
|
596
601
|
blockedWindows: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "blockedWindows"),
|
|
597
602
|
blockingAlarms: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "blockingAlarms"),
|
|
@@ -1404,11 +1409,11 @@ var paginateListZonalShifts = (0, import_core.createPaginator)(ARCZonalShiftClie
|
|
|
1404
1409
|
ValidationException,
|
|
1405
1410
|
AutoshiftAppliedStatus,
|
|
1406
1411
|
AutoshiftObserverNotificationStatus,
|
|
1412
|
+
ControlConditionType,
|
|
1407
1413
|
ZonalShiftStatus,
|
|
1408
1414
|
ConflictExceptionReason,
|
|
1409
1415
|
ConflictException,
|
|
1410
1416
|
ResourceNotFoundException,
|
|
1411
|
-
ControlConditionType,
|
|
1412
1417
|
ZonalAutoshiftStatus,
|
|
1413
1418
|
PracticeRunOutcome,
|
|
1414
1419
|
ShiftType
|
|
@@ -45,11 +45,13 @@ export class ThrottlingException extends __BaseException {
|
|
|
45
45
|
}
|
|
46
46
|
export const ValidationExceptionReason = {
|
|
47
47
|
AUTOSHIFT_UPDATE_NOT_ALLOWED: "AutoshiftUpdateNotAllowed",
|
|
48
|
+
CONFLICTING_PRACTICE_WINDOWS: "InvalidPracticeWindows",
|
|
48
49
|
FIS_EXPERIMENT_UPDATE_NOT_ALLOWED: "FISExperimentUpdateNotAllowed",
|
|
49
50
|
INVALID_ALARM_CONDITION: "InvalidAlarmCondition",
|
|
50
51
|
INVALID_AZ: "InvalidAz",
|
|
51
52
|
INVALID_CONDITION_TYPE: "InvalidConditionType",
|
|
52
53
|
INVALID_EXPIRES_IN: "InvalidExpiresIn",
|
|
54
|
+
INVALID_PRACTICE_ALLOWED_WINDOW: "InvalidPracticeAllowedWindow",
|
|
53
55
|
INVALID_PRACTICE_BLOCKER: "InvalidPracticeBlocker",
|
|
54
56
|
INVALID_RESOURCE_IDENTIFIER: "InvalidResourceIdentifier",
|
|
55
57
|
INVALID_STATUS: "InvalidStatus",
|
|
@@ -80,6 +82,9 @@ export const AutoshiftObserverNotificationStatus = {
|
|
|
80
82
|
DISABLED: "DISABLED",
|
|
81
83
|
ENABLED: "ENABLED",
|
|
82
84
|
};
|
|
85
|
+
export const ControlConditionType = {
|
|
86
|
+
CLOUDWATCH: "CLOUDWATCH",
|
|
87
|
+
};
|
|
83
88
|
export const ZonalShiftStatus = {
|
|
84
89
|
ACTIVE: "ACTIVE",
|
|
85
90
|
CANCELED: "CANCELED",
|
|
@@ -93,6 +98,7 @@ export const ConflictExceptionReason = {
|
|
|
93
98
|
PRACTICE_IN_BLOCKED_DATES: "PracticeInBlockedDates",
|
|
94
99
|
PRACTICE_IN_BLOCKED_WINDOWS: "PracticeInBlockedWindows",
|
|
95
100
|
PRACTICE_OUTCOME_ALARMS_RED: "PracticeOutcomeAlarmsRed",
|
|
101
|
+
PRACTICE_OUTSIDE_ALLOWED_WINDOWS: "PracticeOutsideAllowedWindows",
|
|
96
102
|
SIMULTANEOUS_ZONAL_SHIFTS_CONFLICT: "SimultaneousZonalShiftsConflict",
|
|
97
103
|
ZONAL_AUTOSHIFT_ACTIVE: "ZonalAutoshiftActive",
|
|
98
104
|
ZONAL_SHIFT_ALREADY_EXISTS: "ZonalShiftAlreadyExists",
|
|
@@ -126,9 +132,6 @@ export class ResourceNotFoundException extends __BaseException {
|
|
|
126
132
|
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
127
133
|
}
|
|
128
134
|
}
|
|
129
|
-
export const ControlConditionType = {
|
|
130
|
-
CLOUDWATCH: "CLOUDWATCH",
|
|
131
|
-
};
|
|
132
135
|
export const ZonalAutoshiftStatus = {
|
|
133
136
|
DISABLED: "DISABLED",
|
|
134
137
|
ENABLED: "ENABLED",
|
|
@@ -29,6 +29,7 @@ export const se_CreatePracticeRunConfigurationCommand = async (input, context) =
|
|
|
29
29
|
b.bp("/configuration");
|
|
30
30
|
let body;
|
|
31
31
|
body = JSON.stringify(take(input, {
|
|
32
|
+
allowedWindows: (_) => _json(_),
|
|
32
33
|
blockedDates: (_) => _json(_),
|
|
33
34
|
blockedWindows: (_) => _json(_),
|
|
34
35
|
blockingAlarms: (_) => _json(_),
|
|
@@ -156,6 +157,7 @@ export const se_UpdatePracticeRunConfigurationCommand = async (input, context) =
|
|
|
156
157
|
b.p("resourceIdentifier", () => input.resourceIdentifier, "{resourceIdentifier}", false);
|
|
157
158
|
let body;
|
|
158
159
|
body = JSON.stringify(take(input, {
|
|
160
|
+
allowedWindows: (_) => _json(_),
|
|
159
161
|
blockedDates: (_) => _json(_),
|
|
160
162
|
blockedWindows: (_) => _json(_),
|
|
161
163
|
blockingAlarms: (_) => _json(_),
|
|
@@ -42,13 +42,16 @@ declare const CreatePracticeRunConfigurationCommand_base: {
|
|
|
42
42
|
* blockedDates: [ // BlockedDates
|
|
43
43
|
* "STRING_VALUE",
|
|
44
44
|
* ],
|
|
45
|
-
* blockingAlarms: [ //
|
|
45
|
+
* blockingAlarms: [ // BlockingAlarms
|
|
46
46
|
* { // ControlCondition
|
|
47
47
|
* type: "CLOUDWATCH", // required
|
|
48
48
|
* alarmIdentifier: "STRING_VALUE", // required
|
|
49
49
|
* },
|
|
50
50
|
* ],
|
|
51
|
-
*
|
|
51
|
+
* allowedWindows: [ // AllowedWindows
|
|
52
|
+
* "STRING_VALUE",
|
|
53
|
+
* ],
|
|
54
|
+
* outcomeAlarms: [ // OutcomeAlarms // required
|
|
52
55
|
* {
|
|
53
56
|
* type: "CLOUDWATCH", // required
|
|
54
57
|
* alarmIdentifier: "STRING_VALUE", // required
|
|
@@ -62,13 +65,13 @@ declare const CreatePracticeRunConfigurationCommand_base: {
|
|
|
62
65
|
* // name: "STRING_VALUE", // required
|
|
63
66
|
* // zonalAutoshiftStatus: "ENABLED" || "DISABLED", // required
|
|
64
67
|
* // practiceRunConfiguration: { // PracticeRunConfiguration
|
|
65
|
-
* // blockingAlarms: [ //
|
|
68
|
+
* // blockingAlarms: [ // BlockingAlarms
|
|
66
69
|
* // { // ControlCondition
|
|
67
70
|
* // type: "CLOUDWATCH", // required
|
|
68
71
|
* // alarmIdentifier: "STRING_VALUE", // required
|
|
69
72
|
* // },
|
|
70
73
|
* // ],
|
|
71
|
-
* // outcomeAlarms: [ // required
|
|
74
|
+
* // outcomeAlarms: [ // OutcomeAlarms // required
|
|
72
75
|
* // {
|
|
73
76
|
* // type: "CLOUDWATCH", // required
|
|
74
77
|
* // alarmIdentifier: "STRING_VALUE", // required
|
|
@@ -77,6 +80,9 @@ declare const CreatePracticeRunConfigurationCommand_base: {
|
|
|
77
80
|
* // blockedWindows: [ // BlockedWindows
|
|
78
81
|
* // "STRING_VALUE",
|
|
79
82
|
* // ],
|
|
83
|
+
* // allowedWindows: [ // AllowedWindows
|
|
84
|
+
* // "STRING_VALUE",
|
|
85
|
+
* // ],
|
|
80
86
|
* // blockedDates: [ // BlockedDates
|
|
81
87
|
* // "STRING_VALUE",
|
|
82
88
|
* // ],
|
|
@@ -66,13 +66,13 @@ declare const GetManagedResourceCommand_base: {
|
|
|
66
66
|
* // },
|
|
67
67
|
* // ],
|
|
68
68
|
* // practiceRunConfiguration: { // PracticeRunConfiguration
|
|
69
|
-
* // blockingAlarms: [ //
|
|
69
|
+
* // blockingAlarms: [ // BlockingAlarms
|
|
70
70
|
* // { // ControlCondition
|
|
71
71
|
* // type: "CLOUDWATCH", // required
|
|
72
72
|
* // alarmIdentifier: "STRING_VALUE", // required
|
|
73
73
|
* // },
|
|
74
74
|
* // ],
|
|
75
|
-
* // outcomeAlarms: [ // required
|
|
75
|
+
* // outcomeAlarms: [ // OutcomeAlarms // required
|
|
76
76
|
* // {
|
|
77
77
|
* // type: "CLOUDWATCH", // required
|
|
78
78
|
* // alarmIdentifier: "STRING_VALUE", // required
|
|
@@ -81,6 +81,9 @@ declare const GetManagedResourceCommand_base: {
|
|
|
81
81
|
* // blockedWindows: [ // BlockedWindows
|
|
82
82
|
* // "STRING_VALUE",
|
|
83
83
|
* // ],
|
|
84
|
+
* // allowedWindows: [ // AllowedWindows
|
|
85
|
+
* // "STRING_VALUE",
|
|
86
|
+
* // ],
|
|
84
87
|
* // blockedDates: [ // BlockedDates
|
|
85
88
|
* // "STRING_VALUE",
|
|
86
89
|
* // ],
|
|
@@ -42,13 +42,16 @@ declare const UpdatePracticeRunConfigurationCommand_base: {
|
|
|
42
42
|
* blockedDates: [ // BlockedDates
|
|
43
43
|
* "STRING_VALUE",
|
|
44
44
|
* ],
|
|
45
|
-
* blockingAlarms: [ //
|
|
45
|
+
* blockingAlarms: [ // BlockingAlarms
|
|
46
46
|
* { // ControlCondition
|
|
47
47
|
* type: "CLOUDWATCH", // required
|
|
48
48
|
* alarmIdentifier: "STRING_VALUE", // required
|
|
49
49
|
* },
|
|
50
50
|
* ],
|
|
51
|
-
*
|
|
51
|
+
* allowedWindows: [ // AllowedWindows
|
|
52
|
+
* "STRING_VALUE",
|
|
53
|
+
* ],
|
|
54
|
+
* outcomeAlarms: [ // OutcomeAlarms
|
|
52
55
|
* {
|
|
53
56
|
* type: "CLOUDWATCH", // required
|
|
54
57
|
* alarmIdentifier: "STRING_VALUE", // required
|
|
@@ -62,13 +65,13 @@ declare const UpdatePracticeRunConfigurationCommand_base: {
|
|
|
62
65
|
* // name: "STRING_VALUE", // required
|
|
63
66
|
* // zonalAutoshiftStatus: "ENABLED" || "DISABLED", // required
|
|
64
67
|
* // practiceRunConfiguration: { // PracticeRunConfiguration
|
|
65
|
-
* // blockingAlarms: [ //
|
|
68
|
+
* // blockingAlarms: [ // BlockingAlarms
|
|
66
69
|
* // { // ControlCondition
|
|
67
70
|
* // type: "CLOUDWATCH", // required
|
|
68
71
|
* // alarmIdentifier: "STRING_VALUE", // required
|
|
69
72
|
* // },
|
|
70
73
|
* // ],
|
|
71
|
-
* // outcomeAlarms: [ // required
|
|
74
|
+
* // outcomeAlarms: [ // OutcomeAlarms // required
|
|
72
75
|
* // {
|
|
73
76
|
* // type: "CLOUDWATCH", // required
|
|
74
77
|
* // alarmIdentifier: "STRING_VALUE", // required
|
|
@@ -77,6 +80,9 @@ declare const UpdatePracticeRunConfigurationCommand_base: {
|
|
|
77
80
|
* // blockedWindows: [ // BlockedWindows
|
|
78
81
|
* // "STRING_VALUE",
|
|
79
82
|
* // ],
|
|
83
|
+
* // allowedWindows: [ // AllowedWindows
|
|
84
|
+
* // "STRING_VALUE",
|
|
85
|
+
* // ],
|
|
80
86
|
* // blockedDates: [ // BlockedDates
|
|
81
87
|
* // "STRING_VALUE",
|
|
82
88
|
* // ],
|
|
@@ -27,7 +27,7 @@ declare const UpdateZonalAutoshiftConfigurationCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>The zonal autoshift configuration for a resource includes the practice run configuration and the status for running autoshifts, zonal autoshift status. When a resource has a practice run
|
|
30
|
+
* <p>The zonal autoshift configuration for a resource includes the practice run configuration and the status for running autoshifts, zonal autoshift status. When a resource has a practice run configuration, ARC starts weekly zonal shifts for the resource, to shift traffic away from an Availability Zone. Weekly practice runs help you to make sure that your application can continue to operate normally with the loss of one Availability Zone.</p> <p>You can update the zonal autoshift status to enable or disable zonal autoshift. When zonal autoshift is <code>ENABLED</code>, you authorize Amazon Web Services to shift away resource traffic for an application from an Availability Zone during events, on your behalf, to help reduce time to recovery. Traffic is also shifted away for the required weekly practice runs.</p>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -127,11 +127,13 @@ export declare class ThrottlingException extends __BaseException {
|
|
|
127
127
|
*/
|
|
128
128
|
export declare const ValidationExceptionReason: {
|
|
129
129
|
readonly AUTOSHIFT_UPDATE_NOT_ALLOWED: "AutoshiftUpdateNotAllowed";
|
|
130
|
+
readonly CONFLICTING_PRACTICE_WINDOWS: "InvalidPracticeWindows";
|
|
130
131
|
readonly FIS_EXPERIMENT_UPDATE_NOT_ALLOWED: "FISExperimentUpdateNotAllowed";
|
|
131
132
|
readonly INVALID_ALARM_CONDITION: "InvalidAlarmCondition";
|
|
132
133
|
readonly INVALID_AZ: "InvalidAz";
|
|
133
134
|
readonly INVALID_CONDITION_TYPE: "InvalidConditionType";
|
|
134
135
|
readonly INVALID_EXPIRES_IN: "InvalidExpiresIn";
|
|
136
|
+
readonly INVALID_PRACTICE_ALLOWED_WINDOW: "InvalidPracticeAllowedWindow";
|
|
135
137
|
readonly INVALID_PRACTICE_BLOCKER: "InvalidPracticeBlocker";
|
|
136
138
|
readonly INVALID_RESOURCE_IDENTIFIER: "InvalidResourceIdentifier";
|
|
137
139
|
readonly INVALID_STATUS: "InvalidStatus";
|
|
@@ -241,6 +243,33 @@ export interface UpdateAutoshiftObserverNotificationStatusResponse {
|
|
|
241
243
|
*/
|
|
242
244
|
status: AutoshiftObserverNotificationStatus | undefined;
|
|
243
245
|
}
|
|
246
|
+
/**
|
|
247
|
+
* @public
|
|
248
|
+
* @enum
|
|
249
|
+
*/
|
|
250
|
+
export declare const ControlConditionType: {
|
|
251
|
+
readonly CLOUDWATCH: "CLOUDWATCH";
|
|
252
|
+
};
|
|
253
|
+
/**
|
|
254
|
+
* @public
|
|
255
|
+
*/
|
|
256
|
+
export type ControlConditionType = (typeof ControlConditionType)[keyof typeof ControlConditionType];
|
|
257
|
+
/**
|
|
258
|
+
* <p>A control condition is an alarm that you specify for a practice run. When you configure practice runs with zonal autoshift for a resource, you specify Amazon CloudWatch alarms, which you create in CloudWatch to use with the practice run. The alarms that you specify are an <i>outcome alarm</i>, to monitor application health during practice runs and, optionally, a <i>blocking alarm</i>, to block practice runs from starting or to interrupt a practice run in progress.</p> <p>Control condition alarms do not apply for autoshifts.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/arc-zonal-autoshift.considerations.html"> Considerations when you configure zonal autoshift</a> in the Amazon Application Recovery Controller Developer Guide.</p>
|
|
259
|
+
* @public
|
|
260
|
+
*/
|
|
261
|
+
export interface ControlCondition {
|
|
262
|
+
/**
|
|
263
|
+
* <p>The type of alarm specified for a practice run. You can only specify Amazon CloudWatch alarms for practice runs, so the only valid value is <code>CLOUDWATCH</code>.</p>
|
|
264
|
+
* @public
|
|
265
|
+
*/
|
|
266
|
+
type: ControlConditionType | undefined;
|
|
267
|
+
/**
|
|
268
|
+
* <p>The Amazon Resource Name (ARN) for an Amazon CloudWatch alarm that you specify as a control condition for a practice run.</p>
|
|
269
|
+
* @public
|
|
270
|
+
*/
|
|
271
|
+
alarmIdentifier: string | undefined;
|
|
272
|
+
}
|
|
244
273
|
/**
|
|
245
274
|
* @public
|
|
246
275
|
*/
|
|
@@ -316,6 +345,7 @@ export declare const ConflictExceptionReason: {
|
|
|
316
345
|
readonly PRACTICE_IN_BLOCKED_DATES: "PracticeInBlockedDates";
|
|
317
346
|
readonly PRACTICE_IN_BLOCKED_WINDOWS: "PracticeInBlockedWindows";
|
|
318
347
|
readonly PRACTICE_OUTCOME_ALARMS_RED: "PracticeOutcomeAlarmsRed";
|
|
348
|
+
readonly PRACTICE_OUTSIDE_ALLOWED_WINDOWS: "PracticeOutsideAllowedWindows";
|
|
319
349
|
readonly SIMULTANEOUS_ZONAL_SHIFTS_CONFLICT: "SimultaneousZonalShiftsConflict";
|
|
320
350
|
readonly ZONAL_AUTOSHIFT_ACTIVE: "ZonalAutoshiftActive";
|
|
321
351
|
readonly ZONAL_SHIFT_ALREADY_EXISTS: "ZonalShiftAlreadyExists";
|
|
@@ -409,33 +439,6 @@ export interface ZonalShift {
|
|
|
409
439
|
*/
|
|
410
440
|
comment: string | undefined;
|
|
411
441
|
}
|
|
412
|
-
/**
|
|
413
|
-
* @public
|
|
414
|
-
* @enum
|
|
415
|
-
*/
|
|
416
|
-
export declare const ControlConditionType: {
|
|
417
|
-
readonly CLOUDWATCH: "CLOUDWATCH";
|
|
418
|
-
};
|
|
419
|
-
/**
|
|
420
|
-
* @public
|
|
421
|
-
*/
|
|
422
|
-
export type ControlConditionType = (typeof ControlConditionType)[keyof typeof ControlConditionType];
|
|
423
|
-
/**
|
|
424
|
-
* <p>A control condition is an alarm that you specify for a practice run. When you configure practice runs with zonal autoshift for a resource, you specify Amazon CloudWatch alarms, which you create in CloudWatch to use with the practice run. The alarms that you specify are an <i>outcome alarm</i>, to monitor application health during practice runs and, optionally, a <i>blocking alarm</i>, to block practice runs from starting or to interrupt a practice run in progress.</p> <p>Control condition alarms do not apply for autoshifts.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/arc-zonal-autoshift.considerations.html"> Considerations when you configure zonal autoshift</a> in the Amazon Application Recovery Controller Developer Guide.</p>
|
|
425
|
-
* @public
|
|
426
|
-
*/
|
|
427
|
-
export interface ControlCondition {
|
|
428
|
-
/**
|
|
429
|
-
* <p>The type of alarm specified for a practice run. You can only specify Amazon CloudWatch alarms for practice runs, so the only valid value is <code>CLOUDWATCH</code>.</p>
|
|
430
|
-
* @public
|
|
431
|
-
*/
|
|
432
|
-
type: ControlConditionType | undefined;
|
|
433
|
-
/**
|
|
434
|
-
* <p>The Amazon Resource Name (ARN) for an Amazon CloudWatch alarm that you specify as a control condition for a practice run.</p>
|
|
435
|
-
* @public
|
|
436
|
-
*/
|
|
437
|
-
alarmIdentifier: string | undefined;
|
|
438
|
-
}
|
|
439
442
|
/**
|
|
440
443
|
* @public
|
|
441
444
|
*/
|
|
@@ -446,7 +449,7 @@ export interface CreatePracticeRunConfigurationRequest {
|
|
|
446
449
|
*/
|
|
447
450
|
resourceIdentifier: string | undefined;
|
|
448
451
|
/**
|
|
449
|
-
* <p>Optionally, you can block ARC from starting practice runs for specific windows of days and times. </p> <p>The format for blocked windows is: DAY:HH:SS-DAY:HH:SS. Keep in mind, when you specify dates, that dates and times for practice runs are in UTC. Also, be aware of potential time adjustments that might be required for daylight saving time differences. Separate multiple blocked windows with spaces.</p> <p>For example, say you run business report summaries three days a week. For this scenario, you
|
|
452
|
+
* <p>Optionally, you can block ARC from starting practice runs for specific windows of days and times. </p> <p>The format for blocked windows is: DAY:HH:SS-DAY:HH:SS. Keep in mind, when you specify dates, that dates and times for practice runs are in UTC. Also, be aware of potential time adjustments that might be required for daylight saving time differences. Separate multiple blocked windows with spaces.</p> <p>For example, say you run business report summaries three days a week. For this scenario, you could set the following recurring days and times as blocked windows, for example: <code>Mon:00:00-Mon:10:00 Wed-20:30-Wed:21:30 Fri-20:30-Fri:21:30</code>.</p> <important> <p>The <code>blockedWindows</code> have to start and end on the same day. Windows that span multiple days aren't supported.</p> </important>
|
|
450
453
|
* @public
|
|
451
454
|
*/
|
|
452
455
|
blockedWindows?: string[] | undefined;
|
|
@@ -456,12 +459,17 @@ export interface CreatePracticeRunConfigurationRequest {
|
|
|
456
459
|
*/
|
|
457
460
|
blockedDates?: string[] | undefined;
|
|
458
461
|
/**
|
|
459
|
-
* <p>
|
|
462
|
+
* <p> <i>Blocking alarms</i> for practice runs are optional alarms that you can specify that block practice runs when one or more of the alarms is in an <code>ALARM</code> state.</p>
|
|
460
463
|
* @public
|
|
461
464
|
*/
|
|
462
465
|
blockingAlarms?: ControlCondition[] | undefined;
|
|
463
466
|
/**
|
|
464
|
-
* <p>
|
|
467
|
+
* <p>Optionally, you can allow ARC to start practice runs for specific windows of days and times. </p> <p>The format for allowed windows is: DAY:HH:SS-DAY:HH:SS. Keep in mind, when you specify dates, that dates and times for practice runs are in UTC. Also, be aware of potential time adjustments that might be required for daylight saving time differences. Separate multiple allowed windows with spaces.</p> <p>For example, say you want to allow practice runs only on Wednesdays and Fridays from noon to 5 p.m. For this scenario, you could set the following recurring days and times as allowed windows, for example: <code>Wed-12:00-Wed:17:00 Fri-12:00-Fri:17:00</code>.</p> <important> <p>The <code>allowedWindows</code> have to start and end on the same day. Windows that span multiple days aren't supported.</p> </important>
|
|
468
|
+
* @public
|
|
469
|
+
*/
|
|
470
|
+
allowedWindows?: string[] | undefined;
|
|
471
|
+
/**
|
|
472
|
+
* <p> <i>Outcome alarms</i> for practice runs are alarms that you specify that end a practice run when one or more of the alarms is in an <code>ALARM</code> state.</p> <p>Configure one or more of these alarms to monitor the health of your application when traffic is shifted away from an Availability Zone during each practice run. You should configure these alarms to go into an <code>ALARM</code> state if you want to stop a zonal shift, to let traffic for the resource return to the original Availability Zone.</p>
|
|
465
473
|
* @public
|
|
466
474
|
*/
|
|
467
475
|
outcomeAlarms: ControlCondition[] | undefined;
|
|
@@ -472,20 +480,25 @@ export interface CreatePracticeRunConfigurationRequest {
|
|
|
472
480
|
*/
|
|
473
481
|
export interface PracticeRunConfiguration {
|
|
474
482
|
/**
|
|
475
|
-
* <p>
|
|
483
|
+
* <p> <i>Blocking alarms</i> for practice runs are optional alarms that you can specify that block practice runs when one or more of the alarms is in an <code>ALARM</code> state.</p>
|
|
476
484
|
* @public
|
|
477
485
|
*/
|
|
478
486
|
blockingAlarms?: ControlCondition[] | undefined;
|
|
479
487
|
/**
|
|
480
|
-
* <p>
|
|
488
|
+
* <p> <i>Outcome alarms</i> for practice runs are alarms that you specify that end a practice run when one or more of the alarms is in an <code>ALARM</code> state.</p>
|
|
481
489
|
* @public
|
|
482
490
|
*/
|
|
483
491
|
outcomeAlarms: ControlCondition[] | undefined;
|
|
484
492
|
/**
|
|
485
|
-
* <p>An array of one or more windows of days and times that you can block ARC from starting practice runs for a resource.</p> <p>Specify the blocked windows in UTC, using the format <code>DAY:HH:MM-DAY:HH:MM</code>, separated by spaces. For example, <code>MON:18:30-MON:19:30 TUE:18:30-TUE:19:30</code>.</p>
|
|
493
|
+
* <p>An array of one or more windows of days and times that you can block ARC from starting practice runs for a resource.</p> <p>Specify the blocked windows in UTC, using the format <code>DAY:HH:MM-DAY:HH:MM</code>, separated by spaces. For example, <code>MON:18:30-MON:19:30 TUE:18:30-TUE:19:30</code>.</p> <p>The <code>blockedWindows</code> have to start and end on the same day. Windows that span multiple days aren't supported.</p>
|
|
486
494
|
* @public
|
|
487
495
|
*/
|
|
488
496
|
blockedWindows?: string[] | undefined;
|
|
497
|
+
/**
|
|
498
|
+
* <p>An array of one or more windows of days and times that you can allow ARC to start practice runs for a resource.</p> <p>For example, say you want to allow practice runs only on Wednesdays and Fridays from noon to 5 p.m. For this scenario, you could set the following recurring days and times as allowed windows, for example: <code>Wed-12:00-Wed:17:00 Fri-12:00-Fri:17:00</code>.</p> <p>The <code>allowedWindows</code> have to start and end on the same day. Windows that span multiple days aren't supported.</p>
|
|
499
|
+
* @public
|
|
500
|
+
*/
|
|
501
|
+
allowedWindows?: string[] | undefined;
|
|
489
502
|
/**
|
|
490
503
|
* <p>An array of one or more dates that you can specify when Amazon Web Services does not start practice runs for a resource.</p> <p>Specify blocked dates, in UTC, in the format <code>YYYY-MM-DD</code>, separated by spaces. </p>
|
|
491
504
|
* @public
|
|
@@ -906,12 +919,17 @@ export interface UpdatePracticeRunConfigurationRequest {
|
|
|
906
919
|
*/
|
|
907
920
|
blockedDates?: string[] | undefined;
|
|
908
921
|
/**
|
|
909
|
-
* <p>Add, change, or remove the Amazon CloudWatch
|
|
922
|
+
* <p>Add, change, or remove the Amazon CloudWatch alarms that you optionally specify as the blocking alarms for practice runs.</p>
|
|
910
923
|
* @public
|
|
911
924
|
*/
|
|
912
925
|
blockingAlarms?: ControlCondition[] | undefined;
|
|
913
926
|
/**
|
|
914
|
-
* <p>
|
|
927
|
+
* <p>Add, change, or remove windows of days and times for when you can, optionally, allow ARC to start a practice run for a resource.</p> <p>The format for allowed windows is: DAY:HH:SS-DAY:HH:SS. Keep in mind, when you specify dates, that dates and times for practice runs are in UTC. Also, be aware of potential time adjustments that might be required for daylight saving time differences. Separate multiple allowed windows with spaces.</p> <p>For example, say you want to allow practice runs only on Wednesdays and Fridays from noon to 5 p.m. For this scenario, you could set the following recurring days and times as allowed windows, for example: <code>Wed-12:00-Wed:17:00 Fri-12:00-Fri:17:00</code>.</p> <important> <p>The <code>allowedWindows</code> have to start and end on the same day. Windows that span multiple days aren't supported.</p> </important>
|
|
928
|
+
* @public
|
|
929
|
+
*/
|
|
930
|
+
allowedWindows?: string[] | undefined;
|
|
931
|
+
/**
|
|
932
|
+
* <p>Specify one or more Amazon CloudWatch alarms as the outcome alarms for practice runs.</p>
|
|
915
933
|
* @public
|
|
916
934
|
*/
|
|
917
935
|
outcomeAlarms?: ControlCondition[] | undefined;
|
|
@@ -49,11 +49,13 @@ export declare class ThrottlingException extends __BaseException {
|
|
|
49
49
|
}
|
|
50
50
|
export declare const ValidationExceptionReason: {
|
|
51
51
|
readonly AUTOSHIFT_UPDATE_NOT_ALLOWED: "AutoshiftUpdateNotAllowed";
|
|
52
|
+
readonly CONFLICTING_PRACTICE_WINDOWS: "InvalidPracticeWindows";
|
|
52
53
|
readonly FIS_EXPERIMENT_UPDATE_NOT_ALLOWED: "FISExperimentUpdateNotAllowed";
|
|
53
54
|
readonly INVALID_ALARM_CONDITION: "InvalidAlarmCondition";
|
|
54
55
|
readonly INVALID_AZ: "InvalidAz";
|
|
55
56
|
readonly INVALID_CONDITION_TYPE: "InvalidConditionType";
|
|
56
57
|
readonly INVALID_EXPIRES_IN: "InvalidExpiresIn";
|
|
58
|
+
readonly INVALID_PRACTICE_ALLOWED_WINDOW: "InvalidPracticeAllowedWindow";
|
|
57
59
|
readonly INVALID_PRACTICE_BLOCKER: "InvalidPracticeBlocker";
|
|
58
60
|
readonly INVALID_RESOURCE_IDENTIFIER: "InvalidResourceIdentifier";
|
|
59
61
|
readonly INVALID_STATUS: "InvalidStatus";
|
|
@@ -99,6 +101,15 @@ export interface UpdateAutoshiftObserverNotificationStatusRequest {
|
|
|
99
101
|
export interface UpdateAutoshiftObserverNotificationStatusResponse {
|
|
100
102
|
status: AutoshiftObserverNotificationStatus | undefined;
|
|
101
103
|
}
|
|
104
|
+
export declare const ControlConditionType: {
|
|
105
|
+
readonly CLOUDWATCH: "CLOUDWATCH";
|
|
106
|
+
};
|
|
107
|
+
export type ControlConditionType =
|
|
108
|
+
(typeof ControlConditionType)[keyof typeof ControlConditionType];
|
|
109
|
+
export interface ControlCondition {
|
|
110
|
+
type: ControlConditionType | undefined;
|
|
111
|
+
alarmIdentifier: string | undefined;
|
|
112
|
+
}
|
|
102
113
|
export interface CancelPracticeRunRequest {
|
|
103
114
|
zonalShiftId: string | undefined;
|
|
104
115
|
}
|
|
@@ -126,6 +137,7 @@ export declare const ConflictExceptionReason: {
|
|
|
126
137
|
readonly PRACTICE_IN_BLOCKED_DATES: "PracticeInBlockedDates";
|
|
127
138
|
readonly PRACTICE_IN_BLOCKED_WINDOWS: "PracticeInBlockedWindows";
|
|
128
139
|
readonly PRACTICE_OUTCOME_ALARMS_RED: "PracticeOutcomeAlarmsRed";
|
|
140
|
+
readonly PRACTICE_OUTSIDE_ALLOWED_WINDOWS: "PracticeOutsideAllowedWindows";
|
|
129
141
|
readonly SIMULTANEOUS_ZONAL_SHIFTS_CONFLICT: "SimultaneousZonalShiftsConflict";
|
|
130
142
|
readonly ZONAL_AUTOSHIFT_ACTIVE: "ZonalAutoshiftActive";
|
|
131
143
|
readonly ZONAL_SHIFT_ALREADY_EXISTS: "ZonalShiftAlreadyExists";
|
|
@@ -159,26 +171,19 @@ export interface ZonalShift {
|
|
|
159
171
|
status: ZonalShiftStatus | undefined;
|
|
160
172
|
comment: string | undefined;
|
|
161
173
|
}
|
|
162
|
-
export declare const ControlConditionType: {
|
|
163
|
-
readonly CLOUDWATCH: "CLOUDWATCH";
|
|
164
|
-
};
|
|
165
|
-
export type ControlConditionType =
|
|
166
|
-
(typeof ControlConditionType)[keyof typeof ControlConditionType];
|
|
167
|
-
export interface ControlCondition {
|
|
168
|
-
type: ControlConditionType | undefined;
|
|
169
|
-
alarmIdentifier: string | undefined;
|
|
170
|
-
}
|
|
171
174
|
export interface CreatePracticeRunConfigurationRequest {
|
|
172
175
|
resourceIdentifier: string | undefined;
|
|
173
176
|
blockedWindows?: string[] | undefined;
|
|
174
177
|
blockedDates?: string[] | undefined;
|
|
175
178
|
blockingAlarms?: ControlCondition[] | undefined;
|
|
179
|
+
allowedWindows?: string[] | undefined;
|
|
176
180
|
outcomeAlarms: ControlCondition[] | undefined;
|
|
177
181
|
}
|
|
178
182
|
export interface PracticeRunConfiguration {
|
|
179
183
|
blockingAlarms?: ControlCondition[] | undefined;
|
|
180
184
|
outcomeAlarms: ControlCondition[] | undefined;
|
|
181
185
|
blockedWindows?: string[] | undefined;
|
|
186
|
+
allowedWindows?: string[] | undefined;
|
|
182
187
|
blockedDates?: string[] | undefined;
|
|
183
188
|
}
|
|
184
189
|
export declare const ZonalAutoshiftStatus: {
|
|
@@ -292,6 +297,7 @@ export interface UpdatePracticeRunConfigurationRequest {
|
|
|
292
297
|
blockedWindows?: string[] | undefined;
|
|
293
298
|
blockedDates?: string[] | undefined;
|
|
294
299
|
blockingAlarms?: ControlCondition[] | undefined;
|
|
300
|
+
allowedWindows?: string[] | undefined;
|
|
295
301
|
outcomeAlarms?: ControlCondition[] | undefined;
|
|
296
302
|
}
|
|
297
303
|
export interface UpdatePracticeRunConfigurationResponse {
|
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.
|
|
4
|
+
"version": "3.876.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-arc-zonal-shift",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.876.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.876.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.873.0",
|
|
26
|
-
"@aws-sdk/middleware-logger": "3.
|
|
26
|
+
"@aws-sdk/middleware-logger": "3.876.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.873.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.876.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.873.0",
|
|
30
30
|
"@aws-sdk/types": "3.862.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.873.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.873.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.876.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.1.5",
|
|
35
35
|
"@smithy/core": "^3.8.0",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.1.1",
|