2.0.0b35
S3
Package: flyte.storage
S3 specific configuration
class S3(
retries: int,
backoff: datetime.timedelta,
enable_debug: bool,
attach_execution_metadata: bool,
endpoint: typing.Optional[str],
access_key_id: typing.Optional[str],
secret_access_key: typing.Optional[str],
region: typing.Optional[str],
)| Parameter | Type | Description |
|---|---|---|
retries |
int |
|
backoff |
datetime.timedelta |
|
enable_debug |
bool |
|
attach_execution_metadata |
bool |
|
endpoint |
typing.Optional[str] |
|
access_key_id |
typing.Optional[str] |
|
secret_access_key |
typing.Optional[str] |
|
region |
typing.Optional[str] |
Methods
| Method | Description |
|---|---|
auto() |
:return: Config. |
for_sandbox() |
:return:. |
get_fsspec_kwargs() |
Returns the configuration as kwargs for constructing an fsspec filesystem. |
auto()
def auto(
region: str | None,
) -> S3:return: Config
| Parameter | Type | Description |
|---|---|---|
region |
str | None |
for_sandbox()
def for_sandbox():return:
get_fsspec_kwargs()
def get_fsspec_kwargs(
anonymous: bool,
kwargs,
) -> typing.Dict[str, typing.Any]Returns the configuration as kwargs for constructing an fsspec filesystem.
| Parameter | Type | Description |
|---|---|---|
anonymous |
bool |
|
kwargs |
**kwargs |