Class FunctionVersionUpgrade
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.lambda.FunctionVersionUpgrade
- All Implemented Interfaces:
IAspect
,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.106.0 (build e852934)",
date="2025-02-06T22:15:56.778Z")
@Stability(Stable)
public class FunctionVersionUpgrade
extends software.amazon.jsii.JsiiObject
implements IAspect
Aspect for upgrading function versions when the provided feature flag is enabled.
This can be necessary when the feature flag changes the function hash, as such changes must be associated with a new version. This aspect will change the function description in these cases, which "validates" the new function hash.
Example:
Stack stack = new Stack(); Aspects.of(stack).add(new FunctionVersionUpgrade(LAMBDA_RECOGNIZE_VERSION_PROPS));
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.IAspect
IAspect.Jsii$Default, IAspect.Jsii$Proxy
-
Constructor Summary
ConstructorsModifierConstructorDescriptionFunctionVersionUpgrade
(String featureFlag) FunctionVersionUpgrade
(String featureFlag, Boolean enabled) protected
FunctionVersionUpgrade
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
FunctionVersionUpgrade
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoid
visit
(software.constructs.IConstruct node) All aspects can visit an IConstruct.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
-
Constructor Details
-
FunctionVersionUpgrade
protected FunctionVersionUpgrade(software.amazon.jsii.JsiiObjectRef objRef) -
FunctionVersionUpgrade
protected FunctionVersionUpgrade(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
FunctionVersionUpgrade
@Stability(Stable) public FunctionVersionUpgrade(@NotNull String featureFlag, @Nullable Boolean enabled) - Parameters:
featureFlag
- This parameter is required.enabled
-
-
FunctionVersionUpgrade
- Parameters:
featureFlag
- This parameter is required.
-
-
Method Details