Interface CfnDistribution.ICustomOriginConfigProperty
A custom origin.
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnDistribution.ICustomOriginConfigProperty
Syntax (vb)
Public Interface 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,
IpAddressType = "ipAddressType",
OriginKeepaliveTimeout = 123,
OriginReadTimeout = 123,
OriginSslProtocols = new [] { "originSslProtocols" }
};
Synopsis
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. |
| IpAddressType | Specifies which IP protocol CloudFront uses when connecting to your 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. |
Properties
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
IpAddressType
Specifies which IP protocol CloudFront uses when connecting to your origin.
string? IpAddressType { get; }
Property Value
Remarks
If your origin uses both IPv4 and IPv6 protocols, you can choose dualstack to help optimize reliability.
OriginKeepaliveTimeout
Specifies how long, in seconds, CloudFront persists its connection to the origin.
double? OriginKeepaliveTimeout { get; }
Property Value
Remarks
The minimum timeout is 1 second, the maximum is 120 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:.
string OriginProtocolPolicy { get; }
Property Value
Remarks
OriginReadTimeout
Specifies how long, in seconds, CloudFront waits for a response from the origin.
double? OriginReadTimeout { get; }
Property Value
Remarks
This is also known as the origin response timeout . The minimum timeout is 1 second, the maximum is 120 seconds, and the default (if you don't specify otherwise) is 30 seconds.
For more information, see Response timeout 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.
string[]? OriginSslProtocols { get; }
Property Value
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 .