/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the arc-zonal-shift-2022-10-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.ARCZonalShift.Model { /// /// Container for the parameters to the StartZonalShift operation. /// You start a zonal shift to temporarily move load balancer traffic away from an Availability /// Zone in a AWS Region, to help your application recover immediately, for example, from /// a developer's bad code deployment or from an AWS infrastructure failure in a single /// Availability Zone. You can start a zonal shift in Route 53 ARC only for managed resources /// in your account in an AWS Region. Resources are automatically registered with Route /// 53 ARC by AWS services. /// /// /// /// 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. /// /// /// /// When you start a zonal shift, traffic for the resource is no longer routed to the /// Availability Zone. The zonal shift is created immediately in Route 53 ARC. However, /// it can take a short time, typically up to a few minutes, for existing, in-progress /// connections in the Availability Zone to complete. /// /// /// /// For more information, see Zonal /// shift in the Amazon Route 53 Application Recovery Controller Developer Guide. /// /// public partial class StartZonalShiftRequest : AmazonARCZonalShiftRequest { private string _awayFrom; private string _comment; private string _expiresIn; private string _resourceIdentifier; /// /// Gets and sets the property AwayFrom. /// /// The Availability Zone that traffic is moved away from for a resource when you start /// a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource /// is instead moved to other Availability Zones in the AWS Region. /// /// [AWSProperty(Required=true, Min=0, Max=20)] public string AwayFrom { get { return this._awayFrom; } set { this._awayFrom = value; } } // Check to see if AwayFrom property is set internal bool IsSetAwayFrom() { return this._awayFrom != null; } /// /// Gets and sets the property Comment. /// /// A comment that you enter about the zonal shift. Only the latest comment is retained; /// no comment history is maintained. A new comment overwrites any existing comment string. /// /// [AWSProperty(Required=true, Min=0, Max=128)] public string Comment { get { return this._comment; } set { this._comment = value; } } // Check to see if Comment property is set internal bool IsSetComment() { return this._comment != null; } /// /// Gets and sets the property ExpiresIn. /// /// The length of time that you want a zonal shift to be active, which Route 53 ARC converts /// to an expiry time (expiration time). Zonal shifts are temporary. You can set a zonal /// shift to be active initially for up to three days (72 hours). /// /// /// /// If you want to still keep traffic away from an Availability Zone, you can update the /// zonal shift and set a new expiration. You can also cancel a zonal shift, before it /// expires, for example, if you're ready to restore traffic to the Availability Zone. /// /// /// /// To set a length of time for a zonal shift to be active, specify a whole number, and /// then one of the following, with no space: /// ///
 <ul> <li> <p> <b>A lowercase letter m:</b>
        /// To specify that the value is in minutes.</p> </li> <li> <p>
        /// <b>A lowercase letter h:</b> To specify that the value is in hours.</p>
        /// </li> </ul> <p>For example: <code>20h</code> means the
        /// zonal shift expires in 20 hours. <code>120m</code> means the zonal shift
        /// expires in 120 minutes (2 hours).</p> 
///
[AWSProperty(Required=true, Min=2, Max=5)] public string ExpiresIn { get { return this._expiresIn; } set { this._expiresIn = value; } } // Check to see if ExpiresIn property is set internal bool IsSetExpiresIn() { return this._expiresIn != null; } /// /// Gets and sets the property ResourceIdentifier. /// /// The identifier for the resource to include in a zonal shift. The identifier is the /// Amazon Resource Name (ARN) for the resource. /// /// /// /// 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. /// /// [AWSProperty(Required=true, Min=8, Max=1024)] public string ResourceIdentifier { get { return this._resourceIdentifier; } set { this._resourceIdentifier = value; } } // Check to see if ResourceIdentifier property is set internal bool IsSetResourceIdentifier() { return this._resourceIdentifier != null; } } }