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.
Namespace: Amazon.CloudFront.Model
Assembly: AWSSDK.dll
Version: (assembly version)
public class DistributionConfig : Object
The DistributionConfig type exposes the following members
Name | Description | |
---|---|---|
DistributionConfig() | Empty constructor used to set properties independently even when a simple constructor is available | |
DistributionConfig(string, bool) | Instantiates DistributionConfig with the parameterized properties |
Name | Type | Description | |
---|---|---|---|
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. | |
CacheBehaviors | Amazon.CloudFront.Model.CacheBehaviors | Gets and sets the property CacheBehaviors. A complex type that contains zero or more CacheBehavior elements. | |
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. | |
Comment | System.String | Gets and sets the property Comment. Any comments you want to include about the distribution. | |
CustomErrorResponses | Amazon.CloudFront.Model.CustomErrorResponses | Gets and sets the property CustomErrorResponses. A complex type that contains zero or more CustomErrorResponse elements. | |
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. | |
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. | |
Enabled | System.Boolean | Gets and sets the property Enabled. Whether the distribution is enabled to accept end user requests for content. | |
Logging | Amazon.CloudFront.Model.LoggingConfig | Gets and sets the property Logging. A complex type that controls whether access logs are written for the distribution. | |
Origins | Amazon.CloudFront.Model.Origins | Gets and sets the property Origins. A complex type that contains information about origins for this distribution. | |
PriceClass | Amazon.CloudFront.PriceClass | Gets and sets the property PriceClass. A complex type that contains information about price class for this distribution. | |
Restrictions | Amazon.CloudFront.Model.Restrictions | Gets and sets the property Restrictions. | |
ViewerCertificate | Amazon.CloudFront.Model.ViewerCertificate | Gets and sets the property ViewerCertificate. |
.NET Framework:
Supported in: 4.5, 4.0, 3.5
.NET for Windows Store apps:
Supported in: Windows 8