Interface CustomOriginConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CustomOriginConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-06T23:25:05.538Z")
@Stability(Stable)
public interface CustomOriginConfig
extends software.amazon.jsii.JsiiSerializable
A custom origin configuration.
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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCustomOriginConfig
static final class
An implementation forCustomOriginConfig
-
Method Summary
Modifier and TypeMethodDescriptionstatic CustomOriginConfig.Builder
builder()
default List<OriginSslPolicy>
The SSL versions to use when interacting with the origin.The domain name of the custom origin.default Number
The origin HTTP port.default Number
The origin HTTPS port.Any additional headers to pass to the origin.default Duration
The keep alive timeout when making calls in seconds.default String
The relative path to the origin root to use for sources.default OriginProtocolPolicy
The protocol (http or https) policy to use when interacting with the origin.default Duration
The read timeout when calling the origin in seconds.default String
When you enable Origin Shield in the AWS Region that has the lowest latency to your origin, you can get better network performance.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDomainName
The domain name of the custom origin.Should not include the path - that should be in the parent SourceConfiguration
-
getAllowedOriginSSLVersions
The SSL versions to use when interacting with the origin.Default: OriginSslPolicy.TLS_V1_2
-
getHttpPort
The origin HTTP port.Default: 80
-
getHttpsPort
The origin HTTPS port.Default: 443
-
getOriginHeaders
Any additional headers to pass to the origin.Default: - No additional headers are passed.
-
getOriginKeepaliveTimeout
The keep alive timeout when making calls in seconds.Default: Duration.seconds(5)
-
getOriginPath
The relative path to the origin root to use for sources.Default: /
-
getOriginProtocolPolicy
The protocol (http or https) policy to use when interacting with the origin.Default: OriginProtocolPolicy.HttpsOnly
-
getOriginReadTimeout
The read timeout when calling the origin in seconds.Default: Duration.seconds(30)
-
getOriginShieldRegion
When you enable Origin Shield in the AWS Region that has the lowest latency to your origin, you can get better network performance.Default: - origin shield not enabled
-
builder
- Returns:
- a
CustomOriginConfig.Builder
ofCustomOriginConfig
-