1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateEnvironment`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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 runtime environment. Must be unique within the account.</p><br>
    ///   - [`instance_type(impl Into<String>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::instance_type) / [`set_instance_type(Option<String>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::set_instance_type):<br>required: **true**<br><p>The type of instance for the runtime environment.</p><br>
    ///   - [`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 runtime environment.</p><br>
    ///   - [`engine_type(EngineType)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::engine_type) / [`set_engine_type(Option<EngineType>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::set_engine_type):<br>required: **true**<br><p>The engine type for the runtime environment.</p><br>
    ///   - [`engine_version(impl Into<String>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::engine_version) / [`set_engine_version(Option<String>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::set_engine_version):<br>required: **false**<br><p>The version of the engine type for the runtime environment.</p><br>
    ///   - [`subnet_ids(impl Into<String>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::subnet_ids) / [`set_subnet_ids(Option<Vec::<String>>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::set_subnet_ids):<br>required: **false**<br><p>The list of subnets associated with the VPC for this runtime environment.</p><br>
    ///   - [`security_group_ids(impl Into<String>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::security_group_ids) / [`set_security_group_ids(Option<Vec::<String>>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::set_security_group_ids):<br>required: **false**<br><p>The list of security groups for the VPC associated with this runtime environment.</p><br>
    ///   - [`storage_configurations(StorageConfiguration)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::storage_configurations) / [`set_storage_configurations(Option<Vec::<StorageConfiguration>>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::set_storage_configurations):<br>required: **false**<br><p>Optional. The storage configurations for this runtime environment.</p><br>
    ///   - [`publicly_accessible(bool)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::publicly_accessible) / [`set_publicly_accessible(Option<bool>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::set_publicly_accessible):<br>required: **false**<br><p>Specifies whether the runtime environment is publicly accessible.</p><br>
    ///   - [`high_availability_config(HighAvailabilityConfig)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::high_availability_config) / [`set_high_availability_config(Option<HighAvailabilityConfig>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::set_high_availability_config):<br>required: **false**<br><p>The details of a high availability configuration for this runtime environment.</p><br>
    ///   - [`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 for the runtime environment.</p><br>
    ///   - [`preferred_maintenance_window(impl Into<String>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::preferred_maintenance_window) / [`set_preferred_maintenance_window(Option<String>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::set_preferred_maintenance_window):<br>required: **false**<br><p>Configures the maintenance window that you want for the runtime environment. The maintenance window must have the format <code>ddd:hh24:mi-ddd:hh24:mi</code> and must be less than 24 hours. The following two examples are valid maintenance windows: <code>sun:23:45-mon:00:15</code> or <code>sat:01:00-sat:03:00</code>.</p> <p>If you do not provide a value, a random system-generated value will be assigned.</p><br>
    ///   - [`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>Unique, case-sensitive identifier you provide to ensure the idempotency of the request to create an environment. The service generates the clientToken when the API call is triggered. The token expires after one hour, so if you retry the API within this timeframe with the same clientToken, you will get the same response. The service also handles deleting the clientToken after it expires.</p><br>
    ///   - [`kms_key_id(impl Into<String>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::kms_key_id) / [`set_kms_key_id(Option<String>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::set_kms_key_id):<br>required: **false**<br><p>The identifier of a customer managed key.</p><br>
    /// - On success, responds with [`CreateEnvironmentOutput`](crate::operation::create_environment::CreateEnvironmentOutput) with field(s):
    ///   - [`environment_id(String)`](crate::operation::create_environment::CreateEnvironmentOutput::environment_id): <p>The unique identifier of the runtime environment.</p>
    /// - On failure, responds with [`SdkError<CreateEnvironmentError>`](crate::operation::create_environment::CreateEnvironmentError)
    pub fn create_environment(&self) -> crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder {
        crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::new(self.handle.clone())
    }
}