HttpRouteKey
- class aws_cdk.aws_apigatewayv2.HttpRouteKey(*args: Any, **kwargs)
Bases:
object
HTTP route in APIGateway is a combination of the HTTP method and the path component.
This class models that combination.
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_apigatewayv2 as apigatewayv2 http_route_key = apigatewayv2.HttpRouteKey.with("path", apigatewayv2.HttpMethod.ANY)
Attributes
- DEFAULT = <aws_cdk.aws_apigatewayv2.HttpRouteKey object>
- key
The key to the RouteKey as recognized by APIGateway.
- method
The method of the route.
- path
The path part of this RouteKey.
Returns
undefined
whenRouteKey.DEFAULT
is used.
Static Methods
- classmethod with_(path, method=None)
Create a route key with the combination of the path and the method.
- Parameters:
path (
str
) –method (
Optional
[HttpMethod
]) – default is ‘ANY’.
- Return type: