/// <summary> /// Deletes one or more member accounts from the master account behavior graph. This operation /// can only be called by a Detective master account. That account cannot use <code>DeleteMembers</code> /// to delete their own account from the behavior graph. To disable a behavior graph, /// the master account uses the <code>DeleteGraph</code> API method. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteMembers 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 DeleteMembers service method, as returned by Detective.</returns> /// <exception cref="Amazon.Detective.Model.ConflictException"> /// The request attempted an invalid action. /// </exception> /// <exception cref="Amazon.Detective.Model.InternalServerException"> /// The request was valid but failed because of a problem with the service. /// </exception> /// <exception cref="Amazon.Detective.Model.ResourceNotFoundException"> /// The request refers to a nonexistent resource. /// </exception> /// <exception cref="Amazon.Detective.Model.ValidationException"> /// The request parameters are invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/DeleteMembers">REST API Reference for DeleteMembers Operation</seealso> public virtual Task <DeleteMembersResponse> DeleteMembersAsync(DeleteMembersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteMembersRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteMembersResponseUnmarshaller.Instance; return(InvokeAsync <DeleteMembersResponse>(request, options, cancellationToken)); }
internal virtual DeleteMembersResponse DeleteMembers(DeleteMembersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteMembersRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteMembersResponseUnmarshaller.Instance; return(Invoke <DeleteMembersResponse>(request, options)); }