Class: AWSCDK::Batch::CfnJobDefinition::TmpfsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Batch::CfnJobDefinition::TmpfsProperty
- Defined in:
- batch/cfn_job_definition.rb
Overview
The container path, mount options, and size of the tmpfs mount.
This object isn't applicable to jobs that are running on Fargate resources.
Instance Attribute Summary collapse
-
#container_path ⇒ String
readonly
The absolute file path in the container where the
tmpfsvolume is mounted. -
#mount_options ⇒ Array<String>?
readonly
The list of
tmpfsvolume mount options. -
#size ⇒ Numeric
readonly
The size (in MiB) of the
tmpfsvolume.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(container_path:, size:, mount_options: nil) ⇒ TmpfsProperty
constructor
A new instance of TmpfsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(container_path:, size:, mount_options: nil) ⇒ TmpfsProperty
Returns a new instance of TmpfsProperty.
3880 3881 3882 3883 3884 3885 3886 3887 |
# File 'batch/cfn_job_definition.rb', line 3880 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("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "size") @mount_options = Jsii::Type.check_type(@mount_options, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "mountOptions") unless @mount_options.nil? end |
Instance Attribute Details
#container_path ⇒ String (readonly)
The absolute file path in the container where the tmpfs volume is mounted.
3893 3894 3895 |
# File 'batch/cfn_job_definition.rb', line 3893 def container_path @container_path end |
#mount_options ⇒ Array<String>? (readonly)
The list of tmpfs volume mount options.
Valid values: " defaults " | " ro " | " rw " | " suid " | " nosuid " | " dev " | " nodev " | " exec " | " noexec " | " sync " | " async " | " dirsync " | " remount " | " mand " | " nomand " | " atime " | " noatime " | " diratime " | " nodiratime " | " bind " | " rbind" | "unbindable" | "runbindable" | "private" | "rprivate" | "shared" | "rshared" | "slave" | "rslave" | "relatime " | " norelatime " | " strictatime " | " nostrictatime " | " mode " | " uid " | " gid " | " nr_inodes " | " nr_blocks " | " mpol "
3905 3906 3907 |
# File 'batch/cfn_job_definition.rb', line 3905 def @mount_options end |
#size ⇒ Numeric (readonly)
The size (in MiB) of the tmpfs volume.
3898 3899 3900 |
# File 'batch/cfn_job_definition.rb', line 3898 def size @size end |
Class Method Details
.jsii_properties ⇒ Object
3907 3908 3909 3910 3911 3912 3913 |
# File 'batch/cfn_job_definition.rb', line 3907 def self.jsii_properties { :container_path => "containerPath", :size => "size", :mount_options => "mountOptions", } end |
Instance Method Details
#to_jsii ⇒ Object
3915 3916 3917 3918 3919 3920 3921 3922 3923 |
# File 'batch/cfn_job_definition.rb', line 3915 def to_jsii result = {} result.merge!({ "containerPath" => @container_path, "size" => @size, "mountOptions" => @mount_options, }) result.compact end |