internal virtual GetDeviceRegistrationResponse GetDeviceRegistration(GetDeviceRegistrationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDeviceRegistrationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDeviceRegistrationResponseUnmarshaller.Instance; return(Invoke <GetDeviceRegistrationResponse>(request, options)); }
/// <summary> /// Initiates the asynchronous execution of the GetDeviceRegistration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetDeviceRegistration operation on AmazonSagemakerEdgeManagerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetDeviceRegistration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-edge-2020-09-23/GetDeviceRegistration">REST API Reference for GetDeviceRegistration Operation</seealso> public virtual IAsyncResult BeginGetDeviceRegistration(GetDeviceRegistrationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetDeviceRegistrationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDeviceRegistrationResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }
/// <summary> /// Use to check if a device is registered with SageMaker Edge Manager. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDeviceRegistration 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 GetDeviceRegistration service method, as returned by SagemakerEdgeManager.</returns> /// <exception cref="Amazon.SagemakerEdgeManager.Model.InternalServiceException"> /// An internal failure occurred. Try your request again. If the problem persists, contact /// AWS customer support. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-edge-2020-09-23/GetDeviceRegistration">REST API Reference for GetDeviceRegistration Operation</seealso> public virtual Task <GetDeviceRegistrationResponse> GetDeviceRegistrationAsync(GetDeviceRegistrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetDeviceRegistrationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDeviceRegistrationResponseUnmarshaller.Instance; return(InvokeAsync <GetDeviceRegistrationResponse>(request, options, cancellationToken)); }