Class RuntimeManagementMode

All Implemented Interfaces:

@Generated(value="jsii-pacmak/1.99.0 (build 8f757e4)", date="2024-06-13T18:49:21.054Z") @Stability(Stable) public class RuntimeManagementMode extends
Specify the runtime update mode.


 Function.Builder.create(this, "Lambda")
         .code(Code.fromAsset(join(__dirname, "lambda-handler")))
  • Field Details

    • AUTO

      @Stability(Stable) public static final RuntimeManagementMode 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.


      @Stability(Stable) public static final RuntimeManagementMode 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( objRef)
    • RuntimeManagementMode

      protected RuntimeManagementMode( initializationMode)
    • RuntimeManagementMode

      @Stability(Stable) protected RuntimeManagementMode(@NotNull String mode, @Nullable String arn)
      mode - This parameter is required.
      arn -
    • RuntimeManagementMode

      @Stability(Stable) protected RuntimeManagementMode(@NotNull String mode)
      mode - This parameter is required.
  • Method Details

    • manual

      @Stability(Stable) @NotNull public static RuntimeManagementMode manual(@NotNull String arn)
      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.

      arn - This parameter is required.
    • getMode

      @Stability(Stable) @NotNull public String getMode()
    • getRuntimeManagementConfig

      @Stability(Stable) @NotNull public CfnFunction.RuntimeManagementConfigProperty getRuntimeManagementConfig()
    • getArn

      @Stability(Stable) @Nullable public String getArn()