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
sourceimpl CreateEnvironment
 
impl CreateEnvironment
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
sourceimpl Clone for CreateEnvironment
 
impl Clone for CreateEnvironment
sourcefn clone(&self) -> CreateEnvironment
 
fn clone(&self) -> CreateEnvironment
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl !RefUnwindSafe for CreateEnvironment
impl Send for CreateEnvironment
impl Sync for CreateEnvironment
impl Unpin for CreateEnvironment
impl !UnwindSafe for CreateEnvironment
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
 
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
 
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
    S: Into<Dispatch>, 
 
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
    S: Into<Dispatch>, 
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
 
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more