Interface CfnDistribution.ILegacyCustomOriginProperty
A custom origin.
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnDistribution.ILegacyCustomOriginProperty
Syntax (vb)
Public Interface CfnDistribution.ILegacyCustomOriginProperty
Remarks
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 <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html">Origin</a> instead.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;
var legacyCustomOriginProperty = new LegacyCustomOriginProperty {
DnsName = "dnsName",
OriginProtocolPolicy = "originProtocolPolicy",
OriginSslProtocols = new [] { "originSslProtocols" },
// the properties below are optional
HttpPort = 123,
HttpsPort = 123
};
Synopsis
Properties
| DnsName | The domain name assigned to your CloudFront distribution. |
| HttpPort | The HTTP port that CloudFront uses to connect to the origin. |
| HttpsPort | The HTTPS port that CloudFront uses to connect to the origin. |
| OriginProtocolPolicy | Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. |
| OriginSslProtocols | The minimum SSL/TLS protocol version that CloudFront uses when communicating with your origin server over HTTPs. |
Properties
DnsName
The domain name assigned to your CloudFront distribution.
string DnsName { get; }
Property Value
Remarks
HttpPort
The HTTP port that CloudFront uses to connect to the origin.
double? HttpPort { get; }
Property Value
Remarks
Specify the HTTP port that the origin listens on.
Default: - 80
HttpsPort
The HTTPS port that CloudFront uses to connect to the origin.
double? HttpsPort { get; }
Property Value
Remarks
Specify the HTTPS port that the origin listens on.
Default: - 443
OriginProtocolPolicy
Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin.
string OriginProtocolPolicy { get; }
Property Value
Remarks
OriginSslProtocols
The minimum SSL/TLS protocol version that CloudFront uses when communicating with your origin server over HTTPs.
string[] OriginSslProtocols { get; }
Property Value
string[]
Remarks
For more information, see Minimum Origin SSL Protocol in the Amazon CloudFront Developer Guide .