Class: AWSCDK::Batch::CfnJobDefinition::FargatePlatformConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
batch/cfn_job_definition.rb

Overview

The platform configuration for jobs that are running on Fargate resources.

Jobs that run on Amazon EC2 resources must not specify this parameter.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(platform_version: nil) ⇒ FargatePlatformConfigurationProperty

Returns a new instance of FargatePlatformConfigurationProperty.

Parameters:

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

    The AWS Fargate platform version where the jobs are running.



2115
2116
2117
2118
# File 'batch/cfn_job_definition.rb', line 2115

def initialize(platform_version: nil)
  @platform_version = platform_version
  Jsii::Type.check_type(@platform_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "platformVersion") unless @platform_version.nil?
end

Instance Attribute Details

#platform_versionString? (readonly)

The AWS Fargate platform version where the jobs are running.

A platform version is specified only for jobs that are running on Fargate resources. If one isn't specified, the LATEST platform version is used by default. This uses a recent, approved version of the AWS Fargate platform for compute resources. For more information, see AWS Fargate platform versions in the Amazon Elastic Container Service Developer Guide .



2126
2127
2128
# File 'batch/cfn_job_definition.rb', line 2126

def platform_version
  @platform_version
end

Class Method Details

.jsii_propertiesObject



2128
2129
2130
2131
2132
# File 'batch/cfn_job_definition.rb', line 2128

def self.jsii_properties
  {
    :platform_version => "platformVersion",
  }
end

Instance Method Details

#to_jsiiObject



2134
2135
2136
2137
2138
2139
2140
# File 'batch/cfn_job_definition.rb', line 2134

def to_jsii
  result = {}
  result.merge!({
    "platformVersion" => @platform_version,
  })
  result.compact
end