Interface S3BucketOriginWithOAIProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,OriginOptions
,OriginProps
,S3BucketOriginBaseProps
- All Known Implementing Classes:
S3BucketOriginWithOAIProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.106.0 (build e852934)",
date="2025-02-26T00:07:34.605Z")
@Stability(Stable)
public interface S3BucketOriginWithOAIProps
extends software.amazon.jsii.JsiiSerializable, S3BucketOriginBaseProps
Properties for configuring a S3 origin with OAI.
Example:
Bucket myBucket = new Bucket(this, "myBucket"); OriginAccessIdentity myOai = OriginAccessIdentity.Builder.create(this, "myOAI") .comment("My custom OAI") .build(); IOrigin s3Origin = S3BucketOrigin.withOriginAccessIdentity(myBucket, S3BucketOriginWithOAIProps.builder() .originAccessIdentity(myOai) .build()); Distribution.Builder.create(this, "myDist") .defaultBehavior(BehaviorOptions.builder() .origin(s3Origin) .build()) .build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forS3BucketOriginWithOAIProps
static final class
An implementation forS3BucketOriginWithOAIProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default IOriginAccessIdentity
An optional Origin Access Identity.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
-
getOriginAccessIdentity
An optional Origin Access Identity.Default: - an Origin Access Identity will be created.
-
builder
- Returns:
- a
S3BucketOriginWithOAIProps.Builder
ofS3BucketOriginWithOAIProps
-