Class: AWSCDK::Amplify::CfnBranch::EnvironmentVariableProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Amplify::CfnBranch::EnvironmentVariableProperty
- Defined in:
- amplify/cfn_branch.rb
Overview
The EnvironmentVariable property type sets environment variables for a specific branch.
Environment variables are key-value pairs that are available at build time.
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.
813 814 815 816 817 818 |
# File 'amplify/cfn_branch.rb', line 813 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.
824 825 826 |
# File 'amplify/cfn_branch.rb', line 824 def name @name end |
#value ⇒ String (readonly)
The environment variable value.
829 830 831 |
# File 'amplify/cfn_branch.rb', line 829 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
831 832 833 834 835 836 |
# File 'amplify/cfn_branch.rb', line 831 def self.jsii_properties { :name => "name", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
838 839 840 841 842 843 844 845 |
# File 'amplify/cfn_branch.rb', line 838 def to_jsii result = {} result.merge!({ "name" => @name, "value" => @value, }) result.compact end |