FunctionVersionUpgrade
- class aws_cdk.aws_lambda.FunctionVersionUpgrade(feature_flag, enabled=None)
Bases:
object
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.
- ExampleMetadata:
infused
Example:
stack = Stack() Aspects.of(stack).add(lambda_.FunctionVersionUpgrade(LAMBDA_RECOGNIZE_VERSION_PROPS))
- Parameters:
feature_flag (
str
) –enabled (
Optional
[bool
]) –
Methods
- visit(node)
All aspects can visit an IConstruct.
- Parameters:
node (
IConstruct
) –- Return type:
None