Interface IHttpOriginProps
Properties for an Origin backed by an S3 website-configured bucket, load balancer, or custom HTTP server.
Inherited Members
Namespace: Amazon.CDK.AWS.CloudFront.Origins
Assembly: Amazon.CDK.AWS.CloudFront.Origins.dll
Syntax (csharp)
public interface IHttpOriginProps : IOriginProps, IOriginOptions
Syntax (vb)
Public Interface IHttpOriginProps
Inherits IOriginProps, IOriginOptions
Remarks
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;
using Amazon.CDK.AWS.CloudFront.Origins;
using Amazon.CDK;
var httpOriginProps = new HttpOriginProps {
ConnectionAttempts = 123,
ConnectionTimeout = Duration.Minutes(30),
CustomHeaders = new Dictionary<string, string> {
{ "customHeadersKey", "customHeaders" }
},
HttpPort = 123,
HttpsPort = 123,
KeepaliveTimeout = Duration.Minutes(30),
OriginPath = "originPath",
OriginShieldRegion = "originShieldRegion",
OriginSslProtocols = new [] { OriginSslPolicy.SSL_V3 },
ProtocolPolicy = OriginProtocolPolicy.HTTP_ONLY,
ReadTimeout = Duration.Minutes(30)
};
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. |
KeepaliveTimeout | Specifies how long, in seconds, CloudFront persists its connection to the origin. |
OriginSslProtocols | The SSL versions to use when interacting with the origin. |
ProtocolPolicy | Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. |
ReadTimeout | Specifies how long, in seconds, CloudFront waits for a response from the origin, also known as the origin response timeout. |
Properties
HttpPort
The HTTP port that CloudFront uses to connect to the origin.
virtual Nullable<double> HttpPort { get; }
Property Value
System.Nullable<System.Double>
Remarks
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
Default: 443
KeepaliveTimeout
Specifies how long, in seconds, CloudFront persists its connection to the origin.
virtual Duration KeepaliveTimeout { get; }
Property Value
Remarks
The valid range is from 1 to 180 seconds, inclusive.
Note that values over 60 seconds are possible only after a limit increase request for the origin response timeout quota has been approved in the target account; otherwise, values over 60 seconds will produce an error at deploy time.
Default: Duration.seconds(5)
OriginSslProtocols
The SSL versions to use when interacting with the origin.
virtual OriginSslPolicy[] OriginSslProtocols { get; }
Property Value
Remarks
Default: OriginSslPolicy.TLS_V1_2
ProtocolPolicy
Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin.
virtual Nullable<OriginProtocolPolicy> ProtocolPolicy { get; }
Property Value
System.Nullable<OriginProtocolPolicy>
Remarks
Default: OriginProtocolPolicy.HTTPS_ONLY
ReadTimeout
Specifies how long, in seconds, CloudFront waits for a response from the origin, also known as the origin response timeout.
virtual Duration ReadTimeout { get; }
Property Value
Remarks
The valid range is from 1 to 180 seconds, inclusive.
Note that values over 60 seconds are possible only after a limit increase request for the origin response timeout quota has been approved in the target account; otherwise, values over 60 seconds will produce an error at deploy time.
Default: Duration.seconds(30)