Class: AWSCDK::Batch::ECSVolumeOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Batch::ECSVolumeOptions
- Defined in:
- batch/ecs_volume_options.rb
Overview
Options to configure an EcsVolume.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#container_path ⇒ String
readonly
the path on the container where this volume is mounted.
-
#name ⇒ String
readonly
the name of this volume.
-
#readonly ⇒ Boolean?
readonly
if set, the container will have readonly access to the volume.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(container_path:, name:, readonly: nil) ⇒ ECSVolumeOptions
constructor
A new instance of ECSVolumeOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(container_path:, name:, readonly: nil) ⇒ ECSVolumeOptions
Returns a new instance of ECSVolumeOptions.
10 11 12 13 14 15 16 17 |
# File 'batch/ecs_volume_options.rb', line 10 def initialize(container_path:, name:, readonly: nil) @container_path = container_path Jsii::Type.check_type(@container_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "containerPath") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @readonly = readonly Jsii::Type.check_type(@readonly, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "readonly") unless @readonly.nil? end |
Instance Attribute Details
#container_path ⇒ String (readonly)
the path on the container where this volume is mounted.
22 23 24 |
# File 'batch/ecs_volume_options.rb', line 22 def container_path @container_path end |
#name ⇒ String (readonly)
the name of this volume.
26 27 28 |
# File 'batch/ecs_volume_options.rb', line 26 def name @name end |
#readonly ⇒ Boolean? (readonly)
Note:
Default: false
if set, the container will have readonly access to the volume.
31 32 33 |
# File 'batch/ecs_volume_options.rb', line 31 def readonly @readonly end |
Class Method Details
.jsii_properties ⇒ Object
33 34 35 36 37 38 39 |
# File 'batch/ecs_volume_options.rb', line 33 def self.jsii_properties { :container_path => "containerPath", :name => "name", :readonly => "readonly", } end |
Instance Method Details
#to_jsii ⇒ Object
41 42 43 44 45 46 47 48 49 |
# File 'batch/ecs_volume_options.rb', line 41 def to_jsii result = {} result.merge!({ "containerPath" => @container_path, "name" => @name, "readonly" => @readonly, }) result.compact end |