Class: AWSCDK::ECS::CfnTaskDefinition::RuntimePlatformProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::CfnTaskDefinition::RuntimePlatformProperty
- Defined in:
- ecs/cfn_task_definition.rb
Overview
Information about the platform for the Amazon ECS service or task.
For more information about RuntimePlatform , see RuntimePlatform in the Amazon Elastic Container Service Developer Guide .
Instance Attribute Summary collapse
-
#cpu_architecture ⇒ String?
readonly
The CPU architecture.
-
#operating_system_family ⇒ String?
readonly
The operating system.
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.
3028 3029 3030 3031 3032 3033 |
# File 'ecs/cfn_task_definition.rb', line 3028 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 CPU architecture.
You can run your Linux tasks on an ARM-based platform by setting the value to ARM64 . This option is available for tasks that run on Linux Amazon EC2 instance, Amazon ECS Managed Instances, or Linux containers on Fargate.
3041 3042 3043 |
# File 'ecs/cfn_task_definition.rb', line 3041 def cpu_architecture @cpu_architecture end |
#operating_system_family ⇒ String? (readonly)
The operating system.
3046 3047 3048 |
# File 'ecs/cfn_task_definition.rb', line 3046 def @operating_system_family end |
Class Method Details
.jsii_properties ⇒ Object
3048 3049 3050 3051 3052 3053 |
# File 'ecs/cfn_task_definition.rb', line 3048 def self.jsii_properties { :cpu_architecture => "cpuArchitecture", :operating_system_family => "operatingSystemFamily", } end |
Instance Method Details
#to_jsii ⇒ Object
3055 3056 3057 3058 3059 3060 3061 3062 |
# File 'ecs/cfn_task_definition.rb', line 3055 def to_jsii result = {} result.merge!({ "cpuArchitecture" => @cpu_architecture, "operatingSystemFamily" => @operating_system_family, }) result.compact end |