Class: CDK8sPlus25::EnvValueFromFieldRefOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- CDK8sPlus25::EnvValueFromFieldRefOptions
- 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
-
#api_version ⇒ String?
readonly
Version of the schema the FieldPath is written in terms of.
-
#key ⇒ String?
readonly
The key to select the pod label or annotation.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(api_version: nil, key: nil) ⇒ EnvValueFromFieldRefOptions
constructor
A new instance of EnvValueFromFieldRefOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(api_version: nil, key: nil) ⇒ EnvValueFromFieldRefOptions
Returns a new instance of EnvValueFromFieldRefOptions.
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_version ⇒ String? (readonly)
Version of the schema the FieldPath is written in terms of.
19 20 21 |
# File 'env_value_from_field_ref_options.rb', line 19 def api_version @api_version end |
#key ⇒ String? (readonly)
The key to select the pod label or annotation.
23 24 25 |
# File 'env_value_from_field_ref_options.rb', line 23 def key @key end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |