AWS SDK Version 2 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.

.NET Framework 3.5
 
A complex type that describes the Amazon S3 bucket or the HTTP server (for example, a web server) from which CloudFront gets your files.You must create at least one origin.

Inheritance Hierarchy

System.Object
  Amazon.CloudFront.Model.Origin

Namespace: Amazon.CloudFront.Model
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public class Origin : Object

The Origin type exposes the following members

Constructors

NameDescription
Public Method Origin()

Properties

NameTypeDescription
Public Property CustomOriginConfig Amazon.CloudFront.Model.CustomOriginConfig Gets and sets the property CustomOriginConfig. A complex type that contains information about a custom origin. If the origin is an Amazon S3 bucket, use the S3OriginConfig element instead.
Public Property DomainName System.String Gets and sets the property DomainName. Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you want CloudFront to get objects for this origin, for example, myawsbucket.s3.amazonaws.com. Custom origins: The DNS domain name for the HTTP server from which you want CloudFront to get objects for this origin, for example, www.example.com.
Public Property Id System.String Gets and sets the property Id. A unique identifier for the origin. The value of Id must be unique within the distribution. You use the value of Id when you create a cache behavior. The Id identifies the origin that CloudFront routes a request to when the request matches the path pattern for that cache behavior.
Public Property OriginPath System.String Gets and sets the property OriginPath. An optional element that causes CloudFront to request your content from a directory in your Amazon S3 bucket or your custom origin. When you include the OriginPath element, specify the directory name, beginning with a /. CloudFront appends the directory name to the value of DomainName.
Public Property S3OriginConfig Amazon.CloudFront.Model.S3OriginConfig Gets and sets the property S3OriginConfig. A complex type that contains information about the Amazon S3 origin. If the origin is a custom origin, use the CustomOriginConfig element instead.

Version Information

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

.NET for Windows Store apps:
Supported in: Windows 8