Class: AWSCDK::Lambda::EnvironmentOptions

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lambda/environment_options.rb

Overview

Environment variables options.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(remove_in_edge: nil) ⇒ EnvironmentOptions

Returns a new instance of EnvironmentOptions.

Parameters:

  • remove_in_edge (Boolean, nil) (defaults to: nil)

    When used in Lambda@Edge via edgeArn() API, these environment variables will be removed.



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_edgeBoolean? (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_propertiesObject



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_jsiiObject



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