BucketAccessControl Enum
Default bucket access control types.
Example
ts
const websiteBucket = new s3.Bucket(this, 'WebsiteBucket', {
websiteIndexDocument: 'index.html',
publicReadAccess: true,
});
new s3deploy.BucketDeployment(this, 'DeployWebsite', {
sources: [s3deploy.Source.asset('./website-dist')],
destinationBucket: websiteBucket,
destinationKeyPrefix: 'web/static', // optional prefix in destination bucket
metadata: { A: "1", b: "2" }, // user-defined metadata
// system-defined metadata
contentType: "text/html",
contentLanguage: "en",
storageClass: s3deploy.StorageClass.INTELLIGENT_TIERING,
serverSideEncryption: s3deploy.ServerSideEncryption.AES_256,
cacheControl: [
s3deploy.CacheControl.setPublic(),
s3deploy.CacheControl.maxAge(Duration.hours(1)),
],
accessControl: s3.BucketAccessControl.BUCKET_OWNER_FULL_CONTROL,
});
Members
| Member | Description |
|---|---|
PRIVATE | Owner gets FULL_CONTROL. |
PUBLIC_READ | Owner gets FULL_CONTROL. |
PUBLIC_READ_WRITE | Owner gets FULL_CONTROL. |
AUTHENTICATED_READ | Owner gets FULL_CONTROL. |
LOG_DELIVERY_WRITE | The LogDelivery group gets WRITE and READ_ACP permissions on the bucket. |
BUCKET_OWNER_READ | Object owner gets FULL_CONTROL. |
BUCKET_OWNER_FULL_CONTROL | Both the object owner and the bucket owner get FULL_CONTROL over the object. |
AWS_EXEC_READ | Owner gets FULL_CONTROL. |
Referenced by
BucketDeploymentProps.accessControlaccess_controlaccessControlAccessControlAccessControlBucketProps.accessControlaccess_controlaccessControlAccessControlAccessControlS3DeployActionProps.accessControlaccess_controlaccessControlAccessControlAccessControlS3PutObjectActionProps.accessControlaccess_controlaccessControlAccessControlAccessControl