| Modifier and Type | Method and Description |
|---|---|
S3Origin |
build() |
S3Origin.Builder |
connectionAttempts(Number connectionAttempts)
The number of times that CloudFront attempts to connect to the origin;
|
S3Origin.Builder |
connectionTimeout(Duration connectionTimeout)
The number of seconds that CloudFront waits when trying to establish a connection to the origin.
|
static S3Origin.Builder |
create(IBucket bucket) |
S3Origin.Builder |
customHeaders(Map<String,String> customHeaders)
A list of HTTP header names and values that CloudFront adds to requests it sends to the origin.
|
S3Origin.Builder |
originAccessIdentity(IOriginAccessIdentity originAccessIdentity)
An optional Origin Access Identity of the origin identity cloudfront will use when calling your s3 bucket.
|
S3Origin.Builder |
originPath(String originPath)
An optional path that CloudFront appends to the origin domain name when CloudFront requests content from the origin.
|
S3Origin.Builder |
originShieldRegion(String originShieldRegion)
When you enable Origin Shield in the AWS Region that has the lowest latency to your origin, you can get better network performance.
|
@Stability(value=Stable) public static S3Origin.Builder create(IBucket bucket)
bucket - This parameter is required.S3Origin.Builder.@Stability(value=Stable) public S3Origin.Builder connectionAttempts(Number connectionAttempts)
valid values are 1, 2, or 3 attempts.
Default: 3
connectionAttempts - The number of times that CloudFront attempts to connect to the origin;. This parameter is required.this@Stability(value=Stable) public S3Origin.Builder connectionTimeout(Duration connectionTimeout)
Valid values are 1-10 seconds, inclusive.
Default: Duration.seconds(10)
connectionTimeout - The number of seconds that CloudFront waits when trying to establish a connection to the origin. This parameter is required.this@Stability(value=Stable) public S3Origin.Builder customHeaders(Map<String,String> customHeaders)
Default: {}
customHeaders - A list of HTTP header names and values that CloudFront adds to requests it sends to the origin. This parameter is required.this@Stability(value=Stable) public S3Origin.Builder originShieldRegion(String originShieldRegion)
Default: - origin shield not enabled
originShieldRegion - When you enable Origin Shield in the AWS Region that has the lowest latency to your origin, you can get better network performance. This parameter is required.this@Stability(value=Stable) public S3Origin.Builder originPath(String originPath)
Must begin, but not end, with '/' (e.g., '/production/images').
Default: '/'
originPath - An optional path that CloudFront appends to the origin domain name when CloudFront requests content from the origin. This parameter is required.this@Stability(value=Stable) public S3Origin.Builder originAccessIdentity(IOriginAccessIdentity originAccessIdentity)
Default: - An Origin Access Identity will be created.
originAccessIdentity - An optional Origin Access Identity of the origin identity cloudfront will use when calling your s3 bucket. This parameter is required.thisCopyright © 2022. All rights reserved.