Class: AWSCDK::Batch::EmptyDirVolume
- Inherits:
-
EKSVolume
- Object
- EKSVolume
- AWSCDK::Batch::EmptyDirVolume
- Defined in:
- batch/empty_dir_volume.rb
Overview
A Kubernetes EmptyDir volume.
Class Method Summary collapse
-
.is_empty_dir_volume(x) ⇒ Boolean
Returns
trueifxis an EmptyDirVolume,falseotherwise. - .jsii_overridable_methods ⇒ Object
Instance Method Summary collapse
-
#container_path ⇒ String?
The path on the container where the container is mounted.
-
#initialize(options) ⇒ EmptyDirVolume
constructor
A new instance of EmptyDirVolume.
-
#medium ⇒ AWSCDK::Batch::EmptyDirMediumType?
The storage type to use for this Volume.
-
#name ⇒ String
The name of this volume.
-
#readonly ⇒ Boolean?
If specified, the container has readonly access to the volume.
-
#size_limit ⇒ AWSCDK::Size?
The maximum size for this Volume.
Constructor Details
#initialize(options) ⇒ EmptyDirVolume
Returns a new instance of EmptyDirVolume.
11 12 13 14 15 |
# File 'batch/empty_dir_volume.rb', line 11 def initialize() = .is_a?(Hash) ? ::AWSCDK::Batch::EmptyDirVolumeOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmF0Y2guRW1wdHlEaXJWb2x1bWVPcHRpb25zIn0=")), "options") Jsii::Object.instance_method(:initialize).bind(self).call() end |
Class Method Details
.is_empty_dir_volume(x) ⇒ Boolean
Returns true if x is an EmptyDirVolume, false otherwise.
31 32 33 34 |
# File 'batch/empty_dir_volume.rb', line 31 def self.is_empty_dir_volume(x) Jsii::Type.check_type(x, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "x") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_batch.EmptyDirVolume", "isEmptyDirVolume", [x]) end |
.jsii_overridable_methods ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'batch/empty_dir_volume.rb', line 17 def self.jsii_overridable_methods { :name => { kind: :property, name: "name", is_optional: false }, :container_path => { kind: :property, name: "containerPath", is_optional: true }, :readonly => { kind: :property, name: "readonly", is_optional: true }, :medium => { kind: :property, name: "medium", is_optional: true }, :size_limit => { kind: :property, name: "sizeLimit", is_optional: true }, } end |
Instance Method Details
#container_path ⇒ String?
Default: - the container is not mounted
The path on the container where the container is mounted.
50 51 52 |
# File 'batch/empty_dir_volume.rb', line 50 def container_path() jsii_get_property("containerPath") end |
#medium ⇒ AWSCDK::Batch::EmptyDirMediumType?
Default: EmptyDirMediumType.DISK
The storage type to use for this Volume.
68 69 70 |
# File 'batch/empty_dir_volume.rb', line 68 def medium() jsii_get_property("medium") end |
#name ⇒ String
The name of this volume.
The name must be a valid DNS subdomain name.
42 43 44 |
# File 'batch/empty_dir_volume.rb', line 42 def name() jsii_get_property("name") end |
#readonly ⇒ Boolean?
Default: false
If specified, the container has readonly access to the volume.
Otherwise, the container has read/write access.
60 61 62 |
# File 'batch/empty_dir_volume.rb', line 60 def readonly() jsii_get_property("readonly") end |
#size_limit ⇒ AWSCDK::Size?
Default: - no size limit
The maximum size for this Volume.
76 77 78 |
# File 'batch/empty_dir_volume.rb', line 76 def size_limit() jsii_get_property("sizeLimit") end |