Class DistributionArgs
Inherited Members
Namespace: Pulumi.Aws.CloudFront
Assembly: Pulumi.Aws.dll
Syntax
public sealed class DistributionArgs : ResourceArgs
Constructors
View SourceDistributionArgs()
Declaration
public DistributionArgs()
Properties
View SourceAliases
Extra CNAMEs (alternate domain names), if any, for this distribution.
Declaration
public InputList<string> Aliases { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
Comment
Any comments you want to include about the distribution.
Declaration
public Input<string> Comment { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
CustomErrorResponses
One or more custom error response elements (multiples allowed).
Declaration
public InputList<DistributionCustomErrorResponseArgs> CustomErrorResponses { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<DistributionCustomErrorResponseArgs> |
DefaultCacheBehavior
The default cache behavior for this distribution (maximum one).
Declaration
public Input<DistributionDefaultCacheBehaviorArgs> DefaultCacheBehavior { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<DistributionDefaultCacheBehaviorArgs> |
DefaultRootObject
The object that you want CloudFront to return (for example, index.html) when an end user requests the root URL.
Declaration
public Input<string> DefaultRootObject { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Enabled
Whether the distribution is enabled to accept end user requests for content.
Declaration
public Input<bool> Enabled { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
HttpVersion
The maximum HTTP version to support on the
distribution. Allowed values are http1.1 and http2. The default is
http2.
Declaration
public Input<string> HttpVersion { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
IsIpv6Enabled
Whether the IPv6 is enabled for the distribution.
Declaration
public Input<bool> IsIpv6Enabled { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
LoggingConfig
The logging configuration that controls how logs are written to your distribution (maximum one).
Declaration
public Input<DistributionLoggingConfigArgs> LoggingConfig { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<DistributionLoggingConfigArgs> |
OrderedCacheBehaviors
An ordered list of cache behaviors resource for this distribution. List from top to bottom in order of precedence. The topmost cache behavior will have precedence 0.
Declaration
public InputList<DistributionOrderedCacheBehaviorArgs> OrderedCacheBehaviors { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<DistributionOrderedCacheBehaviorArgs> |
OriginGroups
One or more origin_group for this distribution (multiples allowed).
Declaration
public InputList<DistributionOriginGroupArgs> OriginGroups { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<DistributionOriginGroupArgs> |
Origins
One or more origins for this distribution (multiples allowed).
Declaration
public InputList<DistributionOriginArgs> Origins { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<DistributionOriginArgs> |
PriceClass
The price class for this distribution. One of
PriceClass_All, PriceClass_200, PriceClass_100
Declaration
public Input<string> PriceClass { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Restrictions
The restriction configuration for this distribution (maximum one).
Declaration
public Input<DistributionRestrictionsArgs> Restrictions { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<DistributionRestrictionsArgs> |
RetainOnDelete
Disables the distribution instead of
deleting it when destroying the resource. If this is set,
the distribution needs to be deleted manually afterwards. Default: false.
Declaration
public Input<bool> RetainOnDelete { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
Tags
A map of tags to assign to the resource.
Declaration
public InputMap<object> Tags { get; set; }
Property Value
| Type | Description |
|---|---|
| InputMap<System.Object> |
ViewerCertificate
The SSL configuration for this distribution (maximum one).
Declaration
public Input<DistributionViewerCertificateArgs> ViewerCertificate { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<DistributionViewerCertificateArgs> |
WaitForDeployment
If enabled, the resource will wait for
the distribution status to change from InProgress to Deployed. Setting
this tofalse will skip the process. Default: true.
Declaration
public Input<bool> WaitForDeployment { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
WebAclId
If you're using AWS WAF to filter CloudFront
requests, the Id of the AWS WAF web ACL that is associated with the
distribution. The WAF Web ACL must exist in the WAF Global (CloudFront)
region and the credentials configuring this argument must have
waf:GetWebACL permissions assigned.
Declaration
public Input<string> WebAclId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |