-
Notifications
You must be signed in to change notification settings - Fork 17
/
ObjectOwnership.go
31 lines (27 loc) · 1.11 KB
/
ObjectOwnership.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package awss3
// The ObjectOwnership of the bucket.
//
// Example:
// accessLogsBucket := s3.NewBucket(this, jsii.String("AccessLogsBucket"), &BucketProps{
// ObjectOwnership: s3.ObjectOwnership_BUCKET_OWNER_ENFORCED,
// })
//
// bucket := s3.NewBucket(this, jsii.String("MyBucket"), &BucketProps{
// ServerAccessLogsBucket: accessLogsBucket,
// ServerAccessLogsPrefix: jsii.String("logs"),
// })
//
// See: https://docs.aws.amazon.com/AmazonS3/latest/dev/about-object-ownership.html
//
type ObjectOwnership string
const (
// ACLs are disabled, and the bucket owner automatically owns and has full control over every object in the bucket.
//
// ACLs no longer affect permissions to data in the S3 bucket.
// The bucket uses policies to define access control.
ObjectOwnership_BUCKET_OWNER_ENFORCED ObjectOwnership = "BUCKET_OWNER_ENFORCED"
// Objects uploaded to the bucket change ownership to the bucket owner .
ObjectOwnership_BUCKET_OWNER_PREFERRED ObjectOwnership = "BUCKET_OWNER_PREFERRED"
// The uploading account will own the object.
ObjectOwnership_OBJECT_WRITER ObjectOwnership = "OBJECT_WRITER"
)