/// <summary> /// Retrieves a list of themes for a specified Amplify app and backend environment. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListThemes 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 ListThemes service method, as returned by AmplifyUIBuilder.</returns> /// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException"> /// An internal error has occurred. Please retry your request. /// </exception> /// <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/ListThemes">REST API Reference for ListThemes Operation</seealso> public virtual Task <ListThemesResponse> ListThemesAsync(ListThemesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListThemesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListThemesResponseUnmarshaller.Instance; return(InvokeAsync <ListThemesResponse>(request, options, cancellationToken)); }
internal virtual ListThemesResponse ListThemes(ListThemesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListThemesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListThemesResponseUnmarshaller.Instance; return(Invoke <ListThemesResponse>(request, options)); }