/// <summary> /// Set multiple routing control states. You can set the value for each state to be On /// or Off. When the state is On, traffic flows to a cell. When it's off, traffic does /// not flow. /// /// /// <para> /// For more information about working with routing controls, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.html">Routing /// control</a> in the Route 53 Application Recovery Controller Developer Guide. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateRoutingControlStates service method.</param> /// /// <returns>The response from the UpdateRoutingControlStates service method, as returned by Route53RecoveryCluster.</returns> /// <exception cref="Amazon.Route53RecoveryCluster.Model.AccessDeniedException"> /// You don't have sufficient permissions to query the routing control state. /// </exception> /// <exception cref="Amazon.Route53RecoveryCluster.Model.ConflictException"> /// There was a conflict with this request. Try again. /// </exception> /// <exception cref="Amazon.Route53RecoveryCluster.Model.EndpointTemporarilyUnavailableException"> /// The cluster endpoint isn't available. Try another cluster endpoint. /// </exception> /// <exception cref="Amazon.Route53RecoveryCluster.Model.InternalServerException"> /// There was an unexpected error during processing of the request. /// </exception> /// <exception cref="Amazon.Route53RecoveryCluster.Model.ResourceNotFoundException"> /// The request references a routing control that was not found. /// </exception> /// <exception cref="Amazon.Route53RecoveryCluster.Model.ThrottlingException"> /// The request was denied because of request throttling. /// </exception> /// <exception cref="Amazon.Route53RecoveryCluster.Model.ValidationException"> /// There was a validation error on the request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/route53-recovery-cluster-2019-12-02/UpdateRoutingControlStates">REST API Reference for UpdateRoutingControlStates Operation</seealso> public virtual UpdateRoutingControlStatesResponse UpdateRoutingControlStates(UpdateRoutingControlStatesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateRoutingControlStatesRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateRoutingControlStatesResponseUnmarshaller.Instance; return(Invoke <UpdateRoutingControlStatesResponse>(request, options)); }
/// <summary> /// Initiates the asynchronous execution of the UpdateRoutingControlStates operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateRoutingControlStates operation on AmazonRoute53RecoveryClusterClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateRoutingControlStates /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/route53-recovery-cluster-2019-12-02/UpdateRoutingControlStates">REST API Reference for UpdateRoutingControlStates Operation</seealso> public virtual IAsyncResult BeginUpdateRoutingControlStates(UpdateRoutingControlStatesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateRoutingControlStatesRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateRoutingControlStatesResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }
/// <summary> /// Set multiple routing control states. You can set the value for each state to be On /// or Off. When the state is On, traffic flows to a cell. When it's off, traffic does /// not flow. /// /// /// <para> /// For more information about working with routing controls, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.html">Routing /// control</a> in the Route 53 Application Recovery Controller Developer Guide. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateRoutingControlStates service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateRoutingControlStates service method, as returned by Route53RecoveryCluster.</returns> /// <exception cref="Amazon.Route53RecoveryCluster.Model.AccessDeniedException"> /// You don't have sufficient permissions to query the routing control state. /// </exception> /// <exception cref="Amazon.Route53RecoveryCluster.Model.ConflictException"> /// There was a conflict with this request. Try again. /// </exception> /// <exception cref="Amazon.Route53RecoveryCluster.Model.EndpointTemporarilyUnavailableException"> /// The cluster endpoint isn't available. Try another cluster endpoint. /// </exception> /// <exception cref="Amazon.Route53RecoveryCluster.Model.InternalServerException"> /// There was an unexpected error during processing of the request. /// </exception> /// <exception cref="Amazon.Route53RecoveryCluster.Model.ResourceNotFoundException"> /// The request references a routing control that was not found. /// </exception> /// <exception cref="Amazon.Route53RecoveryCluster.Model.ThrottlingException"> /// The request was denied because of request throttling. /// </exception> /// <exception cref="Amazon.Route53RecoveryCluster.Model.ValidationException"> /// There was a validation error on the request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/route53-recovery-cluster-2019-12-02/UpdateRoutingControlStates">REST API Reference for UpdateRoutingControlStates Operation</seealso> public virtual Task <UpdateRoutingControlStatesResponse> UpdateRoutingControlStatesAsync(UpdateRoutingControlStatesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateRoutingControlStatesRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateRoutingControlStatesResponseUnmarshaller.Instance; return(InvokeAsync <UpdateRoutingControlStatesResponse>(request, options, cancellationToken)); }