Struct aws_sdk_batch::model::ComputeEnvironmentDetail
source · #[non_exhaustive]pub struct ComputeEnvironmentDetail { /* private fields */ }
Expand description
An object that represents an Batch compute environment.
Implementations§
source§impl ComputeEnvironmentDetail
impl ComputeEnvironmentDetail
sourcepub fn compute_environment_name(&self) -> Option<&str>
pub fn compute_environment_name(&self) -> Option<&str>
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) -> Option<&str>
pub fn compute_environment_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the compute environment.
sourcepub fn unmanagedv_cpus(&self) -> Option<i32>
pub fn unmanagedv_cpus(&self) -> Option<i32>
The maximum number of VCPUs expected to be used for an unmanaged compute environment.
sourcepub fn ecs_cluster_arn(&self) -> Option<&str>
pub fn ecs_cluster_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the underlying Amazon ECS cluster that the compute environment uses.
The tags applied to the compute environment.
sourcepub fn type(&self) -> Option<&CeType>
pub fn type(&self) -> Option<&CeType>
The type of the compute environment: MANAGED
or UNMANAGED
. For more information, see Compute environments in the Batch User Guide.
sourcepub fn state(&self) -> Option<&CeState>
pub fn state(&self) -> Option<&CeState>
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. However, they scale in to minvCpus
value after instances become idle.
sourcepub fn status(&self) -> Option<&CeStatus>
pub fn status(&self) -> Option<&CeStatus>
The current status of the compute environment (for example, CREATING
or VALID
).
sourcepub fn status_reason(&self) -> Option<&str>
pub fn status_reason(&self) -> Option<&str>
A short, human-readable string to provide additional details for the current status of the compute environment.
sourcepub fn compute_resources(&self) -> Option<&ComputeResource>
pub fn compute_resources(&self) -> Option<&ComputeResource>
The compute resources defined for the compute environment. For more information, see Compute environments in the Batch User Guide.
sourcepub fn service_role(&self) -> Option<&str>
pub fn service_role(&self) -> Option<&str>
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) -> Option<&UpdatePolicy>
pub fn update_policy(&self) -> Option<&UpdatePolicy>
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) -> Option<&EksConfiguration>
pub fn eks_configuration(&self) -> Option<&EksConfiguration>
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) -> Option<&OrchestrationType>
pub fn container_orchestration_type(&self) -> Option<&OrchestrationType>
The orchestration type of the compute environment. The valid values are ECS
(default) or EKS
.
source§impl ComputeEnvironmentDetail
impl ComputeEnvironmentDetail
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ComputeEnvironmentDetail
.
Trait Implementations§
source§impl Clone for ComputeEnvironmentDetail
impl Clone for ComputeEnvironmentDetail
source§fn clone(&self) -> ComputeEnvironmentDetail
fn clone(&self) -> ComputeEnvironmentDetail
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ComputeEnvironmentDetail
impl Debug for ComputeEnvironmentDetail
source§impl PartialEq<ComputeEnvironmentDetail> for ComputeEnvironmentDetail
impl PartialEq<ComputeEnvironmentDetail> for ComputeEnvironmentDetail
source§fn eq(&self, other: &ComputeEnvironmentDetail) -> bool
fn eq(&self, other: &ComputeEnvironmentDetail) -> bool
self
and other
values to be equal, and is used
by ==
.