Class: AWSCDK::Batch::CfnJobDefinition::EKSContainerEnvironmentVariableProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
batch/cfn_job_definition.rb

Overview

An environment variable.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of EKSContainerEnvironmentVariableProperty.

Parameters:

  • name (String)

    The name of the environment variable.

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

    The value of the environment variable.



1465
1466
1467
1468
1469
1470
# File 'batch/cfn_job_definition.rb', line 1465

def initialize(name:, value: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @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.



1476
1477
1478
# File 'batch/cfn_job_definition.rb', line 1476

def name
  @name
end

#valueString? (readonly)

The value of the environment variable.



1481
1482
1483
# File 'batch/cfn_job_definition.rb', line 1481

def value
  @value
end

Class Method Details

.jsii_propertiesObject



1483
1484
1485
1486
1487
1488
# File 'batch/cfn_job_definition.rb', line 1483

def self.jsii_properties
  {
    :name => "name",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



1490
1491
1492
1493
1494
1495
1496
1497
# File 'batch/cfn_job_definition.rb', line 1490

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "value" => @value,
  })
  result.compact
end