1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateZonalShift`](crate::operation::update_zonal_shift::builders::UpdateZonalShiftFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`zonal_shift_id(impl Into<String>)`](crate::operation::update_zonal_shift::builders::UpdateZonalShiftFluentBuilder::zonal_shift_id) / [`set_zonal_shift_id(Option<String>)`](crate::operation::update_zonal_shift::builders::UpdateZonalShiftFluentBuilder::set_zonal_shift_id):<br>required: **true**<br><p>The identifier of a zonal shift.</p><br>
    ///   - [`comment(impl Into<String>)`](crate::operation::update_zonal_shift::builders::UpdateZonalShiftFluentBuilder::comment) / [`set_comment(Option<String>)`](crate::operation::update_zonal_shift::builders::UpdateZonalShiftFluentBuilder::set_comment):<br>required: **false**<br><p>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.</p><br>
    ///   - [`expires_in(impl Into<String>)`](crate::operation::update_zonal_shift::builders::UpdateZonalShiftFluentBuilder::expires_in) / [`set_expires_in(Option<String>)`](crate::operation::update_zonal_shift::builders::UpdateZonalShiftFluentBuilder::set_expires_in):<br>required: **false**<br><p>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).</p> <p>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.</p> <p>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:</p> <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><br>
    /// - On success, responds with [`UpdateZonalShiftOutput`](crate::operation::update_zonal_shift::UpdateZonalShiftOutput) with field(s):
    ///   - [`zonal_shift_id(String)`](crate::operation::update_zonal_shift::UpdateZonalShiftOutput::zonal_shift_id): <p>The identifier of a zonal shift.</p>
    ///   - [`resource_identifier(String)`](crate::operation::update_zonal_shift::UpdateZonalShiftOutput::resource_identifier): <p>The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.</p> <p>At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.</p>
    ///   - [`away_from(String)`](crate::operation::update_zonal_shift::UpdateZonalShiftOutput::away_from): <p>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 Amazon Web Services Region.</p>
    ///   - [`expiry_time(DateTime)`](crate::operation::update_zonal_shift::UpdateZonalShiftOutput::expiry_time): <p>The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.</p> <p>When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.</p>
    ///   - [`start_time(DateTime)`](crate::operation::update_zonal_shift::UpdateZonalShiftOutput::start_time): <p>The time (UTC) when the zonal shift starts.</p>
    ///   - [`status(ZonalShiftStatus)`](crate::operation::update_zonal_shift::UpdateZonalShiftOutput::status): <p>A status for a zonal shift.</p> <p>The <code>Status</code> for a zonal shift can have one of the following values:</p> <ul>  <li>   <p><b>ACTIVE:</b> The zonal shift has been started and active.</p></li>  <li>   <p><b>EXPIRED:</b> The zonal shift has expired (the expiry time was exceeded).</p></li>  <li>   <p><b>CANCELED:</b> The zonal shift was canceled.</p></li> </ul>
    ///   - [`comment(String)`](crate::operation::update_zonal_shift::UpdateZonalShiftOutput::comment): <p>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.</p>
    /// - On failure, responds with [`SdkError<UpdateZonalShiftError>`](crate::operation::update_zonal_shift::UpdateZonalShiftError)
    pub fn update_zonal_shift(&self) -> crate::operation::update_zonal_shift::builders::UpdateZonalShiftFluentBuilder {
        crate::operation::update_zonal_shift::builders::UpdateZonalShiftFluentBuilder::new(self.handle.clone())
    }
}