Class: AWSCDK::ECS::CfnDaemonTaskDefinition::TmpfsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::CfnDaemonTaskDefinition::TmpfsProperty
- Defined in:
- ecs/cfn_daemon_task_definition.rb
Overview
The container path, mount options, and size of the tmpfs mount.
Instance Attribute Summary collapse
-
#container_path ⇒ String?
readonly
The absolute file path where the tmpfs volume is to be mounted.
-
#mount_options ⇒ Array<String>?
readonly
The list of tmpfs volume mount options.
-
#size ⇒ Numeric
readonly
The maximum size (in MiB) of the tmpfs volume.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(size:, container_path: nil, mount_options: nil) ⇒ TmpfsProperty
constructor
A new instance of TmpfsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(size:, container_path: nil, mount_options: nil) ⇒ TmpfsProperty
Returns a new instance of TmpfsProperty.
1960 1961 1962 1963 1964 1965 1966 1967 |
# File 'ecs/cfn_daemon_task_definition.rb', line 1960 def initialize(size:, container_path: nil, mount_options: nil) @size = size Jsii::Type.check_type(@size, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "size") @container_path = container_path Jsii::Type.check_type(@container_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "containerPath") unless @container_path.nil? @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 where the tmpfs volume is to be mounted.
1978 1979 1980 |
# File 'ecs/cfn_daemon_task_definition.rb', line 1978 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"
1985 1986 1987 |
# File 'ecs/cfn_daemon_task_definition.rb', line 1985 def @mount_options end |
#size ⇒ Numeric (readonly)
The maximum size (in MiB) of the tmpfs volume.
1973 1974 1975 |
# File 'ecs/cfn_daemon_task_definition.rb', line 1973 def size @size end |
Class Method Details
.jsii_properties ⇒ Object
1987 1988 1989 1990 1991 1992 1993 |
# File 'ecs/cfn_daemon_task_definition.rb', line 1987 def self.jsii_properties { :size => "size", :container_path => "containerPath", :mount_options => "mountOptions", } end |
Instance Method Details
#to_jsii ⇒ Object
1995 1996 1997 1998 1999 2000 2001 2002 2003 |
# File 'ecs/cfn_daemon_task_definition.rb', line 1995 def to_jsii result = {} result.merge!({ "size" => @size, "containerPath" => @container_path, "mountOptions" => @mount_options, }) result.compact end |