Class: AWSCDK::Batch::CfnJobDefinition::RuntimePlatformProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Batch::CfnJobDefinition::RuntimePlatformProperty
- Defined in:
- batch/cfn_job_definition.rb
Overview
An object that represents the compute environment architecture for AWS Batch jobs on Fargate.
Instance Attribute Summary collapse
-
#cpu_architecture ⇒ String?
readonly
The vCPU architecture.
-
#operating_system_family ⇒ String?
readonly
The operating system for the compute environment.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cpu_architecture: nil, operating_system_family: nil) ⇒ RuntimePlatformProperty
constructor
A new instance of RuntimePlatformProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cpu_architecture: nil, operating_system_family: nil) ⇒ RuntimePlatformProperty
Returns a new instance of RuntimePlatformProperty.
3298 3299 3300 3301 3302 3303 |
# File 'batch/cfn_job_definition.rb', line 3298 def initialize(cpu_architecture: nil, operating_system_family: nil) @cpu_architecture = cpu_architecture Jsii::Type.check_type(@cpu_architecture, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cpuArchitecture") unless @cpu_architecture.nil? @operating_system_family = Jsii::Type.check_type(@operating_system_family, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "operatingSystemFamily") unless @operating_system_family.nil? end |
Instance Attribute Details
#cpu_architecture ⇒ String? (readonly)
The vCPU architecture. The default value is X86_64 . Valid values are X86_64 and ARM64 .
This parameter must be set to
X86_64for Windows containers. > Fargate Spot is not supported on Windows-based containers on Fargate. A job queue will be blocked if a Windows job is submitted to a job queue with only Fargate Spot compute environments. However, you can attach bothFARGATEandFARGATE_SPOTcompute environments to the same job queue.
3311 3312 3313 |
# File 'batch/cfn_job_definition.rb', line 3311 def cpu_architecture @cpu_architecture end |
#operating_system_family ⇒ String? (readonly)
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:
linux_parameters,privileged,user,ulimits,readonly_root_filesystem, andefs_volume_configuration. > The AWS 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 isLINUX, 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 on Windows-based containers on Fargate. A job queue will be blocked if a Windows job is submitted to a job queue with only Fargate Spot compute environments. However, you can attach bothFARGATEandFARGATE_SPOTcompute environments to the same job queue.
3320 3321 3322 |
# File 'batch/cfn_job_definition.rb', line 3320 def @operating_system_family end |
Class Method Details
.jsii_properties ⇒ Object
3322 3323 3324 3325 3326 3327 |
# File 'batch/cfn_job_definition.rb', line 3322 def self.jsii_properties { :cpu_architecture => "cpuArchitecture", :operating_system_family => "operatingSystemFamily", } end |
Instance Method Details
#to_jsii ⇒ Object
3329 3330 3331 3332 3333 3334 3335 3336 |
# File 'batch/cfn_job_definition.rb', line 3329 def to_jsii result = {} result.merge!({ "cpuArchitecture" => @cpu_architecture, "operatingSystemFamily" => @operating_system_family, }) result.compact end |