aws_sdk_route53recoverycluster/client/update_routing_control_state.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 [`UpdateRoutingControlState`](crate::operation::update_routing_control_state::builders::UpdateRoutingControlStateFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`routing_control_arn(impl Into<String>)`](crate::operation::update_routing_control_state::builders::UpdateRoutingControlStateFluentBuilder::routing_control_arn) / [`set_routing_control_arn(Option<String>)`](crate::operation::update_routing_control_state::builders::UpdateRoutingControlStateFluentBuilder::set_routing_control_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) for the routing control that you want to update the state for.</p><br>
7 /// - [`routing_control_state(RoutingControlState)`](crate::operation::update_routing_control_state::builders::UpdateRoutingControlStateFluentBuilder::routing_control_state) / [`set_routing_control_state(Option<RoutingControlState>)`](crate::operation::update_routing_control_state::builders::UpdateRoutingControlStateFluentBuilder::set_routing_control_state):<br>required: **true**<br><p>The state of the routing control. You can set the value to ON or OFF.</p><br>
8 /// - [`safety_rules_to_override(impl Into<String>)`](crate::operation::update_routing_control_state::builders::UpdateRoutingControlStateFluentBuilder::safety_rules_to_override) / [`set_safety_rules_to_override(Option<Vec::<String>>)`](crate::operation::update_routing_control_state::builders::UpdateRoutingControlStateFluentBuilder::set_safety_rules_to_override):<br>required: **false**<br><p>The Amazon Resource Names (ARNs) for the safety rules that you want to override when you're updating the state of a routing control. You can override one safety rule or multiple safety rules by including one or more ARNs, separated by commas.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.override-safety-rule.html"> Override safety rules to reroute traffic</a> in the Amazon Route 53 Application Recovery Controller Developer Guide.</p><br>
9 /// - On success, responds with [`UpdateRoutingControlStateOutput`](crate::operation::update_routing_control_state::UpdateRoutingControlStateOutput)
10 /// - On failure, responds with [`SdkError<UpdateRoutingControlStateError>`](crate::operation::update_routing_control_state::UpdateRoutingControlStateError)
11 pub fn update_routing_control_state(&self) -> crate::operation::update_routing_control_state::builders::UpdateRoutingControlStateFluentBuilder {
12 crate::operation::update_routing_control_state::builders::UpdateRoutingControlStateFluentBuilder::new(self.handle.clone())
13 }
14}