Class: AWSCDK::Lambda::CfnFunction::SnapStartProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lambda::CfnFunction::SnapStartProperty
- Defined in:
- lambda/cfn_function.rb
Overview
The function's AWS Lambda SnapStart setting.
Instance Attribute Summary collapse
-
#apply_on ⇒ String
readonly
Set
ApplyOntoPublishedVersionsto create a snapshot of the initialized execution environment when you publish a function version.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(apply_on:) ⇒ SnapStartProperty
constructor
A new instance of SnapStartProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(apply_on:) ⇒ SnapStartProperty
Returns a new instance of SnapStartProperty.
1592 1593 1594 1595 |
# File 'lambda/cfn_function.rb', line 1592 def initialize(apply_on:) @apply_on = apply_on Jsii::Type.check_type(@apply_on, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "applyOn") end |
Instance Attribute Details
#apply_on ⇒ String (readonly)
Set ApplyOn to PublishedVersions to create a snapshot of the initialized execution environment when you publish a function version.
1601 1602 1603 |
# File 'lambda/cfn_function.rb', line 1601 def apply_on @apply_on end |
Class Method Details
.jsii_properties ⇒ Object
1603 1604 1605 1606 1607 |
# File 'lambda/cfn_function.rb', line 1603 def self.jsii_properties { :apply_on => "applyOn", } end |
Instance Method Details
#to_jsii ⇒ Object
1609 1610 1611 1612 1613 1614 1615 |
# File 'lambda/cfn_function.rb', line 1609 def to_jsii result = {} result.merge!({ "applyOn" => @apply_on, }) result.compact end |