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.99.0 (build 8f757e4)", date="2024-06-13T18:49:21.021Z") @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

    Constructors
    Modifier
    Constructor
    Description
     
     
     
    FunctionVersionUpgrade(String featureFlag, Boolean enabled)
     
    protected
    FunctionVersionUpgrade(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    FunctionVersionUpgrade(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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

      @Stability(Stable) public FunctionVersionUpgrade(@NotNull String featureFlag)
      Parameters:
      featureFlag - This parameter is required.
  • Method Details

    • visit

      @Stability(Stable) public void visit(@NotNull software.constructs.IConstruct node)
      All aspects can visit an IConstruct.

      Specified by:
      visit in interface IAspect
      Parameters:
      node - This parameter is required.