Class: AWSCDK::Lightsail::CfnContainer::EnvironmentVariableProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lightsail/cfn_container.rb

Overview

EnvironmentVariable is a property of the Container property. It describes the environment variables of a container on a container service which are key-value parameters that provide dynamic configuration of the application or script run by the container.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value: nil, variable: nil) ⇒ EnvironmentVariableProperty

Returns a new instance of EnvironmentVariableProperty.

Parameters:

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

    The environment variable value.

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

    The environment variable key.



806
807
808
809
810
811
# File 'lightsail/cfn_container.rb', line 806

def initialize(value: nil, variable: nil)
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") unless @value.nil?
  @variable = variable
  Jsii::Type.check_type(@variable, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "variable") unless @variable.nil?
end

Instance Attribute Details

#valueString? (readonly)

The environment variable value.



817
818
819
# File 'lightsail/cfn_container.rb', line 817

def value
  @value
end

#variableString? (readonly)

The environment variable key.



822
823
824
# File 'lightsail/cfn_container.rb', line 822

def variable
  @variable
end

Class Method Details

.jsii_propertiesObject



824
825
826
827
828
829
# File 'lightsail/cfn_container.rb', line 824

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

Instance Method Details

#to_jsiiObject



831
832
833
834
835
836
837
838
# File 'lightsail/cfn_container.rb', line 831

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