Class: AWSCDK::Amplify::CfnApp::EnvironmentVariableProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
amplify/cfn_app.rb

Overview

Environment variables are key-value pairs that are available at build time.

Set environment variables for all branches in your app.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, value:) ⇒ EnvironmentVariableProperty

Returns a new instance of EnvironmentVariableProperty.

Parameters:

  • name (String)

    The environment variable name.

  • value (String)

    The environment variable value.



1083
1084
1085
1086
1087
1088
# File 'amplify/cfn_app.rb', line 1083

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.



1094
1095
1096
# File 'amplify/cfn_app.rb', line 1094

def name
  @name
end

#valueString (readonly)

The environment variable value.



1099
1100
1101
# File 'amplify/cfn_app.rb', line 1099

def value
  @value
end

Class Method Details

.jsii_propertiesObject



1101
1102
1103
1104
1105
1106
# File 'amplify/cfn_app.rb', line 1101

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

Instance Method Details

#to_jsiiObject



1108
1109
1110
1111
1112
1113
1114
1115
# File 'amplify/cfn_app.rb', line 1108

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