aws_sdk_appconfig/client/
create_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 [`CreateEnvironment`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`application_id(impl Into<String>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::application_id) / [`set_application_id(Option<String>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::set_application_id):<br>required: **true**<br><p>The application ID.</p><br>
7    ///   - [`name(impl Into<String>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::set_name):<br>required: **true**<br><p>A name for the environment.</p><br>
8    ///   - [`description(impl Into<String>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::set_description):<br>required: **false**<br><p>A description of the environment.</p><br>
9    ///   - [`monitors(Monitor)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::monitors) / [`set_monitors(Option<Vec::<Monitor>>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::set_monitors):<br>required: **false**<br><p>Amazon CloudWatch alarms to monitor during the deployment process.</p><br>
10    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::set_tags):<br>required: **false**<br><p>Metadata to assign to the environment. Tags help organize and categorize your AppConfig resources. Each tag consists of a key and an optional value, both of which you define.</p><br>
11    /// - On success, responds with [`CreateEnvironmentOutput`](crate::operation::create_environment::CreateEnvironmentOutput) with field(s):
12    ///   - [`application_id(Option<String>)`](crate::operation::create_environment::CreateEnvironmentOutput::application_id): <p>The application ID.</p>
13    ///   - [`id(Option<String>)`](crate::operation::create_environment::CreateEnvironmentOutput::id): <p>The environment ID.</p>
14    ///   - [`name(Option<String>)`](crate::operation::create_environment::CreateEnvironmentOutput::name): <p>The name of the environment.</p>
15    ///   - [`description(Option<String>)`](crate::operation::create_environment::CreateEnvironmentOutput::description): <p>The description of the environment.</p>
16    ///   - [`state(Option<EnvironmentState>)`](crate::operation::create_environment::CreateEnvironmentOutput::state): <p>The state of the environment. An environment can be in one of the following states: <code>READY_FOR_DEPLOYMENT</code>, <code>DEPLOYING</code>, <code>ROLLING_BACK</code>, or <code>ROLLED_BACK</code></p>
17    ///   - [`monitors(Option<Vec::<Monitor>>)`](crate::operation::create_environment::CreateEnvironmentOutput::monitors): <p>Amazon CloudWatch alarms monitored during the deployment.</p>
18    /// - On failure, responds with [`SdkError<CreateEnvironmentError>`](crate::operation::create_environment::CreateEnvironmentError)
19    pub fn create_environment(&self) -> crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder {
20        crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::new(self.handle.clone())
21    }
22}