Class: AWSCDK::Batch::EKSVolumeOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Batch::EKSVolumeOptions
- Defined in:
- batch/eks_volume_options.rb
Overview
Options to configure an EksVolume.
Direct Known Subclasses
EmptyDirVolumeOptions, HostPathVolumeOptions, SecretPathVolumeOptions
Instance Attribute Summary collapse
-
#mount_path ⇒ String?
readonly
The path on the container where the volume is mounted.
-
#name ⇒ String
readonly
The name of this volume.
-
#readonly ⇒ Boolean?
readonly
If specified, the container has readonly access to the volume.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, mount_path: nil, readonly: nil) ⇒ EKSVolumeOptions
constructor
A new instance of EKSVolumeOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, mount_path: nil, readonly: nil) ⇒ EKSVolumeOptions
Returns a new instance of EKSVolumeOptions.
10 11 12 13 14 15 16 17 |
# File 'batch/eks_volume_options.rb', line 10 def initialize(name:, mount_path: nil, readonly: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @mount_path = mount_path Jsii::Type.check_type(@mount_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "mountPath") unless @mount_path.nil? @readonly = readonly Jsii::Type.check_type(@readonly, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "readonly") unless @readonly.nil? end |
Instance Attribute Details
#mount_path ⇒ String? (readonly)
Note:
Default: - the volume is not mounted
The path on the container where the volume is mounted.
30 31 32 |
# File 'batch/eks_volume_options.rb', line 30 def mount_path @mount_path end |
#name ⇒ String (readonly)
The name of this volume.
The name must be a valid DNS subdomain name.
25 26 27 |
# File 'batch/eks_volume_options.rb', line 25 def name @name end |
#readonly ⇒ Boolean? (readonly)
Note:
Default: false
If specified, the container has readonly access to the volume.
Otherwise, the container has read/write access.
37 38 39 |
# File 'batch/eks_volume_options.rb', line 37 def readonly @readonly end |
Class Method Details
.jsii_properties ⇒ Object
39 40 41 42 43 44 45 |
# File 'batch/eks_volume_options.rb', line 39 def self.jsii_properties { :name => "name", :mount_path => "mountPath", :readonly => "readonly", } end |
Instance Method Details
#to_jsii ⇒ Object
47 48 49 50 51 52 53 54 55 |
# File 'batch/eks_volume_options.rb', line 47 def to_jsii result = {} result.merge!({ "name" => @name, "mountPath" => @mount_path, "readonly" => @readonly, }) result.compact end |