@Internal public static final class IRestApi.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements IRestApi.Jsii$Default
software.amazon.jsii.JsiiObject.InitializationModeIRestApi.Jsii$Default, IRestApi.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyRemovalPolicy(RemovalPolicy policy)
Apply the given removal policy to this resource.
|
String |
arnForExecuteApi()
Gets the "execute-api" ARN.
|
String |
arnForExecuteApi(String method)
Gets the "execute-api" ARN.
|
String |
arnForExecuteApi(String method,
String path)
Gets the "execute-api" ARN.
|
String |
arnForExecuteApi(String method,
String path,
String stage)
Gets the "execute-api" ARN.
|
Stage |
getDeploymentStage()
API Gateway stage that points to the latest deployment (if defined).
|
ResourceEnvironment |
getEnv()
The environment this resource belongs to.
|
Deployment |
getLatestDeployment()
API Gateway deployment that represents the latest changes of the API.
|
software.constructs.Node |
getNode()
The tree node.
|
String |
getRestApiId()
The ID of this API Gateway RestApi.
|
String |
getRestApiName()
The name of this API Gateway RestApi.
|
String |
getRestApiRootResourceId()
The resource ID of the root resource.
|
IResource |
getRoot()
Represents the root resource ("/") of this API.
|
Stack |
getStack()
The stack in which this resource is defined.
|
void |
setDeploymentStage(Stage value)
API Gateway stage that points to the latest deployment (if defined).
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) @NotNull public final software.constructs.Node getNode()
getNode in interface IResource.Jsii$DefaultgetNode in interface IRestApi.Jsii$DefaultgetNode in interface software.constructs.IConstructgetNode in interface software.constructs.IConstruct.Jsii$Default@Stability(value=Stable) @NotNull public final ResourceEnvironment getEnv()
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
getEnv in interface IResourcegetEnv in interface IResource.Jsii$DefaultgetEnv in interface IRestApi.Jsii$Default@Stability(value=Stable) @NotNull public final Stack getStack()
getStack in interface IResourcegetStack in interface IResource.Jsii$DefaultgetStack in interface IRestApi.Jsii$Default@Stability(value=Stable) @NotNull public final String getRestApiId()
getRestApiId in interface IRestApigetRestApiId in interface IRestApi.Jsii$Default@Stability(value=Stable) @NotNull public final String getRestApiName()
getRestApiName in interface IRestApigetRestApiName in interface IRestApi.Jsii$Default@Stability(value=Stable) @NotNull public final String getRestApiRootResourceId()
getRestApiRootResourceId in interface IRestApigetRestApiRootResourceId in interface IRestApi.Jsii$Default@Stability(value=Stable) @NotNull public final IResource getRoot()
api.root.addMethod('ANY', redirectToHomePage); // "ANY /" api.root.addResource('friends').addMethod('GET', getFriendsHandler); // "GET /friends"
getRoot in interface IRestApigetRoot in interface IRestApi.Jsii$Default@Stability(value=Stable) @Nullable public final Deployment getLatestDeployment()
This resource will be automatically updated every time the REST API model changes.
undefined when no deployment is configured.
getLatestDeployment in interface IRestApigetLatestDeployment in interface IRestApi.Jsii$Default@Stability(value=Stable) @NotNull public final Stage getDeploymentStage()
getDeploymentStage in interface IRestApigetDeploymentStage in interface IRestApi.Jsii$Default@Stability(value=Stable)
public final void setDeploymentStage(@NotNull
Stage value)
setDeploymentStage in interface IRestApisetDeploymentStage in interface IRestApi.Jsii$Default@Stability(value=Stable)
public final void applyRemovalPolicy(@NotNull
RemovalPolicy policy)
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN).
applyRemovalPolicy in interface IResourceapplyRemovalPolicy in interface IResource.Jsii$DefaultapplyRemovalPolicy in interface IRestApi.Jsii$Defaultpolicy - This parameter is required.@Stability(value=Stable) @NotNull public final String arnForExecuteApi(@Nullable String method, @Nullable String path, @Nullable String stage)
Default: "*" returns the execute API ARN for all methods/resources in this API.
arnForExecuteApi in interface IRestApiarnForExecuteApi in interface IRestApi.Jsii$Defaultmethod - The method (default `*`).path - The resource path.stage - The stage (default `*`).@Stability(value=Stable) @NotNull public final String arnForExecuteApi(@Nullable String method, @Nullable String path)
Default: "*" returns the execute API ARN for all methods/resources in this API.
arnForExecuteApi in interface IRestApimethod - The method (default `*`).path - The resource path.@Stability(value=Stable) @NotNull public final String arnForExecuteApi(@Nullable String method)
Default: "*" returns the execute API ARN for all methods/resources in this API.
arnForExecuteApi in interface IRestApimethod - The method (default `*`).@Stability(value=Stable) @NotNull public final String arnForExecuteApi()
Default: "*" returns the execute API ARN for all methods/resources in this API.
arnForExecuteApi in interface IRestApiCopyright © 2022. All rights reserved.