Interface IHttpRoute
- All Superinterfaces:
software.constructs.IConstruct,software.constructs.IDependable,IEnvironmentAware,IResource,IRoute,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IHttpRoute.Jsii$Default
- All Known Implementing Classes:
HttpRoute,IHttpRoute.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:09:58.091Z")
@Stability(Stable)
public interface IHttpRoute
extends software.amazon.jsii.JsiiSerializable, IRoute
Represents a Route for an HTTP API.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInternal default implementation forIHttpRoute.static final classA proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionThe HTTP API associated with this route.default StringgetPath()Returns the path component of this HTTP route,undefinedif the path is the catch-all route.Returns the arn of the route.grantInvoke(IGrantable grantee) Grant access to invoke the route.grantInvoke(IGrantable grantee, GrantInvokeOptions options) Grant access to invoke the route.Methods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.awscdk.services.apigatewayv2.IRoute
getRouteIdMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getHttpApi
The HTTP API associated with this route. -
getRouteArn
Returns the arn of the route. -
getPath
Returns the path component of this HTTP route,undefinedif the path is the catch-all route. -
grantInvoke
@Stability(Stable) @NotNull Grant grantInvoke(@NotNull IGrantable grantee, @Nullable GrantInvokeOptions options) Grant access to invoke the route.This method requires that the authorizer of the route is undefined or is an
HttpIamAuthorizer.- Parameters:
grantee- This parameter is required.options-
-
grantInvoke
Grant access to invoke the route.This method requires that the authorizer of the route is undefined or is an
HttpIamAuthorizer.- Parameters:
grantee- This parameter is required.
-