AWS S3 Utilities
audio_recording_logger.s3_utils
S3Client
Source code in src/audio_recording_logger/s3_utils.py
__init__(region_name='us-east-1')
AWS S3 Client Constructor.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
region_name |
str
|
AWS S3 region. Defaults to "us-east-1". |
'us-east-1'
|
Source code in src/audio_recording_logger/s3_utils.py
get_object(bucket, key)
Gets object from S3.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
bucket |
str
|
S3 bucket name. |
required |
key |
str
|
Key to file in bucket. |
required |
Returns:
Name | Type | Description |
---|---|---|
Any |
Any
|
S3 Object retrieved. |