pi_portal.modules.integrations.archival.aws.client.S3BucketClient

class pi_portal.modules.integrations.archival.aws.client.S3BucketClient(bucket_name: str)[source]

Bases: ArchivalClientBase

S3BucketClient class.

Parameters:

bucket_name (str) – The name of the S3 bucket to use.

__init__(bucket_name: str) None[source]
upload(local_file_name: str, archival_file_name: str) None[source]

Upload the specified file to the S3 bucket.

Parameters:
  • local_file_name (str) – The path of the file to upload.

  • archival_file_name (str) – The name of the S3 object that will be created.

Raises:

ArchivalException