@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:46:59.819Z") @Stability(value=Experimental) public class HttpRoute extends Resource implements IHttpRoute
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.apigatewayv2.*;
HttpApi httpApi;
IHttpRouteAuthorizer httpRouteAuthorizer;
HttpRouteIntegration httpRouteIntegration;
HttpRouteKey httpRouteKey;
HttpRoute httpRoute = HttpRoute.Builder.create(this, "MyHttpRoute")
.httpApi(httpApi)
.integration(httpRouteIntegration)
.routeKey(httpRouteKey)
// the properties below are optional
.authorizationScopes(List.of("authorizationScopes"))
.authorizer(httpRouteAuthorizer)
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpRoute.Builder
(experimental) A fluent builder for
HttpRoute. |
software.amazon.jsii.JsiiObject.InitializationModeIHttpRoute.Jsii$Default, IHttpRoute.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
HttpRoute(software.constructs.Construct scope,
String id,
HttpRouteProps props) |
protected |
HttpRoute(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
HttpRoute(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
IHttpApi |
getHttpApi()
(experimental) The HTTP API associated with this route.
|
String |
getPath()
(experimental) Returns the path component of this HTTP route, `undefined` if the path is the catch-all route.
|
String |
getRouteArn()
(experimental) Returns the arn of the route.
|
String |
getRouteId()
(experimental) Id of the Route.
|
Grant |
grantInvoke(IGrantable grantee)
(experimental) Grant access to invoke the route.
|
Grant |
grantInvoke(IGrantable grantee,
GrantInvokeOptions options)
(experimental) Grant access to invoke the route.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackgetNodeprotected HttpRoute(software.amazon.jsii.JsiiObjectRef objRef)
protected HttpRoute(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public HttpRoute(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
HttpRouteProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public Grant grantInvoke(@NotNull IGrantable grantee, @Nullable GrantInvokeOptions options)
This method requires that the authorizer of the route is undefined or is
an HttpIamAuthorizer.
grantInvoke in interface IHttpRoutegrantee - This parameter is required.options - @Stability(value=Experimental) @NotNull public Grant grantInvoke(@NotNull IGrantable grantee)
This method requires that the authorizer of the route is undefined or is
an HttpIamAuthorizer.
grantInvoke in interface IHttpRoutegrantee - This parameter is required.@Stability(value=Experimental) @NotNull public IHttpApi getHttpApi()
getHttpApi in interface IHttpRoute@Stability(value=Experimental) @NotNull public String getRouteArn()
getRouteArn in interface IHttpRoute@Stability(value=Experimental) @NotNull public String getRouteId()
getRouteId in interface IRoute@Stability(value=Experimental) @Nullable public String getPath()
getPath in interface IHttpRouteCopyright © 2022. All rights reserved.