aws_sdk_arczonalshift/client/
cancel_practice_run.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`CancelPracticeRun`](crate::operation::cancel_practice_run::builders::CancelPracticeRunFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`zonal_shift_id(impl Into<String>)`](crate::operation::cancel_practice_run::builders::CancelPracticeRunFluentBuilder::zonal_shift_id) / [`set_zonal_shift_id(Option<String>)`](crate::operation::cancel_practice_run::builders::CancelPracticeRunFluentBuilder::set_zonal_shift_id):<br>required: **true**<br><p>The identifier of a practice run zonal shift in Amazon Application Recovery Controller that you want to cancel.</p><br>
7    /// - On success, responds with [`CancelPracticeRunOutput`](crate::operation::cancel_practice_run::CancelPracticeRunOutput) with field(s):
8    ///   - [`zonal_shift_id(String)`](crate::operation::cancel_practice_run::CancelPracticeRunOutput::zonal_shift_id): <p>The identifier of the practice run zonal shift in Amazon Application Recovery Controller that was canceled.</p>
9    ///   - [`resource_identifier(String)`](crate::operation::cancel_practice_run::CancelPracticeRunOutput::resource_identifier): <p>The identifier for the resource that you canceled a practice run zonal shift for. The identifier is the Amazon Resource Name (ARN) for the resource.</p>
10    ///   - [`away_from(String)`](crate::operation::cancel_practice_run::CancelPracticeRunOutput::away_from): <p>The Availability Zone (for example, <code>use1-az1</code>) that traffic was moved away from for a resource that you specified for the practice run.</p>
11    ///   - [`expiry_time(DateTime)`](crate::operation::cancel_practice_run::CancelPracticeRunOutput::expiry_time): <p>The expiry time (expiration time) for an on-demand practice run zonal shift is 30 minutes from the time when you start the practice run, unless you cancel it before that time. However, be aware that the <code>expiryTime</code> field for practice run zonal shifts always has a value of 1 minute.</p>
12    ///   - [`start_time(DateTime)`](crate::operation::cancel_practice_run::CancelPracticeRunOutput::start_time): <p>The time (UTC) when the zonal shift starts.</p>
13    ///   - [`status(ZonalShiftStatus)`](crate::operation::cancel_practice_run::CancelPracticeRunOutput::status): <p>A status for the practice run that you canceled (expected status is <b>CANCELED</b>).</p> <p>The <code>Status</code> for a practice run zonal shift can have one of the following values:</p>
14    ///   - [`comment(String)`](crate::operation::cancel_practice_run::CancelPracticeRunOutput::comment): <p>The initial comment that you entered about the practice run. Be aware that this comment can be overwritten by Amazon Web Services if the automatic check for balanced capacity fails. For more information, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/arc-zonal-autoshift.how-it-works.capacity-check.html"> Capacity checks for practice runs</a> in the Amazon Application Recovery Controller Developer Guide.</p>
15    /// - On failure, responds with [`SdkError<CancelPracticeRunError>`](crate::operation::cancel_practice_run::CancelPracticeRunError)
16    pub fn cancel_practice_run(&self) -> crate::operation::cancel_practice_run::builders::CancelPracticeRunFluentBuilder {
17        crate::operation::cancel_practice_run::builders::CancelPracticeRunFluentBuilder::new(self.handle.clone())
18    }
19}