@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-11T17:58:48.794Z") @Stability(value=Stable) public interface CustomOriginConfig extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudfront.*;
import software.amazon.awscdk.core.*;
CustomOriginConfig customOriginConfig = CustomOriginConfig.builder()
.domainName("domainName")
// the properties below are optional
.allowedOriginSSLVersions(List.of(OriginSslPolicy.SSL_V3))
.httpPort(123)
.httpsPort(123)
.originHeaders(Map.of(
"originHeadersKey", "originHeaders"))
.originKeepaliveTimeout(Duration.minutes(30))
.originPath("originPath")
.originProtocolPolicy(OriginProtocolPolicy.HTTP_ONLY)
.originReadTimeout(Duration.minutes(30))
.originShieldRegion("originShieldRegion")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CustomOriginConfig.Builder
A builder for
CustomOriginConfig |
static class |
CustomOriginConfig.Jsii$Proxy
An implementation for
CustomOriginConfig |
| Modifier and Type | Method and Description |
|---|---|
static CustomOriginConfig.Builder |
builder() |
default List<OriginSslPolicy> |
getAllowedOriginSSLVersions()
The SSL versions to use when interacting with the origin.
|
String |
getDomainName()
The domain name of the custom origin.
|
default Number |
getHttpPort()
The origin HTTP port.
|
default Number |
getHttpsPort()
The origin HTTPS port.
|
default Map<String,String> |
getOriginHeaders()
Any additional headers to pass to the origin.
|
default Duration |
getOriginKeepaliveTimeout()
The keep alive timeout when making calls in seconds.
|
default String |
getOriginPath()
The relative path to the origin root to use for sources.
|
default OriginProtocolPolicy |
getOriginProtocolPolicy()
The protocol (http or https) policy to use when interacting with the origin.
|
default Duration |
getOriginReadTimeout()
The read timeout when calling the origin in seconds.
|
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.
|
@Stability(value=Stable) @NotNull String getDomainName()
Should not include the path - that should be in the parent SourceConfiguration
@Stability(value=Stable) @Nullable default List<OriginSslPolicy> getAllowedOriginSSLVersions()
Default: OriginSslPolicy.TLS_V1_2
@Stability(value=Stable) @Nullable default Number getHttpPort()
Default: 80
@Stability(value=Stable) @Nullable default Number getHttpsPort()
Default: 443
@Stability(value=Stable) @Nullable default Map<String,String> getOriginHeaders()
Default: - No additional headers are passed.
@Stability(value=Stable) @Nullable default Duration getOriginKeepaliveTimeout()
Default: Duration.seconds(5)
@Stability(value=Stable) @Nullable default String getOriginPath()
Default: /
@Stability(value=Stable) @Nullable default OriginProtocolPolicy getOriginProtocolPolicy()
Default: OriginProtocolPolicy.HttpsOnly
@Stability(value=Stable) @Nullable default Duration getOriginReadTimeout()
Default: Duration.seconds(30)
@Stability(value=Stable) @Nullable default String getOriginShieldRegion()
Default: - origin shield not enabled
@Stability(value=Stable) static CustomOriginConfig.Builder builder()
CustomOriginConfig.Builder of CustomOriginConfigCopyright © 2022. All rights reserved.