Class: AWSCDK::Amplify::CfnBranch::EnvironmentVariableProperty

Inherits:
Jsii::Struct
  • Object
show all
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

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.



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

#nameString (readonly)

The environment variable name.



824
825
826
# File 'amplify/cfn_branch.rb', line 824

def name
  @name
end

#valueString (readonly)

The environment variable value.



829
830
831
# File 'amplify/cfn_branch.rb', line 829

def value
  @value
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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