internal PutDestinationPolicyResponse PutDestinationPolicy(PutDestinationPolicyRequest request) { var marshaller = new PutDestinationPolicyRequestMarshaller(); var unmarshaller = PutDestinationPolicyResponseUnmarshaller.Instance; return(Invoke <PutDestinationPolicyRequest, PutDestinationPolicyResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the PutDestinationPolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutDestinationPolicy 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> public Task <PutDestinationPolicyResponse> PutDestinationPolicyAsync(PutDestinationPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new PutDestinationPolicyRequestMarshaller(); var unmarshaller = PutDestinationPolicyResponseUnmarshaller.Instance; return(InvokeAsync <PutDestinationPolicyRequest, PutDestinationPolicyResponse>(request, marshaller, unmarshaller, cancellationToken)); }