AccessLevel

class aws_cdk.aws_cloudfront.AccessLevel(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

The level of permissions granted to the CloudFront Distribution when configuring OAC.

ExampleMetadata:

infused

Example:

my_bucket = s3.Bucket(self, "myBucket")
s3_origin = origins.S3BucketOrigin.with_origin_access_control(my_bucket,
    origin_access_levels=[cloudfront.AccessLevel.READ, cloudfront.AccessLevel.WRITE, cloudfront.AccessLevel.DELETE]
)

Attributes

DELETE

Grants delete permission to CloudFront Distribution.

READ

Grants read permissions to CloudFront Distribution.

WRITE

Grants write permission to CloudFront Distribution.