Class CfnDistribution.CustomOriginConfigProperty
A custom origin.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CustomOriginConfigProperty : Object, CfnDistribution.ICustomOriginConfigProperty
Syntax (vb)
Public Class CustomOriginConfigProperty
Inherits Object
Implements CfnDistribution.ICustomOriginConfigProperty
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.
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 customOriginConfigProperty = new CustomOriginConfigProperty {
OriginProtocolPolicy = "originProtocolPolicy",
// the properties below are optional
HttpPort = 123,
HttpsPort = 123,
OriginKeepaliveTimeout = 123,
OriginReadTimeout = 123,
OriginSslProtocols = new [] { "originSslProtocols" }
};
Synopsis
Constructors
CustomOriginConfigProperty() |
Properties
HttpPort | The HTTP port that CloudFront uses to connect to the origin. |
HttpsPort | The HTTPS port that CloudFront uses to connect to the origin. |
OriginKeepaliveTimeout | Specifies how long, in seconds, CloudFront persists its connection to the origin. |
OriginProtocolPolicy | Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. Valid values are:. |
OriginReadTimeout | Specifies how long, in seconds, CloudFront waits for a response from the origin. |
OriginSslProtocols | Specifies the minimum SSL/TLS protocol that CloudFront uses when connecting to your origin over HTTPS. |
Constructors
CustomOriginConfigProperty()
public CustomOriginConfigProperty()
Properties
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
OriginKeepaliveTimeout
Specifies how long, in seconds, CloudFront persists its connection to the origin.
public Nullable<double> OriginKeepaliveTimeout { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
The minimum timeout is 1 second, the maximum is 60 seconds, and the default (if you don't specify otherwise) is 5 seconds.
For more information, see Keep-alive timeout (custom origins only) in the Amazon CloudFront Developer Guide .
Default: - 5
OriginProtocolPolicy
Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. Valid values are:.
public string OriginProtocolPolicy { get; set; }
Property Value
System.String
Remarks
OriginReadTimeout
Specifies how long, in seconds, CloudFront waits for a response from the origin.
public Nullable<double> OriginReadTimeout { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
This is also known as the origin response timeout . The minimum timeout is 1 second, the maximum is 60 seconds, and the default (if you don't specify otherwise) is 30 seconds.
For more information, see Response timeout (custom origins only) in the Amazon CloudFront Developer Guide .
Default: - 30
OriginSslProtocols
Specifies the minimum SSL/TLS protocol that CloudFront uses when connecting to your origin over HTTPS.
public string[] OriginSslProtocols { get; set; }
Property Value
System.String[]
Remarks
Valid values include SSLv3
, TLSv1
, TLSv1.1
, and TLSv1.2
.
For more information, see Minimum Origin SSL Protocol in the Amazon CloudFront Developer Guide .