import { Value } from '../../../cloudformation/Value';
/**
  The <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS">Cross-Origin Resource Sharing (CORS)</a> settings for your function URL. Use CORS to grant access to your function URL from any origin. You can also use CORS to control access for specific HTTP headers and methods in requests to your function URL.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-url-cors.html">the AWS Docs</a>
*/
export interface CorsProps {
    /** <code>AllowCredentials</code>  <a name="cfn-lambda-url-cors-allowcredentials"></a>
  Whether you want to allow cookies or other credentials in requests to your function URL. The default is <code>false</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> */
    allowCredentials?: Value<boolean>;
    /** <code>AllowOrigins</code>  <a name="cfn-lambda-url-cors-alloworigins"></a>
  The origins that can access your function URL. You can list any number of specific origins, separated by a comma. For example: <code>https://www.example.com</code>, <code>http://localhost:60905</code>.<br />
  Alternatively, you can grant access to all origins with the wildcard character (<code>*</code>).<br />
  
  Required: No<br />
  
  Maximum: <code>100</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> */
    allowOrigins?: Value<Value<string>[]>;
    /** <code>ExposeHeaders</code>  <a name="cfn-lambda-url-cors-exposeheaders"></a>
  The HTTP headers in your function response that you want to expose to origins that call your function URL. For example: <code>Date</code>, <code>Keep-Alive</code>, <code>X-Custom-Header</code>.<br />
  
  Required: No<br />
  
  Maximum: <code>100</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> */
    exposeHeaders?: Value<Value<string>[]>;
    /** <code>AllowHeaders</code>  <a name="cfn-lambda-url-cors-allowheaders"></a>
  The HTTP headers that origins can include in requests to your function URL. For example: <code>Date</code>, <code>Keep-Alive</code>, <code>X-Custom-Header</code>.<br />
  
  Required: No<br />
  
  Maximum: <code>100</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> */
    allowHeaders?: Value<Value<string>[]>;
    /** <code>MaxAge</code>  <a name="cfn-lambda-url-cors-maxage"></a>
  The maximum amount of time, in seconds, that browsers can cache results of a preflight request. By default, this is set to <code>0</code>, which means the browser will not cache results.<br />
  
  Required: No<br />
  
  Minimum: <code>0</code><br />
  
  Maximum: <code>86400</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> */
    maxAge?: Value<number>;
    /** <code>AllowMethods</code>  <a name="cfn-lambda-url-cors-allowmethods"></a>
  The HTTP methods that are allowed when calling your function URL. For example: <code>GET</code>, <code>POST</code>, <code>DELETE</code>, or the wildcard character (<code>*</code>).<br />
  
  Required: No<br />
  
  Maximum: <code>6</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> */
    allowMethods?: Value<Value<string>[]>;
}
