File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 1- from typing import Any
1+ from typing import Dict
22
33from aws_cdk import CfnOutput , RemovalPolicy
44from aws_cdk import aws_dynamodb as dynamodb
5+ from aws_cdk .aws_lambda import Function
56
67from tests .e2e .utils .infrastructure import BaseInfrastructure
78
89
910class IdempotencyDynamoDBStack (BaseInfrastructure ):
1011 def create_resources (self ):
1112 functions = self .create_lambda_functions ()
12- self ._create_dynamodb_table (function = functions )
13+ self ._create_dynamodb_table (functions = functions )
1314
14- def _create_dynamodb_table (self , function : Any ):
15+ def _create_dynamodb_table (self , functions : Dict [ str , Function ] ):
1516 table = dynamodb .Table (
1617 self .stack ,
1718 "Idempotency" ,
@@ -22,8 +23,8 @@ def _create_dynamodb_table(self, function: Any):
2223 billing_mode = dynamodb .BillingMode .PAY_PER_REQUEST ,
2324 )
2425
25- table .grant_read_write_data (function ["TtlCacheExpirationHandler" ])
26- table .grant_read_write_data (function ["TtlCacheTimeoutHandler" ])
27- table .grant_read_write_data (function ["ParallelExecutionHandler" ])
26+ table .grant_read_write_data (functions ["TtlCacheExpirationHandler" ])
27+ table .grant_read_write_data (functions ["TtlCacheTimeoutHandler" ])
28+ table .grant_read_write_data (functions ["ParallelExecutionHandler" ])
2829
2930 CfnOutput (self .stack , "DynamoDBTable" , value = table .table_name )
You can’t perform that action at this time.
0 commit comments