Class: AWSCDK::Batch::CfnJobDefinition::EKSPersistentVolumeClaimProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
batch/cfn_job_definition.rb

Overview

A persistentVolumeClaim volume is used to mount a PersistentVolume into a Pod. PersistentVolumeClaims are a way for users to "claim" durable storage without knowing the details of the particular cloud environment. See the information about PersistentVolumes in the Kubernetes documentation .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(claim_name:, read_only: nil) ⇒ EKSPersistentVolumeClaimProperty

Returns a new instance of EKSPersistentVolumeClaimProperty.

Parameters:

  • claim_name (String)

    The name of the persistentVolumeClaim bounded to a persistentVolume .

  • read_only (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    An optional boolean value indicating if the mount is read only.



1712
1713
1714
1715
1716
1717
# File 'batch/cfn_job_definition.rb', line 1712

def initialize(claim_name:, read_only: nil)
  @claim_name = claim_name
  Jsii::Type.check_type(@claim_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "claimName")
  @read_only = read_only
  Jsii::Type.check_type(@read_only, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "readOnly") unless @read_only.nil?
end

Instance Attribute Details

#claim_nameString (readonly)

The name of the persistentVolumeClaim bounded to a persistentVolume .

For more information, see Persistent Volume Claims in the Kubernetes documentation .



1725
1726
1727
# File 'batch/cfn_job_definition.rb', line 1725

def claim_name
  @claim_name
end

#read_onlyBoolean, ... (readonly)

An optional boolean value indicating if the mount is read only.

Default is false. For more information, see Read Only Mounts in the Kubernetes documentation .



1732
1733
1734
# File 'batch/cfn_job_definition.rb', line 1732

def read_only
  @read_only
end

Class Method Details

.jsii_propertiesObject



1734
1735
1736
1737
1738
1739
# File 'batch/cfn_job_definition.rb', line 1734

def self.jsii_properties
  {
    :claim_name => "claimName",
    :read_only => "readOnly",
  }
end

Instance Method Details

#to_jsiiObject



1741
1742
1743
1744
1745
1746
1747
1748
# File 'batch/cfn_job_definition.rb', line 1741

def to_jsii
  result = {}
  result.merge!({
    "claimName" => @claim_name,
    "readOnly" => @read_only,
  })
  result.compact
end