Class: AWSCDK::Pipes::CfnPipe::ECSEphemeralStorageProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pipes/cfn_pipe.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 Fargate. For more information, see Fargate task storage in the Amazon ECS User Guide for Fargate .

This parameter is only supported for tasks hosted on Fargate using Linux platform version 1.4.0 or later. This parameter is not supported for Windows containers on Fargate.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(size_in_gib:) ⇒ ECSEphemeralStorageProperty

Returns a new instance of ECSEphemeralStorageProperty.

Parameters:

  • size_in_gib (Numeric)

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



1509
1510
1511
1512
# File 'pipes/cfn_pipe.rb', line 1509

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_gibNumeric (readonly)

Note:

Default: - 0

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.



1521
1522
1523
# File 'pipes/cfn_pipe.rb', line 1521

def size_in_gib
  @size_in_gib
end

Class Method Details

.jsii_propertiesObject



1523
1524
1525
1526
1527
# File 'pipes/cfn_pipe.rb', line 1523

def self.jsii_properties
  {
    :size_in_gib => "sizeInGiB",
  }
end

Instance Method Details

#to_jsiiObject



1529
1530
1531
1532
1533
1534
1535
# File 'pipes/cfn_pipe.rb', line 1529

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