You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/Soto/Services/ARCRegionSwitch/ARCRegionSwitch_api.swift
+111-5Lines changed: 111 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ import Foundation
24
24
25
25
/// Service object for interacting with AWS ARCRegionSwitch service.
26
26
///
27
-
/// Amazon Application Recovery Controller (ARC) Region switch helps you to quickly and reliably shift traffic away from an impaired Amazon Web Services Region to a healthy Region. With Region switch, you can create plans that define the steps to shift traffic for your application from one Amazon Web Services Region to another. You can test your plans in practice mode before using them in a real recovery scenario. Region switch provides a structured approach to multi-Region failover, helping you to meet your recovery time objectives (RTOs) and maintain business continuity during regional disruptions. For more information, see Region switch in ARC in the Amazon Application Recovery Controller User Guide.
27
+
/// Amazon Application Recovery Controller (ARC) Region switch helps you to quickly and reliably shift traffic away from an impaired Amazon Web Services Region to a healthy Region. With Region switch, you can create plans that define the steps to shift traffic for your application from one Amazon Web Services Region to another. Region switch provides a structured approach to multi-Region failover, helping you to meet your recovery time objectives (RTOs) and maintain business continuity during regional disruptions. For more information, see Region switch in ARC in the Amazon Application Recovery Controller User Guide.
28
28
publicstructARCRegionSwitch:AWSService{
29
29
// MARK: Member variables
30
30
@@ -179,6 +179,7 @@ public struct ARCRegionSwitch: AWSService {
179
179
/// - recoveryApproach: The recovery approach for a Region switch plan, which can be active/active (activeActive) or active/passive (activePassive).
180
180
/// - recoveryTimeObjectiveMinutes: Optionally, you can specify an recovery time objective for a Region switch plan, in minutes.
181
181
/// - regions: An array that specifies the Amazon Web Services Regions for a Region switch plan. Specify two Regions.
182
+
/// - reportConfiguration:
182
183
/// - tags: The tags to apply to the Region switch plan.
183
184
/// - triggers: The triggers associated with a Region switch plan.
184
185
/// - workflows: An array of workflows included in a Region switch plan.
@@ -193,6 +194,7 @@ public struct ARCRegionSwitch: AWSService {
193
194
recoveryApproach:RecoveryApproach,
194
195
recoveryTimeObjectiveMinutes:Int?=nil,
195
196
regions:[String],
197
+
reportConfiguration:ReportConfiguration?=nil,
196
198
tags:[String:String]?=nil,
197
199
triggers:[Trigger]?=nil,
198
200
workflows:[Workflow],
@@ -207,6 +209,7 @@ public struct ARCRegionSwitch: AWSService {
/// List the Amazon Route 53 health checks in a specific Amazon Web Services Region.
578
+
///
579
+
/// Parameters:
580
+
/// - arn: The Amazon Resource Name (ARN) of the Arc Region Switch Plan.
581
+
/// - hostedZoneId: The hosted zone ID for the health checks.
582
+
/// - maxResults: The number of objects that you want to return with this call.
583
+
/// - nextToken: Specifies that you want to receive the next page of results. Valid only if you received a nextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's nextToken response to request the next page of results.
584
+
/// - recordName: The record name for the health checks.
/// Starts the execution of a Region switch plan. You can execute a plan in either PRACTICE or RECOVERY mode. In PRACTICE mode, the execution simulates the steps without making actual changes to your application's traffic routing. In RECOVERY mode, the execution performs actual changes to shift traffic between Regions.
634
+
/// Starts the execution of a Region switch plan. You can execute a plan in either graceful or ungraceful mode. Specifing ungraceful mode either changes the behavior of the execution blocks in a workflow or skips specific execution blocks.
@@ -600,14 +644,15 @@ public struct ARCRegionSwitch: AWSService {
600
644
logger: logger
601
645
)
602
646
}
603
-
/// Starts the execution of a Region switch plan. You can execute a plan in either PRACTICE or RECOVERY mode. In PRACTICE mode, the execution simulates the steps without making actual changes to your application's traffic routing. In RECOVERY mode, the execution performs actual changes to shift traffic between Regions.
647
+
/// Starts the execution of a Region switch plan. You can execute a plan in either graceful or ungraceful mode. Specifing ungraceful mode either changes the behavior of the execution blocks in a workflow or skips specific execution blocks.
604
648
///
605
649
/// Parameters:
606
-
/// - action: The action to perform. Valid values are ACTIVATE (to shift traffic to the target Region) or DEACTIVATE (to shift traffic away from the target Region).
650
+
/// - action: The action to perform. Valid values are activate (to shift traffic to the target Region) or deactivate (to shift traffic away from the target Region).
607
651
/// - comment: An optional comment explaining why the plan execution is being started.
608
652
/// - latestVersion: A boolean value indicating whether to use the latest version of the plan. If set to false, you must specify a specific version.
609
-
/// - mode: The plan execution mode. Valid values are Practice, for testing without making actual changes, or Recovery, for actual traffic shifting and application recovery.
653
+
/// - mode: The plan execution mode. Valid values are graceful, for starting the execution in graceful mode, or ungraceful, for starting the execution in ungraceful mode.
610
654
/// - planArn: The Amazon Resource Name (ARN) of the plan to execute.
655
+
/// - recoveryExecutionId: The execution identifier of the recovery execution that ran in the opposite region post-recovery is ran in. Required when starting a post-recovery execution.
611
656
/// - targetRegion: The Amazon Web Services Region to target with this execution. This is the Region that traffic will be shifted to or from, depending on the action.
612
657
/// - logger: Logger use during operation
613
658
@inlinable
@@ -617,6 +662,7 @@ public struct ARCRegionSwitch: AWSService {
617
662
latestVersion:String?=nil,
618
663
mode:ExecutionMode?=nil,
619
664
planArn:String,
665
+
recoveryExecutionId:String?=nil,
620
666
targetRegion:String,
621
667
logger:Logger=AWSClient.loggingDisabled
622
668
)asyncthrows->StartPlanExecutionResponse{
@@ -626,6 +672,7 @@ public struct ARCRegionSwitch: AWSService {
0 commit comments