Class RuntimeManagementMode
Specify the runtime update mode.
Inheritance
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class RuntimeManagementMode : DeputyBase
Syntax (vb)
Public Class RuntimeManagementMode
Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
new Function(this, "Lambda", new FunctionProps {
RuntimeManagementMode = RuntimeManagementMode.AUTO,
Runtime = Runtime.NODEJS_18_X,
Handler = "index.handler",
Code = Code.FromAsset(Join(__dirname, "lambda-handler"))
});
Synopsis
Constructors
Runtime |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Runtime |
Used by jsii to construct an instance of this class from DeputyProps |
Runtime |
Properties
Arn | |
AUTO | Automatically update to the most recent and secure runtime version using Two-phase runtime version rollout. |
FUNCTION_UPDATE | When you update your function, Lambda updates the runtime of your function to the most recent and secure runtime version. |
Mode | |
Runtime |
Methods
Manual(String) | You specify a runtime version in your function configuration. |
Constructors
RuntimeManagementMode(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected RuntimeManagementMode(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
RuntimeManagementMode(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected RuntimeManagementMode(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props The deputy props
RuntimeManagementMode(String, String)
public RuntimeManagementMode(string mode, string arn = null)
Parameters
- mode System.
String - arn System.
String
Properties
Arn
public virtual string Arn { get; }
Property Value
System.
AUTO
Automatically update to the most recent and secure runtime version using Two-phase runtime version rollout.
public static RuntimeManagementMode AUTO { get; }
Property Value
Remarks
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.
public static RuntimeManagementMode FUNCTION_UPDATE { get; }
Property Value
Remarks
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.
Mode
public virtual string Mode { get; }
Property Value
System.
RuntimeManagementConfig
public virtual CfnFunction.IRuntimeManagementConfigProperty RuntimeManagementConfig { get; }
Property Value
Cfn
Methods
Manual(String)
You specify a runtime version in your function configuration.
public static RuntimeManagementMode Manual(string arn)
Parameters
- arn System.
String
Returns
Remarks
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.