Class: AWSCDK::Lambda::EnvironmentOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lambda::EnvironmentOptions
- Defined in:
- lambda/environment_options.rb
Overview
Environment variables options.
Instance Attribute Summary collapse
-
#remove_in_edge ⇒ Boolean?
readonly
When used in Lambda@Edge via edgeArn() API, these environment variables will be removed.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(remove_in_edge: nil) ⇒ EnvironmentOptions
constructor
A new instance of EnvironmentOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(remove_in_edge: nil) ⇒ EnvironmentOptions
Returns a new instance of EnvironmentOptions.
8 9 10 11 |
# File 'lambda/environment_options.rb', line 8 def initialize(remove_in_edge: nil) @remove_in_edge = remove_in_edge Jsii::Type.check_type(@remove_in_edge, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "removeInEdge") unless @remove_in_edge.nil? end |
Instance Attribute Details
#remove_in_edge ⇒ Boolean? (readonly)
Note:
Default: false - using the function in Lambda@Edge will throw
When used in Lambda@Edge via edgeArn() API, these environment variables will be removed.
If not set, an error will be thrown.
20 21 22 |
# File 'lambda/environment_options.rb', line 20 def remove_in_edge @remove_in_edge end |
Class Method Details
.jsii_properties ⇒ Object
22 23 24 25 26 |
# File 'lambda/environment_options.rb', line 22 def self.jsii_properties { :remove_in_edge => "removeInEdge", } end |
Instance Method Details
#to_jsii ⇒ Object
28 29 30 31 32 33 34 |
# File 'lambda/environment_options.rb', line 28 def to_jsii result = {} result.merge!({ "removeInEdge" => @remove_in_edge, }) result.compact end |