@Generated(value="jsii-pacmak/1.57.0 (build f614666)", date="2022-04-22T22:36:19.420Z") @Stability(value=Stable) public interface SpecRestApiProps extends software.amazon.jsii.JsiiSerializable, RestApiBaseProps
Example:
Integration integration;
SpecRestApi api = SpecRestApi.Builder.create(this, "books-api")
.apiDefinition(ApiDefinition.fromAsset("path-to-file.json"))
.build();
Resource booksResource = api.root.addResource("books");
booksResource.addMethod("GET", integration);
| Modifier and Type | Interface and Description |
|---|---|
static class |
SpecRestApiProps.Builder
A builder for
SpecRestApiProps |
static class |
SpecRestApiProps.Jsii$Proxy
An implementation for
SpecRestApiProps |
| Modifier and Type | Method and Description |
|---|---|
static SpecRestApiProps.Builder |
builder() |
ApiDefinition |
getApiDefinition()
An OpenAPI definition compatible with API Gateway.
|
getCloudWatchRole, getDeploy, getDeployOptions, getDisableExecuteApiEndpoint, getDomainName, getEndpointExportName, getEndpointTypes, getFailOnWarnings, getParameters, getPolicy, getRestApiName, getRetainDeployments@Stability(value=Stable) @NotNull ApiDefinition getApiDefinition()
https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-import-api.html@Stability(value=Stable) static SpecRestApiProps.Builder builder()
builder in interface RestApiBasePropsSpecRestApiProps.Builder of SpecRestApiPropsCopyright © 2022. All rights reserved.