/// <summary> /// Permanently deletes the specified canary. /// /// /// <para> /// When you delete a canary, resources used and created by the canary are not automatically /// deleted. After you delete a canary that you do not intend to use again, you should /// also delete the following: /// </para> /// <ul> <li> /// <para> /// The Lambda functions and layers used by this canary. These have the prefix <code>cwsyn-<i>MyCanaryName</i> /// </code>. /// </para> /// </li> <li> /// <para> /// The CloudWatch alarms created for this canary. These alarms have a name of <code>Synthetics-SharpDrop-Alarm-<i>MyCanaryName</i> /// </code>. /// </para> /// </li> <li> /// <para> /// Amazon S3 objects and buckets, such as the canary's artifact location. /// </para> /// </li> <li> /// <para> /// IAM roles created for the canary. If they were created in the console, these roles /// have the name <code> role/service-role/CloudWatchSyntheticsRole-<i>MyCanaryName</i> /// </code>. /// </para> /// </li> <li> /// <para> /// CloudWatch Logs log groups created for the canary. These logs groups have the name /// <code>/aws/lambda/cwsyn-<i>MyCanaryName</i> </code>. /// </para> /// </li> </ul> /// <para> /// Before you delete a canary, you might want to use <code>GetCanary</code> to display /// the information about this canary. Make note of the information returned by this operation /// so that you can delete these resources after you delete the canary. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteCanary 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 DeleteCanary 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/DeleteCanary">REST API Reference for DeleteCanary Operation</seealso> public virtual Task <DeleteCanaryResponse> DeleteCanaryAsync(DeleteCanaryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCanaryRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCanaryResponseUnmarshaller.Instance; return(InvokeAsync <DeleteCanaryResponse>(request, options, cancellationToken)); }
internal virtual DeleteCanaryResponse DeleteCanary(DeleteCanaryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCanaryRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCanaryResponseUnmarshaller.Instance; return(Invoke <DeleteCanaryResponse>(request, options)); }