Class: AWSCDK::ECS::CfnTaskDefinition::RuntimePlatformProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cpu_architecture: nil, operating_system_family: nil) ⇒ RuntimePlatformProperty

Returns a new instance of RuntimePlatformProperty.

Parameters:

  • cpu_architecture (String, nil) (defaults to: nil)

    The CPU architecture.

  • operating_system_family (String, nil) (defaults to: nil)

    The operating system.



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 = 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_architectureString? (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_familyString? (readonly)

The operating system.



3046
3047
3048
# File 'ecs/cfn_task_definition.rb', line 3046

def operating_system_family
  @operating_system_family
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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