class FunctionVersionUpgrade
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Lambda.FunctionVersionUpgrade |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awslambda#FunctionVersionUpgrade |
![]() | software.amazon.awscdk.services.lambda.FunctionVersionUpgrade |
![]() | aws_cdk.aws_lambda.FunctionVersionUpgrade |
![]() | aws-cdk-lib » aws_lambda » FunctionVersionUpgrade |
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
const stack = new Stack();
Aspects.of(stack).add(new lambda.FunctionVersionUpgrade(LAMBDA_RECOGNIZE_VERSION_PROPS));
Initializer
new FunctionVersionUpgrade(featureFlag: string, enabled?: boolean)
Parameters
- featureFlag
string
- enabled
boolean
Methods
Name | Description |
---|---|
visit(node) | All aspects can visit an IConstruct. |
visit(node)
public visit(node: IConstruct): void
Parameters
- node
IConstruct
All aspects can visit an IConstruct.