internal UpdateIdentityPoolResponse UpdateIdentityPool(UpdateIdentityPoolRequest request) { UpdateIdentityPoolRequestMarshaller marshaller = new UpdateIdentityPoolRequestMarshaller(); UpdateIdentityPoolResponseUnmarshaller instance = UpdateIdentityPoolResponseUnmarshaller.Instance; return(Invoke <UpdateIdentityPoolRequest, UpdateIdentityPoolResponse>(request, marshaller, instance)); }
/// <summary> /// Initiates the asynchronous execution of the UpdateIdentityPool operation. /// <seealso cref="Amazon.CognitoIdentity.IAmazonCognitoIdentity.UpdateIdentityPool"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateIdentityPool operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task <UpdateIdentityPoolResponse> UpdateIdentityPoolAsync(UpdateIdentityPoolRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new UpdateIdentityPoolRequestMarshaller(); var unmarshaller = UpdateIdentityPoolResponseUnmarshaller.GetInstance(); return(Invoke <IRequest, UpdateIdentityPoolRequest, UpdateIdentityPoolResponse>(request, marshaller, unmarshaller, signer, cancellationToken)); }
public void UpdateIdentityPoolAsync(UpdateIdentityPoolRequest request, AmazonServiceCallback <UpdateIdentityPoolRequest, UpdateIdentityPoolResponse> callback, AsyncOptions options = null) { options = ((options == null) ? new AsyncOptions() : options); UpdateIdentityPoolRequestMarshaller marshaller = new UpdateIdentityPoolRequestMarshaller(); UpdateIdentityPoolResponseUnmarshaller instance = UpdateIdentityPoolResponseUnmarshaller.Instance; Action <AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if (callback != null) { callbackHelper = delegate(AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) { AmazonServiceResult <UpdateIdentityPoolRequest, UpdateIdentityPoolResponse> responseObject = new AmazonServiceResult <UpdateIdentityPoolRequest, UpdateIdentityPoolResponse>((UpdateIdentityPoolRequest)req, (UpdateIdentityPoolResponse)res, ex, ao.State); callback(responseObject); }; } BeginInvoke(request, marshaller, instance, options, callbackHelper); }