Struct aws_sdk_batch::types::ComputeEnvironmentOrder
source · #[non_exhaustive]pub struct ComputeEnvironmentOrder {
pub order: Option<i32>,
pub compute_environment: Option<String>,
}
Expand description
The order that compute environments are tried in for job placement within a queue. Compute environments are tried in ascending order. For example, if two compute environments are associated with a job queue, the compute environment with a lower order integer value is tried for job placement first. Compute environments must be in the VALID
state before you can associate them with a job queue. All of the compute environments must be either EC2 (EC2
or SPOT
) or Fargate (FARGATE
or FARGATE_SPOT
); Amazon EC2 and Fargate compute environments can't be mixed.
All compute environments that are associated with a job queue must share the same architecture. Batch doesn't support mixing compute environment architecture types in a single job queue.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.order: Option<i32>
The order of the compute environment. Compute environments are tried in ascending order. For example, if two compute environments are associated with a job queue, the compute environment with a lower order
integer value is tried for job placement first.
compute_environment: Option<String>
The Amazon Resource Name (ARN) of the compute environment.
Implementations§
source§impl ComputeEnvironmentOrder
impl ComputeEnvironmentOrder
sourcepub fn order(&self) -> Option<i32>
pub fn order(&self) -> Option<i32>
The order of the compute environment. Compute environments are tried in ascending order. For example, if two compute environments are associated with a job queue, the compute environment with a lower order
integer value is tried for job placement first.
sourcepub fn compute_environment(&self) -> Option<&str>
pub fn compute_environment(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the compute environment.
source§impl ComputeEnvironmentOrder
impl ComputeEnvironmentOrder
sourcepub fn builder() -> ComputeEnvironmentOrderBuilder
pub fn builder() -> ComputeEnvironmentOrderBuilder
Creates a new builder-style object to manufacture ComputeEnvironmentOrder
.
Trait Implementations§
source§impl Clone for ComputeEnvironmentOrder
impl Clone for ComputeEnvironmentOrder
source§fn clone(&self) -> ComputeEnvironmentOrder
fn clone(&self) -> ComputeEnvironmentOrder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ComputeEnvironmentOrder
impl Debug for ComputeEnvironmentOrder
source§impl PartialEq for ComputeEnvironmentOrder
impl PartialEq for ComputeEnvironmentOrder
source§fn eq(&self, other: &ComputeEnvironmentOrder) -> bool
fn eq(&self, other: &ComputeEnvironmentOrder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ComputeEnvironmentOrder
Auto Trait Implementations§
impl Freeze for ComputeEnvironmentOrder
impl RefUnwindSafe for ComputeEnvironmentOrder
impl Send for ComputeEnvironmentOrder
impl Sync for ComputeEnvironmentOrder
impl Unpin for ComputeEnvironmentOrder
impl UnwindSafe for ComputeEnvironmentOrder
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