nat.plugins.s3.s3_object_store#

Attributes#

Classes#

S3ObjectStore

S3ObjectStore is an ObjectStore implementation that uses S3 as the underlying storage.

Module Contents#

logger#
class S3ObjectStore(
*,
bucket_name: str,
endpoint_url: str | None,
access_key: str | None,
secret_key: str | None,
region: str | None,
)#

Bases: nat.object_store.interfaces.ObjectStore

S3ObjectStore is an ObjectStore implementation that uses S3 as the underlying storage.

bucket_name#
session#
_client: botocore.client.BaseClient | None = None#
_client_context = None#
_client_args: dict#
async put_object(
key: str,
item: nat.object_store.models.ObjectStoreItem,
) None#
async upsert_object(
key: str,
item: nat.object_store.models.ObjectStoreItem,
) None#
async get_object(key: str) nat.object_store.models.ObjectStoreItem#
async delete_object(key: str) None#