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());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forLatestPublishedScalingConfigstatic final classAn implementation forLatestPublishedScalingConfig -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default NumberThe maximum number of execution environments allowed for the $LATEST.PUBLISHED version when published into a capacity provider.default NumberThe minimum number of execution environments to maintain for the $LATEST.PUBLISHED version when published into a capacity provider.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
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
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
-