class HttpRoute (construct)
Route class that creates the Route for API Gateway HTTP API.
new HttpRoute(scope: Construct, id: string, props: HttpRouteProps)
|http||the API the route is associated with.|
|integration||The integration to be configured on this route.|
|route||The key to this route.|
the API the route is associated with.
The integration to be configured on this route.
The key to this route.
This is a combination of an HTTP method and an HTTP path.
|env||The environment this resource belongs to.|
|http||The HTTP API associated with this route.|
|node||The construct tree node associated with this construct.|
|route||Id of the Route.|
|stack||The stack in which this resource is defined.|
|path?||Returns the path component of this HTTP route, |
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 HTTP API associated with this route.
The construct tree node associated with this construct.
Id of the Route.
The stack in which this resource is defined.
Returns the path component of this HTTP route,
undefined if the path is the catch-all route.
|to||Returns a string representation of this construct.|
public toString(): string
Returns a string representation of this construct.