@Generated(value="jsii-pacmak/1.26.0 (build 7d76e02)", date="2021-03-25T11:29:21.422Z") @Stability(value=Experimental) public class HttpRouteKey extends software.amazon.jsii.JsiiObject
This class models that combination.
| Modifier and Type | Field and Description |
|---|---|
static HttpRouteKey |
DEFAULT
(experimental) The catch-all route of the API, i.e., when no other routes match.
|
| Modifier | Constructor and Description |
|---|---|
protected |
HttpRouteKey(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
HttpRouteKey(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getKey()
(experimental) The key to the RouteKey as recognized by APIGateway.
|
String |
getPath()
(experimental) The path part of this RouteKey.
|
static HttpRouteKey |
with(String path)
(experimental) Create a route key with the combination of the path and the method.
|
static HttpRouteKey |
with(String path,
HttpMethod method)
(experimental) Create a route key with the combination of the path and the method.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Experimental) public static final HttpRouteKey DEFAULT
protected HttpRouteKey(software.amazon.jsii.JsiiObjectRef objRef)
protected HttpRouteKey(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) @NotNull public static HttpRouteKey with(@NotNull String path, @Nullable HttpMethod method)
path - This parameter is required.method - default is 'ANY'.@Stability(value=Experimental) @NotNull public static HttpRouteKey with(@NotNull String path)
path - This parameter is required.@Stability(value=Experimental) @NotNull public String getKey()
@Stability(value=Experimental) @Nullable public String getPath()
Returns undefined when RouteKey.DEFAULT is used.
Copyright © 2021. All rights reserved.