Class CfnDistribution.CustomOriginConfigProperty
A custom origin.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnDistribution.CustomOriginConfigProperty : CfnDistribution.ICustomOriginConfigProperty
Syntax (vb)
Public Class CfnDistribution.CustomOriginConfigProperty 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,
IpAddressType = "ipAddressType",
OriginKeepaliveTimeout = 123,
OriginMtlsConfig = new OriginMtlsConfigProperty {
ClientCertificateArn = "clientCertificateArn"
},
OriginReadTimeout = 123,
OriginSslProtocols = new [] { "originSslProtocols" }
};
Synopsis
Constructors
| CustomOriginConfigProperty() | A custom origin. |
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. |
| OriginMtlsConfig | A custom 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()
A custom origin.
public CustomOriginConfigProperty()
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,
OriginMtlsConfig = new OriginMtlsConfigProperty {
ClientCertificateArn = "clientCertificateArn"
},
OriginReadTimeout = 123,
OriginSslProtocols = new [] { "originSslProtocols" }
};
Properties
HttpPort
The HTTP port that CloudFront uses to connect to the origin.
public double? HttpPort { get; set; }
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.
public double? HttpsPort { get; set; }
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.
public string? IpAddressType { get; set; }
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.
public double? OriginKeepaliveTimeout { get; set; }
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
OriginMtlsConfig
A custom origin.
public object? OriginMtlsConfig { get; set; }
Property Value
Remarks
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
Remarks
OriginReadTimeout
Specifies how long, in seconds, CloudFront waits for a response from the origin.
public double? OriginReadTimeout { get; set; }
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.
public string[]? OriginSslProtocols { get; set; }
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 .