pub struct CreateEnvironmentFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to CreateEnvironment.
Creates a runtime environment for a given runtime engine.
Implementations§
source§impl CreateEnvironmentFluentBuilder
impl CreateEnvironmentFluentBuilder
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateEnvironment, AwsResponseRetryClassifier>, SdkError<CreateEnvironmentError>>
pub async fn customize( self ) -> Result<CustomizableOperation<CreateEnvironment, AwsResponseRetryClassifier>, SdkError<CreateEnvironmentError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreateEnvironmentOutput, SdkError<CreateEnvironmentError>>
pub async fn send( self ) -> Result<CreateEnvironmentOutput, SdkError<CreateEnvironmentError>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the runtime environment. Must be unique within the account.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the runtime environment. Must be unique within the account.
sourcepub fn instance_type(self, input: impl Into<String>) -> Self
pub fn instance_type(self, input: impl Into<String>) -> Self
The type of instance for the runtime environment.
sourcepub fn set_instance_type(self, input: Option<String>) -> Self
pub fn set_instance_type(self, input: Option<String>) -> Self
The type of instance for the runtime environment.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the runtime environment.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the runtime environment.
sourcepub fn engine_type(self, input: EngineType) -> Self
pub fn engine_type(self, input: EngineType) -> Self
The engine type for the runtime environment.
sourcepub fn set_engine_type(self, input: Option<EngineType>) -> Self
pub fn set_engine_type(self, input: Option<EngineType>) -> Self
The engine type for the runtime environment.
sourcepub fn engine_version(self, input: impl Into<String>) -> Self
pub fn engine_version(self, input: impl Into<String>) -> Self
The version of the engine type for the runtime environment.
sourcepub fn set_engine_version(self, input: Option<String>) -> Self
pub fn set_engine_version(self, input: Option<String>) -> Self
The version of the engine type for the runtime environment.
sourcepub fn subnet_ids(self, input: impl Into<String>) -> Self
pub fn subnet_ids(self, input: impl Into<String>) -> Self
Appends an item to subnetIds.
To override the contents of this collection use set_subnet_ids.
The list of subnets associated with the VPC for this runtime environment.
sourcepub fn set_subnet_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_subnet_ids(self, input: Option<Vec<String>>) -> Self
The list of subnets associated with the VPC for this runtime environment.
sourcepub fn security_group_ids(self, input: impl Into<String>) -> Self
pub fn security_group_ids(self, input: impl Into<String>) -> Self
Appends an item to securityGroupIds.
To override the contents of this collection use set_security_group_ids.
The list of security groups for the VPC associated with this runtime environment.
sourcepub fn set_security_group_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_security_group_ids(self, input: Option<Vec<String>>) -> Self
The list of security groups for the VPC associated with this runtime environment.
sourcepub fn storage_configurations(self, input: StorageConfiguration) -> Self
pub fn storage_configurations(self, input: StorageConfiguration) -> Self
Appends an item to storageConfigurations.
To override the contents of this collection use set_storage_configurations.
Optional. The storage configurations for this runtime environment.
sourcepub fn set_storage_configurations(
self,
input: Option<Vec<StorageConfiguration>>
) -> Self
pub fn set_storage_configurations( self, input: Option<Vec<StorageConfiguration>> ) -> Self
Optional. The storage configurations for this runtime environment.
sourcepub fn publicly_accessible(self, input: bool) -> Self
pub fn publicly_accessible(self, input: bool) -> Self
Specifies whether the runtime environment is publicly accessible.
sourcepub fn set_publicly_accessible(self, input: Option<bool>) -> Self
pub fn set_publicly_accessible(self, input: Option<bool>) -> Self
Specifies whether the runtime environment is publicly accessible.
sourcepub fn high_availability_config(self, input: HighAvailabilityConfig) -> Self
pub fn high_availability_config(self, input: HighAvailabilityConfig) -> Self
The details of a high availability configuration for this runtime environment.
sourcepub fn set_high_availability_config(
self,
input: Option<HighAvailabilityConfig>
) -> Self
pub fn set_high_availability_config( self, input: Option<HighAvailabilityConfig> ) -> Self
The details of a high availability configuration for this runtime environment.
Adds a key-value pair to tags.
To override the contents of this collection use set_tags.
The tags for the runtime environment.
The tags for the runtime environment.
sourcepub fn preferred_maintenance_window(self, input: impl Into<String>) -> Self
pub fn preferred_maintenance_window(self, input: impl Into<String>) -> Self
Configures the maintenance window you want for the runtime environment. If you do not provide a value, a random system-generated value will be assigned.
sourcepub fn set_preferred_maintenance_window(self, input: Option<String>) -> Self
pub fn set_preferred_maintenance_window(self, input: Option<String>) -> Self
Configures the maintenance window you want for the runtime environment. If you do not provide a value, a random system-generated value will be assigned.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
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.
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
The identifier of a customer managed key.
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
The identifier of a customer managed key.
Trait Implementations§
source§impl Clone for CreateEnvironmentFluentBuilder
impl Clone for CreateEnvironmentFluentBuilder
source§fn clone(&self) -> CreateEnvironmentFluentBuilder
fn clone(&self) -> CreateEnvironmentFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more