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()
Refer to snowflake.core.Root
to create the root
.
Classes
|
A model object representing the ExternalVolume resource. |
|
Represents the collection operations of the Snowflake External Volume resource. |
|
Represents a reference to a Snowflake external volume. |
|
A model object representing the StorageLocationS3 resource. |
|
A model object representing the StorageLocationAzure resource. |
|
A model object representing the StorageLocationGcs resource. |
|
A model object representing the Encryption resource. |
|
A model object representing the StorageLocationS3Gov resource. |