Skip to main content

aws_sdk_continuum/client/
update_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 [`UpdateEnvironment`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`environment_id(impl Into<String>)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::environment_id) / [`set_environment_id(Option<String>)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::set_environment_id):<br>required: **true**<br>The unique identifier of the environment to update.<br>
7    ///   - [`name(impl Into<String>)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::set_name):<br>required: **false**<br>The new customer-visible name.<br>
8    ///   - [`configuration(UpdateEnvironmentConfiguration)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::configuration) / [`set_configuration(Option<UpdateEnvironmentConfiguration>)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::set_configuration):<br>required: **false**<br>Type-specific configuration changes. Omission preserves the configuration.<br>
9    /// - On success, responds with [`UpdateEnvironmentOutput`](crate::operation::update_environment::UpdateEnvironmentOutput) with field(s):
10    ///   - [`environment_id(String)`](crate::operation::update_environment::UpdateEnvironmentOutput::environment_id): The unique identifier of the updated environment.
11    ///   - [`environment_arn(String)`](crate::operation::update_environment::UpdateEnvironmentOutput::environment_arn): The ARN of the updated environment.
12    ///   - [`name(String)`](crate::operation::update_environment::UpdateEnvironmentOutput::name): The current customer-visible name of the environment.
13    ///   - [`status(EnvironmentStatus)`](crate::operation::update_environment::UpdateEnvironmentOutput::status): The current operational status of the environment.
14    ///   - [`status_message(Option<String>)`](crate::operation::update_environment::UpdateEnvironmentOutput::status_message): Human-readable details about the current status.
15    ///   - [`status_updated_at(DateTime)`](crate::operation::update_environment::UpdateEnvironmentOutput::status_updated_at): The timestamp when the status last transitioned. Uses the existing GetEnvironment/ListEnvironments ISO-8601 wire format for this field.
16    ///   - [`created_at(DateTime)`](crate::operation::update_environment::UpdateEnvironmentOutput::created_at): The timestamp when the environment was created. Uses the existing GetEnvironment/ListEnvironments ISO-8601 wire format for this field.
17    ///   - [`configuration(Option<EnvironmentConfigurationDetails>)`](crate::operation::update_environment::UpdateEnvironmentOutput::configuration): Type-specific state, including Collector details and the latest scan. Read source and operating-policy settings through GetEnvironment.
18    /// - On failure, responds with [`SdkError<UpdateEnvironmentError>`](crate::operation::update_environment::UpdateEnvironmentError)
19    pub fn update_environment(&self) -> crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder {
20        crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::new(self.handle.clone())
21    }
22}