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 fn as_input(&self) -> &CreateEnvironmentInputBuilder
pub fn as_input(&self) -> &CreateEnvironmentInputBuilder
Access the CreateEnvironment as a reference.
sourcepub async fn send(
self
) -> Result<CreateEnvironmentOutput, SdkError<CreateEnvironmentError, HttpResponse>>
pub async fn send( self ) -> Result<CreateEnvironmentOutput, SdkError<CreateEnvironmentError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<CreateEnvironmentOutput, CreateEnvironmentError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateEnvironmentOutput, CreateEnvironmentError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
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 get_instance_type(&self) -> &Option<String>
pub fn get_instance_type(&self) -> &Option<String>
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 get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
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 get_engine_type(&self) -> &Option<EngineType>
pub fn get_engine_type(&self) -> &Option<EngineType>
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 get_engine_version(&self) -> &Option<String>
pub fn get_engine_version(&self) -> &Option<String>
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 get_subnet_ids(&self) -> &Option<Vec<String>>
pub fn get_subnet_ids(&self) -> &Option<Vec<String>>
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 get_security_group_ids(&self) -> &Option<Vec<String>>
pub fn get_security_group_ids(&self) -> &Option<Vec<String>>
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 get_storage_configurations(&self) -> &Option<Vec<StorageConfiguration>>
pub fn get_storage_configurations(&self) -> &Option<Vec<StorageConfiguration>>
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 get_publicly_accessible(&self) -> &Option<bool>
pub fn get_publicly_accessible(&self) -> &Option<bool>
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.
sourcepub fn get_high_availability_config(&self) -> &Option<HighAvailabilityConfig>
pub fn get_high_availability_config(&self) -> &Option<HighAvailabilityConfig>
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.
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 that you want for the runtime environment. The maintenance window must have the format ddd:hh24:mi-ddd:hh24:mi
and must be less than 24 hours. The following two examples are valid maintenance windows: sun:23:45-mon:00:15
or sat:01:00-sat:03:00
.
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 that you want for the runtime environment. The maintenance window must have the format ddd:hh24:mi-ddd:hh24:mi
and must be less than 24 hours. The following two examples are valid maintenance windows: sun:23:45-mon:00:15
or sat:01:00-sat:03:00
.
If you do not provide a value, a random system-generated value will be assigned.
sourcepub fn get_preferred_maintenance_window(&self) -> &Option<String>
pub fn get_preferred_maintenance_window(&self) -> &Option<String>
Configures the maintenance window that you want for the runtime environment. The maintenance window must have the format ddd:hh24:mi-ddd:hh24:mi
and must be less than 24 hours. The following two examples are valid maintenance windows: sun:23:45-mon:00:15
or sat:01:00-sat:03:00
.
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 get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
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.
sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
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 moreAuto Trait Implementations§
impl Freeze for CreateEnvironmentFluentBuilder
impl !RefUnwindSafe for CreateEnvironmentFluentBuilder
impl Send for CreateEnvironmentFluentBuilder
impl Sync for CreateEnvironmentFluentBuilder
impl Unpin for CreateEnvironmentFluentBuilder
impl !UnwindSafe for CreateEnvironmentFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more