2828class Foundations (Construct ):
2929 external_interface = {}
3030
31- def __init__ (self , scope : Construct , id : str , ** kwargs ) -> None :
31+ def __init__ (self , scope : Construct , id : str , org : str , data_domain : str , account_id : str , ** kwargs ) -> None :
3232 super ().__init__ (scope , id )
3333
3434 dirname = os .path .dirname (__file__ )
@@ -50,6 +50,7 @@ def __init__(self, scope: Construct, id: str, **kwargs) -> None:
5050 type = "String" ,
5151 allowed_pattern = "(\\ d{12}|^$)" ,
5252 constraint_description = "Must be an AWS account ID" ,
53+ default = str (account_id ),
5354 )
5455 p_childaccountid .override_logical_id ("pChildAccountId" )
5556 p_org = CfnParameter (
@@ -58,13 +59,15 @@ def __init__(self, scope: Construct, id: str, **kwargs) -> None:
5859 description = "Name of the organization owning the datalake (all lowercase, no symbols or spaces)" ,
5960 type = "String" ,
6061 allowed_pattern = "[a-z0-9]{2,9}" ,
62+ default = org ,
6163 )
6264 p_org .override_logical_id ("pOrg" )
6365 p_domain = CfnParameter (
6466 self ,
6567 "pDomain" ,
6668 description = "Data domain name" ,
6769 type = "String" ,
70+ default = data_domain ,
6871 )
6972 p_domain .override_logical_id ("pDomain" )
7073 # p_cloudwatchlogsretentionindays = CfnParameter(self, "pCloudWatchLogsRetentionInDays",
0 commit comments