@@ -242,7 +242,7 @@ def __init__(self, scope: Construct, id: str, **kwargs) -> None:
242242 )
243243
244244 s3_prefix_condition = CfnCondition (self , "IsS3Prefix" ,
245- expression = Fn .condition_not (Fn .condition_equals ({ p_s3prefix .value_as_string } , "" )))
245+ expression = Fn .condition_not (Fn .condition_equals (p_s3prefix .value_as_string , "" )))
246246
247247 data_kms_key = kms .Key (
248248 self ,
@@ -262,8 +262,8 @@ def __init__(self, scope: Construct, id: str, **kwargs) -> None:
262262 ssm .StringParameter (
263263 self ,
264264 "rKMSDataKeySsm" ,
265- description = f"Arn of the { p_teamname .value_as_string } KMS data key" ,
266- parameter_name = f"/SDLF/KMS/{ p_teamname .value_as_string } /DataKeyId" ,
265+ description = f"Arn of the { p_datasetname .value_as_string } KMS data key" ,
266+ parameter_name = f"/SDLF/KMS/{ p_datasetname .value_as_string } /DataKeyId" ,
267267 simple_name = False , # parameter name is a token
268268 string_value = data_kms_key .key_arn ,
269269 ).node .default_child .cfn_options .condition = s3_prefix_condition
@@ -314,17 +314,17 @@ def __init__(self, scope: Construct, id: str, **kwargs) -> None:
314314 string_value = analytics_glue_catalog .database_arn ,
315315 )
316316
317- glue_security_configuration = glue .SecurityConfiguration (
317+ glue_security_configuration = glue_a .SecurityConfiguration (
318318 self ,
319319 "rGlueSecurityConfiguration" ,
320320 security_configuration_name = f"sdlf-{ p_datasetname .value_as_string } -glue-security-config" ,
321- cloud_watch_encryption = glue .CloudWatchEncryption (
322- mode = glue .CloudWatchEncryptionMode .KMS , kms_key = infra_kms_key
321+ cloud_watch_encryption = glue_a .CloudWatchEncryption (
322+ mode = glue_a .CloudWatchEncryptionMode .KMS , kms_key = infra_kms_key
323323 ),
324- job_bookmarks_encryption = glue .JobBookmarksEncryption (
325- mode = glue .JobBookmarksEncryptionMode .CLIENT_SIDE_KMS , kms_key = infra_kms_key
324+ job_bookmarks_encryption = glue_a .JobBookmarksEncryption (
325+ mode = glue_a .JobBookmarksEncryptionMode .CLIENT_SIDE_KMS , kms_key = infra_kms_key
326326 ),
327- s3_encryption = glue .S3Encryption (mode = glue .S3EncryptionMode .KMS , kms_key = data_kms_key ), # TODO handle with if
327+ s3_encryption = glue_a .S3Encryption (mode = glue_a .S3EncryptionMode .KMS , kms_key = data_kms_key ), # TODO handle with if
328328 )
329329 ssm .StringParameter (
330330 self ,
@@ -635,13 +635,13 @@ def __init__(self, scope: Construct, id: str, **kwargs) -> None:
635635 self ,
636636 "rLakeFormationTag" ,
637637 catalog_id = scope .account ,
638- tag_key = f "sdlf:dataset" ,
638+ tag_key = "sdlf:dataset" ,
639639 tag_values = [p_datasetname .value_as_string ],
640640 )
641641
642642 lf_tag_pair_property = lakeformation .CfnTagAssociation .LFTagPairProperty (
643643 catalog_id = scope .account ,
644- tag_key = f"sdlf:dataset" ,
644+ tag_key = lf_tag . tag_key ,
645645 tag_values = [p_datasetname .value_as_string ],
646646 )
647647 lf_tag_association = lakeformation .CfnTagAssociation (
@@ -1035,7 +1035,7 @@ def __init__(self, scope: Construct, id: str, **kwargs) -> None:
10351035 service = "glue" ,
10361036 resource = "crawler" ,
10371037 arn_format = ArnFormat .SLASH_RESOURCE_NAME ,
1038- resource_name = f"sdlf-{ p_datasetame .value_as_string } -*" ,
1038+ resource_name = f"sdlf-{ p_datasetname .value_as_string } -*" ,
10391039 ),
10401040 scope .format_arn (
10411041 service = "glue" ,
@@ -1264,7 +1264,8 @@ def __init__(self, scope: Construct, id: str, **kwargs) -> None:
12641264 self ,
12651265 "rDynamoPipelineExecutionHistorySsm" ,
12661266 description = "Name of the DynamoDB used to store manifest process metadata" ,
1267- parameter_name = "/SDLF/Dynamo/{p_datasetname.value_as_string}/PipelineExecutionHistory" ,
1267+ parameter_name = f"/SDLF/Dynamo/{ p_datasetname .value_as_string } /PipelineExecutionHistory" ,
1268+ simple_name = False , # parameter name is a token
12681269 string_value = peh_table .table_name ,
12691270 )
12701271
@@ -1291,7 +1292,8 @@ def __init__(self, scope: Construct, id: str, **kwargs) -> None:
12911292 self ,
12921293 "rDynamoManifestsSsm" ,
12931294 description = "Name of the DynamoDB used to store manifest process metadata" ,
1294- parameter_name = "/SDLF/Dynamo/{p_datasetname.value_as_string}/Manifests" ,
1295+ parameter_name = f"/SDLF/Dynamo/{ p_datasetname .value_as_string } /Manifests" ,
1296+ simple_name = False , # parameter name is a token
12951297 string_value = manifests_table .table_name ,
12961298 )
12971299
0 commit comments