/// <summary> /// Use this operation to change the settings of a canary that has already been created. /// /// /// <para> /// You can't use this operation to update the tags of an existing canary. To change the /// tags of an existing canary, use <a href="https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_TagResource.html">TagResource</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateCanary 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 UpdateCanary service method, as returned by Synthetics.</returns> /// <exception cref="Amazon.Synthetics.Model.ConflictException"> /// A conflicting operation is already in progress. /// </exception> /// <exception cref="Amazon.Synthetics.Model.InternalServerException"> /// An unknown internal error occurred. /// </exception> /// <exception cref="Amazon.Synthetics.Model.RequestEntityTooLargeException"> /// One of the input resources is larger than is allowed. /// </exception> /// <exception cref="Amazon.Synthetics.Model.ResourceNotFoundException"> /// One of the specified resources was not found. /// </exception> /// <exception cref="Amazon.Synthetics.Model.ValidationException"> /// A parameter could not be validated. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/synthetics-2017-10-11/UpdateCanary">REST API Reference for UpdateCanary Operation</seealso> public virtual Task <UpdateCanaryResponse> UpdateCanaryAsync(UpdateCanaryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCanaryRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCanaryResponseUnmarshaller.Instance; return(InvokeAsync <UpdateCanaryResponse>(request, options, cancellationToken)); }
internal virtual UpdateCanaryResponse UpdateCanary(UpdateCanaryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCanaryRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCanaryResponseUnmarshaller.Instance; return(Invoke <UpdateCanaryResponse>(request, options)); }