Interface CustomOriginConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CustomOriginConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:00.561Z")
@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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCustomOriginConfigstatic final classAn implementation forCustomOriginConfig -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomOriginConfig.Builderbuilder()default List<OriginSslPolicy> The SSL versions to use when interacting with the origin.The domain name of the custom origin.default NumberThe origin HTTP port.default NumberThe origin HTTPS port.Any additional headers to pass to the origin.default DurationThe keep alive timeout when making calls in seconds.default StringThe relative path to the origin root to use for sources.default OriginProtocolPolicyThe protocol (http or https) policy to use when interacting with the origin.default DurationThe read timeout when calling the origin in seconds.default StringWhen 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.BuilderofCustomOriginConfig
-