Class: AWSCDK::Lambda::CfnFunction::RuntimeManagementConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lambda::CfnFunction::RuntimeManagementConfigProperty
- Defined in:
- lambda/cfn_function.rb
Overview
Sets the runtime management configuration for a function's version.
For more information, see Runtime updates .
Instance Attribute Summary collapse
-
#runtime_version_arn ⇒ String?
readonly
The ARN of the runtime version you want the function to use.
-
#update_runtime_on ⇒ String
readonly
Specify the runtime update mode.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(update_runtime_on:, runtime_version_arn: nil) ⇒ RuntimeManagementConfigProperty
constructor
A new instance of RuntimeManagementConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(update_runtime_on:, runtime_version_arn: nil) ⇒ RuntimeManagementConfigProperty
Returns a new instance of RuntimeManagementConfigProperty.
1542 1543 1544 1545 1546 1547 |
# File 'lambda/cfn_function.rb', line 1542 def initialize(update_runtime_on:, runtime_version_arn: nil) @update_runtime_on = update_runtime_on Jsii::Type.check_type(@update_runtime_on, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "updateRuntimeOn") @runtime_version_arn = runtime_version_arn Jsii::Type.check_type(@runtime_version_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "runtimeVersionArn") unless @runtime_version_arn.nil? end |
Instance Attribute Details
#runtime_version_arn ⇒ String? (readonly)
The ARN of the runtime version you want the function to use.
This is only required if you're using the Manual runtime update mode.
1566 1567 1568 |
# File 'lambda/cfn_function.rb', line 1566 def runtime_version_arn @runtime_version_arn end |
#update_runtime_on ⇒ String (readonly)
Specify the runtime update mode.
- Auto (default) - Automatically update to the most recent and secure runtime version using a Two-phase runtime version rollout . This is the best choice for most customers to ensure they always benefit from runtime updates.
- FunctionUpdate - Lambda updates the runtime of you function to the most recent and secure runtime version when you update your function. This approach synchronizes runtime updates with function deployments, giving you control over when runtime updates are applied and allowing you to detect and mitigate rare runtime update incompatibilities early. When using this setting, you need to regularly update your functions to keep their runtime up-to-date.
- Manual - You specify a runtime version in your function configuration. The function will use this runtime version indefinitely. In the rare case where a new runtime version is incompatible with an existing function, this allows you to roll back your function to an earlier runtime version. For more information, see Roll back a runtime version .
Valid Values : Auto | FunctionUpdate | Manual
1559 1560 1561 |
# File 'lambda/cfn_function.rb', line 1559 def update_runtime_on @update_runtime_on end |
Class Method Details
.jsii_properties ⇒ Object
1568 1569 1570 1571 1572 1573 |
# File 'lambda/cfn_function.rb', line 1568 def self.jsii_properties { :update_runtime_on => "updateRuntimeOn", :runtime_version_arn => "runtimeVersionArn", } end |
Instance Method Details
#to_jsii ⇒ Object
1575 1576 1577 1578 1579 1580 1581 1582 |
# File 'lambda/cfn_function.rb', line 1575 def to_jsii result = {} result.merge!({ "updateRuntimeOn" => @update_runtime_on, "runtimeVersionArn" => @runtime_version_arn, }) result.compact end |