@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:46:59.842Z") @Stability(value=Experimental) public class HttpRouteKey extends software.amazon.jsii.JsiiObject
This class models that combination.
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.*;
HttpRouteKey httpRouteKey = HttpRouteKey.with("path", HttpMethod.ANY);
| 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.
|
HttpMethod |
getMethod()
(experimental) The method of the route.
|
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) @NotNull public HttpMethod getMethod()
@Stability(value=Experimental) @Nullable public String getPath()
Returns undefined when RouteKey.DEFAULT is used.
Copyright © 2022. All rights reserved.