aws_sdk_migrationhubrefactorspaces/client/
update_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 [`UpdateRoute`](crate::operation::update_route::builders::UpdateRouteFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`environment_identifier(impl Into<String>)`](crate::operation::update_route::builders::UpdateRouteFluentBuilder::environment_identifier) / [`set_environment_identifier(Option<String>)`](crate::operation::update_route::builders::UpdateRouteFluentBuilder::set_environment_identifier):<br>required: **true**<br><p>The ID of the environment in which the route is being updated.</p><br>
7    ///   - [`application_identifier(impl Into<String>)`](crate::operation::update_route::builders::UpdateRouteFluentBuilder::application_identifier) / [`set_application_identifier(Option<String>)`](crate::operation::update_route::builders::UpdateRouteFluentBuilder::set_application_identifier):<br>required: **true**<br><p>The ID of the application within which the route is being updated.</p><br>
8    ///   - [`route_identifier(impl Into<String>)`](crate::operation::update_route::builders::UpdateRouteFluentBuilder::route_identifier) / [`set_route_identifier(Option<String>)`](crate::operation::update_route::builders::UpdateRouteFluentBuilder::set_route_identifier):<br>required: **true**<br><p>The unique identifier of the route to update.</p><br>
9    ///   - [`activation_state(RouteActivationState)`](crate::operation::update_route::builders::UpdateRouteFluentBuilder::activation_state) / [`set_activation_state(Option<RouteActivationState>)`](crate::operation::update_route::builders::UpdateRouteFluentBuilder::set_activation_state):<br>required: **true**<br><p>If set to <code>ACTIVE</code>, traffic is forwarded to this route’s service after the route is updated.</p><br>
10    /// - On success, responds with [`UpdateRouteOutput`](crate::operation::update_route::UpdateRouteOutput) with field(s):
11    ///   - [`route_id(Option<String>)`](crate::operation::update_route::UpdateRouteOutput::route_id): <p>The unique identifier of the route.</p>
12    ///   - [`arn(Option<String>)`](crate::operation::update_route::UpdateRouteOutput::arn): <p>The Amazon Resource Name (ARN) of the route. The format for this ARN is <code>arn:aws:refactor-spaces:<i>region</i>:<i>account-id</i>:<i>resource-type/resource-id</i> </code>. For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html"> Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i>.</p>
13    ///   - [`service_id(Option<String>)`](crate::operation::update_route::UpdateRouteOutput::service_id): <p>The ID of service in which the route was created. Traffic that matches this route is forwarded to this service.</p>
14    ///   - [`application_id(Option<String>)`](crate::operation::update_route::UpdateRouteOutput::application_id): <p>The ID of the application in which the route is being updated.</p>
15    ///   - [`state(Option<RouteState>)`](crate::operation::update_route::UpdateRouteOutput::state): <p>The current state of the route.</p>
16    ///   - [`last_updated_time(Option<DateTime>)`](crate::operation::update_route::UpdateRouteOutput::last_updated_time): <p>A timestamp that indicates when the route was last updated.</p>
17    /// - On failure, responds with [`SdkError<UpdateRouteError>`](crate::operation::update_route::UpdateRouteError)
18    pub fn update_route(&self) -> crate::operation::update_route::builders::UpdateRouteFluentBuilder {
19        crate::operation::update_route::builders::UpdateRouteFluentBuilder::new(self.handle.clone())
20    }
21}