Interface OriginAccessIdentityProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
OriginAccessIdentityProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-05T03:43:40.021Z")
@Stability(Stable)
public interface OriginAccessIdentityProps
extends software.amazon.jsii.JsiiSerializable
Properties of CloudFront OriginAccessIdentity.
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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forOriginAccessIdentityProps
static final class
An implementation forOriginAccessIdentityProps
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getComment
Any comments you want to include about the origin access identity.Default: "Allows CloudFront to reach the bucket"
-
builder
- Returns:
- a
OriginAccessIdentityProps.Builder
ofOriginAccessIdentityProps
-