Interface OriginProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,OriginOptions
- All Known Subinterfaces:
FunctionUrlOriginBaseProps
,FunctionUrlOriginProps
,FunctionUrlOriginWithOACProps
,HttpOriginProps
,LoadBalancerV2OriginProps
,RestApiOriginProps
,S3BucketOriginBaseProps
,S3BucketOriginWithOACProps
,S3BucketOriginWithOAIProps
,S3OriginProps
,S3StaticWebsiteOriginProps
- All Known Implementing Classes:
FunctionUrlOriginBaseProps.Jsii$Proxy
,FunctionUrlOriginProps.Jsii$Proxy
,FunctionUrlOriginWithOACProps.Jsii$Proxy
,HttpOriginProps.Jsii$Proxy
,LoadBalancerV2OriginProps.Jsii$Proxy
,OriginProps.Jsii$Proxy
,RestApiOriginProps.Jsii$Proxy
,S3BucketOriginBaseProps.Jsii$Proxy
,S3BucketOriginWithOACProps.Jsii$Proxy
,S3BucketOriginWithOAIProps.Jsii$Proxy
,S3OriginProps.Jsii$Proxy
,S3StaticWebsiteOriginProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:23:58.319Z")
@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.*; import software.amazon.awscdk.services.cloudfront.*; OriginProps originProps = OriginProps.builder() .connectionAttempts(123) .connectionTimeout(Duration.minutes(30)) .customHeaders(Map.of( "customHeadersKey", "customHeaders")) .originAccessControlId("originAccessControlId") .originId("originId") .originPath("originPath") .originShieldEnabled(false) .originShieldRegion("originShieldRegion") .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forOriginProps
static final class
An implementation forOriginProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic OriginProps.Builder
builder()
default String
An 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$toJson
Methods inherited from interface software.amazon.awscdk.services.cloudfront.OriginOptions
getConnectionAttempts, getConnectionTimeout, getCustomHeaders, getOriginAccessControlId, getOriginId, getOriginShieldEnabled, 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.Builder
ofOriginProps
-