Interface CfnDistribution.ILegacyCustomOriginProperty
A custom origin.
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ILegacyCustomOriginProperty
Syntax (vb)
Public Interface 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 Origin 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
System.String
Remarks
HttpPort
The HTTP port that CloudFront uses to connect to the origin.
virtual Nullable<double> HttpPort { get; }
Property Value
System.Nullable<System.Double>
Remarks
Specify the HTTP port that the origin listens on.
Default: - 80
HttpsPort
The HTTPS port that CloudFront uses to connect to the origin.
virtual Nullable<double> HttpsPort { get; }
Property Value
System.Nullable<System.Double>
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
System.String
Remarks
OriginSslProtocols
The minimum SSL/TLS protocol version that CloudFront uses when communicating with your origin server over HTTPs.
string[] OriginSslProtocols { get; }
Property Value
System.String[]
Remarks
For more information, see Minimum Origin SSL Protocol in the Amazon CloudFront Developer Guide .