Struct aws_sdk_batch::types::RuntimePlatform
source · #[non_exhaustive]pub struct RuntimePlatform {
pub operating_system_family: Option<String>,
pub cpu_architecture: Option<String>,
}
Expand description
An object that represents the compute environment architecture for Batch jobs on Fargate.
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.operating_system_family: Option<String>
The operating system for the compute environment. Valid values are: LINUX
(default), WINDOWS_SERVER_2019_CORE
, WINDOWS_SERVER_2019_FULL
, WINDOWS_SERVER_2022_CORE
, and WINDOWS_SERVER_2022_FULL
.
The following parameters can’t be set for Windows containers: linuxParameters
, privileged
, user
, ulimits
, readonlyRootFilesystem
, and efsVolumeConfiguration
.
The Batch Scheduler checks the compute environments that are attached to the job queue before registering a task definition with Fargate. In this scenario, the job queue is where the job is submitted. If the job requires a Windows container and the first compute environment is LINUX
, the compute environment is skipped and the next compute environment is checked until a Windows-based compute environment is found.
Fargate Spot is not supported for ARM64
and Windows-based containers on Fargate. A job queue will be blocked if a Fargate ARM64
or Windows job is submitted to a job queue with only Fargate Spot compute environments. However, you can attach both FARGATE
and FARGATE_SPOT
compute environments to the same job queue.
cpu_architecture: Option<String>
The vCPU architecture. The default value is X86_64
. Valid values are X86_64
and ARM64
.
This parameter must be set to X86_64
for Windows containers.
Fargate Spot is not supported for ARM64
and Windows-based containers on Fargate. A job queue will be blocked if a Fargate ARM64
or Windows job is submitted to a job queue with only Fargate Spot compute environments. However, you can attach both FARGATE
and FARGATE_SPOT
compute environments to the same job queue.
Implementations§
source§impl RuntimePlatform
impl RuntimePlatform
sourcepub fn operating_system_family(&self) -> Option<&str>
pub fn operating_system_family(&self) -> Option<&str>
The operating system for the compute environment. Valid values are: LINUX
(default), WINDOWS_SERVER_2019_CORE
, WINDOWS_SERVER_2019_FULL
, WINDOWS_SERVER_2022_CORE
, and WINDOWS_SERVER_2022_FULL
.
The following parameters can’t be set for Windows containers: linuxParameters
, privileged
, user
, ulimits
, readonlyRootFilesystem
, and efsVolumeConfiguration
.
The Batch Scheduler checks the compute environments that are attached to the job queue before registering a task definition with Fargate. In this scenario, the job queue is where the job is submitted. If the job requires a Windows container and the first compute environment is LINUX
, the compute environment is skipped and the next compute environment is checked until a Windows-based compute environment is found.
Fargate Spot is not supported for ARM64
and Windows-based containers on Fargate. A job queue will be blocked if a Fargate ARM64
or Windows job is submitted to a job queue with only Fargate Spot compute environments. However, you can attach both FARGATE
and FARGATE_SPOT
compute environments to the same job queue.
sourcepub fn cpu_architecture(&self) -> Option<&str>
pub fn cpu_architecture(&self) -> Option<&str>
The vCPU architecture. The default value is X86_64
. Valid values are X86_64
and ARM64
.
This parameter must be set to X86_64
for Windows containers.
Fargate Spot is not supported for ARM64
and Windows-based containers on Fargate. A job queue will be blocked if a Fargate ARM64
or Windows job is submitted to a job queue with only Fargate Spot compute environments. However, you can attach both FARGATE
and FARGATE_SPOT
compute environments to the same job queue.
source§impl RuntimePlatform
impl RuntimePlatform
sourcepub fn builder() -> RuntimePlatformBuilder
pub fn builder() -> RuntimePlatformBuilder
Creates a new builder-style object to manufacture RuntimePlatform
.
Trait Implementations§
source§impl Clone for RuntimePlatform
impl Clone for RuntimePlatform
source§fn clone(&self) -> RuntimePlatform
fn clone(&self) -> RuntimePlatform
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RuntimePlatform
impl Debug for RuntimePlatform
source§impl PartialEq for RuntimePlatform
impl PartialEq for RuntimePlatform
source§fn eq(&self, other: &RuntimePlatform) -> bool
fn eq(&self, other: &RuntimePlatform) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RuntimePlatform
Auto Trait Implementations§
impl Freeze for RuntimePlatform
impl RefUnwindSafe for RuntimePlatform
impl Send for RuntimePlatform
impl Sync for RuntimePlatform
impl Unpin for RuntimePlatform
impl UnwindSafe for RuntimePlatform
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