1414 PgStacApiLambda ,
1515 PgStacDatabase ,
1616 StacIngestor ,
17- StacItemLoader ,
17+ StacLoader ,
1818 StactoolsItemGenerator ,
1919 TiPgApiLambda ,
2020 TitilerPgstacApiLambda ,
@@ -179,9 +179,9 @@ def __init__(
179179 },
180180 )
181181
182- self .stac_item_loader = StacItemLoader (
182+ self .stac_loader = StacLoader (
183183 self ,
184- "stac-item- loader" ,
184+ "stac-loader" ,
185185 pgstac_db = pgstac_db ,
186186 batch_size = 500 ,
187187 lambda_timeout_seconds = 300 ,
@@ -190,12 +190,10 @@ def __init__(
190190 self .stac_item_generator = StactoolsItemGenerator (
191191 self ,
192192 "stactools-item-generator" ,
193- item_load_topic_arn = self .stac_item_loader .topic .topic_arn ,
193+ item_load_topic_arn = self .stac_loader .topic .topic_arn ,
194194 )
195195
196- self .stac_item_loader .topic .grant_publish (
197- self .stac_item_generator .lambda_function
198- )
196+ self .stac_loader .topic .grant_publish (self .stac_item_generator .lambda_function )
199197
200198 stac_bucket = aws_s3 .Bucket (
201199 self ,
@@ -204,11 +202,11 @@ def __init__(
204202
205203 stac_bucket .add_event_notification (
206204 aws_s3 .EventType .OBJECT_CREATED ,
207- aws_s3_notifications .SnsDestination (self .stac_item_loader .topic ),
205+ aws_s3_notifications .SnsDestination (self .stac_loader .topic ),
208206 aws_s3 .NotificationKeyFilter (suffix = ".json" ),
209207 )
210208
211- stac_bucket .grant_read (self .stac_item_loader .lambda_function )
209+ stac_bucket .grant_read (self .stac_loader .lambda_function )
212210
213211
214212app = App ()
0 commit comments