Class RuntimeManagementMode
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.lambda.RuntimeManagementMode
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:03.964Z")
@Stability(Stable)
public class RuntimeManagementMode
extends software.amazon.jsii.JsiiObject
Specify the runtime update mode.
Example:
Function.Builder.create(this, "Lambda") .runtimeManagementMode(RuntimeManagementMode.AUTO) .runtime(Runtime.NODEJS_18_X) .handler("index.handler") .code(Code.fromAsset(join(__dirname, "lambda-handler"))) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Field Summary
Modifier and TypeFieldDescriptionstatic final RuntimeManagementMode
Automatically update to the most recent and secure runtime version using Two-phase runtime version rollout.static final RuntimeManagementMode
When you update your function, Lambda updates the runtime of your function to the most recent and secure runtime version. -
Constructor Summary
ModifierConstructorDescriptionprotected
RuntimeManagementMode
(String mode) protected
RuntimeManagementMode
(String mode, String arn) protected
RuntimeManagementMode
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
RuntimeManagementMode
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptiongetArn()
getMode()
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-runtimemanagementconfig.html.static RuntimeManagementMode
You specify a runtime version in your function configuration.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
AUTO
Automatically update to the most recent and secure runtime version using Two-phase runtime version rollout.We recommend this mode for most customers so that you always benefit from runtime updates.
-
FUNCTION_UPDATE
When you update your function, Lambda updates the runtime of your function to the most recent and secure runtime version.This approach synchronizes runtime updates with function deployments, giving you control over when Lambda applies runtime updates. With this mode, you can detect and mitigate rare runtime update incompatibilities early. When using this mode, you must regularly update your functions to keep their runtime up to date.
-
-
Constructor Details
-
RuntimeManagementMode
protected RuntimeManagementMode(software.amazon.jsii.JsiiObjectRef objRef) -
RuntimeManagementMode
protected RuntimeManagementMode(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
RuntimeManagementMode
- Parameters:
mode
- This parameter is required.arn
-
-
RuntimeManagementMode
- Parameters:
mode
- This parameter is required.
-
-
Method Details
-
manual
You specify a runtime version in your function configuration.The function uses this runtime version indefinitely. In the rare case in which a new runtime version is incompatible with an existing function, you can use this mode to roll back your function to an earlier runtime version.
- Parameters:
arn
- This parameter is required.
-
getMode
-
getRuntimeManagementConfig
@Stability(Stable) @NotNull public CfnFunction.RuntimeManagementConfigProperty getRuntimeManagementConfig()https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-runtimemanagementconfig.html. -
getArn
-