AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

A custom origin. 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 hostingis a custom origin.

Inheritance Hierarchy

System.Object
  Amazon.CloudFront.Model.CustomOriginConfig

Namespace: Amazon.CloudFront.Model
Assembly: AWSSDK.CloudFront.dll
Version: 3.x.y.z

Syntax

C#
public class CustomOriginConfig

The CustomOriginConfig type exposes the following members

Constructors

NameDescription
Public Method CustomOriginConfig()

Properties

NameTypeDescription
Public Property HTTPPort System.Int32

Gets and sets the property HTTPPort.

The HTTP port that CloudFront uses to connect to the origin. Specify the HTTP port that the origin listens on.

Public Property HTTPSPort System.Int32

Gets and sets the property HTTPSPort.

The HTTPS port that CloudFront uses to connect to the origin. Specify the HTTPS port that the origin listens on.

Public Property OriginKeepaliveTimeout System.Int32

Gets and sets the property OriginKeepaliveTimeout.

Specifies how long, in seconds, CloudFront persists its connection to the origin. 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 Origin Keep-alive Timeout in the Amazon CloudFront Developer Guide.

Public Property OriginProtocolPolicy Amazon.CloudFront.OriginProtocolPolicy

Gets and sets the property OriginProtocolPolicy.

Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. Valid values are:

  • http-only – CloudFront always uses HTTP to connect to the origin.

  • match-viewer – CloudFront connects to the origin using the same protocol that the viewer used to connect to CloudFront.

  • https-only – CloudFront always uses HTTPS to connect to the origin.

Public Property OriginReadTimeout System.Int32

Gets and sets the property OriginReadTimeout.

Specifies how long, in seconds, CloudFront waits for a response from the origin. 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 Origin Response Timeout in the Amazon CloudFront Developer Guide.

Public Property OriginSslProtocols Amazon.CloudFront.Model.OriginSslProtocols

Gets and sets the property OriginSslProtocols.

Specifies the minimum SSL/TLS protocol that CloudFront uses when connecting to your origin over HTTPS. Valid values include SSLv3, TLSv1, TLSv1.1, and TLSv1.2.

For more information, see Minimum Origin SSL Protocol in the Amazon CloudFront Developer Guide.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5