aws_sdk_migrationhubrefactorspaces/client/get_route.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`GetRoute`](crate::operation::get_route::builders::GetRouteFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`environment_identifier(impl Into<String>)`](crate::operation::get_route::builders::GetRouteFluentBuilder::environment_identifier) / [`set_environment_identifier(Option<String>)`](crate::operation::get_route::builders::GetRouteFluentBuilder::set_environment_identifier):<br>required: **true**<br><p>The ID of the environment.</p><br>
7 /// - [`application_identifier(impl Into<String>)`](crate::operation::get_route::builders::GetRouteFluentBuilder::application_identifier) / [`set_application_identifier(Option<String>)`](crate::operation::get_route::builders::GetRouteFluentBuilder::set_application_identifier):<br>required: **true**<br><p>The ID of the application.</p><br>
8 /// - [`route_identifier(impl Into<String>)`](crate::operation::get_route::builders::GetRouteFluentBuilder::route_identifier) / [`set_route_identifier(Option<String>)`](crate::operation::get_route::builders::GetRouteFluentBuilder::set_route_identifier):<br>required: **true**<br><p>The ID of the route.</p><br>
9 /// - On success, responds with [`GetRouteOutput`](crate::operation::get_route::GetRouteOutput) with field(s):
10 /// - [`route_id(Option<String>)`](crate::operation::get_route::GetRouteOutput::route_id): <p>The unique identifier of the route.</p> <p><b>DEFAULT</b>: 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.</p> <p><b>URI_PATH</b>: A route that is based on a URI path.</p>
11 /// - [`arn(Option<String>)`](crate::operation::get_route::GetRouteOutput::arn): <p>The Amazon Resource Name (ARN) of the route.</p>
12 /// - [`owner_account_id(Option<String>)`](crate::operation::get_route::GetRouteOutput::owner_account_id): <p>The Amazon Web Services account ID of the route owner.</p>
13 /// - [`created_by_account_id(Option<String>)`](crate::operation::get_route::GetRouteOutput::created_by_account_id): <p>The Amazon Web Services account ID of the route creator.</p>
14 /// - [`route_type(Option<RouteType>)`](crate::operation::get_route::GetRouteOutput::route_type): <p>The type of route.</p>
15 /// - [`service_id(Option<String>)`](crate::operation::get_route::GetRouteOutput::service_id): <p>The unique identifier of the service.</p>
16 /// - [`application_id(Option<String>)`](crate::operation::get_route::GetRouteOutput::application_id): <p>The ID of the application that the route belongs to.</p>
17 /// - [`environment_id(Option<String>)`](crate::operation::get_route::GetRouteOutput::environment_id): <p>Unique identifier of the environment.</p>
18 /// - [`source_path(Option<String>)`](crate::operation::get_route::GetRouteOutput::source_path): <p>This is the path that Refactor Spaces uses to match traffic. Paths must start with <code>/</code> 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'.</p>
19 /// - [`methods(Option<Vec::<HttpMethod>>)`](crate::operation::get_route::GetRouteOutput::methods): <p>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.</p>
20 /// - [`include_child_paths(Option<bool>)`](crate::operation::get_route::GetRouteOutput::include_child_paths): <p>Indicates whether to match all subpaths of the given source path. If this value is <code>false</code>, requests must match the source path exactly before they are forwarded to this route's service.</p>
21 /// - [`path_resource_to_id(Option<HashMap::<String, String>>)`](crate::operation::get_route::GetRouteOutput::path_resource_to_id): <p>A mapping of Amazon API Gateway path resources to resource IDs.</p>
22 /// - [`state(Option<RouteState>)`](crate::operation::get_route::GetRouteOutput::state): <p>The current state of the route.</p>
23 /// - [`tags(Option<HashMap::<String, String>>)`](crate::operation::get_route::GetRouteOutput::tags): <p>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.</p>
24 /// - [`error(Option<ErrorResponse>)`](crate::operation::get_route::GetRouteOutput::error): <p>Any error associated with the route resource.</p>
25 /// - [`last_updated_time(Option<DateTime>)`](crate::operation::get_route::GetRouteOutput::last_updated_time): <p>A timestamp that indicates when the route was last updated.</p>
26 /// - [`created_time(Option<DateTime>)`](crate::operation::get_route::GetRouteOutput::created_time): <p>The timestamp of when the route is created.</p>
27 /// - [`append_source_path(Option<bool>)`](crate::operation::get_route::GetRouteOutput::append_source_path): <p>If set to <code>true</code>, this option appends the source path to the service URL endpoint.</p>
28 /// - On failure, responds with [`SdkError<GetRouteError>`](crate::operation::get_route::GetRouteError)
29 pub fn get_route(&self) -> crate::operation::get_route::builders::GetRouteFluentBuilder {
30 crate::operation::get_route::builders::GetRouteFluentBuilder::new(self.handle.clone())
31 }
32}