internal virtual UpdateLifecyclePolicyResponse UpdateLifecyclePolicy(UpdateLifecyclePolicyRequest request) { var marshaller = UpdateLifecyclePolicyRequestMarshaller.Instance; var unmarshaller = UpdateLifecyclePolicyResponseUnmarshaller.Instance; return(Invoke <UpdateLifecyclePolicyRequest, UpdateLifecyclePolicyResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the UpdateLifecyclePolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateLifecyclePolicy operation on AmazonDLMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateLifecyclePolicy /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/UpdateLifecyclePolicy">REST API Reference for UpdateLifecyclePolicy Operation</seealso> public virtual IAsyncResult BeginUpdateLifecyclePolicy(UpdateLifecyclePolicyRequest request, AsyncCallback callback, object state) { var marshaller = UpdateLifecyclePolicyRequestMarshaller.Instance; var unmarshaller = UpdateLifecyclePolicyResponseUnmarshaller.Instance; return(BeginInvoke <UpdateLifecyclePolicyRequest>(request, marshaller, unmarshaller, callback, state)); }
/// <summary> /// Updates the specified lifecycle policy. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateLifecyclePolicy service method.</param> /// /// <returns>The response from the UpdateLifecyclePolicy service method, as returned by DLM.</returns> /// <exception cref="Amazon.DLM.Model.InternalServerException"> /// The service failed in an unexpected way. /// </exception> /// <exception cref="Amazon.DLM.Model.InvalidRequestException"> /// Bad request. The request is missing required parameters or has invalid parameters. /// </exception> /// <exception cref="Amazon.DLM.Model.LimitExceededException"> /// The request failed because a limit was exceeded. /// </exception> /// <exception cref="Amazon.DLM.Model.ResourceNotFoundException"> /// A requested resource was not found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/UpdateLifecyclePolicy">REST API Reference for UpdateLifecyclePolicy Operation</seealso> public virtual UpdateLifecyclePolicyResponse UpdateLifecyclePolicy(UpdateLifecyclePolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateLifecyclePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateLifecyclePolicyResponseUnmarshaller.Instance; return(Invoke <UpdateLifecyclePolicyResponse>(request, options)); }
/// <summary> /// Initiates the asynchronous execution of the UpdateLifecyclePolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateLifecyclePolicy operation on AmazonDLMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateLifecyclePolicy /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/UpdateLifecyclePolicy">REST API Reference for UpdateLifecyclePolicy Operation</seealso> public virtual IAsyncResult BeginUpdateLifecyclePolicy(UpdateLifecyclePolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateLifecyclePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateLifecyclePolicyResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }
/// <summary> /// Initiates the asynchronous execution of the UpdateLifecyclePolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateLifecyclePolicy 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/dlm-2018-01-12/UpdateLifecyclePolicy">REST API Reference for UpdateLifecyclePolicy Operation</seealso> public virtual Task <UpdateLifecyclePolicyResponse> UpdateLifecyclePolicyAsync(UpdateLifecyclePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateLifecyclePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateLifecyclePolicyResponseUnmarshaller.Instance; return(InvokeAsync <UpdateLifecyclePolicyResponse>(request, options, cancellationToken)); }