Class: AWSCDK::Lambda::LayerVersionOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lambda::LayerVersionOptions
- Defined in:
- lambda/layer_version_options.rb
Overview
Non runtime options.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
The description the this Lambda Layer.
-
#layer_version_name ⇒ String?
readonly
The name of the layer.
-
#license ⇒ String?
readonly
The SPDX licence identifier or URL to the license file for this layer.
-
#removal_policy ⇒ AWSCDK::RemovalPolicy?
readonly
Whether to retain this version of the layer when a new version is added or when the stack is deleted.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(description: nil, layer_version_name: nil, license: nil, removal_policy: nil) ⇒ LayerVersionOptions
constructor
A new instance of LayerVersionOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(description: nil, layer_version_name: nil, license: nil, removal_policy: nil) ⇒ LayerVersionOptions
Returns a new instance of LayerVersionOptions.
11 12 13 14 15 16 17 18 19 20 |
# File 'lambda/layer_version_options.rb', line 11 def initialize(description: nil, layer_version_name: nil, license: nil, removal_policy: nil) @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @layer_version_name = layer_version_name Jsii::Type.check_type(@layer_version_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "layerVersionName") unless @layer_version_name.nil? @license = license Jsii::Type.check_type(@license, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "license") unless @license.nil? @removal_policy = removal_policy Jsii::Type.check_type(@removal_policy, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5SZW1vdmFsUG9saWN5In0=")), "removalPolicy") unless @removal_policy.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
Note:
Default: - No description.
The description the this Lambda Layer.
26 27 28 |
# File 'lambda/layer_version_options.rb', line 26 def description @description end |
#layer_version_name ⇒ String? (readonly)
Note:
Default: - A name will be generated.
The name of the layer.
31 32 33 |
# File 'lambda/layer_version_options.rb', line 31 def layer_version_name @layer_version_name end |
#license ⇒ String? (readonly)
Note:
Default: - No license information will be recorded.
The SPDX licence identifier or URL to the license file for this layer.
36 37 38 |
# File 'lambda/layer_version_options.rb', line 36 def license @license end |
#removal_policy ⇒ AWSCDK::RemovalPolicy? (readonly)
Note:
Default: RemovalPolicy.DESTROY
Whether to retain this version of the layer when a new version is added or when the stack is deleted.
41 42 43 |
# File 'lambda/layer_version_options.rb', line 41 def removal_policy @removal_policy end |
Class Method Details
.jsii_properties ⇒ Object
43 44 45 46 47 48 49 50 |
# File 'lambda/layer_version_options.rb', line 43 def self.jsii_properties { :description => "description", :layer_version_name => "layerVersionName", :license => "license", :removal_policy => "removalPolicy", } end |
Instance Method Details
#to_jsii ⇒ Object
52 53 54 55 56 57 58 59 60 61 |
# File 'lambda/layer_version_options.rb', line 52 def to_jsii result = {} result.merge!({ "description" => @description, "layerVersionName" => @layer_version_name, "license" => @license, "removalPolicy" => @removal_policy, }) result.compact end |