Class: AWSCDK::ECS::CfnTaskDefinition::TmpfsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::CfnTaskDefinition::TmpfsProperty
- Defined in:
- ecs/cfn_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.
3317 3318 3319 3320 3321 3322 3323 3324 |
# File 'ecs/cfn_task_definition.rb', line 3317 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.
3335 3336 3337 |
# File 'ecs/cfn_task_definition.rb', line 3335 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"
3342 3343 3344 |
# File 'ecs/cfn_task_definition.rb', line 3342 def @mount_options end |
#size ⇒ Numeric (readonly)
The maximum size (in MiB) of the tmpfs volume.
3330 3331 3332 |
# File 'ecs/cfn_task_definition.rb', line 3330 def size @size end |
Class Method Details
.jsii_properties ⇒ Object
3344 3345 3346 3347 3348 3349 3350 |
# File 'ecs/cfn_task_definition.rb', line 3344 def self.jsii_properties { :size => "size", :container_path => "containerPath", :mount_options => "mountOptions", } end |
Instance Method Details
#to_jsii ⇒ Object
3352 3353 3354 3355 3356 3357 3358 3359 3360 |
# File 'ecs/cfn_task_definition.rb', line 3352 def to_jsii result = {} result.merge!({ "size" => @size, "containerPath" => @container_path, "mountOptions" => @mount_options, }) result.compact end |