Class: AWSCDK::Sagemaker::CfnAppImageConfig::CustomImageContainerEnvironmentVariableProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sagemaker/cfn_app_image_config.rb

Overview

The environment variables to set in the container.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ CustomImageContainerEnvironmentVariableProperty

Returns a new instance of CustomImageContainerEnvironmentVariableProperty.

Parameters:

  • key (String)

    The key that identifies a container environment variable.

  • value (String)

    The value of the container environment variable.



689
690
691
692
693
694
# File 'sagemaker/cfn_app_image_config.rb', line 689

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

Instance Attribute Details

#keyString (readonly)

The key that identifies a container environment variable.



700
701
702
# File 'sagemaker/cfn_app_image_config.rb', line 700

def key
  @key
end

#valueString (readonly)

The value of the container environment variable.



705
706
707
# File 'sagemaker/cfn_app_image_config.rb', line 705

def value
  @value
end

Class Method Details

.jsii_propertiesObject



707
708
709
710
711
712
# File 'sagemaker/cfn_app_image_config.rb', line 707

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

Instance Method Details

#to_jsiiObject



714
715
716
717
718
719
720
721
# File 'sagemaker/cfn_app_image_config.rb', line 714

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