Struct aws_sdk_apigatewayv2::types::Route
source · #[non_exhaustive]pub struct Route { /* private fields */ }
Expand description
Represents a route.
Implementations§
source§impl Route
impl Route
sourcepub fn api_gateway_managed(&self) -> bool
pub fn api_gateway_managed(&self) -> bool
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.
sourcepub fn api_key_required(&self) -> bool
pub fn api_key_required(&self) -> bool
Specifies whether an API key is required for this route. Supported only for WebSocket APIs.
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.
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.
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.
sourcepub fn model_selection_expression(&self) -> Option<&str>
pub fn model_selection_expression(&self) -> Option<&str>
The model selection expression for the route. Supported only for WebSocket APIs.
sourcepub fn operation_name(&self) -> Option<&str>
pub fn operation_name(&self) -> Option<&str>
The operation name for the route.
sourcepub fn request_models(&self) -> Option<&HashMap<String, String>>
pub fn request_models(&self) -> Option<&HashMap<String, String>>
The request models for the route. Supported only for WebSocket APIs.
sourcepub fn request_parameters(
&self
) -> Option<&HashMap<String, ParameterConstraints>>
pub fn request_parameters( &self ) -> Option<&HashMap<String, ParameterConstraints>>
The request parameters for the route. Supported only for WebSocket APIs.
sourcepub fn route_response_selection_expression(&self) -> Option<&str>
pub fn route_response_selection_expression(&self) -> Option<&str>
The route response selection expression for the route. Supported only for WebSocket APIs.