Class: AWSCDK::Pipes::CfnPipe::BatchEnvironmentVariableProperty

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.

Environment variables cannot start with " AWS Batch ". This naming convention is reserved for variables that AWS Batch sets.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of BatchEnvironmentVariableProperty.

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.



885
886
887
888
889
890
# File 'pipes/cfn_pipe.rb', line 885

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.



898
899
900
# File 'pipes/cfn_pipe.rb', line 898

def name
  @name
end

#valueString? (readonly)

The value of the key-value pair.

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



905
906
907
# File 'pipes/cfn_pipe.rb', line 905

def value
  @value
end

Class Method Details

.jsii_propertiesObject



907
908
909
910
911
912
# File 'pipes/cfn_pipe.rb', line 907

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

Instance Method Details

#to_jsiiObject



914
915
916
917
918
919
920
921
# File 'pipes/cfn_pipe.rb', line 914

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