Class: AWSCDK::Pipes::CfnPipe::ECSEnvironmentVariableProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pipes/cfn_pipe.rb

Overview

The environment variables to send to the container.

You can add new environment variables, which are added to the container at launch, or you can override the existing environment variables from the Docker image or the task definition. You must also specify a container name.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ECSEnvironmentVariableProperty.

Parameters:

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

    The name of the key-value pair.

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

    The value of the key-value pair.



1459
1460
1461
1462
1463
1464
# File 'pipes/cfn_pipe.rb', line 1459

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 key-value pair.

For environment variables, this is the name of the environment variable.



1472
1473
1474
# File 'pipes/cfn_pipe.rb', line 1472

def name
  @name
end

#valueString? (readonly)

The value of the key-value pair.

For environment variables, this is the value of the environment variable.



1479
1480
1481
# File 'pipes/cfn_pipe.rb', line 1479

def value
  @value
end

Class Method Details

.jsii_propertiesObject



1481
1482
1483
1484
1485
1486
# File 'pipes/cfn_pipe.rb', line 1481

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

Instance Method Details

#to_jsiiObject



1488
1489
1490
1491
1492
1493
1494
1495
# File 'pipes/cfn_pipe.rb', line 1488

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