/// <summary> /// Exchanges an access code for a token. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExchangeCodeForToken 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 ExchangeCodeForToken service method, as returned by AmplifyUIBuilder.</returns> /// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException"> /// An invalid or out-of-range value was supplied for the input parameter. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExchangeCodeForToken">REST API Reference for ExchangeCodeForToken Operation</seealso> public virtual Task <ExchangeCodeForTokenResponse> ExchangeCodeForTokenAsync(ExchangeCodeForTokenRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ExchangeCodeForTokenRequestMarshaller.Instance; options.ResponseUnmarshaller = ExchangeCodeForTokenResponseUnmarshaller.Instance; return(InvokeAsync <ExchangeCodeForTokenResponse>(request, options, cancellationToken)); }
internal virtual ExchangeCodeForTokenResponse ExchangeCodeForToken(ExchangeCodeForTokenRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ExchangeCodeForTokenRequestMarshaller.Instance; options.ResponseUnmarshaller = ExchangeCodeForTokenResponseUnmarshaller.Instance; return(Invoke <ExchangeCodeForTokenResponse>(request, options)); }