Interface CfnDistribution.LegacyCustomOriginProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnDistribution.LegacyCustomOriginProperty.Jsii$Proxy
Enclosing class:
CfnDistribution

@Stability(Stable) public static interface CfnDistribution.LegacyCustomOriginProperty extends software.amazon.jsii.JsiiSerializable
A custom origin.

A custom origin is any origin that is not an Amazon S3 bucket, with one exception. An Amazon S3 bucket that is configured with static website hosting is a custom origin.

This property is legacy. We recommend that you use Origin instead.

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.*;
 LegacyCustomOriginProperty legacyCustomOriginProperty = LegacyCustomOriginProperty.builder()
         .dnsName("dnsName")
         .originProtocolPolicy("originProtocolPolicy")
         .originSslProtocols(List.of("originSslProtocols"))
         // the properties below are optional
         .httpPort(123)
         .httpsPort(123)
         .build();
 

See Also: