Class: AWSCDK::Batch::Tmpfs
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Batch::Tmpfs
- Defined in:
- batch/tmpfs.rb
Overview
The details of a tmpfs mount for a container.
Instance Attribute Summary collapse
-
#container_path ⇒ String
readonly
The absolute file path where the tmpfs volume is to be mounted.
-
#mount_options ⇒ Array<AWSCDK::Batch::TmpfsMountOption>?
readonly
The list of tmpfs volume mount options.
-
#size ⇒ AWSCDK::Size
readonly
The size (in MiB) of the tmpfs volume.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(container_path:, size:, mount_options: nil) ⇒ Tmpfs
constructor
A new instance of Tmpfs.
- #to_jsii ⇒ Object
Constructor Details
#initialize(container_path:, size:, mount_options: nil) ⇒ Tmpfs
Returns a new instance of Tmpfs.
10 11 12 13 14 15 16 17 |
# File 'batch/tmpfs.rb', line 10 def initialize(container_path:, size:, mount_options: nil) @container_path = container_path Jsii::Type.check_type(@container_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "containerPath") @size = size Jsii::Type.check_type(@size, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5TaXplIn0=")), "size") @mount_options = Jsii::Type.check_type(@mount_options, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iYXRjaC5UbXBmc01vdW50T3B0aW9uIn0sImtpbmQiOiJhcnJheSJ9fQ==")), "mountOptions") unless @mount_options.nil? end |
Instance Attribute Details
#container_path ⇒ String (readonly)
The absolute file path where the tmpfs volume is to be mounted.
22 23 24 |
# File 'batch/tmpfs.rb', line 22 def container_path @container_path end |
#mount_options ⇒ Array<AWSCDK::Batch::TmpfsMountOption>? (readonly)
Note:
Default: none
The list of tmpfs volume mount options.
For more information, see TmpfsMountOptions.
34 35 36 |
# File 'batch/tmpfs.rb', line 34 def @mount_options end |
#size ⇒ AWSCDK::Size (readonly)
The size (in MiB) of the tmpfs volume.
26 27 28 |
# File 'batch/tmpfs.rb', line 26 def size @size end |
Class Method Details
.jsii_properties ⇒ Object
36 37 38 39 40 41 42 |
# File 'batch/tmpfs.rb', line 36 def self.jsii_properties { :container_path => "containerPath", :size => "size", :mount_options => "mountOptions", } end |
Instance Method Details
#to_jsii ⇒ Object
44 45 46 47 48 49 50 51 52 |
# File 'batch/tmpfs.rb', line 44 def to_jsii result = {} result.merge!({ "containerPath" => @container_path, "size" => @size, "mountOptions" => @mount_options, }) result.compact end |