Class: AWSCDK::ECS::RuntimePlatform
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::RuntimePlatform
- Defined in:
- ecs/runtime_platform.rb
Overview
The interface for Runtime Platform.
Instance Attribute Summary collapse
-
#cpu_architecture ⇒ AWSCDK::ECS::CpuArchitecture?
readonly
The CpuArchitecture for Fargate Runtime Platform.
-
#operating_system_family ⇒ AWSCDK::ECS::OperatingSystemFamily?
readonly
The operating system for Fargate Runtime Platform.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cpu_architecture: nil, operating_system_family: nil) ⇒ RuntimePlatform
constructor
A new instance of RuntimePlatform.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cpu_architecture: nil, operating_system_family: nil) ⇒ RuntimePlatform
Returns a new instance of RuntimePlatform.
9 10 11 12 13 14 |
# File 'ecs/runtime_platform.rb', line 9 def initialize(cpu_architecture: nil, operating_system_family: nil) @cpu_architecture = cpu_architecture Jsii::Type.check_type(@cpu_architecture, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNzLkNwdUFyY2hpdGVjdHVyZSJ9")), "cpuArchitecture") unless @cpu_architecture.nil? @operating_system_family = Jsii::Type.check_type(@operating_system_family, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNzLk9wZXJhdGluZ1N5c3RlbUZhbWlseSJ9")), "operatingSystemFamily") unless @operating_system_family.nil? end |
Instance Attribute Details
#cpu_architecture ⇒ AWSCDK::ECS::CpuArchitecture? (readonly)
Note:
Default: - Undefined.
The CpuArchitecture for Fargate Runtime Platform.
20 21 22 |
# File 'ecs/runtime_platform.rb', line 20 def cpu_architecture @cpu_architecture end |
#operating_system_family ⇒ AWSCDK::ECS::OperatingSystemFamily? (readonly)
Note:
Default: - Undefined.
The operating system for Fargate Runtime Platform.
25 26 27 |
# File 'ecs/runtime_platform.rb', line 25 def @operating_system_family end |
Class Method Details
.jsii_properties ⇒ Object
27 28 29 30 31 32 |
# File 'ecs/runtime_platform.rb', line 27 def self.jsii_properties { :cpu_architecture => "cpuArchitecture", :operating_system_family => "operatingSystemFamily", } end |
Instance Method Details
#to_jsii ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'ecs/runtime_platform.rb', line 34 def to_jsii result = {} result.merge!({ "cpuArchitecture" => @cpu_architecture, "operatingSystemFamily" => @operating_system_family, }) result.compact end |