|deployment||API Gateway stage that points to the latest deployment (if defined).|
|env||The environment this resource belongs to.|
|node||The construct tree node for this construct.|
|rest||The ID of this API Gateway RestApi.|
|rest||The resource ID of the root resource.|
|root||Represents the root resource ("/") of this API. Use it to define the API model:.|
|stack||The stack in which this resource is defined.|
|latest||API Gateway deployment that represents the latest changes of the API.|
API Gateway stage that points to the latest deployment (if defined).
The environment this resource belongs to.
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.
The construct tree node for this construct.
The ID of this API Gateway RestApi.
The resource ID of the root resource.
Represents the root resource ("/") of this API. Use it to define the API model:.
api.root.addMethod('ANY', redirectToHomePage); // "ANY /" api.root.addResource('friends').addMethod('GET', getFriendsHandler); // "GET /friends"
The stack in which this resource is defined.
API Gateway deployment that represents the latest changes of the API.
This resource will be automatically updated every time the REST API model changes.
undefined when no deployment is configured.
|arn||Gets the "execute-api" ARN.|
For Execute Api(method?, path?, stage?)
public arnForExecuteApi(method?: string, path?: string, stage?: string): string
string— The method (default
string— The resource path.
string— The stage (default
Gets the "execute-api" ARN.