@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.152Z") @Stability(value=Stable) public interface S3OriginConfig extends software.amazon.jsii.JsiiSerializable
Example:
Bucket sourceBucket;
ViewerCertificate viewerCertificate = ViewerCertificate.fromIamCertificate("MYIAMROLEIDENTIFIER", ViewerCertificateOptions.builder()
.aliases(List.of("MYALIAS"))
.build());
CloudFrontWebDistribution.Builder.create(this, "MyCfWebDistribution")
.originConfigs(List.of(SourceConfiguration.builder()
.s3OriginSource(S3OriginConfig.builder()
.s3BucketSource(sourceBucket)
.build())
.behaviors(List.of(Behavior.builder().isDefaultBehavior(true).build()))
.build()))
.viewerCertificate(viewerCertificate)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
S3OriginConfig.Builder
A builder for
S3OriginConfig |
static class |
S3OriginConfig.Jsii$Proxy
An implementation for
S3OriginConfig |
| Modifier and Type | Method and Description |
|---|---|
static S3OriginConfig.Builder |
builder() |
default IOriginAccessIdentity |
getOriginAccessIdentity()
The optional Origin Access Identity of the origin identity cloudfront will use when calling your s3 bucket.
|
default Map<String,String> |
getOriginHeaders()
Any additional headers to pass to the origin.
|
default String |
getOriginPath()
The relative path to the origin root to use for sources.
|
default String |
getOriginShieldRegion()
When you enable Origin Shield in the AWS Region that has the lowest latency to your origin, you can get better network performance.
|
IBucket |
getS3BucketSource()
The source bucket to serve content from.
|
@Stability(value=Stable) @NotNull IBucket getS3BucketSource()
@Stability(value=Stable) @Nullable default IOriginAccessIdentity getOriginAccessIdentity()
Default: No Origin Access Identity which requires the S3 bucket to be public accessible
@Stability(value=Stable) @Nullable default Map<String,String> getOriginHeaders()
Default: - No additional headers are passed.
@Stability(value=Stable) @Nullable default String getOriginPath()
Default: /
@Stability(value=Stable) @Nullable default String getOriginShieldRegion()
Default: - origin shield not enabled
@Stability(value=Stable) static S3OriginConfig.Builder builder()
S3OriginConfig.Builder of S3OriginConfigCopyright © 2022. All rights reserved.