@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.143Z") @Stability(value=Stable) public interface OriginProps extends software.amazon.jsii.JsiiSerializable, OriginOptions
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.cloudfront.*;
OriginProps originProps = OriginProps.builder()
.connectionAttempts(123)
.connectionTimeout(Duration.minutes(30))
.customHeaders(Map.of(
"customHeadersKey", "customHeaders"))
.originPath("originPath")
.originShieldRegion("originShieldRegion")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
OriginProps.Builder
A builder for
OriginProps |
static class |
OriginProps.Jsii$Proxy
An implementation for
OriginProps |
| Modifier and Type | Method and Description |
|---|---|
static OriginProps.Builder |
builder() |
default String |
getOriginPath()
An optional path that CloudFront appends to the origin domain name when CloudFront requests content from the origin.
|
getConnectionAttempts, getConnectionTimeout, getCustomHeaders, getOriginShieldRegion@Stability(value=Stable) @Nullable default String getOriginPath()
Must begin, but not end, with '/' (e.g., '/production/images').
Default: '/'
@Stability(value=Stable) static OriginProps.Builder builder()
builder in interface OriginOptionsOriginProps.Builder of OriginPropsCopyright © 2022. All rights reserved.