Interface S3BucketOriginWithOACProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,OriginOptions,OriginProps,S3BucketOriginBaseProps
- All Known Implementing Classes:
S3BucketOriginWithOACProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:40:47.195Z")
@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");
S3OriginAccessControl oac = S3OriginAccessControl.Builder.create(this, "MyOAC")
.signing(Signing.SIGV4_NO_OVERRIDE)
.build();
IOrigin s3Origin = S3BucketOrigin.withOriginAccessControl(myBucket, S3BucketOriginWithOACProps.builder()
.originAccessControl(oac)
.build());
Distribution.Builder.create(this, "myDist")
.defaultBehavior(BehaviorOptions.builder()
.origin(s3Origin)
.build())
.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, getOriginShieldRegion, getResponseCompletionTimeoutMethods 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
-