internal virtual BatchGrantPermissionsResponse BatchGrantPermissions(BatchGrantPermissionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGrantPermissionsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGrantPermissionsResponseUnmarshaller.Instance; return(Invoke <BatchGrantPermissionsResponse>(request, options)); }
/// <summary> /// Batch operation to grant permissions to the principal. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchGrantPermissions 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 BatchGrantPermissions service method, as returned by LakeFormation.</returns> /// <exception cref="Amazon.LakeFormation.Model.InvalidInputException"> /// The input provided was not valid. /// </exception> /// <exception cref="Amazon.LakeFormation.Model.OperationTimeoutException"> /// The operation timed out. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/BatchGrantPermissions">REST API Reference for BatchGrantPermissions Operation</seealso> public virtual Task <BatchGrantPermissionsResponse> BatchGrantPermissionsAsync(BatchGrantPermissionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGrantPermissionsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGrantPermissionsResponseUnmarshaller.Instance; return(InvokeAsync <BatchGrantPermissionsResponse>(request, options, cancellationToken)); }