Class: AWSCDK::Amplify::CfnApp::EnvironmentVariableProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Amplify::CfnApp::EnvironmentVariableProperty
- 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
-
#name ⇒ String
readonly
The environment variable name.
-
#value ⇒ String
readonly
The environment variable value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, value:) ⇒ EnvironmentVariableProperty
constructor
A new instance of EnvironmentVariableProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, value:) ⇒ EnvironmentVariableProperty
Returns a new instance of EnvironmentVariableProperty.
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
#name ⇒ String (readonly)
The environment variable name.
1094 1095 1096 |
# File 'amplify/cfn_app.rb', line 1094 def name @name end |
#value ⇒ String (readonly)
The environment variable value.
1099 1100 1101 |
# File 'amplify/cfn_app.rb', line 1099 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |