internal virtual DeleteLifecyclePolicyResponse DeleteLifecyclePolicy(DeleteLifecyclePolicyRequest request) { var marshaller = DeleteLifecyclePolicyRequestMarshaller.Instance; var unmarshaller = DeleteLifecyclePolicyResponseUnmarshaller.Instance; return(Invoke <DeleteLifecyclePolicyRequest, DeleteLifecyclePolicyResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the DeleteLifecyclePolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteLifecyclePolicy 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 EndDeleteLifecyclePolicy /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/DeleteLifecyclePolicy">REST API Reference for DeleteLifecyclePolicy Operation</seealso> public virtual IAsyncResult BeginDeleteLifecyclePolicy(DeleteLifecyclePolicyRequest request, AsyncCallback callback, object state) { var marshaller = DeleteLifecyclePolicyRequestMarshaller.Instance; var unmarshaller = DeleteLifecyclePolicyResponseUnmarshaller.Instance; return(BeginInvoke <DeleteLifecyclePolicyRequest>(request, marshaller, unmarshaller, callback, state)); }
internal virtual DeleteLifecyclePolicyResponse DeleteLifecyclePolicy(DeleteLifecyclePolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLifecyclePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLifecyclePolicyResponseUnmarshaller.Instance; return(Invoke <DeleteLifecyclePolicyResponse>(request, options)); }
/// <summary> /// Initiates the asynchronous execution of the DeleteLifecyclePolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteLifecyclePolicy 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 EndDeleteLifecyclePolicy /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/DeleteLifecyclePolicy">REST API Reference for DeleteLifecyclePolicy Operation</seealso> public virtual IAsyncResult BeginDeleteLifecyclePolicy(DeleteLifecyclePolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLifecyclePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLifecyclePolicyResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }
/// <summary> /// Removes an object lifecycle policy from a container. It takes up to 20 minutes for /// the change to take effect. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteLifecyclePolicy service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteLifecyclePolicy service method, as returned by MediaStore.</returns> /// <exception cref="Amazon.MediaStore.Model.ContainerInUseException"> /// The container that you specified in the request already exists or is being updated. /// </exception> /// <exception cref="Amazon.MediaStore.Model.ContainerNotFoundException"> /// The container that you specified in the request does not exist. /// </exception> /// <exception cref="Amazon.MediaStore.Model.InternalServerErrorException"> /// The service is temporarily unavailable. /// </exception> /// <exception cref="Amazon.MediaStore.Model.PolicyNotFoundException"> /// The policy that you specified in the request does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteLifecyclePolicy">REST API Reference for DeleteLifecyclePolicy Operation</seealso> public virtual Task <DeleteLifecyclePolicyResponse> DeleteLifecyclePolicyAsync(DeleteLifecyclePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLifecyclePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLifecyclePolicyResponseUnmarshaller.Instance; return(InvokeAsync <DeleteLifecyclePolicyResponse>(request, options, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the DeleteLifecyclePolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteLifecyclePolicy 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/DeleteLifecyclePolicy">REST API Reference for DeleteLifecyclePolicy Operation</seealso> public virtual Task <DeleteLifecyclePolicyResponse> DeleteLifecyclePolicyAsync(DeleteLifecyclePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteLifecyclePolicyRequestMarshaller(); var unmarshaller = DeleteLifecyclePolicyResponseUnmarshaller.Instance; return(InvokeAsync <DeleteLifecyclePolicyRequest, DeleteLifecyclePolicyResponse>(request, marshaller, unmarshaller, cancellationToken)); }