Class: AWSCDK::Lambda::CfnFunction::EphemeralStorageProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lambda::CfnFunction::EphemeralStorageProperty
- Defined in:
- lambda/cfn_function.rb
Overview
The size of the function's /tmp directory in MB.
The default value is 512, but it can be any whole number between 512 and 10,240 MB.
Instance Attribute Summary collapse
-
#size ⇒ Numeric
readonly
The size of the function's
/tmpdirectory.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(size:) ⇒ EphemeralStorageProperty
constructor
A new instance of EphemeralStorageProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(size:) ⇒ EphemeralStorageProperty
Returns a new instance of EphemeralStorageProperty.
1235 1236 1237 1238 |
# File 'lambda/cfn_function.rb', line 1235 def initialize(size:) @size = size Jsii::Type.check_type(@size, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "size") end |
Instance Attribute Details
#size ⇒ Numeric (readonly)
The size of the function's /tmp directory.
1244 1245 1246 |
# File 'lambda/cfn_function.rb', line 1244 def size @size end |
Class Method Details
.jsii_properties ⇒ Object
1246 1247 1248 1249 1250 |
# File 'lambda/cfn_function.rb', line 1246 def self.jsii_properties { :size => "size", } end |
Instance Method Details
#to_jsii ⇒ Object
1252 1253 1254 1255 1256 1257 1258 |
# File 'lambda/cfn_function.rb', line 1252 def to_jsii result = {} result.merge!({ "size" => @size, }) result.compact end |