@@ -57,27 +57,27 @@ def _resolve_bucket_name(self) -> str:
57
57
58
58
class Assets :
59
59
def __init__ (
60
- self , cfn_template : Path , account_id : str , region : str , boto3_client : Optional [S3Client ] = None
60
+ self , asset_manifest : Path , account_id : str , region : str , boto3_client : Optional [S3Client ] = None
61
61
) -> None :
62
62
"""CDK Assets logic to find each asset, compress, and upload
63
63
64
64
Parameters
65
65
----------
66
- cfn_template : Path
67
- CloudFormation template synthesized (self.__synthesize)
66
+ asset_manifest : Path
67
+ Asset manifest JSON file (self.__synthesize)
68
68
account_id : str
69
69
AWS Account ID
70
70
region : str
71
71
AWS Region
72
72
boto3_client : Optional[S3Client], optional
73
73
S3 client instance for asset operations, by default None
74
74
"""
75
- self .template = cfn_template
75
+ self .asset_manifest = asset_manifest
76
76
self .account_id = account_id
77
77
self .region = region
78
78
self .s3 = boto3_client or boto3 .client ("s3" )
79
79
self .assets = self ._find_assets_from_template ()
80
- self .assets_location = str (self .template .parent )
80
+ self .assets_location = str (self .asset_manifest .parent )
81
81
82
82
def upload (self ):
83
83
"""Drop-in replacement for cdk-assets package s3 upload part.
@@ -101,7 +101,7 @@ def upload(self):
101
101
logger .debug ("Successfully uploaded" )
102
102
103
103
def _find_assets_from_template (self ) -> List [Asset ]:
104
- data = json .loads (self .template .read_text ())
104
+ data = json .loads (self .asset_manifest .read_text ())
105
105
template = TemplateAssembly (** data )
106
106
return [
107
107
Asset (config = asset_config , account_id = self .account_id , region = self .region )
0 commit comments