Class: AWSCDK::Lambda::CfnFunction::SnapStartProperty

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

Overview

The function's AWS Lambda SnapStart setting.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(apply_on:) ⇒ SnapStartProperty

Returns a new instance of SnapStartProperty.

Parameters:

  • apply_on (String)

    Set ApplyOn to PublishedVersions to create a snapshot of the initialized execution environment when you publish a function version.



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_onString (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_propertiesObject



1603
1604
1605
1606
1607
# File 'lambda/cfn_function.rb', line 1603

def self.jsii_properties
  {
    :apply_on => "applyOn",
  }
end

Instance Method Details

#to_jsiiObject



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