Class: AWSCDK::Batch::CfnJobDefinition::EnvironmentProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Batch::CfnJobDefinition::EnvironmentProperty
- Defined in:
- batch/cfn_job_definition.rb
Overview
The Environment property type specifies environment variables to use in a job definition.
Instance Attribute Summary collapse
-
#name ⇒ String?
readonly
The name of the environment variable.
-
#value ⇒ String?
readonly
The value of the environment variable.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name: nil, value: nil) ⇒ EnvironmentProperty
constructor
A new instance of EnvironmentProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name: nil, value: nil) ⇒ EnvironmentProperty
Returns a new instance of EnvironmentProperty.
1959 1960 1961 1962 1963 1964 |
# File 'batch/cfn_job_definition.rb', line 1959 def initialize(name: nil, value: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") unless @value.nil? end |
Instance Attribute Details
#name ⇒ String? (readonly)
The name of the environment variable.
1970 1971 1972 |
# File 'batch/cfn_job_definition.rb', line 1970 def name @name end |
#value ⇒ String? (readonly)
The value of the environment variable.
1975 1976 1977 |
# File 'batch/cfn_job_definition.rb', line 1975 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
1977 1978 1979 1980 1981 1982 |
# File 'batch/cfn_job_definition.rb', line 1977 def self.jsii_properties { :name => "name", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
1984 1985 1986 1987 1988 1989 1990 1991 |
# File 'batch/cfn_job_definition.rb', line 1984 def to_jsii result = {} result.merge!({ "name" => @name, "value" => @value, }) result.compact end |