Class: AWSCDK::GameLift::CfnContainerGroupDefinition::ContainerEnvironmentProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
game_lift/cfn_container_group_definition.rb

Overview

An environment variable to set inside a container, in the form of a key-value pair.

Part of: GameServerContainerDefinition , GameServerContainerDefinitionInput , SupportContainerDefinition , SupportContainerDefinitionInput

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, value:) ⇒ ContainerEnvironmentProperty

Returns a new instance of ContainerEnvironmentProperty.

Parameters:

  • name (String)

    The environment variable name.

  • value (String)

    The environment variable value.



744
745
746
747
748
749
# File 'game_lift/cfn_container_group_definition.rb', line 744

def initialize(name:, value:)
  @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")
end

Instance Attribute Details

#nameString (readonly)

The environment variable name.



755
756
757
# File 'game_lift/cfn_container_group_definition.rb', line 755

def name
  @name
end

#valueString (readonly)

The environment variable value.



760
761
762
# File 'game_lift/cfn_container_group_definition.rb', line 760

def value
  @value
end

Class Method Details

.jsii_propertiesObject



762
763
764
765
766
767
# File 'game_lift/cfn_container_group_definition.rb', line 762

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

Instance Method Details

#to_jsiiObject



769
770
771
772
773
774
775
776
# File 'game_lift/cfn_container_group_definition.rb', line 769

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