interface LegacyCustomOriginProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CloudFront.Mixins.CfnDistributionPropsMixin.LegacyCustomOriginProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscloudfront/mixins#CfnDistributionPropsMixin_LegacyCustomOriginProperty |
Java | software.amazon.awscdk.mixins.preview.services.cloudfront.mixins.CfnDistributionPropsMixin.LegacyCustomOriginProperty |
Python | aws_cdk.mixins_preview.aws_cloudfront.mixins.CfnDistributionPropsMixin.LegacyCustomOriginProperty |
TypeScript | @aws-cdk/mixins-preview » aws_cloudfront » mixins » CfnDistributionPropsMixin » 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 { mixins as cloudfront_mixins } from '@aws-cdk/mixins-preview/aws-cloudfront';
const legacyCustomOriginProperty: cloudfront_mixins.CfnDistributionPropsMixin.LegacyCustomOriginProperty = {
dnsName: 'dnsName',
httpPort: 123,
httpsPort: 123,
originProtocolPolicy: 'originProtocolPolicy',
originSslProtocols: ['originSslProtocols'],
};
Properties
| Name | Type | Description |
|---|---|---|
| dns | string | The domain name assigned to your CloudFront distribution. |
| 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. |
| 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. |
dnsName?
Type:
string
(optional)
The domain name assigned to your CloudFront distribution.
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.
originProtocolPolicy?
Type:
string
(optional)
Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin.
originSslProtocols?
Type:
string[]
(optional)
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 .

.NET
Go
Java
Python
TypeScript