/// <summary> /// Deletes a profiling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteProfilingGroup service method.</param> /// /// <returns>The response from the DeleteProfilingGroup service method, as returned by CodeGuruProfiler.</returns> /// <exception cref="Amazon.CodeGuruProfiler.Model.InternalServerException"> /// The server encountered an internal error and is unable to complete the request. /// </exception> /// <exception cref="Amazon.CodeGuruProfiler.Model.ResourceNotFoundException"> /// The resource specified in the request does not exist. /// </exception> /// <exception cref="Amazon.CodeGuruProfiler.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CodeGuruProfiler.Model.ValidationException"> /// The parameter is not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/DeleteProfilingGroup">REST API Reference for DeleteProfilingGroup Operation</seealso> public virtual DeleteProfilingGroupResponse DeleteProfilingGroup(DeleteProfilingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteProfilingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteProfilingGroupResponseUnmarshaller.Instance; return(Invoke <DeleteProfilingGroupResponse>(request, options)); }
/// <summary> /// Deletes a profiling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteProfilingGroup 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 DeleteProfilingGroup service method, as returned by CodeGuruProfiler.</returns> /// <exception cref="Amazon.CodeGuruProfiler.Model.InternalServerException"> /// The server encountered an internal error and is unable to complete the request. /// </exception> /// <exception cref="Amazon.CodeGuruProfiler.Model.ResourceNotFoundException"> /// The resource specified in the request does not exist. /// </exception> /// <exception cref="Amazon.CodeGuruProfiler.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CodeGuruProfiler.Model.ValidationException"> /// The parameter is not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/DeleteProfilingGroup">REST API Reference for DeleteProfilingGroup Operation</seealso> public virtual Task <DeleteProfilingGroupResponse> DeleteProfilingGroupAsync(DeleteProfilingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteProfilingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteProfilingGroupResponseUnmarshaller.Instance; return(InvokeAsync <DeleteProfilingGroupResponse>(request, options, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the DeleteProfilingGroup operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteProfilingGroup operation on AmazonCodeGuruProfilerClient.</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 EndDeleteProfilingGroup /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/DeleteProfilingGroup">REST API Reference for DeleteProfilingGroup Operation</seealso> public virtual IAsyncResult BeginDeleteProfilingGroup(DeleteProfilingGroupRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteProfilingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteProfilingGroupResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }