libera_utils.aws.s3_utilities.s3_list_archive_files#

libera_utils.aws.s3_utilities.s3_list_archive_files(processing_step: str | ProcessingStepIdentifier, *, account_suffix: str | LiberaAccountSuffix | None = LiberaAccountSuffix.STAGE, print_out: bool | None = False) list#

List all files in an archive S3 bucket for a given processing step.

Parameters:
  • processing_step (str) – Processing step ID string. Used to infer the S3 archive bucket name.

  • account_suffix (Union[str, constants.LiberaAccountSuffix], optional) – Account suffix for the bucket name, by default constants.LiberaAccountSuffix.STAGE

  • print_out (bool, optional) – Print the list of files to the console, by default False

Returns:

bucket_objects – S3Path objects for each file in the bucket

Return type:

list