Struct aws_sdk_apigatewayv2::operation::get_route::GetRouteOutput
source · #[non_exhaustive]pub struct GetRouteOutput {Show 13 fields
pub api_gateway_managed: Option<bool>,
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>,
/* private fields */
}
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_gateway_managed: Option<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.
api_key_required: Option<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.
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 GetRouteOutput
impl GetRouteOutput
sourcepub fn api_gateway_managed(&self) -> Option<bool>
pub fn api_gateway_managed(&self) -> Option<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) -> Option<bool>
pub fn api_key_required(&self) -> Option<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.
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 GetRouteOutput
impl GetRouteOutput
sourcepub fn builder() -> GetRouteOutputBuilder
pub fn builder() -> GetRouteOutputBuilder
Creates a new builder-style object to manufacture GetRouteOutput
.
Trait Implementations§
source§impl Clone for GetRouteOutput
impl Clone for GetRouteOutput
source§fn clone(&self) -> GetRouteOutput
fn clone(&self) -> GetRouteOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetRouteOutput
impl Debug for GetRouteOutput
source§impl PartialEq for GetRouteOutput
impl PartialEq for GetRouteOutput
source§fn eq(&self, other: &GetRouteOutput) -> bool
fn eq(&self, other: &GetRouteOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for GetRouteOutput
impl RequestId for GetRouteOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for GetRouteOutput
Auto Trait Implementations§
impl Freeze for GetRouteOutput
impl RefUnwindSafe for GetRouteOutput
impl Send for GetRouteOutput
impl Sync for GetRouteOutput
impl Unpin for GetRouteOutput
impl UnwindSafe for GetRouteOutput
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