@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:54:56.852Z") @Stability(value=Experimental) public interface IRestApi extends software.amazon.jsii.JsiiSerializable, IResource
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IRestApi.Jsii$Default
Internal default implementation for
IRestApi. |
static class |
IRestApi.Jsii$Proxy
A proxy class which represents a concrete javascript instance of this type.
|
| Modifier and Type | Method and Description |
|---|---|
String |
arnForExecuteApi()
(experimental) Gets the "execute-api" ARN.
|
String |
arnForExecuteApi(String method)
(experimental) Gets the "execute-api" ARN.
|
String |
arnForExecuteApi(String method,
String path)
(experimental) Gets the "execute-api" ARN.
|
String |
arnForExecuteApi(String method,
String path,
String stage)
(experimental) Gets the "execute-api" ARN.
|
Stage |
getDeploymentStage()
(experimental) API Gateway stage that points to the latest deployment (if defined).
|
default Deployment |
getLatestDeployment()
(experimental) API Gateway deployment that represents the latest changes of the API.
|
String |
getRestApiId()
(experimental) The ID of this API Gateway RestApi.
|
String |
getRestApiRootResourceId()
(experimental) The resource ID of the root resource.
|
IResource |
getRoot()
(experimental) Represents the root resource ("/") of this API.
|
void |
setDeploymentStage(Stage value)
(experimental) API Gateway stage that points to the latest deployment (if defined).
|
@Stability(value=Experimental) @NotNull String getRestApiId()
@Stability(value=Experimental) @NotNull String getRestApiRootResourceId()
@Stability(value=Experimental) @NotNull IResource getRoot()
api.root.addMethod('ANY', redirectToHomePage); // "ANY /" api.root.addResource('friends').addMethod('GET', getFriendsHandler); // "GET /friends"
@Stability(value=Experimental) @Nullable default Deployment getLatestDeployment()
This resource will be automatically updated every time the REST API model changes.
undefined when no deployment is configured.
@Stability(value=Experimental) @NotNull Stage getDeploymentStage()
void setDeploymentStage(@NotNull
Stage value)
@Stability(value=Experimental) @NotNull String arnForExecuteApi(@Nullable String method, @Nullable String path, @Nullable String stage)
Default: "*" returns the execute API ARN for all methods/resources in this API.
method - The method (default `*`).path - The resource path.stage - The stage (default `*`).@Stability(value=Experimental) @NotNull String arnForExecuteApi(@Nullable String method, @Nullable String path)
Default: "*" returns the execute API ARN for all methods/resources in this API.
method - The method (default `*`).path - The resource path.@Stability(value=Experimental) @NotNull String arnForExecuteApi(@Nullable String method)
Default: "*" returns the execute API ARN for all methods/resources in this API.
method - The method (default `*`).@Stability(value=Experimental) @NotNull String arnForExecuteApi()
Default: "*" returns the execute API ARN for all methods/resources in this API.
Copyright © 2021. All rights reserved.