aws_sdk_migrationhubrefactorspaces/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 /// - [`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>The name of the environment.</p><br>
7 /// - [`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>The description of the environment.</p><br>
8 /// - [`network_fabric_type(NetworkFabricType)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::network_fabric_type) / [`set_network_fabric_type(Option<NetworkFabricType>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::set_network_fabric_type):<br>required: **true**<br><p>The network fabric type of the environment.</p><br>
9 /// - [`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>The tags to assign to the environment. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair.</p><br>
10 /// - [`client_token(impl Into<String>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p><br>
11 /// - On success, responds with [`CreateEnvironmentOutput`](crate::operation::create_environment::CreateEnvironmentOutput) with field(s):
12 /// - [`name(Option<String>)`](crate::operation::create_environment::CreateEnvironmentOutput::name): <p>The name of the environment.</p>
13 /// - [`arn(Option<String>)`](crate::operation::create_environment::CreateEnvironmentOutput::arn): <p>The Amazon Resource Name (ARN) of the environment.</p>
14 /// - [`description(Option<String>)`](crate::operation::create_environment::CreateEnvironmentOutput::description): <p>A description of the environment.</p>
15 /// - [`environment_id(Option<String>)`](crate::operation::create_environment::CreateEnvironmentOutput::environment_id): <p>The unique identifier of the environment.</p>
16 /// - [`network_fabric_type(Option<NetworkFabricType>)`](crate::operation::create_environment::CreateEnvironmentOutput::network_fabric_type): <p>The network fabric type of the environment.</p>
17 /// - [`owner_account_id(Option<String>)`](crate::operation::create_environment::CreateEnvironmentOutput::owner_account_id): <p>The Amazon Web Services account ID of environment owner.</p>
18 /// - [`state(Option<EnvironmentState>)`](crate::operation::create_environment::CreateEnvironmentOutput::state): <p>The current state of the environment.</p>
19 /// - [`tags(Option<HashMap::<String, String>>)`](crate::operation::create_environment::CreateEnvironmentOutput::tags): <p>The tags assigned to the created environment. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair..</p>
20 /// - [`last_updated_time(Option<DateTime>)`](crate::operation::create_environment::CreateEnvironmentOutput::last_updated_time): <p>A timestamp that indicates when the environment was last updated.</p>
21 /// - [`created_time(Option<DateTime>)`](crate::operation::create_environment::CreateEnvironmentOutput::created_time): <p>A timestamp that indicates when the environment is created.</p>
22 /// - On failure, responds with [`SdkError<CreateEnvironmentError>`](crate::operation::create_environment::CreateEnvironmentError)
23 pub fn create_environment(&self) -> crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder {
24 crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::new(self.handle.clone())
25 }
26}