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 distribution Configuration.

Inheritance Hierarchy

System.Object
  Amazon.CloudFront.Model.DistributionConfig

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

Syntax

C#
public class DistributionConfig : Object

The DistributionConfig type exposes the following members

Constructors

NameDescription
Public Method DistributionConfig() Empty constructor used to set properties independently even when a simple constructor is available
Public Method DistributionConfig(string, bool) Instantiates DistributionConfig with the parameterized properties

Properties

NameTypeDescription
Public Property Aliases Amazon.CloudFront.Model.Aliases Gets and sets the property Aliases. A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.
Public Property CacheBehaviors Amazon.CloudFront.Model.CacheBehaviors Gets and sets the property CacheBehaviors. A complex type that contains zero or more CacheBehavior elements.
Public Property CallerReference System.String Gets and sets the property CallerReference. A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the DistributionConfig object), a new distribution is created. If the CallerReference is a value you already sent in a previous request to create a distribution, and the content of the DistributionConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create a distribution but the content of the DistributionConfig is different from the original request, CloudFront returns a DistributionAlreadyExists error.
Public Property Comment System.String Gets and sets the property Comment. Any comments you want to include about the distribution.
Public Property CustomErrorResponses Amazon.CloudFront.Model.CustomErrorResponses Gets and sets the property CustomErrorResponses. A complex type that contains zero or more CustomErrorResponse elements.
Public Property DefaultCacheBehavior Amazon.CloudFront.Model.DefaultCacheBehavior Gets and sets the property DefaultCacheBehavior. A complex type that describes the default cache behavior if you do not specify a CacheBehavior element or if files don't match any of the values of PathPattern in CacheBehavior elements.You must create exactly one default cache behavior.
Public Property DefaultRootObject System.String Gets and sets the property DefaultRootObject. The object that you want CloudFront to return (for example, index.html) when an end user requests the root URL for your distribution (http://www.example.com) instead of an object in your distribution (http://www.example.com/index.html). Specifying a default root object avoids exposing the contents of your distribution. If you don't want to specify a default root object when you create a distribution, include an empty DefaultRootObject element. To delete the default root object from an existing distribution, update the distribution configuration and include an empty DefaultRootObject element. To replace the default root object, update the distribution configuration and specify the new object.
Public Property Enabled System.Boolean Gets and sets the property Enabled. Whether the distribution is enabled to accept end user requests for content.
Public Property Logging Amazon.CloudFront.Model.LoggingConfig Gets and sets the property Logging. A complex type that controls whether access logs are written for the distribution.
Public Property Origins Amazon.CloudFront.Model.Origins Gets and sets the property Origins. A complex type that contains information about origins for this distribution.
Public Property PriceClass Amazon.CloudFront.PriceClass Gets and sets the property PriceClass. A complex type that contains information about price class for this distribution.
Public Property Restrictions Amazon.CloudFront.Model.Restrictions Gets and sets the property Restrictions.
Public Property ViewerCertificate Amazon.CloudFront.Model.ViewerCertificate Gets and sets the property ViewerCertificate.

Version Information

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

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