#[non_exhaustive]pub struct CreateRouteInput {
pub api_id: Option<String>,
pub api_key_required: Option<bool>,
pub authorization_scopes: Option<Vec<String>>,
pub authorization_type: Option<AuthorizationType>,
pub authorizer_id: Option<String>,
pub model_selection_expression: Option<String>,
pub operation_name: Option<String>,
pub request_models: Option<HashMap<String, String>>,
pub request_parameters: Option<HashMap<String, ParameterConstraints>>,
pub route_key: Option<String>,
pub route_response_selection_expression: Option<String>,
pub target: Option<String>,
}
Expand description
Creates a new Route resource to represent a route.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.api_id: Option<String>
The API identifier.
api_key_required: Option<bool>
Specifies whether an API key is required for the route. Supported only for WebSocket APIs.
The authorization scopes supported by this route.
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.
model_selection_expression: Option<String>
The model selection expression for the route. Supported only for WebSocket APIs.
operation_name: Option<String>
The operation name for the route.
request_models: Option<HashMap<String, String>>
The request models for the route. Supported only for WebSocket APIs.
request_parameters: Option<HashMap<String, ParameterConstraints>>
The request parameters for the route. Supported only for WebSocket APIs.
route_key: Option<String>
The route key for the route.
route_response_selection_expression: Option<String>
The route response selection expression for the route. Supported only for WebSocket APIs.
target: Option<String>
The target for the route.
Implementations§
source§impl CreateRouteInput
impl CreateRouteInput
sourcepub fn api_key_required(&self) -> Option<bool>
pub fn api_key_required(&self) -> Option<bool>
Specifies whether an API key is required for the route. Supported only for WebSocket APIs.
The authorization scopes supported by this route.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .authorization_scopes.is_none()
.
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.
source§impl CreateRouteInput
impl CreateRouteInput
sourcepub fn builder() -> CreateRouteInputBuilder
pub fn builder() -> CreateRouteInputBuilder
Creates a new builder-style object to manufacture CreateRouteInput
.
Trait Implementations§
source§impl Clone for CreateRouteInput
impl Clone for CreateRouteInput
source§fn clone(&self) -> CreateRouteInput
fn clone(&self) -> CreateRouteInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateRouteInput
impl Debug for CreateRouteInput
source§impl PartialEq for CreateRouteInput
impl PartialEq for CreateRouteInput
source§fn eq(&self, other: &CreateRouteInput) -> bool
fn eq(&self, other: &CreateRouteInput) -> bool
self
and other
values to be equal, and is used
by ==
.