Interface S3BucketOriginWithOACProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,OriginOptions,OriginProps,S3BucketOriginBaseProps
- All Known Implementing Classes:
S3BucketOriginWithOACProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.110.0 (build 336b265)",
date="2025-04-22T23:08:08.734Z")
@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.LIST))
.build());
Distribution.Builder.create(this, "distribution")
.defaultBehavior(BehaviorOptions.builder()
.origin(s3Origin)
.build())
.defaultRootObject("index.html")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forS3BucketOriginWithOACPropsstatic final classAn implementation forS3BucketOriginWithOACProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default IOriginAccessControlAn 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$toJsonMethods inherited from interface software.amazon.awscdk.services.cloudfront.OriginOptions
getConnectionAttempts, getConnectionTimeout, getCustomHeaders, getOriginAccessControlId, getOriginId, getOriginShieldEnabled, getOriginShieldRegionMethods 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.BuilderofS3BucketOriginWithOACProps
-