Class: AWSCDK::Batch::CfnJobDefinition::EphemeralStorageProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(size_in_gib:) ⇒ EphemeralStorageProperty

Returns a new instance of EphemeralStorageProperty.

Parameters:

  • size_in_gib (Numeric)

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



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_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.



2014
2015
2016
# File 'batch/cfn_job_definition.rb', line 2014

def size_in_gib
  @size_in_gib
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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