Class: AWSCDK::Batch::EmptyDirVolume

Inherits:
EKSVolume
  • Object
show all
Defined in:
batch/empty_dir_volume.rb

Overview

A Kubernetes EmptyDir volume.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ EmptyDirVolume

Returns a new instance of EmptyDirVolume.

Parameters:



11
12
13
14
15
# File 'batch/empty_dir_volume.rb', line 11

def initialize(options)
  options = options.is_a?(Hash) ? ::AWSCDK::Batch::EmptyDirVolumeOptions.new(**options.transform_keys(&:to_sym)) : options
  Jsii::Type.check_type(options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmF0Y2guRW1wdHlEaXJWb2x1bWVPcHRpb25zIn0=")), "options")
  Jsii::Object.instance_method(:initialize).bind(self).call(options)
end

Class Method Details

.is_empty_dir_volume(x) ⇒ Boolean

Returns true if x is an EmptyDirVolume, false otherwise.

Parameters:

  • x (Object)

Returns:

  • (Boolean)


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_methodsObject



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_pathString?

Note:

Default: - the container is not mounted

The path on the container where the container is mounted.

Returns:

  • (String, nil)


50
51
52
# File 'batch/empty_dir_volume.rb', line 50

def container_path()
  jsii_get_property("containerPath")
end

#mediumAWSCDK::Batch::EmptyDirMediumType?

Note:

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

#nameString

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

#readonlyBoolean?

Note:

Default: false

If specified, the container has readonly access to the volume.

Otherwise, the container has read/write access.

Returns:

  • (Boolean, nil)


60
61
62
# File 'batch/empty_dir_volume.rb', line 60

def readonly()
  jsii_get_property("readonly")
end

#size_limitAWSCDK::Size?

Note:

Default: - no size limit

The maximum size for this Volume.

Returns:



76
77
78
# File 'batch/empty_dir_volume.rb', line 76

def size_limit()
  jsii_get_property("sizeLimit")
end