Route

class Route

Represents a route.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Specifies whether a route is managed by API Gateway. If you created an API using quick create, the

$default route is managed by API Gateway. You can't modify the $

default route key.

Link copied to clipboard

Specifies whether an API key is required for this route. Supported only for WebSocket APIs.

Link copied to clipboard

A list of authorization scopes configured on a route. The scopes are used with a JWT authorizer to authorize the method invocation. The authorization works by matching the route scopes against the scopes parsed from the access token in the incoming request. The method invocation is authorized if any route scope matches a claimed scope in the access token. Otherwise, the invocation is not authorized. When the route scope is configured, the client must provide an access token instead of an identity token for authorization purposes.

Link copied to clipboard

The authorization type for the route. For WebSocket APIs, valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer For HTTP APIs, valid values are NONE for open access, JWT for using JSON Web Tokens, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer.

Link copied to clipboard

The identifier of the Authorizer resource to be associated with this route. The authorizer identifier is generated by API Gateway when you created the authorizer.

Link copied to clipboard

The model selection expression for the route. Supported only for WebSocket APIs.

Link copied to clipboard

The operation name for the route.

Link copied to clipboard

The request models for the route. Supported only for WebSocket APIs.

Link copied to clipboard

The request parameters for the route. Supported only for WebSocket APIs.

Link copied to clipboard

The route ID.

Link copied to clipboard

The route key for the route.

Link copied to clipboard

The route response selection expression for the route. Supported only for WebSocket APIs.

Link copied to clipboard

The target for the route.

Functions

Link copied to clipboard
inline fun copy(block: Route.Builder.() -> Unit = {}): Route
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String