Interface S3BucketOriginWithOACProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,OriginOptions
,OriginProps
,S3BucketOriginBaseProps
- All Known Implementing Classes:
S3BucketOriginWithOACProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-06T23:25:05.628Z")
@Stability(Stable)
public interface S3BucketOriginWithOACProps
extends software.amazon.jsii.JsiiSerializable, S3BucketOriginBaseProps
Properties for configuring a S3 origin with OAC.
Example:
Bucket myBucket = new Bucket(this, "myBucket"); IOrigin s3Origin = S3BucketOrigin.withOriginAccessControl(myBucket, S3BucketOriginWithOACProps.builder() .originAccessLevels(List.of(AccessLevel.READ, AccessLevel.WRITE, AccessLevel.DELETE)) .build());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forS3BucketOriginWithOACProps
static final class
An implementation forS3BucketOriginWithOACProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default IOriginAccessControl
An optional Origin Access Control.default List<AccessLevel>
The level of permissions granted in the bucket policy and key policy (if applicable) to the CloudFront distribution.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
Methods inherited from interface software.amazon.awscdk.services.cloudfront.OriginOptions
getConnectionAttempts, getConnectionTimeout, getCustomHeaders, getOriginAccessControlId, getOriginId, getOriginShieldEnabled, getOriginShieldRegion
Methods inherited from interface software.amazon.awscdk.services.cloudfront.OriginProps
getOriginPath
-
Method Details
-
getOriginAccessControl
An optional Origin Access Control.Default: - an Origin Access Control will be created.
-
getOriginAccessLevels
The level of permissions granted in the bucket policy and key policy (if applicable) to the CloudFront distribution.Default: [AccessLevel.READ]
-
builder
- Returns:
- a
S3BucketOriginWithOACProps.Builder
ofS3BucketOriginWithOACProps
-