aws_sdk_rds/client/
switchover_blue_green_deployment.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 [`SwitchoverBlueGreenDeployment`](crate::operation::switchover_blue_green_deployment::builders::SwitchoverBlueGreenDeploymentFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`blue_green_deployment_identifier(impl Into<String>)`](crate::operation::switchover_blue_green_deployment::builders::SwitchoverBlueGreenDeploymentFluentBuilder::blue_green_deployment_identifier) / [`set_blue_green_deployment_identifier(Option<String>)`](crate::operation::switchover_blue_green_deployment::builders::SwitchoverBlueGreenDeploymentFluentBuilder::set_blue_green_deployment_identifier):<br>required: **true**<br><p>The resource ID of the blue/green deployment.</p> <p>Constraints:</p> <ul>  <li>   <p>Must match an existing blue/green deployment resource ID.</p></li> </ul><br>
7    ///   - [`switchover_timeout(i32)`](crate::operation::switchover_blue_green_deployment::builders::SwitchoverBlueGreenDeploymentFluentBuilder::switchover_timeout) / [`set_switchover_timeout(Option<i32>)`](crate::operation::switchover_blue_green_deployment::builders::SwitchoverBlueGreenDeploymentFluentBuilder::set_switchover_timeout):<br>required: **false**<br><p>The amount of time, in seconds, for the switchover to complete.</p> <p>Default: 300</p> <p>If the switchover takes longer than the specified duration, then any changes are rolled back, and no changes are made to the environments.</p><br>
8    /// - On success, responds with [`SwitchoverBlueGreenDeploymentOutput`](crate::operation::switchover_blue_green_deployment::SwitchoverBlueGreenDeploymentOutput) with field(s):
9    ///   - [`blue_green_deployment(Option<BlueGreenDeployment>)`](crate::operation::switchover_blue_green_deployment::SwitchoverBlueGreenDeploymentOutput::blue_green_deployment): <p>Details about a blue/green deployment.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/blue-green-deployments.html">Using Amazon RDS Blue/Green Deployments for database updates</a> in the <i>Amazon RDS User Guide</i> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/blue-green-deployments.html">Using Amazon RDS Blue/Green Deployments for database updates</a> in the <i>Amazon Aurora User Guide</i>.</p>
10    /// - On failure, responds with [`SdkError<SwitchoverBlueGreenDeploymentError>`](crate::operation::switchover_blue_green_deployment::SwitchoverBlueGreenDeploymentError)
11    pub fn switchover_blue_green_deployment(
12        &self,
13    ) -> crate::operation::switchover_blue_green_deployment::builders::SwitchoverBlueGreenDeploymentFluentBuilder {
14        crate::operation::switchover_blue_green_deployment::builders::SwitchoverBlueGreenDeploymentFluentBuilder::new(self.handle.clone())
15    }
16}