Class: AWSCDK::ECS::CfnTaskDefinition::EphemeralStorageProperty

Inherits:
Jsii::Struct
  • Object
show all
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.0 or later.
  • Windows platform version 1.0.0 or later.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(size_in_gib: nil) ⇒ EphemeralStorageProperty

Returns a new instance of EphemeralStorageProperty.

Parameters:

  • size_in_gib (Numeric, nil) (defaults to: nil)

    The total amount, in GiB, of ephemeral storage to set for the task.



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_gibNumeric? (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_propertiesObject



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_jsiiObject



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