Class: AWSCDK::Lambda::LayerVersionAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lambda::LayerVersionAttributes
- Defined in:
- lambda/layer_version_attributes.rb
Overview
Properties necessary to import a LayerVersion.
Instance Attribute Summary collapse
-
#compatible_runtimes ⇒ Array<AWSCDK::Lambda::Runtime>?
readonly
The list of compatible runtimes with this Layer.
-
#layer_version_arn ⇒ String
readonly
The ARN of the LayerVersion.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(layer_version_arn:, compatible_runtimes: nil) ⇒ LayerVersionAttributes
constructor
A new instance of LayerVersionAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(layer_version_arn:, compatible_runtimes: nil) ⇒ LayerVersionAttributes
Returns a new instance of LayerVersionAttributes.
9 10 11 12 13 14 |
# File 'lambda/layer_version_attributes.rb', line 9 def initialize(layer_version_arn:, compatible_runtimes: nil) @layer_version_arn = layer_version_arn Jsii::Type.check_type(@layer_version_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "layerVersionArn") @compatible_runtimes = compatible_runtimes Jsii::Type.check_type(@compatible_runtimes, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sYW1iZGEuUnVudGltZSJ9LCJraW5kIjoiYXJyYXkifX0=")), "compatibleRuntimes") unless @compatible_runtimes.nil? end |
Instance Attribute Details
#compatible_runtimes ⇒ Array<AWSCDK::Lambda::Runtime>? (readonly)
The list of compatible runtimes with this Layer.
23 24 25 |
# File 'lambda/layer_version_attributes.rb', line 23 def compatible_runtimes @compatible_runtimes end |
#layer_version_arn ⇒ String (readonly)
The ARN of the LayerVersion.
19 20 21 |
# File 'lambda/layer_version_attributes.rb', line 19 def layer_version_arn @layer_version_arn end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'lambda/layer_version_attributes.rb', line 25 def self.jsii_properties { :layer_version_arn => "layerVersionArn", :compatible_runtimes => "compatibleRuntimes", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'lambda/layer_version_attributes.rb', line 32 def to_jsii result = {} result.merge!({ "layerVersionArn" => @layer_version_arn, "compatibleRuntimes" => @compatible_runtimes, }) result.compact end |