Interface LatestPublishedScalingConfig

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
LatestPublishedScalingConfig.Jsii$Proxy

@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)", date="2025-12-12T17:54:16.399Z") @Stability(Stable) public interface LatestPublishedScalingConfig extends software.amazon.jsii.JsiiSerializable
The scaling configuration that will be applied to the $LATEST.PUBLISHED version.

Example:

 CapacityProvider capacityProvider;
 Function fn;
 capacityProvider.addFunction(fn, CapacityProviderFunctionOptions.builder()
         .latestPublishedScalingConfig(LatestPublishedScalingConfig.builder()
                 .minExecutionEnvironments(5)
                 .maxExecutionEnvironments(25)
                 .build())
         .build());
 
  • Method Details

    • getMaxExecutionEnvironments

      @Stability(Stable) @Nullable default Number getMaxExecutionEnvironments()
      The maximum number of execution environments allowed for the $LATEST.PUBLISHED version when published into a capacity provider.

      This setting limits the total number of execution environments that can be created to handle concurrent invocations of this specific version.

      Default: - No maximum specified

    • getMinExecutionEnvironments

      @Stability(Stable) @Nullable default Number getMinExecutionEnvironments()
      The minimum number of execution environments to maintain for the $LATEST.PUBLISHED version when published into a capacity provider.

      This setting ensures that at least this many execution environments are always available to handle function invocations for this specific version, reducing cold start latency.

      Default: - 3 execution environments are set to be the minimum

    • builder

      @Stability(Stable) static LatestPublishedScalingConfig.Builder builder()
      Returns:
      a LatestPublishedScalingConfig.Builder of LatestPublishedScalingConfig