Class: AWSCDK::Batch::CfnJobDefinition::FargatePlatformConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Batch::CfnJobDefinition::FargatePlatformConfigurationProperty
- 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
-
#platform_version ⇒ String?
readonly
The AWS Fargate platform version where the jobs are running.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(platform_version: nil) ⇒ FargatePlatformConfigurationProperty
constructor
A new instance of FargatePlatformConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(platform_version: nil) ⇒ FargatePlatformConfigurationProperty
Returns a new instance of FargatePlatformConfigurationProperty.
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_version ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |