Struct aws_sdk_m2::client::fluent_builders::CreateEnvironment
source · pub struct CreateEnvironment { /* private fields */ }Expand description
Fluent builder constructing a request to CreateEnvironment.
Creates a runtime environment for a given runtime engine.
Implementations§
source§impl CreateEnvironment
impl CreateEnvironment
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 instance_type(self, input: impl Into<String>) -> Self
pub fn instance_type(self, input: impl Into<String>) -> Self
The type of instance for the 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 environment.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the environment.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the environment.
sourcepub fn engine_type(self, input: EngineType) -> Self
pub fn engine_type(self, input: EngineType) -> Self
The engine type for the 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 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 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 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 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 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 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 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 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 environment.
sourcepub fn publicly_accessible(self, input: bool) -> Self
pub fn publicly_accessible(self, input: bool) -> Self
Specifies whether the 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 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 environment.
The tags for the environment.
sourcepub fn preferred_maintenance_window(self, input: impl Into<String>) -> Self
pub fn preferred_maintenance_window(self, input: impl Into<String>) -> Self
Configures a desired maintenance window for the 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 a desired maintenance window for the 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.
Trait Implementations§
source§impl Clone for CreateEnvironment
impl Clone for CreateEnvironment
source§fn clone(&self) -> CreateEnvironment
fn clone(&self) -> CreateEnvironment
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more