Class: AWSCDK::EventsTargets::EphemeralStorageOverride

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
events_targets/ephemeral_storage_override.rb

Overview

Override ephemeral storage for the task.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(size_in_gib:) ⇒ EphemeralStorageOverride

Returns a new instance of EphemeralStorageOverride.

Parameters:

  • size_in_gib (Numeric)

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



8
9
10
11
# File 'events_targets/ephemeral_storage_override.rb', line 8

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 20 GiB and the maximum supported value is 200 GiB.

Returns:

  • (Numeric)


18
19
20
# File 'events_targets/ephemeral_storage_override.rb', line 18

def size_in_gib
  @size_in_gib
end

Class Method Details

.jsii_propertiesObject



20
21
22
23
24
# File 'events_targets/ephemeral_storage_override.rb', line 20

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

Instance Method Details

#to_jsiiObject



26
27
28
29
30
31
32
# File 'events_targets/ephemeral_storage_override.rb', line 26

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