internal virtual DeletePlacementResponse DeletePlacement(DeletePlacementRequest request) { var marshaller = DeletePlacementRequestMarshaller.Instance; var unmarshaller = DeletePlacementResponseUnmarshaller.Instance; return(Invoke <DeletePlacementRequest, DeletePlacementResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the DeletePlacement operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeletePlacement 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/iot1click-projects-2018-05-14/DeletePlacement">REST API Reference for DeletePlacement Operation</seealso> public virtual Task <DeletePlacementResponse> DeletePlacementAsync(DeletePlacementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = DeletePlacementRequestMarshaller.Instance; var unmarshaller = DeletePlacementResponseUnmarshaller.Instance; return(InvokeAsync <DeletePlacementRequest, DeletePlacementResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Deletes a placement. To delete a placement, it must not have any devices associated /// with it. /// /// <note> /// <para> /// When you delete a placement, all associated data becomes irretrievable. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeletePlacement 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 DeletePlacement service method, as returned by IoT1ClickProjects.</returns> /// <exception cref="Amazon.IoT1ClickProjects.Model.InternalFailureException"> /// /// </exception> /// <exception cref="Amazon.IoT1ClickProjects.Model.InvalidRequestException"> /// /// </exception> /// <exception cref="Amazon.IoT1ClickProjects.Model.ResourceNotFoundException"> /// /// </exception> /// <exception cref="Amazon.IoT1ClickProjects.Model.TooManyRequestsException"> /// /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/DeletePlacement">REST API Reference for DeletePlacement Operation</seealso> public virtual Task <DeletePlacementResponse> DeletePlacementAsync(DeletePlacementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePlacementRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePlacementResponseUnmarshaller.Instance; return(InvokeAsync <DeletePlacementResponse>(request, options, cancellationToken)); }
internal virtual DeletePlacementResponse DeletePlacement(DeletePlacementRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePlacementRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePlacementResponseUnmarshaller.Instance; return(Invoke <DeletePlacementResponse>(request, options)); }