Interface S3BucketOriginWithOACProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,OriginOptions
,OriginProps
,S3BucketOriginBaseProps
- All Known Implementing Classes:
S3BucketOriginWithOACProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.106.0 (build e852934)",
date="2025-02-26T00:07:34.604Z")
@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 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
-