/// <summary> /// Deregisters the resource as managed by the Data Catalog. /// /// /// <para> /// When you deregister a path, Lake Formation removes the path from the inline policy /// attached to your service-linked role. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeregisterResource 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 DeregisterResource service method, as returned by LakeFormation.</returns> /// <exception cref="Amazon.LakeFormation.Model.EntityNotFoundException"> /// A specified entity does not exist /// </exception> /// <exception cref="Amazon.LakeFormation.Model.InternalServiceException"> /// An internal service error occurred. /// </exception> /// <exception cref="Amazon.LakeFormation.Model.InvalidInputException"> /// The input provided was not valid. /// </exception> /// <exception cref="Amazon.LakeFormation.Model.OperationTimeoutException"> /// The operation timed out. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/DeregisterResource">REST API Reference for DeregisterResource Operation</seealso> public virtual Task <DeregisterResourceResponse> DeregisterResourceAsync(DeregisterResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeregisterResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DeregisterResourceResponseUnmarshaller.Instance; return(InvokeAsync <DeregisterResourceResponse>(request, options, cancellationToken)); }
internal virtual DeregisterResourceResponse DeregisterResource(DeregisterResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeregisterResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DeregisterResourceResponseUnmarshaller.Instance; return(Invoke <DeregisterResourceResponse>(request, options)); }