/// <summary> /// Initiates the asynchronous execution of the CreateWorkGroup operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateWorkGroup 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/athena-2017-05-18/CreateWorkGroup">REST API Reference for CreateWorkGroup Operation</seealso> public virtual Task <CreateWorkGroupResponse> CreateWorkGroupAsync(CreateWorkGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateWorkGroupResponseUnmarshaller.Instance; return(InvokeAsync <CreateWorkGroupResponse>(request, options, cancellationToken)); }
internal virtual CreateWorkGroupResponse CreateWorkGroup(CreateWorkGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateWorkGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateWorkGroupResponseUnmarshaller.Instance; return(Invoke <CreateWorkGroupResponse>(request, options)); }