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
2
2
3
3
import jsii
4
4
from aws_cdk import (
14
14
)
15
15
from aws_cdk .aws_lambda import Architecture , CfnLayerVersionPermission
16
16
from aws_cdk .aws_ssm import StringParameter
17
- from cdk_aws_lambda_powertools_layer import LambdaPowertoolsLayer
17
+ from cdk_aws_lambda_powertools_layer import LambdaPowertoolsLayerPythonV3
18
18
from constructs import Construct
19
19
20
20
@@ -38,12 +38,12 @@ def __init__(
38
38
layer_version_name : str ,
39
39
powertools_version : str ,
40
40
python_version : str ,
41
- architecture : Optional [ Architecture ] = None ,
41
+ architecture : Architecture | None = None ,
42
42
** kwargs ,
43
43
) -> None :
44
44
super ().__init__ (scope , construct_id , ** kwargs )
45
45
46
- layer = LambdaPowertoolsLayer (
46
+ layer = LambdaPowertoolsLayerPythonV3 (
47
47
self ,
48
48
"Layer" ,
49
49
layer_version_name = layer_version_name ,
You can’t perform that action at this time.
0 commit comments