Interface SpecRestApiProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,RestApiBaseProps
- All Known Implementing Classes:
SpecRestApiProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:45.091Z")
@Stability(Stable)
public interface SpecRestApiProps
extends software.amazon.jsii.JsiiSerializable, RestApiBaseProps
Props to instantiate a new SpecRestApi.
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);
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forSpecRestApiProps
static final class
An implementation forSpecRestApiProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic SpecRestApiProps.Builder
builder()
An OpenAPI definition compatible with API Gateway.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
Methods inherited from interface software.amazon.awscdk.services.apigateway.RestApiBaseProps
getCloudWatchRole, getDeploy, getDeployOptions, getDisableExecuteApiEndpoint, getDomainName, getEndpointExportName, getEndpointTypes, getFailOnWarnings, getParameters, getPolicy, getRestApiName, getRetainDeployments
-
Method Details
-
getApiDefinition
An OpenAPI definition compatible with API Gateway.- See Also:
-
builder
- Returns:
- a
SpecRestApiProps.Builder
ofSpecRestApiProps
-