Class: AWSCDK::Batch::CfnJobDefinition::TmpfsProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(container_path:, size:, mount_options: nil) ⇒ TmpfsProperty

Returns a new instance of TmpfsProperty.

Parameters:

  • container_path (String)

    The absolute file path in the container where the tmpfs volume is mounted.

  • size (Numeric)

    The size (in MiB) of the tmpfs volume.

  • mount_options (Array<String>, nil) (defaults to: nil)

    The list of tmpfs volume mount options.



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 = mount_options
  Jsii::Type.check_type(@mount_options, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "mountOptions") unless @mount_options.nil?
end

Instance Attribute Details

#container_pathString (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_optionsArray<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
  @mount_options
end

#sizeNumeric (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_propertiesObject



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_jsiiObject



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