Class: AWSCDK::Batch::CfnJobDefinition::EphemeralStorageProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Batch::CfnJobDefinition::EphemeralStorageProperty
- Defined in:
- batch/cfn_job_definition.rb
Overview
The amount of ephemeral storage to allocate for the task.
This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on AWS Fargate .
Instance Attribute Summary collapse
-
#size_in_gib ⇒ Numeric
readonly
The total amount, in GiB, of ephemeral storage to set for the task.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(size_in_gib:) ⇒ EphemeralStorageProperty
constructor
A new instance of EphemeralStorageProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(size_in_gib:) ⇒ EphemeralStorageProperty
Returns a new instance of EphemeralStorageProperty.
2003 2004 2005 2006 |
# File 'batch/cfn_job_definition.rb', line 2003 def initialize(size_in_gib:) @size_in_gib = size_in_gib Jsii::Type.check_type(@size_in_gib, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "sizeInGiB") end |
Instance Attribute Details
#size_in_gib ⇒ Numeric (readonly)
The total amount, in GiB, of ephemeral storage to set for the task.
The minimum supported value is 21 GiB and the maximum supported value is 200 GiB.
2014 2015 2016 |
# File 'batch/cfn_job_definition.rb', line 2014 def size_in_gib @size_in_gib end |
Class Method Details
.jsii_properties ⇒ Object
2016 2017 2018 2019 2020 |
# File 'batch/cfn_job_definition.rb', line 2016 def self.jsii_properties { :size_in_gib => "sizeInGiB", } end |
Instance Method Details
#to_jsii ⇒ Object
2022 2023 2024 2025 2026 2027 2028 |
# File 'batch/cfn_job_definition.rb', line 2022 def to_jsii result = {} result.merge!({ "sizeInGiB" => @size_in_gib, }) result.compact end |