Interface OriginProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable, OriginOptions
All Known Subinterfaces:
FunctionUrlOriginProps, HttpOriginProps, LoadBalancerV2OriginProps, RestApiOriginProps, S3OriginProps
All Known Implementing Classes:
FunctionUrlOriginProps.Jsii$Proxy, HttpOriginProps.Jsii$Proxy, LoadBalancerV2OriginProps.Jsii$Proxy, OriginProps.Jsii$Proxy, RestApiOriginProps.Jsii$Proxy, S3OriginProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.94.0 (build b380f01)", date="2024-03-01T20:58:20.918Z") @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"))
         .originId("originId")
         .originPath("originPath")
         .originShieldEnabled(false)
         .originShieldRegion("originShieldRegion")
         .build();
 
  • Method Details

    • getOriginPath

      @Stability(Stable) @Nullable default String 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

      @Stability(Stable) static OriginProps.Builder builder()
      Returns:
      a OriginProps.Builder of OriginProps