A distribution Configuration.
Declaration Syntax
C# |
public class DistributionConfig
Members
All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
DistributionConfig()()()() | Initializes a new instance of the DistributionConfig class | |
Aliases |
Gets and sets the property Aliases. A complex type that contains information about
CNAMEs (alternate domain names), if any, for this distribution.
| |
CacheBehaviors |
Gets and sets the property CacheBehaviors. A complex type that contains zero or more
CacheBehavior elements.
| |
CallerReference |
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 |
Gets and sets the property Comment. Any comments you want to include about the distribution.
| |
CustomErrorResponses |
Gets and sets the property CustomErrorResponses. A complex type that contains zero
or more CustomErrorResponse elements.
| |
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 |
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 |
Gets and sets the property Enabled. Whether the distribution is enabled to accept
end user requests for content.
| |
Equals(Object) | (Inherited from Object.) | |
GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType()()()() | Gets the type of the current instance. (Inherited from Object.) | |
Logging |
Gets and sets the property Logging. A complex type that controls whether access logs
are written for the distribution.
| |
Origins |
Gets and sets the property Origins. A complex type that contains information about
origins for this distribution.
| |
PriceClass |
Gets and sets the property PriceClass. A complex type that contains information about
price class for this distribution.
| |
Restrictions |
Gets and sets the property Restrictions.
| |
ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) | |
ViewerCertificate |
Gets and sets the property ViewerCertificate.
| |
WithAliases(Aliases) | Obsolete.
Sets the Aliases property
| |
WithCacheBehaviors(CacheBehaviors) | Obsolete.
Sets the CacheBehaviors property
| |
WithCallerReference(String) | Obsolete.
Sets the CallerReference property
| |
WithComment(String) | Obsolete.
Sets the Comment property
| |
WithCustomErrorResponses(CustomErrorResponses) | Obsolete.
Sets the CustomErrorResponses property
| |
WithDefaultCacheBehavior(DefaultCacheBehavior) | Obsolete.
Sets the DefaultCacheBehavior property
| |
WithDefaultRootObject(String) | Obsolete.
Sets the DefaultRootObject property
| |
WithEnabled(Boolean) | Obsolete.
Sets the Enabled property
| |
WithLogging(LoggingConfig) | Obsolete.
Sets the Logging property
| |
WithOrigins(Origins) | Obsolete.
Sets the Origins property
| |
WithPriceClass(String) | Obsolete.
Sets the PriceClass property
| |
WithRestrictions(Restrictions) | Obsolete.
Sets the Restrictions property
| |
WithViewerCertificate(ViewerCertificate) | Obsolete.
Sets the ViewerCertificate property
|
Inheritance Hierarchy
Object | |
DistributionConfig |