Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Latest commit

 

History

History
34 lines (26 loc) · 2.49 KB

S3StorageInfo.md

File metadata and controls

34 lines (26 loc) · 2.49 KB

S3StorageInfo

Properties

Name Type Description Notes
destination str S3 destination. For example: `s3://my-bucket/some-prefix` You must configure the cluster with an instance profile and the instance profile must have write access to the destination. You cannot use AWS keys. [optional]
region str S3 region. For example: `us-west-2`. Either region or endpoint must be set. If both are set, endpoint is used. [optional]
endpoint str S3 endpoint. For example: `https://s3-us-west-2.amazonaws.com`. Either region or endpoint must be set. If both are set, endpoint is used. [optional]
enable_encryption bool (Optional)Enable server side encryption, `false` by default. [optional]
encryption_type str (Optional) The encryption type, it could be `sse-s3` or `sse-kms`. It is used only when encryption is enabled and the default type is `sse-s3`. [optional]
kms_key str (Optional) KMS key used if encryption is enabled and encryption type is set to `sse-kms`. [optional]
canned_acl str (Optional) Set canned access control list. For example: `bucket-owner-full-control`. If canned_acl is set, the cluster instance profile must have `s3:PutObjectAcl` permission on the destination bucket and prefix. The full list of possible canned ACLs can be found at <https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl>. By default only the object owner gets full control. If you are using cross account role for writing data, you may want to set `bucket-owner-full-control` to make bucket owner able to read the logs. [optional]

Example

from databricks_jobs.models.s3_storage_info import S3StorageInfo

# TODO update the JSON string below
json = "{}"
# create an instance of S3StorageInfo from a JSON string
s3_storage_info_instance = S3StorageInfo.from_json(json)
# print the JSON string representation of the object
print S3StorageInfo.to_json()

# convert the object into a dict
s3_storage_info_dict = s3_storage_info_instance.to_dict()
# create an instance of S3StorageInfo from a dict
s3_storage_info_form_dict = s3_storage_info.from_dict(s3_storage_info_dict)

[Back to Model list] [Back to API list] [Back to README]