import { Value } from '../../cloudformation/Value';
import { S3LocationProps } from './restapi/S3LocationProps';
import { EndpointConfigurationProps } from './restapi/EndpointConfigurationProps';
import { Tag } from '../Tag';
import { Attribute } from '../../cloudformation/Attribute';
import { AwsResource } from '../../cloudformation/resources/AwsResource';
export type RestApiAttributes = {
    RootResourceId: Attribute<string>;
    RestApiId: Attribute<string>;
};
export type RestApi = AwsResource<'AWS::ApiGateway::RestApi', RestApiProperties, RestApiAttributes>;
/**
  The <code>AWS::ApiGateway::RestApi</code> resource creates a REST API. For more information, see <a href="https://docs.aws.amazon.com/apigateway/latest/api/API_CreateRestApi.html">restapi:create</a> in the <em>Amazon API Gateway REST API Reference</em>.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-restapi.html">the AWS Docs</a>
*/
export declare function restApi(restApiProps?: RestApiProperties): RestApi;
/**
  The <code>AWS::ApiGateway::RestApi</code> resource creates a REST API. For more information, see <a href="https://docs.aws.amazon.com/apigateway/latest/api/API_CreateRestApi.html">restapi:create</a> in the <em>Amazon API Gateway REST API Reference</em>.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-restapi.html">the AWS Docs</a>
*/
export interface RestApiProperties {
    /** <code>Policy</code>  <a name="cfn-apigateway-restapi-policy"></a>
  A policy document that contains the permissions for the <code>RestApi</code> resource. To set the ARN for the policy, use the <code>!Join</code> intrinsic function with <code>&quot;&quot;</code> as delimiter and values of <code>&quot;execute-api:/&quot;</code> and <code>&quot;*&quot;</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> */
    policy?: Value<any>;
    /** <code>BodyS3Location</code>  <a name="cfn-apigateway-restapi-bodys3location"></a>
  The Amazon Simple Storage Service (Amazon S3) location that points to an OpenAPI file, which defines a set of RESTful APIs in JSON or YAML format.<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> */
    bodyS3Location?: S3LocationProps;
    /** <code>Description</code>  <a name="cfn-apigateway-restapi-description"></a>
  The description of the RestApi.<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> */
    description?: Value<string>;
    /** <code>MinimumCompressionSize</code>  <a name="cfn-apigateway-restapi-minimumcompressionsize"></a>
  A nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on an API. When compression is enabled, compression or decompression is not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.<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> */
    minimumCompressionSize?: Value<number>;
    /** <code>Parameters</code>  <a name="cfn-apigateway-restapi-parameters"></a>
  Custom header parameters as part of the request. For example, to exclude DocumentationParts from an imported API, set <code>ignore=documentation</code> as a <code>parameters</code> value, as in the AWS CLI command of <code>aws apigateway import-rest-api --parameters ignore=documentation --body 'file:///path/to/imported-api-body.json'</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> */
    parameters?: Value<{
        [key: string]: Value<string>;
    }>;
    /** <code>CloneFrom</code>  <a name="cfn-apigateway-restapi-clonefrom"></a>
  The ID of the RestApi that you want to clone from.<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> */
    cloneFrom?: Value<string>;
    /** <code>Mode</code>  <a name="cfn-apigateway-restapi-mode"></a>
  This property applies only when you use OpenAPI to define your REST API. The <code>Mode</code> determines how API Gateway handles resource updates.<br />
  Valid values are <code>overwrite</code> or <code>merge</code>.<br />
  For <code>overwrite</code>, the new API definition replaces the existing one. The existing API identifier remains unchanged.<br />
  For <code>merge</code>, the new API definition is merged with the existing API.<br />
  If you don’t specify this property, a default value is chosen. For REST APIs created before March 29, 2021, the default is <code>overwrite</code>. For REST APIs created after March 29, 2021, the new API definition takes precedence, but any container types such as endpoint configurations and binary media types are merged with the existing API.<br />
  Use the default mode to define top-level <code>RestApi</code> properties in addition to using OpenAPI. Generally, it’s preferred to use API Gateway’s OpenAPI extensions to model these properties.<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> */
    mode?: Value<string>;
    /** <code>DisableExecuteApiEndpoint</code>  <a name="cfn-apigateway-restapi-disableexecuteapiendpoint"></a>
  Specifies whether clients can invoke your API by using the default <code>execute-api</code> endpoint. By default, clients can invoke your API with the default <code>https://{api_id}.execute-api.{region}.amazonaws.com</code> endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint<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> */
    disableExecuteApiEndpoint?: Value<boolean>;
    /** <code>FailOnWarnings</code>  <a name="cfn-apigateway-restapi-failonwarnings"></a>
  A query parameter to indicate whether to rollback the API update (<code>true</code>) or not (<code>false</code>) when a warning is encountered. The default value 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> */
    failOnWarnings?: Value<boolean>;
    /** <code>BinaryMediaTypes</code>  <a name="cfn-apigateway-restapi-binarymediatypes"></a>
  The list of binary media types supported by the RestApi. By default, the RestApi supports only UTF-8-encoded text payloads.<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> */
    binaryMediaTypes?: Value<Value<string>[]>;
    /** <code>Name</code>  <a name="cfn-apigateway-restapi-name"></a>
  The name of the RestApi. A name is required if the REST API is not based on an OpenAPI specification.<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> */
    name?: Value<string>;
    /** <code>ApiKeySourceType</code>  <a name="cfn-apigateway-restapi-apikeysourcetype"></a>
  The source of the API key for metering requests according to a usage plan. Valid values are: <code>HEADER</code> to read the API key from the <code>X-API-Key</code> header of a request. <code>AUTHORIZER</code> to read the API key from the <code>UsageIdentifierKey</code> from a custom authorizer.<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> */
    apiKeySourceType?: Value<string>;
    /** <code>EndpointConfiguration</code>  <a name="cfn-apigateway-restapi-endpointconfiguration"></a>
  A list of the endpoint types of the API. Use this property when creating an API. When importing an existing API, specify the endpoint configuration types using the <code>Parameters</code> property.<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> */
    endpointConfiguration?: EndpointConfigurationProps;
    /** <code>Body</code>  <a name="cfn-apigateway-restapi-body"></a>
  An OpenAPI specification that defines a set of RESTful APIs in JSON format. For YAML templates, you can also provide the specification in YAML format.<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> */
    body?: Value<any>;
    /** <code>Tags</code>  <a name="cfn-apigateway-restapi-tags"></a>
  The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with <code>aws:</code>. The tag value can be up to 256 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> */
    tags?: Tag[];
}
