adapter_s3_rest
The adapter_s3_rest method creates a catalog adapter using an S3-compatible provider and a REST catalog.
Syntax
Parameters
| Parameter | Type | Description |
|---|---|---|
| catalog_uri | str | The URI of the REST catalog. |
| warehouse_location | str | The location of the warehouse. |
| name | str | A descriptive name of the catalog. If not given, the catalog name is inferred from the catalog URI. |
| region_name | str | The S3 region name to use. If not given, the default region will be picked from the AWS SDK in the following order:
|
| access_key_id | str | The access key for reading files. Both this parameter and |
| secret_access_key | str | The secret access key for reading files. Both this parameter and |
| end_point_override | str | The S3 endpoint to connect to. Callers connecting to AWS do not typically need to set this parameter. It is typically used to connect to non-AWS, S3-compatible APIs. |
Returns
Examples
The following example creates a catalog adapter using a local MinIO instance and REST catalog: