import { Value } from '../../../cloudformation/Value';
import { FunctionAssociationProps } from './FunctionAssociationProps';
import { LambdaFunctionAssociationProps } from './LambdaFunctionAssociationProps';
import { ForwardedValuesProps } from './ForwardedValuesProps';
/**
  A complex type that describes the default cache behavior if you don’t specify a <code>CacheBehavior</code> element or if request URLs don’t match any of the values of <code>PathPattern</code> in <code>CacheBehavior</code> elements. You must create exactly one default cache behavior.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html">the AWS Docs</a>
*/
export interface DefaultCacheBehaviorProps {
    /** <code>Compress</code>  <a name="cfn-cloudfront-distribution-defaultcachebehavior-compress"></a>
  Whether you want CloudFront to automatically compress certain files for this cache behavior. If so, specify <code>true</code>; if not, specify <code>false</code>. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html">Serving Compressed Files</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> */
    compress?: Value<boolean>;
    /** <code>FunctionAssociations</code>  <a name="cfn-cloudfront-distribution-defaultcachebehavior-functionassociations"></a>
  A list of CloudFront functions that are associated with this cache behavior. CloudFront functions must be published to the <code>LIVE</code> stage to associate them with a cache behavior.<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> */
    functionAssociations?: FunctionAssociationProps[];
    /** <code>LambdaFunctionAssociations</code>  <a name="cfn-cloudfront-distribution-defaultcachebehavior-lambdafunctionassociations"></a>
  A complex type that contains zero or more Lambda@Edge function associations for a cache behavior.<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> */
    lambdaFunctionAssociations?: LambdaFunctionAssociationProps[];
    /** <code>TargetOriginId</code>  <a name="cfn-cloudfront-distribution-defaultcachebehavior-targetoriginid"></a>
  The value of <code>ID</code> for the origin that you want CloudFront to route requests to when they use the 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> */
    targetOriginId: Value<string>;
    /** <p> */
    viewerProtocolPolicy: Value<string>;
    /** <code>ResponseHeadersPolicyId</code>  <a name="cfn-cloudfront-distribution-defaultcachebehavior-responseheaderspolicyid"></a>
  The identifier for a response headers policy.<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> */
    responseHeadersPolicyId?: Value<string>;
    /** <code>RealtimeLogConfigArn</code>  <a name="cfn-cloudfront-distribution-defaultcachebehavior-realtimelogconfigarn"></a>
  The Amazon Resource Name (ARN) of the real-time log configuration that is attached to this cache behavior. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html">Real-time 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> */
    realtimeLogConfigArn?: Value<string>;
    /** <code>TrustedSigners</code>  <a name="cfn-cloudfront-distribution-defaultcachebehavior-trustedsigners"></a>
  We recommend using <code>TrustedKeyGroups</code> instead of <code>TrustedSigners</code>.
  A list of AWS account IDs whose public keys CloudFront can use to validate signed URLs or signed cookies.<br />
  When a cache behavior contains trusted signers, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with the private key of a CloudFront key pair in a trusted signer’s AWS account. The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">Serving private content</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> */
    trustedSigners?: Value<Value<string>[]>;
    /** <code>DefaultTTL</code>  <a name="cfn-cloudfront-distribution-defaultcachebehavior-defaultttl"></a>
  This field is deprecated. We recommend that you use the <code>DefaultTTL</code> field in a cache policy instead of this field. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy">Creating cache policies</a> or <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html">Using the managed cache policies</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> */
    defaultTTL?: Value<number>;
    /** <code>FieldLevelEncryptionId</code>  <a name="cfn-cloudfront-distribution-defaultcachebehavior-fieldlevelencryptionid"></a>
  The value of <code>ID</code> for the field-level encryption configuration that you want CloudFront to use for encrypting specific fields of data for the default cache behavior.<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> */
    fieldLevelEncryptionId?: Value<string>;
    /** <code>TrustedKeyGroups</code>  <a name="cfn-cloudfront-distribution-defaultcachebehavior-trustedkeygroups"></a>
  A list of key groups that CloudFront can use to validate signed URLs or signed cookies.<br />
  When a cache behavior contains trusted key groups, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with a private key whose corresponding public key is in the key group. The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">Serving private content</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> */
    trustedKeyGroups?: Value<Value<string>[]>;
    /** <p> */
    allowedMethods?: Value<Value<string>[]>;
    /** <p> */
    cachedMethods?: Value<Value<string>[]>;
    /** <code>SmoothStreaming</code>  <a name="cfn-cloudfront-distribution-defaultcachebehavior-smoothstreaming"></a>
  Indicates whether you want to distribute media files in the Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify <code>true</code>; if not, specify <code>false</code>. If you specify <code>true</code> for <code>SmoothStreaming</code>, you can still distribute other content using this cache behavior if the content matches the value of <code>PathPattern</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> */
    smoothStreaming?: Value<boolean>;
    /** <code>ForwardedValues</code>  <a name="cfn-cloudfront-distribution-defaultcachebehavior-forwardedvalues"></a>
  This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/working-with-policies.html">Working with policies</a> in the
  Amazon CloudFront Developer Guide: br />
  A <code>DefaultCacheBehavior</code> must include either a <code>CachePolicyId</code> or <code>ForwardedValues</code>. We recommend that you use a <code>CachePolicyId</code>.<br />
  A complex type that specifies how CloudFront handles query strings, cookies, and HTTP headers.<br />
  
  Required: Conditional<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> */
    forwardedValues?: ForwardedValuesProps;
    /** <code>OriginRequestPolicyId</code>  <a name="cfn-cloudfront-distribution-defaultcachebehavior-originrequestpolicyid"></a>
  The unique identifier of the origin request policy that is attached to the default cache behavior. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy">Creating origin request policies</a> or <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.html">Using the managed origin request policies</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> */
    originRequestPolicyId?: Value<string>;
    /** <code>MinTTL</code>  <a name="cfn-cloudfront-distribution-defaultcachebehavior-minttl"></a>
  This field is deprecated. We recommend that you use the <code>MinTTL</code> field in a cache policy instead of this field. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy">Creating cache policies</a> or <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html">Using the managed cache policies</a> in the
  Amazon CloudFront Developer Guide: br />
  You must specify <code>0</code> for <code>MinTTL</code> if you configure CloudFront to forward all headers to your origin (under <code>Headers</code>, if you specify <code>1</code> for <code>Quantity</code> and <code>*</code> for <code>Name</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> */
    minTTL?: Value<number>;
    /** <code>CachePolicyId</code>  <a name="cfn-cloudfront-distribution-defaultcachebehavior-cachepolicyid"></a>
  The unique identifier of the cache policy that is attached to the default cache behavior. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy">Creating cache policies</a> or <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html">Using the managed cache policies</a> in the
  Amazon CloudFront Developer Guide: br />
  A <code>DefaultCacheBehavior</code> must include either a <code>CachePolicyId</code> or <code>ForwardedValues</code>. We recommend that you use a <code>CachePolicyId</code>.<br />
  
  Required: Conditional<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> */
    cachePolicyId?: Value<string>;
    /** <code>MaxTTL</code>  <a name="cfn-cloudfront-distribution-defaultcachebehavior-maxttl"></a>
  This field is deprecated. We recommend that you use the <code>MaxTTL</code> field in a cache policy instead of this field. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy">Creating cache policies</a> or <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html">Using the managed cache policies</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> */
    maxTTL?: Value<number>;
}
