/// <summary> /// Use this operation to run a canary that has already been created. The frequency of /// the canary runs is determined by the value of the canary's <code>Schedule</code>. /// To see a canary's schedule, use <a href="https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_GetCanary.html">GetCanary</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartCanary 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 StartCanary 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.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/StartCanary">REST API Reference for StartCanary Operation</seealso> public virtual Task <StartCanaryResponse> StartCanaryAsync(StartCanaryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartCanaryRequestMarshaller.Instance; options.ResponseUnmarshaller = StartCanaryResponseUnmarshaller.Instance; return(InvokeAsync <StartCanaryResponse>(request, options, cancellationToken)); }
internal virtual StartCanaryResponse StartCanary(StartCanaryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartCanaryRequestMarshaller.Instance; options.ResponseUnmarshaller = StartCanaryResponseUnmarshaller.Instance; return(Invoke <StartCanaryResponse>(request, options)); }