Boto3Client¶
flowtask.interfaces.Boto3Client
¶
Boto3Client
¶
Bases: ClientInterface
Boto3 AWS Client.
Overview
Abstract class for interaction with Boto3 (AWS).
.. table:: Properties
:widths: auto
+------------------------+----------+-----------+-------------------------------------------------------+ | Name | Required | Summary | +------------------------+----------+-----------+-------------------------------------------------------+ |credentials | Yes | The function is loaded and then we define the necessary code to | | | | call the script | +------------------------+----------+-----------+-------------------------------------------------------+ | _init | Yes | Component for Data Integrator | +------------------------+----------+-----------+-------------------------------------------------------+ | _host | Yes | The IPv4 or domain name of the server | +------------------------+----------+-----------+-------------------------------------------------------+ | get_client | Yes | Gets the client access credentials, by which the user logs in to | | | | perform an action | +------------------------+----------+-----------+-------------------------------------------------------+ | print | Yes | Print message to display | +------------------------+----------+-----------+-------------------------------------------------------+ | get_env_value | Yes | Get env value policies for setting virtual environment | +------------------------+----------+-----------+-------------------------------------------------------+ | processing_credentials | Yes | client credentials configured for used of the app | +------------------------+----------+-----------+-------------------------------------------------------+
Return the list of arbitrary days
get_s3_object
async
¶
Retrieve an object from an S3 bucket.
Parameters¶
bucket: str The name of the S3 bucket. filename: str The name of the file (key) in the S3 bucket.
Returns¶
dict A dictionary containing the object data and metadata.
Raises¶
FileNotFound If the object is not found in the bucket. ComponentError If there is an issue with retrieving the object.