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