aws_sdk_codecatalyst/client/
create_dev_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 [`CreateDevEnvironment`](crate::operation::create_dev_environment::builders::CreateDevEnvironmentFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`space_name(impl Into<String>)`](crate::operation::create_dev_environment::builders::CreateDevEnvironmentFluentBuilder::space_name) / [`set_space_name(Option<String>)`](crate::operation::create_dev_environment::builders::CreateDevEnvironmentFluentBuilder::set_space_name):<br>required: **true**<br><p>The name of the space.</p><br>
7    ///   - [`project_name(impl Into<String>)`](crate::operation::create_dev_environment::builders::CreateDevEnvironmentFluentBuilder::project_name) / [`set_project_name(Option<String>)`](crate::operation::create_dev_environment::builders::CreateDevEnvironmentFluentBuilder::set_project_name):<br>required: **true**<br><p>The name of the project in the space.</p><br>
8    ///   - [`repositories(RepositoryInput)`](crate::operation::create_dev_environment::builders::CreateDevEnvironmentFluentBuilder::repositories) / [`set_repositories(Option<Vec::<RepositoryInput>>)`](crate::operation::create_dev_environment::builders::CreateDevEnvironmentFluentBuilder::set_repositories):<br>required: **false**<br><p>The source repository that contains the branch to clone into the Dev Environment.</p><br>
9    ///   - [`client_token(impl Into<String>)`](crate::operation::create_dev_environment::builders::CreateDevEnvironmentFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_dev_environment::builders::CreateDevEnvironmentFluentBuilder::set_client_token):<br>required: **false**<br><p>A user-specified idempotency token. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries return the result from the original successful request and have no additional effect.</p><br>
10    ///   - [`alias(impl Into<String>)`](crate::operation::create_dev_environment::builders::CreateDevEnvironmentFluentBuilder::alias) / [`set_alias(Option<String>)`](crate::operation::create_dev_environment::builders::CreateDevEnvironmentFluentBuilder::set_alias):<br>required: **false**<br><p>The user-defined alias for a Dev Environment.</p><br>
11    ///   - [`ides(IdeConfiguration)`](crate::operation::create_dev_environment::builders::CreateDevEnvironmentFluentBuilder::ides) / [`set_ides(Option<Vec::<IdeConfiguration>>)`](crate::operation::create_dev_environment::builders::CreateDevEnvironmentFluentBuilder::set_ides):<br>required: **false**<br><p>Information about the integrated development environment (IDE) configured for a Dev Environment.</p><note>  <p>An IDE is required to create a Dev Environment. For Dev Environment creation, this field contains configuration information and must be provided.</p> </note><br>
12    ///   - [`instance_type(InstanceType)`](crate::operation::create_dev_environment::builders::CreateDevEnvironmentFluentBuilder::instance_type) / [`set_instance_type(Option<InstanceType>)`](crate::operation::create_dev_environment::builders::CreateDevEnvironmentFluentBuilder::set_instance_type):<br>required: **true**<br><p>The Amazon EC2 instace type to use for the Dev Environment.</p><br>
13    ///   - [`inactivity_timeout_minutes(i32)`](crate::operation::create_dev_environment::builders::CreateDevEnvironmentFluentBuilder::inactivity_timeout_minutes) / [`set_inactivity_timeout_minutes(Option<i32>)`](crate::operation::create_dev_environment::builders::CreateDevEnvironmentFluentBuilder::set_inactivity_timeout_minutes):<br>required: **false**<br><p>The amount of time the Dev Environment will run without any activity detected before stopping, in minutes. Only whole integers are allowed. Dev Environments consume compute minutes when running.</p><br>
14    ///   - [`persistent_storage(PersistentStorageConfiguration)`](crate::operation::create_dev_environment::builders::CreateDevEnvironmentFluentBuilder::persistent_storage) / [`set_persistent_storage(Option<PersistentStorageConfiguration>)`](crate::operation::create_dev_environment::builders::CreateDevEnvironmentFluentBuilder::set_persistent_storage):<br>required: **true**<br><p>Information about the amount of storage allocated to the Dev Environment.</p><note>  <p>By default, a Dev Environment is configured to have 16GB of persistent storage when created from the Amazon CodeCatalyst console, but there is no default when programmatically creating a Dev Environment. Valid values for persistent storage are based on memory sizes in 16GB increments. Valid values are 16, 32, and 64.</p> </note><br>
15    ///   - [`vpc_connection_name(impl Into<String>)`](crate::operation::create_dev_environment::builders::CreateDevEnvironmentFluentBuilder::vpc_connection_name) / [`set_vpc_connection_name(Option<String>)`](crate::operation::create_dev_environment::builders::CreateDevEnvironmentFluentBuilder::set_vpc_connection_name):<br>required: **false**<br><p>The name of the connection that will be used to connect to Amazon VPC, if any.</p><br>
16    /// - On success, responds with [`CreateDevEnvironmentOutput`](crate::operation::create_dev_environment::CreateDevEnvironmentOutput) with field(s):
17    ///   - [`space_name(String)`](crate::operation::create_dev_environment::CreateDevEnvironmentOutput::space_name): <p>The name of the space.</p>
18    ///   - [`project_name(String)`](crate::operation::create_dev_environment::CreateDevEnvironmentOutput::project_name): <p>The name of the project in the space.</p>
19    ///   - [`id(String)`](crate::operation::create_dev_environment::CreateDevEnvironmentOutput::id): <p>The system-generated unique ID of the Dev Environment.</p>
20    ///   - [`vpc_connection_name(Option<String>)`](crate::operation::create_dev_environment::CreateDevEnvironmentOutput::vpc_connection_name): <p>The name of the connection used to connect to Amazon VPC used when the Dev Environment was created, if any.</p>
21    /// - On failure, responds with [`SdkError<CreateDevEnvironmentError>`](crate::operation::create_dev_environment::CreateDevEnvironmentError)
22    pub fn create_dev_environment(&self) -> crate::operation::create_dev_environment::builders::CreateDevEnvironmentFluentBuilder {
23        crate::operation::create_dev_environment::builders::CreateDevEnvironmentFluentBuilder::new(self.handle.clone())
24    }
25}