internal virtual CreateLifecyclePolicyResponse CreateLifecyclePolicy(CreateLifecyclePolicyRequest request) { var marshaller = CreateLifecyclePolicyRequestMarshaller.Instance; var unmarshaller = CreateLifecyclePolicyResponseUnmarshaller.Instance; return(Invoke <CreateLifecyclePolicyRequest, CreateLifecyclePolicyResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the CreateLifecyclePolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateLifecyclePolicy 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 EndCreateLifecyclePolicy /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/CreateLifecyclePolicy">REST API Reference for CreateLifecyclePolicy Operation</seealso> public virtual IAsyncResult BeginCreateLifecyclePolicy(CreateLifecyclePolicyRequest request, AsyncCallback callback, object state) { var marshaller = CreateLifecyclePolicyRequestMarshaller.Instance; var unmarshaller = CreateLifecyclePolicyResponseUnmarshaller.Instance; return(BeginInvoke <CreateLifecyclePolicyRequest>(request, marshaller, unmarshaller, callback, state)); }
/// <summary> /// Creates a policy to manage the lifecycle of the specified AWS resources. You can create /// up to 100 lifecycle policies. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateLifecyclePolicy service method.</param> /// /// <returns>The response from the CreateLifecyclePolicy 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> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/CreateLifecyclePolicy">REST API Reference for CreateLifecyclePolicy Operation</seealso> public virtual CreateLifecyclePolicyResponse CreateLifecyclePolicy(CreateLifecyclePolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLifecyclePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLifecyclePolicyResponseUnmarshaller.Instance; return(Invoke <CreateLifecyclePolicyResponse>(request, options)); }
/// <summary> /// Initiates the asynchronous execution of the CreateLifecyclePolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateLifecyclePolicy 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 EndCreateLifecyclePolicy /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/CreateLifecyclePolicy">REST API Reference for CreateLifecyclePolicy Operation</seealso> public virtual IAsyncResult BeginCreateLifecyclePolicy(CreateLifecyclePolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLifecyclePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLifecyclePolicyResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }
/// <summary> /// Initiates the asynchronous execution of the CreateLifecyclePolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateLifecyclePolicy 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/CreateLifecyclePolicy">REST API Reference for CreateLifecyclePolicy Operation</seealso> public virtual Task <CreateLifecyclePolicyResponse> CreateLifecyclePolicyAsync(CreateLifecyclePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLifecyclePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLifecyclePolicyResponseUnmarshaller.Instance; return(InvokeAsync <CreateLifecyclePolicyResponse>(request, options, cancellationToken)); }