#[non_exhaustive]pub struct UpdateRouteInput {Show 13 fields
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_id: Option<String>,
pub route_key: Option<String>,
pub route_response_selection_expression: Option<String>,
pub target: Option<String>,
}
Expand description
Updates 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_id: Option<String>
The route ID.
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 UpdateRouteInput
impl UpdateRouteInput
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 UpdateRouteInput
impl UpdateRouteInput
sourcepub fn builder() -> UpdateRouteInputBuilder
pub fn builder() -> UpdateRouteInputBuilder
Creates a new builder-style object to manufacture UpdateRouteInput
.
Trait Implementations§
source§impl Clone for UpdateRouteInput
impl Clone for UpdateRouteInput
source§fn clone(&self) -> UpdateRouteInput
fn clone(&self) -> UpdateRouteInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateRouteInput
impl Debug for UpdateRouteInput
source§impl PartialEq for UpdateRouteInput
impl PartialEq for UpdateRouteInput
source§fn eq(&self, other: &UpdateRouteInput) -> bool
fn eq(&self, other: &UpdateRouteInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateRouteInput
Auto Trait Implementations§
impl Freeze for UpdateRouteInput
impl RefUnwindSafe for UpdateRouteInput
impl Send for UpdateRouteInput
impl Sync for UpdateRouteInput
impl Unpin for UpdateRouteInput
impl UnwindSafe for UpdateRouteInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more