@Stability(value=Stable) public static final class S3OriginProps.Builder extends Object implements software.amazon.jsii.Builder<S3OriginProps>
S3OriginProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
S3OriginProps |
build()
Builds the configured instance.
|
S3OriginProps.Builder |
connectionAttempts(Number connectionAttempts)
Sets the value of
OriginOptions.getConnectionAttempts() |
S3OriginProps.Builder |
connectionTimeout(Duration connectionTimeout)
Sets the value of
OriginOptions.getConnectionTimeout() |
S3OriginProps.Builder |
customHeaders(Map<String,String> customHeaders)
Sets the value of
OriginOptions.getCustomHeaders() |
S3OriginProps.Builder |
originAccessIdentity(IOriginAccessIdentity originAccessIdentity)
Sets the value of
S3OriginProps.getOriginAccessIdentity() |
S3OriginProps.Builder |
originPath(String originPath)
Sets the value of
OriginProps.getOriginPath() |
S3OriginProps.Builder |
originShieldRegion(String originShieldRegion)
Sets the value of
OriginOptions.getOriginShieldRegion() |
@Stability(value=Stable) public S3OriginProps.Builder originAccessIdentity(IOriginAccessIdentity originAccessIdentity)
S3OriginProps.getOriginAccessIdentity()originAccessIdentity - An optional Origin Access Identity of the origin identity cloudfront will use when calling your s3 bucket.this@Stability(value=Stable) public S3OriginProps.Builder originPath(String originPath)
OriginProps.getOriginPath()originPath - An optional path that CloudFront appends to the origin domain name when CloudFront requests content from the origin.
Must begin, but not end, with '/' (e.g., '/production/images').this@Stability(value=Stable) public S3OriginProps.Builder connectionAttempts(Number connectionAttempts)
OriginOptions.getConnectionAttempts()connectionAttempts - The number of times that CloudFront attempts to connect to the origin;.
valid values are 1, 2, or 3 attempts.this@Stability(value=Stable) public S3OriginProps.Builder connectionTimeout(Duration connectionTimeout)
OriginOptions.getConnectionTimeout()connectionTimeout - The number of seconds that CloudFront waits when trying to establish a connection to the origin.
Valid values are 1-10 seconds, inclusive.this@Stability(value=Stable) public S3OriginProps.Builder customHeaders(Map<String,String> customHeaders)
OriginOptions.getCustomHeaders()customHeaders - A list of HTTP header names and values that CloudFront adds to requests it sends to the origin.this@Stability(value=Stable) public S3OriginProps.Builder originShieldRegion(String originShieldRegion)
OriginOptions.getOriginShieldRegion()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@Stability(value=Stable) public S3OriginProps build()
build in interface software.amazon.jsii.Builder<S3OriginProps>S3OriginPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.