Class: AWSCDK::Batch::CfnJobDefinition::EnvironmentProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name: nil, value: nil) ⇒ EnvironmentProperty

Returns a new instance of EnvironmentProperty.

Parameters:

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

    The name of the environment variable.

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

    The value of the environment variable.



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

#nameString? (readonly)

The name of the environment variable.



1970
1971
1972
# File 'batch/cfn_job_definition.rb', line 1970

def name
  @name
end

#valueString? (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_propertiesObject



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_jsiiObject



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