import { LoggingProps } from './LoggingProps';
import { Value } from '../../../cloudformation/Value';
import { OriginProps } from './OriginProps';
import { ViewerCertificateProps } from './ViewerCertificateProps';
import { LegacyCustomOriginProps } from './LegacyCustomOriginProps';
import { LegacyS3OriginProps } from './LegacyS3OriginProps';
import { DefaultCacheBehaviorProps } from './DefaultCacheBehaviorProps';
import { CustomErrorResponseProps } from './CustomErrorResponseProps';
import { OriginGroupsProps } from './OriginGroupsProps';
import { RestrictionsProps } from './RestrictionsProps';
import { CacheBehaviorProps } from './CacheBehaviorProps';
/**
  A distribution configuration.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html">the AWS Docs</a>
*/
export interface DistributionConfigProps {
    /** <code>Logging</code>  <a name="cfn-cloudfront-distribution-distributionconfig-logging"></a>
  A complex type that controls whether access logs are written for the distribution.<br />
  For more information about logging, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/AccessLogs.html">Access Logs</a> in the
  Amazon CloudFront Developer Guide: br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    logging?: LoggingProps;
    /** <code>Comment</code>  <a name="cfn-cloudfront-distribution-distributionconfig-comment"></a>
  A comment to describe the distribution. The comment cannot be longer than 128 characters.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    comment?: Value<string>;
    /** <code>DefaultRootObject</code>  <a name="cfn-cloudfront-distribution-distributionconfig-defaultrootobject"></a>
  The object that you want CloudFront to request from your origin (for example, <code>index.html</code>) when a viewer requests the root URL for your distribution (<code>https://www.example.com</code>) instead of an object in your distribution (<code>https://www.example.com/product-description.html</code>). Specifying a default root object avoids exposing the contents of your distribution.<br />
  Specify only the object name, for example, <code>index.html</code>. Don’t add a <code>/</code> before the object name.<br />
  If you don’t want to specify a default root object when you create a distribution, include an empty <code>DefaultRootObject</code> element.<br />
  To delete the default root object from an existing distribution, update the distribution configuration and include an empty <code>DefaultRootObject</code> element.<br />
  To replace the default root object, update the distribution configuration and specify the new object.<br />
  For more information about the default root object, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DefaultRootObject.html">Creating a Default Root Object</a> in the
  Amazon CloudFront Developer Guide: br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    defaultRootObject?: Value<string>;
    /** <code>Origins</code>  <a name="cfn-cloudfront-distribution-distributionconfig-origins"></a>
  A complex type that contains information about origins for this distribution.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    origins?: OriginProps[];
    /** <code>ViewerCertificate</code>  <a name="cfn-cloudfront-distribution-distributionconfig-viewercertificate"></a>
  A complex type that determines the distribution’s SSL/TLS configuration for communicating with viewers.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    viewerCertificate?: ViewerCertificateProps;
    /** <code>PriceClass</code>  <a name="cfn-cloudfront-distribution-distributionconfig-priceclass"></a>
  The price class that corresponds with the maximum price that you want to pay for CloudFront service. If you specify <code>PriceClass_All</code>, CloudFront responds to requests for your objects from all CloudFront edge locations.<br />
  If you specify a price class other than <code>PriceClass_All</code>, CloudFront serves your objects from the CloudFront edge location that has the lowest latency among the edge locations in your price class. Viewers who are in or near regions that are excluded from your specified price class may encounter slower performance.<br />
  For more information about price classes, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PriceClass.html">Choosing the Price Class for a CloudFront Distribution</a> in the
  Amazon CloudFront Developer Guide: For information about CloudFront pricing, including how price classes (such as Price Class 100) map to CloudFront regions, see <a href="http://aws.amazon.com/cloudfront/pricing/">Amazon CloudFront Pricing</a>.<br />
  
  Required: No<br />
  
  Allowed values: <code>PriceClass_100 | PriceClass_200 | PriceClass_All</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    priceClass?: Value<'PriceClass_100' | 'PriceClass_200' | 'PriceClass_All'>;
    /** <code>CustomOrigin</code>  <a name="cfn-cloudfront-distribution-distributionconfig-customorigin"></a>
  Property description not available.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    customOrigin?: LegacyCustomOriginProps;
    /** <code>S3Origin</code>  <a name="cfn-cloudfront-distribution-distributionconfig-s3origin"></a>
  Property description not available.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    s3Origin?: LegacyS3OriginProps;
    /** <code>DefaultCacheBehavior</code>  <a name="cfn-cloudfront-distribution-distributionconfig-defaultcachebehavior"></a>
  A complex type that describes the default cache behavior if you don’t specify a <code>CacheBehavior</code> element or if files don’t match any of the values of <code>PathPattern</code> in <code>CacheBehavior</code> elements. You must create exactly one default cache behavior.<br />
  
  Required: Yes<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    defaultCacheBehavior: DefaultCacheBehaviorProps;
    /** <code>Staging</code>  <a name="cfn-cloudfront-distribution-distributionconfig-staging"></a>
  A Boolean that indicates whether this is a staging distribution. When this value is <code>true</code>, this is a staging distribution. When this value is <code>false</code>, this is not a staging distribution.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    staging?: Value<boolean>;
    /** <p> */
    customErrorResponses?: CustomErrorResponseProps[];
    /** <code>ContinuousDeploymentPolicyId</code>  <a name="cfn-cloudfront-distribution-distributionconfig-continuousdeploymentpolicyid"></a>
  The identifier of a continuous deployment policy. For more information, see <code>CreateContinuousDeploymentPolicy</code>.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    continuousDeploymentPolicyId?: Value<string>;
    /** <code>OriginGroups</code>  <a name="cfn-cloudfront-distribution-distributionconfig-origingroups"></a>
  A complex type that contains information about origin groups for this distribution.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    originGroups?: OriginGroupsProps;
    /** <code>Enabled</code>  <a name="cfn-cloudfront-distribution-distributionconfig-enabled"></a>
  From this field, you can enable or disable the selected distribution.<br />
  
  Required: Yes<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    enabled: Value<boolean>;
    /** <code>Aliases</code>  <a name="cfn-cloudfront-distribution-distributionconfig-aliases"></a>
  A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    aliases?: Value<Value<string>[]>;
    /** <code>IPV6Enabled</code>  <a name="cfn-cloudfront-distribution-distributionconfig-ipv6enabled"></a>
  If you want CloudFront to respond to IPv6 DNS requests with an IPv6 address for your distribution, specify <code>true</code>. If you specify <code>false</code>, CloudFront responds to IPv6 DNS requests with the DNS response code <code>NOERROR</code> and with no IP addresses. This allows viewers to submit a second request, for an IPv4 address for your distribution.<br />
  In general, you should enable IPv6 if you have users on IPv6 networks who want to access your content. However, if you’re using signed URLs or signed cookies to restrict access to your content, and if you’re using a custom policy that includes the <code>IpAddress</code> parameter to restrict the IP addresses that can access your content, don’t enable IPv6. If you want to restrict access to some content by IP address and not restrict access to other content (or restrict access but not by IP address), you can create two distributions. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-creating-signed-url-custom-policy.html">Creating a Signed URL Using a Custom Policy</a> in the
  Amazon CloudFront Developer Guide: br />
  If you’re using an Amazon Route 53 AWS Integration alias resource record set to route traffic to your CloudFront distribution, you need to create a second alias resource record set when both of the following are true: */
    iPV6Enabled?: Value<boolean>;
    /** <code>CNAMEs</code>  <a name="cfn-cloudfront-distribution-distributionconfig-cnames"></a>
  Property description not available.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    cNAMEs?: Value<Value<string>[]>;
    /** <code>WebACLId</code>  <a name="cfn-cloudfront-distribution-distributionconfig-webaclid"></a>
  A unique identifier that specifies the AWS WAF web ACL, if any, to associate with this distribution. To specify a web ACL created using the latest version of AWS WAF, use the ACL ARN, for example <code>arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a</code>. To specify a web ACL created using AWS WAF Classic, use the ACL ID, for example <code>473e64fd-f30b-4765-81a0-62ad96dd167a</code>.<br />
  AWS WAF is a web application firewall that lets you monitor the HTTP and HTTPS requests that are forwarded to CloudFront, and lets you control access to your content. Based on conditions that you specify, such as the IP addresses that requests originate from or the values of query strings, CloudFront responds to requests either with the requested content or with an HTTP 403 status code (Forbidden). You can also configure CloudFront to return a custom error page when a request is blocked. For more information about AWS WAF, see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/what-is-aws-waf.html">AWS WAF Developer Guide</a>.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    webACLId?: Value<string>;
    /** <code>HttpVersion</code>  <a name="cfn-cloudfront-distribution-distributionconfig-httpversion"></a>
  (Optional) Specify the maximum HTTP version(s) that you want viewers to use to communicate with CloudFront. The default value for new distributions is <code>http1.1</code>.<br />
  For viewers and CloudFront to use HTTP/2, viewers must support TLSv1.2 or later, and must support Server Name Indication (SNI).<br />
  For viewers and CloudFront to use HTTP/3, viewers must support TLSv1.3 and Server Name Indication (SNI). CloudFront supports HTTP/3 connection migration to allow the viewer to switch networks without losing connection. For more information about connection migration, see <a href="https://www.rfc-editor.org/rfc/rfc9000.html#name-connection-migration">Connection Migration</a> at RFC 9000. For more information about supported TLSv1.3 ciphers, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/secure-connections-supported-viewer-protocols-ciphers.html">Supported protocols and ciphers between viewers and CloudFront</a>.<br />
  
  Required: No<br />
  
  Allowed values: <code>http1.1 | http2 | http2and3 | http3</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    httpVersion?: Value<'http1.1' | 'http2' | 'http2and3' | 'http3'>;
    /** <code>Restrictions</code>  <a name="cfn-cloudfront-distribution-distributionconfig-restrictions"></a>
  A complex type that identifies ways in which you want to restrict distribution of your content.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    restrictions?: RestrictionsProps;
    /** <code>CacheBehaviors</code>  <a name="cfn-cloudfront-distribution-distributionconfig-cachebehaviors"></a>
  A complex type that contains zero or more <code>CacheBehavior</code> elements.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    cacheBehaviors?: CacheBehaviorProps[];
}
