@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.129Z") @Stability(value=Stable) public interface CustomOriginConfig extends software.amazon.jsii.JsiiSerializable
Example:
Bucket sourceBucket;
OriginAccessIdentity oai;
CloudFrontWebDistribution.Builder.create(this, "MyCfWebDistribution")
.originConfigs(List.of(SourceConfiguration.builder()
.s3OriginSource(S3OriginConfig.builder()
.s3BucketSource(sourceBucket)
.originAccessIdentity(oai)
.build())
.behaviors(List.of(Behavior.builder().isDefaultBehavior(true).build()))
.build(), SourceConfiguration.builder()
.customOriginSource(CustomOriginConfig.builder()
.domainName("MYALIAS")
.build())
.behaviors(List.of(Behavior.builder().pathPattern("/somewhere").build()))
.build()))
.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.