aws_sdk_continuum/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>The customer-visible name of the environment.<br>
7 /// - [`configuration(CreateEnvironmentConfiguration)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::configuration) / [`set_configuration(Option<CreateEnvironmentConfiguration>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::set_configuration):<br>required: **false**<br>Type-specific configuration. Omission creates a code environment with the default operating policy and no sources.<br>
8 /// - On success, responds with [`CreateEnvironmentOutput`](crate::operation::create_environment::CreateEnvironmentOutput) with field(s):
9 /// - [`environment_id(String)`](crate::operation::create_environment::CreateEnvironmentOutput::environment_id): The unique identifier assigned to the environment.
10 /// - [`environment_arn(String)`](crate::operation::create_environment::CreateEnvironmentOutput::environment_arn): The ARN of the created environment.
11 /// - [`status(EnvironmentStatus)`](crate::operation::create_environment::CreateEnvironmentOutput::status): The initial status of the environment. Always ACTIVE on successful creation.
12 /// - [`created_at(DateTime)`](crate::operation::create_environment::CreateEnvironmentOutput::created_at): The timestamp when the environment was created.
13 /// - On failure, responds with [`SdkError<CreateEnvironmentError>`](crate::operation::create_environment::CreateEnvironmentError)
14 pub fn create_environment(&self) -> crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder {
15 crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::new(self.handle.clone())
16 }
17}