Skip to content
v2.274.0

LegacyCustomOriginProperty Struct ​

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 ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const legacyCustomOriginProperty: cloudfront.CfnDistribution.LegacyCustomOriginProperty = {
  dnsName: 'dnsName',
  originProtocolPolicy: 'originProtocolPolicy',
  originSslProtocols: ['originSslProtocols'],

  // the properties below are optional
  httpPort: 123,
  httpsPort: 123,
};

Properties ​

dnsNamestringdns_namestrdnsNameStringDnsNamestringDnsName*stringrequired#
The domain name assigned to your CloudFront distribution.
httpPortnumberhttp_portint | floathttpPortNumberHttpPortdoubleHttpPort*float64= 80#
The HTTP port that CloudFront uses to connect to the origin.

Specify the HTTP port that the origin listens on.

httpsPortnumberhttps_portint | floathttpsPortNumberHttpsPortdoubleHttpsPort*float64= 443#
The HTTPS port that CloudFront uses to connect to the origin.

Specify the HTTPS port that the origin listens on.

originProtocolPolicystringorigin_protocol_policystroriginProtocolPolicyStringOriginProtocolPolicystringOriginProtocolPolicy*stringrequired#
Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin.
originSslProtocolsstring[]origin_ssl_protocolstyping.List[str]originSslProtocolsList<String>OriginSslProtocolsstring[]OriginSslProtocols*[]*stringrequired#
The minimum SSL/TLS protocol version that CloudFront uses when communicating with your origin server over HTTPs.
notes

For more information, see Minimum Origin SSL Protocol in the Amazon CloudFront Developer Guide .