class RestApi (construct)
Represents a REST API in Amazon API Gateway.
addMethod to configure the API model.
By default, the API will automatically be deployed and accessible from a public endpoint.
new RestApi(scope: Construct, id: string, props?: RestApiProps)
|api||The source of the API key for metering requests according to a usage plan.|
|binary||The list of binary media mime-types that are supported by the RestApi resource, such as "image/png" or "application/octet-stream".|
|clone||The ID of the API Gateway RestApi resource that you want to clone.|
|cloud||Automatically configure an AWS CloudWatch role for API Gateway.|
|default||Adds a CORS preflight OPTIONS method to this resource and all child resources.|
|default||An integration to use as a default for all methods created within this API unless an integration is specified.|
|default||Method options to use as a default for all methods created within this API unless custom options are specified.|
|deploy?||Indicates if a Deployment should be automatically created for this API, and recreated when the API model (resources, methods) changes.|
|deploy||Options for the API Gateway stage that will always point to the latest deployment when |
|description?||A description of the purpose of this API Gateway RestApi resource.|
|domain||Configure a custom domain name and map it to this API.|
|endpoint||The EndpointConfiguration property type specifies the endpoint types of a REST API.|
|endpoint||Export name for the CfnOutput containing the API endpoint.|
|endpoint||A list of the endpoint types of the API.|
|fail||Indicates whether to roll back the resource if a warning occurs while API Gateway is creating the RestApi resource.|
|minimum||A nullable integer|