Interface OriginProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,OriginOptions
- All Known Subinterfaces:
HttpOriginProps,LoadBalancerV2OriginProps,S3OriginProps
- All Known Implementing Classes:
HttpOriginProps.Jsii$Proxy,LoadBalancerV2OriginProps.Jsii$Proxy,OriginProps.Jsii$Proxy,S3OriginProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:43.732Z")
@Stability(Stable)
public interface OriginProps
extends software.amazon.jsii.JsiiSerializable, OriginOptions
Properties to define an Origin.
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.*;
OriginProps originProps = OriginProps.builder()
.connectionAttempts(123)
.connectionTimeout(Duration.minutes(30))
.customHeaders(Map.of(
"customHeadersKey", "customHeaders"))
.originPath("originPath")
.originShieldRegion("originShieldRegion")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forOriginPropsstatic final classAn implementation forOriginProps -
Method Summary
Modifier and TypeMethodDescriptionstatic OriginProps.Builderbuilder()default StringAn optional path that CloudFront appends to the origin domain name when CloudFront requests content from the origin.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.cloudfront.OriginOptions
getConnectionAttempts, getConnectionTimeout, getCustomHeaders, getOriginShieldRegion
-
Method Details
-
getOriginPath
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').
Default: '/'
-
builder
- Returns:
- a
OriginProps.BuilderofOriginProps
-