Struct aws_sdk_batch::model::ComputeEnvironmentOrder [−][src]
#[non_exhaustive]pub struct ComputeEnvironmentOrder {
pub order: i32,
pub compute_environment: Option<String>,
}
Expand description
The order in which compute environments are tried 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
);
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: 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
Creates a new builder-style object to manufacture ComputeEnvironmentOrder
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ComputeEnvironmentOrder
impl Send for ComputeEnvironmentOrder
impl Sync for ComputeEnvironmentOrder
impl Unpin for ComputeEnvironmentOrder
impl UnwindSafe for ComputeEnvironmentOrder
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more