#[non_exhaustive]pub struct GetRouteOutput {Show 18 fields
pub route_id: Option<String>,
pub arn: Option<String>,
pub owner_account_id: Option<String>,
pub created_by_account_id: Option<String>,
pub route_type: Option<RouteType>,
pub service_id: Option<String>,
pub application_id: Option<String>,
pub environment_id: Option<String>,
pub source_path: Option<String>,
pub methods: Option<Vec<HttpMethod>>,
pub include_child_paths: Option<bool>,
pub path_resource_to_id: Option<HashMap<String, String>>,
pub state: Option<RouteState>,
pub tags: Option<HashMap<String, String>>,
pub error: Option<ErrorResponse>,
pub last_updated_time: Option<DateTime>,
pub created_time: Option<DateTime>,
pub append_source_path: Option<bool>,
/* 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.route_id: Option<String>
The unique identifier of the route.
DEFAULT: All traffic that does not match another route is forwarded to the default route. Applications must have a default route before any other routes can be created.
URI_PATH: A route that is based on a URI path.
arn: Option<String>
The Amazon Resource Name (ARN) of the route.
owner_account_id: Option<String>
The Amazon Web Services account ID of the route owner.
created_by_account_id: Option<String>
The Amazon Web Services account ID of the route creator.
route_type: Option<RouteType>
The type of route.
service_id: Option<String>
The unique identifier of the service.
application_id: Option<String>
The ID of the application that the route belongs to.
environment_id: Option<String>
Unique identifier of the environment.
source_path: Option<String>
This is the path that Refactor Spaces uses to match traffic. Paths must start with /
and are relative to the base of the application. To use path parameters in the source path, add a variable in curly braces. For example, the resource path {user} represents a path parameter called 'user'.
methods: Option<Vec<HttpMethod>>
A list of HTTP methods to match. An empty list matches all values. If a method is present, only HTTP requests using that method are forwarded to this route’s service.
include_child_paths: Option<bool>
Indicates whether to match all subpaths of the given source path. If this value is false
, requests must match the source path exactly before they are forwarded to this route's service.
path_resource_to_id: Option<HashMap<String, String>>
A mapping of Amazon API Gateway path resources to resource IDs.
state: Option<RouteState>
The current state of the route.
The tags assigned to the route. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair.
error: Option<ErrorResponse>
Any error associated with the route resource.
last_updated_time: Option<DateTime>
A timestamp that indicates when the route was last updated.
created_time: Option<DateTime>
The timestamp of when the route is created.
append_source_path: Option<bool>
If set to true
, this option appends the source path to the service URL endpoint.
Implementations§
source§impl GetRouteOutput
impl GetRouteOutput
sourcepub fn route_id(&self) -> Option<&str>
pub fn route_id(&self) -> Option<&str>
The unique identifier of the route.
DEFAULT: All traffic that does not match another route is forwarded to the default route. Applications must have a default route before any other routes can be created.
URI_PATH: A route that is based on a URI path.
sourcepub fn owner_account_id(&self) -> Option<&str>
pub fn owner_account_id(&self) -> Option<&str>
The Amazon Web Services account ID of the route owner.
sourcepub fn created_by_account_id(&self) -> Option<&str>
pub fn created_by_account_id(&self) -> Option<&str>
The Amazon Web Services account ID of the route creator.
sourcepub fn route_type(&self) -> Option<&RouteType>
pub fn route_type(&self) -> Option<&RouteType>
The type of route.
sourcepub fn service_id(&self) -> Option<&str>
pub fn service_id(&self) -> Option<&str>
The unique identifier of the service.
sourcepub fn application_id(&self) -> Option<&str>
pub fn application_id(&self) -> Option<&str>
The ID of the application that the route belongs to.
sourcepub fn environment_id(&self) -> Option<&str>
pub fn environment_id(&self) -> Option<&str>
Unique identifier of the environment.
sourcepub fn source_path(&self) -> Option<&str>
pub fn source_path(&self) -> Option<&str>
This is the path that Refactor Spaces uses to match traffic. Paths must start with /
and are relative to the base of the application. To use path parameters in the source path, add a variable in curly braces. For example, the resource path {user} represents a path parameter called 'user'.
sourcepub fn methods(&self) -> &[HttpMethod]
pub fn methods(&self) -> &[HttpMethod]
A list of HTTP methods to match. An empty list matches all values. If a method is present, only HTTP requests using that method are forwarded to this route’s service.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .methods.is_none()
.
sourcepub fn include_child_paths(&self) -> Option<bool>
pub fn include_child_paths(&self) -> Option<bool>
Indicates whether to match all subpaths of the given source path. If this value is false
, requests must match the source path exactly before they are forwarded to this route's service.
sourcepub fn path_resource_to_id(&self) -> Option<&HashMap<String, String>>
pub fn path_resource_to_id(&self) -> Option<&HashMap<String, String>>
A mapping of Amazon API Gateway path resources to resource IDs.
sourcepub fn state(&self) -> Option<&RouteState>
pub fn state(&self) -> Option<&RouteState>
The current state of the route.
The tags assigned to the route. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair.
sourcepub fn error(&self) -> Option<&ErrorResponse>
pub fn error(&self) -> Option<&ErrorResponse>
Any error associated with the route resource.
sourcepub fn last_updated_time(&self) -> Option<&DateTime>
pub fn last_updated_time(&self) -> Option<&DateTime>
A timestamp that indicates when the route was last updated.
sourcepub fn created_time(&self) -> Option<&DateTime>
pub fn created_time(&self) -> Option<&DateTime>
The timestamp of when the route is created.
sourcepub fn append_source_path(&self) -> Option<bool>
pub fn append_source_path(&self) -> Option<bool>
If set to true
, this option appends the source path to the service URL endpoint.
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.