/// <summary> /// Deletes the specified delivery channel. /// /// /// <para> /// The delivery channel cannot be deleted if it is the only delivery channel and the /// configuration recorder is still running. To delete the delivery channel, stop the /// running configuration recorder using the <a>StopConfigurationRecorder</a> action. /// </para> /// </summary> /// <param name="deliveryChannelName">The name of the delivery channel to delete.</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 DeleteDeliveryChannel service method, as returned by ConfigService.</returns> /// <exception cref="Amazon.ConfigService.Model.LastDeliveryChannelDeleteFailedException"> /// You cannot delete the delivery channel you specified because the configuration recorder /// is running. /// </exception> /// <exception cref="Amazon.ConfigService.Model.NoSuchDeliveryChannelException"> /// You have specified a delivery channel that does not exist. /// </exception> public Task <DeleteDeliveryChannelResponse> DeleteDeliveryChannelAsync(string deliveryChannelName, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new DeleteDeliveryChannelRequest(); request.DeliveryChannelName = deliveryChannelName; return(DeleteDeliveryChannelAsync(request, cancellationToken)); }
internal DeleteDeliveryChannelResponse DeleteDeliveryChannel(DeleteDeliveryChannelRequest request) { var marshaller = new DeleteDeliveryChannelRequestMarshaller(); var unmarshaller = DeleteDeliveryChannelResponseUnmarshaller.Instance; return(Invoke <DeleteDeliveryChannelRequest, DeleteDeliveryChannelResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the DeleteDeliveryChannel operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteDeliveryChannel operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task <DeleteDeliveryChannelResponse> DeleteDeliveryChannelAsync(DeleteDeliveryChannelRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteDeliveryChannelRequestMarshaller(); var unmarshaller = DeleteDeliveryChannelResponseUnmarshaller.Instance; return(InvokeAsync <DeleteDeliveryChannelRequest, DeleteDeliveryChannelResponse>(request, marshaller, unmarshaller, cancellationToken)); }