nat.plugins.s3.object_store#

Classes#

S3ObjectStoreClientConfig

Object store that stores objects in an S3 bucket.

Functions#

s3_object_store_client(config, _builder)

Module Contents#

class S3ObjectStoreClientConfig(/, **data: Any)#

Bases: nat.data_models.object_store.ObjectStoreBaseConfig

Object store that stores objects in an S3 bucket.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

ACCESS_KEY_ENV: ClassVar[str] = 'NAT_S3_OBJECT_STORE_ACCESS_KEY'#
SECRET_KEY_ENV: ClassVar[str] = 'NAT_S3_OBJECT_STORE_SECRET_KEY'#
bucket_name: str = None#
endpoint_url: str | None = None#
access_key: str | None = None#
secret_key: str | None = None#
region: str | None = None#
async s3_object_store_client(
config: S3ObjectStoreClientConfig,
_builder: nat.builder.builder.Builder,
)#