internal DeleteRepositoryPolicyResponse DeleteRepositoryPolicy(DeleteRepositoryPolicyRequest request) { var marshaller = new DeleteRepositoryPolicyRequestMarshaller(); var unmarshaller = DeleteRepositoryPolicyResponseUnmarshaller.Instance; return(Invoke <DeleteRepositoryPolicyRequest, DeleteRepositoryPolicyResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the DeleteRepositoryPolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteRepositoryPolicy 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> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DeleteRepositoryPolicy">REST API Reference for DeleteRepositoryPolicy Operation</seealso> public Task <DeleteRepositoryPolicyResponse> DeleteRepositoryPolicyAsync(DeleteRepositoryPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteRepositoryPolicyRequestMarshaller(); var unmarshaller = DeleteRepositoryPolicyResponseUnmarshaller.Instance; return(InvokeAsync <DeleteRepositoryPolicyRequest, DeleteRepositoryPolicyResponse>(request, marshaller, unmarshaller, cancellationToken)); }