Reputation: 352
Using the jclouds library, how can one specify the bucket-owner-full-control canned acl when putting an object to amazon s3 e.g. blobStore.putBlob(containerName, blob)
. The CannedAccessPolicy class doesn't seem to have all the options as per the amazon s3 documentation - https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
Just to note that this is with jclouds 2.0.3
Upvotes: 0
Views: 154
Reputation: 2402
The portable BlobStore
interface cannot offer all the functionality of providers. Instead you should use the underlying provider interface, S3Client
and putObject
with the correct CannedAccessPolicy
. As you point out, in jclouds 2.0.3 this class lacks some of the constants and 2.1.0 will include a fix for this issue.
Upvotes: 1