@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.216Z") @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, getDescription, getDisableExecuteApiEndpoint, getDomainName, getEndpointExportName, getEndpointTypes, getFailOnWarnings, getParameters, getPolicy, getRestApiName, getRetainDeployments@Stability(value=Stable) @NotNull ApiDefinition getApiDefinition()
@Stability(value=Stable) static SpecRestApiProps.Builder builder()
builder in interface RestApiBasePropsSpecRestApiProps.Builder of SpecRestApiPropsCopyright © 2022. All rights reserved.