File tree Expand file tree Collapse file tree 3 files changed +113
-112
lines changed Expand file tree Collapse file tree 3 files changed +113
-112
lines changed Original file line number Diff line number Diff line change 1- from typing import Optional
1+ from __future__ import annotations
22
33import jsii
44from aws_cdk import (
1414)
1515from aws_cdk .aws_lambda import Architecture , CfnLayerVersionPermission
1616from aws_cdk .aws_ssm import StringParameter
17- from cdk_aws_lambda_powertools_layer import LambdaPowertoolsLayer
17+ from cdk_aws_lambda_powertools_layer import LambdaPowertoolsLayerPythonV3
1818from constructs import Construct
1919
2020
@@ -38,12 +38,12 @@ def __init__(
3838 layer_version_name : str ,
3939 powertools_version : str ,
4040 python_version : str ,
41- architecture : Optional [ Architecture ] = None ,
41+ architecture : Architecture | None = None ,
4242 ** kwargs ,
4343 ) -> None :
4444 super ().__init__ (scope , construct_id , ** kwargs )
4545
46- layer = LambdaPowertoolsLayer (
46+ layer = LambdaPowertoolsLayerPythonV3 (
4747 self ,
4848 "Layer" ,
4949 layer_version_name = layer_version_name ,
You can’t perform that action at this time.
0 commit comments