Class FunctionVersionUpgrade
Aspect for upgrading function versions when the feature flag provided feature flag present.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.AWS.Lambda.dll
Syntax (csharp)
public class FunctionVersionUpgrade : DeputyBase, IAspect
Syntax (vb)
Public Class FunctionVersionUpgrade
Inherits DeputyBase
Implements IAspect
Remarks
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.
ExampleMetadata: infused
Examples
var stack = new Stack();
Aspects.Of(stack).Add(new FunctionVersionUpgrade(LAMBDA_RECOGNIZE_VERSION_PROPS));
Synopsis
Constructors
FunctionVersionUpgrade(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
FunctionVersionUpgrade(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
FunctionVersionUpgrade(String, Nullable<Boolean>) |
Methods
Visit(IConstruct) | All aspects can visit an IConstruct. |
Constructors
FunctionVersionUpgrade(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected FunctionVersionUpgrade(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
FunctionVersionUpgrade(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected FunctionVersionUpgrade(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
FunctionVersionUpgrade(String, Nullable<Boolean>)
public FunctionVersionUpgrade(string featureFlag, Nullable<bool> enabled = null)
Parameters
- featureFlag System.String
- enabled System.Nullable<System.Boolean>
Methods
Visit(IConstruct)
All aspects can visit an IConstruct.
public virtual void Visit(IConstruct node)
Parameters
- node IConstruct