Class CfnDistribution.LegacyCustomOriginProperty
A custom origin.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class LegacyCustomOriginProperty : Object, CfnDistribution.ILegacyCustomOriginProperty
Syntax (vb)
Public Class LegacyCustomOriginProperty
Inherits Object
Implements 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 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
Constructors
LegacyCustomOriginProperty() |
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. |
Constructors
LegacyCustomOriginProperty()
public LegacyCustomOriginProperty()
Properties
DnsName
The domain name assigned to your CloudFront distribution.
public string DnsName { get; set; }
Property Value
System.String
Remarks
HttpPort
The HTTP port that CloudFront uses to connect to the origin.
public Nullable<double> HttpPort { get; set; }
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.
public Nullable<double> HttpsPort { get; set; }
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.
public string OriginProtocolPolicy { get; set; }
Property Value
System.String
Remarks
OriginSslProtocols
The minimum SSL/TLS protocol version that CloudFront uses when communicating with your origin server over HTTPs.
public string[] OriginSslProtocols { get; set; }
Property Value
System.String[]
Remarks
For more information, see Minimum Origin SSL Protocol in the Amazon CloudFront Developer Guide .