aws-cdk-lib.aws_lambda.FunctionVersionUpgrade

class FunctionVersionUpgrade

LanguageType name
.NETAmazon.CDK.AWS.Lambda.FunctionVersionUpgrade
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awslambda#FunctionVersionUpgrade
Javasoftware.amazon.awscdk.services.lambda.FunctionVersionUpgrade
Pythonaws_cdk.aws_lambda.FunctionVersionUpgrade
TypeScript (source)aws-cdk-lib » aws_lambda » FunctionVersionUpgrade

Implements IAspect

Aspect for upgrading function versions when the feature flag provided feature flag present.

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

NameDescription
visit(node)All aspects can visit an IConstruct.

visit(node)

public visit(node: IConstruct): void

Parameters

  • node IConstruct

All aspects can visit an IConstruct.