aws_sdk_migrationhubrefactorspaces/client/
delete_environment.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 [`DeleteEnvironment`](crate::operation::delete_environment::builders::DeleteEnvironmentFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`environment_identifier(impl Into<String>)`](crate::operation::delete_environment::builders::DeleteEnvironmentFluentBuilder::environment_identifier) / [`set_environment_identifier(Option<String>)`](crate::operation::delete_environment::builders::DeleteEnvironmentFluentBuilder::set_environment_identifier):<br>required: **true**<br><p>The ID of the environment.</p><br>
7    /// - On success, responds with [`DeleteEnvironmentOutput`](crate::operation::delete_environment::DeleteEnvironmentOutput) with field(s):
8    ///   - [`name(Option<String>)`](crate::operation::delete_environment::DeleteEnvironmentOutput::name): <p>The name of the environment.</p>
9    ///   - [`arn(Option<String>)`](crate::operation::delete_environment::DeleteEnvironmentOutput::arn): <p>The Amazon Resource Name (ARN) of the environment.</p>
10    ///   - [`environment_id(Option<String>)`](crate::operation::delete_environment::DeleteEnvironmentOutput::environment_id): <p>The unique identifier of the environment.</p>
11    ///   - [`state(Option<EnvironmentState>)`](crate::operation::delete_environment::DeleteEnvironmentOutput::state): <p>The current state of the environment.</p>
12    ///   - [`last_updated_time(Option<DateTime>)`](crate::operation::delete_environment::DeleteEnvironmentOutput::last_updated_time): <p>A timestamp that indicates when the environment was last updated.</p>
13    /// - On failure, responds with [`SdkError<DeleteEnvironmentError>`](crate::operation::delete_environment::DeleteEnvironmentError)
14    pub fn delete_environment(&self) -> crate::operation::delete_environment::builders::DeleteEnvironmentFluentBuilder {
15        crate::operation::delete_environment::builders::DeleteEnvironmentFluentBuilder::new(self.handle.clone())
16    }
17}