@Stability(value=Stable) public static final class HttpOriginProps.Builder extends Object implements software.amazon.jsii.Builder<HttpOriginProps>
HttpOriginProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public HttpOriginProps.Builder httpPort(Number httpPort)
HttpOriginProps.getHttpPort()httpPort - The HTTP port that CloudFront uses to connect to the origin.this@Stability(value=Stable) public HttpOriginProps.Builder httpsPort(Number httpsPort)
HttpOriginProps.getHttpsPort()httpsPort - The HTTPS port that CloudFront uses to connect to the origin.this@Stability(value=Stable) public HttpOriginProps.Builder keepaliveTimeout(Duration keepaliveTimeout)
HttpOriginProps.getKeepaliveTimeout()keepaliveTimeout - Specifies how long, in seconds, CloudFront persists its connection to the origin.
The valid range is from 1 to 180 seconds, inclusive.
Note that values over 60 seconds are possible only after a limit increase request for the origin response timeout quota has been approved in the target account; otherwise, values over 60 seconds will produce an error at deploy time.
this@Stability(value=Stable) public HttpOriginProps.Builder originSslProtocols(List<? extends OriginSslPolicy> originSslProtocols)
HttpOriginProps.getOriginSslProtocols()originSslProtocols - The SSL versions to use when interacting with the origin.this@Stability(value=Stable) public HttpOriginProps.Builder protocolPolicy(OriginProtocolPolicy protocolPolicy)
HttpOriginProps.getProtocolPolicy()protocolPolicy - Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin.this@Stability(value=Stable) public HttpOriginProps.Builder readTimeout(Duration readTimeout)
HttpOriginProps.getReadTimeout()readTimeout - Specifies how long, in seconds, CloudFront waits for a response from the origin, also known as the origin response timeout.
The valid range is from 1 to 180 seconds, inclusive.
Note that values over 60 seconds are possible only after a limit increase request for the origin response timeout quota has been approved in the target account; otherwise, values over 60 seconds will produce an error at deploy time.
this@Stability(value=Stable) public HttpOriginProps.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 HttpOriginProps.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 HttpOriginProps.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 HttpOriginProps.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 HttpOriginProps.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 HttpOriginProps build()
build in interface software.amazon.jsii.Builder<HttpOriginProps>HttpOriginPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.