#[non_exhaustive]pub struct ComputeEnvironmentDetailBuilder { /* private fields */ }
Expand description
A builder for ComputeEnvironmentDetail
.
Implementations§
source§impl ComputeEnvironmentDetailBuilder
impl ComputeEnvironmentDetailBuilder
sourcepub fn compute_environment_name(self, input: impl Into<String>) -> Self
pub fn compute_environment_name(self, input: impl Into<String>) -> Self
The name of the compute environment. It can be up to 128 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
sourcepub fn set_compute_environment_name(self, input: Option<String>) -> Self
pub fn set_compute_environment_name(self, input: Option<String>) -> Self
The name of the compute environment. It can be up to 128 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
sourcepub fn compute_environment_arn(self, input: impl Into<String>) -> Self
pub fn compute_environment_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the compute environment.
sourcepub fn set_compute_environment_arn(self, input: Option<String>) -> Self
pub fn set_compute_environment_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the compute environment.
sourcepub fn unmanagedv_cpus(self, input: i32) -> Self
pub fn unmanagedv_cpus(self, input: i32) -> Self
The maximum number of VCPUs expected to be used for an unmanaged compute environment.
sourcepub fn set_unmanagedv_cpus(self, input: Option<i32>) -> Self
pub fn set_unmanagedv_cpus(self, input: Option<i32>) -> Self
The maximum number of VCPUs expected to be used for an unmanaged compute environment.
sourcepub fn ecs_cluster_arn(self, input: impl Into<String>) -> Self
pub fn ecs_cluster_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the underlying Amazon ECS cluster that the compute environment uses.
sourcepub fn set_ecs_cluster_arn(self, input: Option<String>) -> Self
pub fn set_ecs_cluster_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the underlying Amazon ECS cluster that the compute environment uses.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
The tags applied to the compute environment.
The tags applied to the compute environment.
sourcepub fn type(self, input: CeType) -> Self
pub fn type(self, input: CeType) -> Self
The type of the compute environment: MANAGED
or UNMANAGED
. For more information, see Compute environments in the Batch User Guide.
sourcepub fn set_type(self, input: Option<CeType>) -> Self
pub fn set_type(self, input: Option<CeType>) -> Self
The type of the compute environment: MANAGED
or UNMANAGED
. For more information, see Compute environments in the Batch User Guide.
sourcepub fn state(self, input: CeState) -> Self
pub fn state(self, input: CeState) -> Self
The state of the compute environment. The valid values are ENABLED
or DISABLED
.
If the state is ENABLED
, then the Batch scheduler can attempt to place jobs from an associated job queue on the compute resources within the environment. If the compute environment is managed, then it can scale its instances out or in automatically based on the job queue demand.
If the state is DISABLED
, then the Batch scheduler doesn't attempt to place jobs within the environment. Jobs in a STARTING
or RUNNING
state continue to progress normally. Managed compute environments in the DISABLED
state don't scale out.
Compute environments in a DISABLED
state may continue to incur billing charges. To prevent additional charges, turn off and then delete the compute environment. For more information, see State in the Batch User Guide.
When an instance is idle, the instance scales down to the minvCpus
value. However, the instance size doesn't change. For example, consider a c5.8xlarge
instance with a minvCpus
value of 4
and a desiredvCpus
value of 36
. This instance doesn't scale down to a c5.large
instance.
sourcepub fn set_state(self, input: Option<CeState>) -> Self
pub fn set_state(self, input: Option<CeState>) -> Self
The state of the compute environment. The valid values are ENABLED
or DISABLED
.
If the state is ENABLED
, then the Batch scheduler can attempt to place jobs from an associated job queue on the compute resources within the environment. If the compute environment is managed, then it can scale its instances out or in automatically based on the job queue demand.
If the state is DISABLED
, then the Batch scheduler doesn't attempt to place jobs within the environment. Jobs in a STARTING
or RUNNING
state continue to progress normally. Managed compute environments in the DISABLED
state don't scale out.
Compute environments in a DISABLED
state may continue to incur billing charges. To prevent additional charges, turn off and then delete the compute environment. For more information, see State in the Batch User Guide.
When an instance is idle, the instance scales down to the minvCpus
value. However, the instance size doesn't change. For example, consider a c5.8xlarge
instance with a minvCpus
value of 4
and a desiredvCpus
value of 36
. This instance doesn't scale down to a c5.large
instance.
sourcepub fn status(self, input: CeStatus) -> Self
pub fn status(self, input: CeStatus) -> Self
The current status of the compute environment (for example, CREATING
or VALID
).
sourcepub fn set_status(self, input: Option<CeStatus>) -> Self
pub fn set_status(self, input: Option<CeStatus>) -> Self
The current status of the compute environment (for example, CREATING
or VALID
).
sourcepub fn status_reason(self, input: impl Into<String>) -> Self
pub fn status_reason(self, input: impl Into<String>) -> Self
A short, human-readable string to provide additional details for the current status of the compute environment.
sourcepub fn set_status_reason(self, input: Option<String>) -> Self
pub fn set_status_reason(self, input: Option<String>) -> Self
A short, human-readable string to provide additional details for the current status of the compute environment.
sourcepub fn compute_resources(self, input: ComputeResource) -> Self
pub fn compute_resources(self, input: ComputeResource) -> Self
The compute resources defined for the compute environment. For more information, see Compute environments in the Batch User Guide.
sourcepub fn set_compute_resources(self, input: Option<ComputeResource>) -> Self
pub fn set_compute_resources(self, input: Option<ComputeResource>) -> Self
The compute resources defined for the compute environment. For more information, see Compute environments in the Batch User Guide.
sourcepub fn service_role(self, input: impl Into<String>) -> Self
pub fn service_role(self, input: impl Into<String>) -> Self
The service role that's associated with the compute environment that allows Batch to make calls to Amazon Web Services API operations on your behalf. For more information, see Batch service IAM role in the Batch User Guide.
sourcepub fn set_service_role(self, input: Option<String>) -> Self
pub fn set_service_role(self, input: Option<String>) -> Self
The service role that's associated with the compute environment that allows Batch to make calls to Amazon Web Services API operations on your behalf. For more information, see Batch service IAM role in the Batch User Guide.
sourcepub fn update_policy(self, input: UpdatePolicy) -> Self
pub fn update_policy(self, input: UpdatePolicy) -> Self
Specifies the infrastructure update policy for the compute environment. For more information about infrastructure updates, see Updating compute environments in the Batch User Guide.
sourcepub fn set_update_policy(self, input: Option<UpdatePolicy>) -> Self
pub fn set_update_policy(self, input: Option<UpdatePolicy>) -> Self
Specifies the infrastructure update policy for the compute environment. For more information about infrastructure updates, see Updating compute environments in the Batch User Guide.
sourcepub fn eks_configuration(self, input: EksConfiguration) -> Self
pub fn eks_configuration(self, input: EksConfiguration) -> Self
The configuration for the Amazon EKS cluster that supports the Batch compute environment. Only specify this parameter if the containerOrchestrationType
is EKS
.
sourcepub fn set_eks_configuration(self, input: Option<EksConfiguration>) -> Self
pub fn set_eks_configuration(self, input: Option<EksConfiguration>) -> Self
The configuration for the Amazon EKS cluster that supports the Batch compute environment. Only specify this parameter if the containerOrchestrationType
is EKS
.
sourcepub fn container_orchestration_type(self, input: OrchestrationType) -> Self
pub fn container_orchestration_type(self, input: OrchestrationType) -> Self
The orchestration type of the compute environment. The valid values are ECS
(default) or EKS
.
sourcepub fn set_container_orchestration_type(
self,
input: Option<OrchestrationType>
) -> Self
pub fn set_container_orchestration_type( self, input: Option<OrchestrationType> ) -> Self
The orchestration type of the compute environment. The valid values are ECS
(default) or EKS
.
sourcepub fn uuid(self, input: impl Into<String>) -> Self
pub fn uuid(self, input: impl Into<String>) -> Self
Unique identifier for the compute environment.
sourcepub fn set_uuid(self, input: Option<String>) -> Self
pub fn set_uuid(self, input: Option<String>) -> Self
Unique identifier for the compute environment.
sourcepub fn build(self) -> ComputeEnvironmentDetail
pub fn build(self) -> ComputeEnvironmentDetail
Consumes the builder and constructs a ComputeEnvironmentDetail
.
Trait Implementations§
source§impl Clone for ComputeEnvironmentDetailBuilder
impl Clone for ComputeEnvironmentDetailBuilder
source§fn clone(&self) -> ComputeEnvironmentDetailBuilder
fn clone(&self) -> ComputeEnvironmentDetailBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ComputeEnvironmentDetailBuilder
impl Default for ComputeEnvironmentDetailBuilder
source§fn default() -> ComputeEnvironmentDetailBuilder
fn default() -> ComputeEnvironmentDetailBuilder
source§impl PartialEq<ComputeEnvironmentDetailBuilder> for ComputeEnvironmentDetailBuilder
impl PartialEq<ComputeEnvironmentDetailBuilder> for ComputeEnvironmentDetailBuilder
source§fn eq(&self, other: &ComputeEnvironmentDetailBuilder) -> bool
fn eq(&self, other: &ComputeEnvironmentDetailBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.