interface LegacyCustomOriginProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.CloudFront.CfnDistribution.LegacyCustomOriginProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#CfnDistribution_LegacyCustomOriginProperty |
![]() | software.amazon.awscdk.services.cloudfront.CfnDistribution.LegacyCustomOriginProperty |
![]() | aws_cdk.aws_cloudfront.CfnDistribution.LegacyCustomOriginProperty |
![]() | aws-cdk-lib » aws_cloudfront » CfnDistribution » LegacyCustomOriginProperty |
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 { 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
Name | Type | Description |
---|---|---|
dns | string | The domain name assigned to your CloudFront distribution. |
origin | string | Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. |
origin | string[] | The minimum SSL/TLS protocol version that CloudFront uses when communicating with your origin server over HTTPs. |
http | number | The HTTP port that CloudFront uses to connect to the origin. |
https | number | The HTTPS port that CloudFront uses to connect to the origin. |
dnsName
Type:
string
The domain name assigned to your CloudFront distribution.
originProtocolPolicy
Type:
string
Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin.
originSslProtocols
Type:
string[]
The minimum SSL/TLS protocol version that CloudFront uses when communicating with your origin server over HTTPs.
For more information, see Minimum Origin SSL Protocol in the Amazon CloudFront Developer Guide .
httpPort?
Type:
number
(optional, default: 80)
The HTTP port that CloudFront uses to connect to the origin.
Specify the HTTP port that the origin listens on.
httpsPort?
Type:
number
(optional, default: 443)
The HTTPS port that CloudFront uses to connect to the origin.
Specify the HTTPS port that the origin listens on.