Class: AWSCDK::Batch::CfnJobDefinition::EKSSecretProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Batch::CfnJobDefinition::EKSSecretProperty
- Defined in:
- batch/cfn_job_definition.rb
Overview
Specifies the configuration of a Kubernetes secret volume.
For more information, see secret in the Kubernetes documentation .
Instance Attribute Summary collapse
-
#optional ⇒ Boolean, ...
readonly
Specifies whether the secret or the secret's keys must be defined.
-
#secret_name ⇒ String
readonly
The name of the secret.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(secret_name:, optional: nil) ⇒ EKSSecretProperty
constructor
A new instance of EKSSecretProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(secret_name:, optional: nil) ⇒ EKSSecretProperty
Returns a new instance of EKSSecretProperty.
1794 1795 1796 1797 1798 1799 |
# File 'batch/cfn_job_definition.rb', line 1794 def initialize(secret_name:, optional: nil) @secret_name = secret_name Jsii::Type.check_type(@secret_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "secretName") @optional = optional Jsii::Type.check_type(@optional, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "optional") unless @optional.nil? end |
Instance Attribute Details
#optional ⇒ Boolean, ... (readonly)
Specifies whether the secret or the secret's keys must be defined.
1812 1813 1814 |
# File 'batch/cfn_job_definition.rb', line 1812 def optional @optional end |
#secret_name ⇒ String (readonly)
The name of the secret.
The name must be allowed as a DNS subdomain name. For more information, see DNS subdomain names in the Kubernetes documentation .
1807 1808 1809 |
# File 'batch/cfn_job_definition.rb', line 1807 def secret_name @secret_name end |
Class Method Details
.jsii_properties ⇒ Object
1814 1815 1816 1817 1818 1819 |
# File 'batch/cfn_job_definition.rb', line 1814 def self.jsii_properties { :secret_name => "secretName", :optional => "optional", } end |
Instance Method Details
#to_jsii ⇒ Object
1821 1822 1823 1824 1825 1826 1827 1828 |
# File 'batch/cfn_job_definition.rb', line 1821 def to_jsii result = {} result.merge!({ "secretName" => @secret_name, "optional" => @optional, }) result.compact end |