Class: AWSCDK::ECS::CfnTaskDefinition::EphemeralStorageProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::CfnTaskDefinition::EphemeralStorageProperty
- Defined in:
- ecs/cfn_task_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 . For more information, see Using data volumes in tasks in the Amazon ECS Developer Guide; .
For tasks using the Fargate launch type, the task requires the following platforms:
- Linux platform version
1.4.0or later.- Windows platform version
1.0.0or later.
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: nil) ⇒ EphemeralStorageProperty
constructor
A new instance of EphemeralStorageProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(size_in_gib: nil) ⇒ EphemeralStorageProperty
Returns a new instance of EphemeralStorageProperty.
1815 1816 1817 1818 |
# File 'ecs/cfn_task_definition.rb', line 1815 def initialize(size_in_gib: nil) @size_in_gib = size_in_gib Jsii::Type.check_type(@size_in_gib, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "sizeInGiB") unless @size_in_gib.nil? 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.
1826 1827 1828 |
# File 'ecs/cfn_task_definition.rb', line 1826 def size_in_gib @size_in_gib end |
Class Method Details
.jsii_properties ⇒ Object
1828 1829 1830 1831 1832 |
# File 'ecs/cfn_task_definition.rb', line 1828 def self.jsii_properties { :size_in_gib => "sizeInGiB", } end |
Instance Method Details
#to_jsii ⇒ Object
1834 1835 1836 1837 1838 1839 1840 |
# File 'ecs/cfn_task_definition.rb', line 1834 def to_jsii result = {} result.merge!({ "sizeInGiB" => @size_in_gib, }) result.compact end |