snowflake.core.external_volume.StorageLocationS3¶

class snowflake.core.external_volume.StorageLocationS3(*, name: Annotated[str, Strict(strict=True)], storage_aws_role_arn: Annotated[str, Strict(strict=True)], storage_base_url: Annotated[str, Strict(strict=True)], storage_aws_external_id: Annotated[str, Strict(strict=True)] | None = None, encryption: Encryption | None = None)¶

Bases: StorageLocation

A model object representing the StorageLocationS3 resource.

Constructs an object of type StorageLocationS3 with the provided properties.

Parameters:
  • name (str)

  • storage_aws_role_arn (str) – Specifies the case-sensitive Amazon Resource Name (ARN) of the AWS identity and access management (IAM) role that grants privileges on the S3 bucket containing your data files.

  • storage_base_url (str) – Specifies the base URL for your cloud storage location.

  • storage_aws_external_id (str, optional) – Optionally specifies an external ID that Snowflake uses to establish a trust relationship with AWS.

  • encryption (Encryption, optional)

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.

Methods

classmethod from_dict(obj: dict) → StorageLocationS3¶

Create an instance of StorageLocationS3 from a dict.

classmethod from_json(json_str: str) → StorageLocationS3¶

Create an instance of StorageLocationS3 from a JSON string.

to_dict()¶

Returns the dictionary representation of the model using alias.

to_json() → str¶

Returns the JSON representation of the model using alias.

to_str() → str¶

Returns the string representation of the model using alias.