snowflake.core.external_volume

Manages Snowpark Container External Volume.

Example

>>> new_external_volume_def = ExternalVolume(
...     name="MY_EXTERNAL_VOLUME",
...     storage_location=StorageLocationS3(
...         name="abcd-my-s3-us-west-2",
...         storage_base_url="s3://MY_EXAMPLE_BUCKET/",
...         storage_aws_role_arn="arn:aws:iam::123456789022:role/myrole",
...         encryption=Encryption(type="AWS_SSE_KMS",
...                                kms_key_id="1234abcd-12ab-34cd-56ef-1234567890ab")
...     ),
...     comment="This is my external volume",
... )
>>> new_external_volume = root.external_volumes.create(new_external_volume_def)
>>> external_volume_snapshot = new_external_volume.fetch()
>>> external_volume_data = root.external_volumes.iter(like=”%MY_EXTERNAL_VOLUME)
>>> new_external_volume.drop()
Copy

Refer to snowflake.core.Root to create the root.

Classes

ExternalVolume(*, name, storage_locations[, ...])

A model object representing the ExternalVolume resource.

ExternalVolumeCollection(root)

Represents the collection operations of the Snowflake External Volume resource.

ExternalVolumeResource(name, collection)

Represents a reference to a Snowflake external volume.

StorageLocationS3(*, name, ...[, ...])

A model object representing the StorageLocationS3 resource.

StorageLocationAzure(*, name, ...)

A model object representing the StorageLocationAzure resource.

StorageLocationGcs(*, name, storage_base_url)

A model object representing the StorageLocationGcs resource.

Encryption(*, type[, kms_key_id])

A model object representing the Encryption resource.

StorageLocationS3Gov(*, name, ...[, ...])

A model object representing the StorageLocationS3Gov resource.