/// <summary> /// Returns an existing component for an Amplify app. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetComponent 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 GetComponent 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> /// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException"> /// The requested resource does not exist, or access was denied. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetComponent">REST API Reference for GetComponent Operation</seealso> public virtual Task <GetComponentResponse> GetComponentAsync(GetComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetComponentRequestMarshaller.Instance; options.ResponseUnmarshaller = GetComponentResponseUnmarshaller.Instance; return(InvokeAsync <GetComponentResponse>(request, options, cancellationToken)); }
internal virtual GetComponentResponse GetComponent(GetComponentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetComponentRequestMarshaller.Instance; options.ResponseUnmarshaller = GetComponentResponseUnmarshaller.Instance; return(Invoke <GetComponentResponse>(request, options)); }