Class: CDK8sPlus25::EnvValueFromFieldRefOptions

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
env_value_from_field_ref_options.rb

Overview

Options to specify an environment variable value from a field reference.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_version: nil, key: nil) ⇒ EnvValueFromFieldRefOptions

Returns a new instance of EnvValueFromFieldRefOptions.

Parameters:

  • api_version (String, nil) (defaults to: nil)

    Version of the schema the FieldPath is written in terms of.

  • key (String, nil) (defaults to: nil)

    The key to select the pod label or annotation.



9
10
11
12
13
14
# File 'env_value_from_field_ref_options.rb', line 9

def initialize(api_version: nil, key: nil)
  @api_version = api_version
  Jsii::Type.check_type(@api_version, "eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==", "apiVersion") unless @api_version.nil?
  @key = key
  Jsii::Type.check_type(@key, "eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==", "key") unless @key.nil?
end

Instance Attribute Details

#api_versionString? (readonly)

Version of the schema the FieldPath is written in terms of.

Returns:

  • (String, nil)


19
20
21
# File 'env_value_from_field_ref_options.rb', line 19

def api_version
  @api_version
end

#keyString? (readonly)

The key to select the pod label or annotation.

Returns:

  • (String, nil)


23
24
25
# File 'env_value_from_field_ref_options.rb', line 23

def key
  @key
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'env_value_from_field_ref_options.rb', line 25

def self.jsii_properties
  {
    :api_version => "apiVersion",
    :key => "key",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'env_value_from_field_ref_options.rb', line 32

def to_jsii
  result = {}
  result.merge!({
    "apiVersion" => @api_version,
    "key" => @key,
  })
  result.compact
end