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