internal GetRepositoryPolicyResponse GetRepositoryPolicy(GetRepositoryPolicyRequest request) { var marshaller = new GetRepositoryPolicyRequestMarshaller(); var unmarshaller = GetRepositoryPolicyResponseUnmarshaller.Instance; return(Invoke <GetRepositoryPolicyRequest, GetRepositoryPolicyResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the GetRepositoryPolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetRepositoryPolicy 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/GetRepositoryPolicy">REST API Reference for GetRepositoryPolicy Operation</seealso> public Task <GetRepositoryPolicyResponse> GetRepositoryPolicyAsync(GetRepositoryPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetRepositoryPolicyRequestMarshaller(); var unmarshaller = GetRepositoryPolicyResponseUnmarshaller.Instance; return(InvokeAsync <GetRepositoryPolicyRequest, GetRepositoryPolicyResponse>(request, marshaller, unmarshaller, cancellationToken)); }