/// <summary> /// Initiates the asynchronous execution of the DescribeIdentity operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeIdentity operation on AmazonCognitoIdentityClient.</param> /// <param name="callback">An Action delegate that is invoked when the operation completes.</param> /// <param name="options">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> public void DescribeIdentityAsync(DescribeIdentityRequest request, AmazonServiceCallback<DescribeIdentityRequest, DescribeIdentityResponse> callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var marshaller = new DescribeIdentityRequestMarshaller(); var unmarshaller = DescribeIdentityResponseUnmarshaller.Instance; Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult<DescribeIdentityRequest,DescribeIdentityResponse> responseObject = new AmazonServiceResult<DescribeIdentityRequest,DescribeIdentityResponse>((DescribeIdentityRequest)req, (DescribeIdentityResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke<DescribeIdentityRequest>(request, marshaller, unmarshaller, options, callbackHelper); }
/// <summary> /// Returns metadata related to the given identity, including when the identity was created /// and any associated linked logins. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeIdentity service method.</param> /// /// <returns>The response from the DescribeIdentity service method, as returned by CognitoIdentity.</returns> /// <exception cref="Amazon.CognitoIdentity.Model.InternalErrorException"> /// Thrown when the service encounters an error during processing the request. /// </exception> /// <exception cref="Amazon.CognitoIdentity.Model.InvalidParameterException"> /// Thrown for missing or bad input parameter(s). /// </exception> /// <exception cref="Amazon.CognitoIdentity.Model.NotAuthorizedException"> /// Thrown when a user is not authorized to access the requested resource. /// </exception> /// <exception cref="Amazon.CognitoIdentity.Model.ResourceNotFoundException"> /// Thrown when the requested resource (for example, a dataset or record) does not exist. /// </exception> /// <exception cref="Amazon.CognitoIdentity.Model.TooManyRequestsException"> /// Thrown when a request is throttled. /// </exception> internal DescribeIdentityResponse DescribeIdentity(DescribeIdentityRequest request) { var marshaller = new DescribeIdentityRequestMarshaller(); var unmarshaller = DescribeIdentityResponseUnmarshaller.Instance; return Invoke<DescribeIdentityRequest,DescribeIdentityResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Returns metadata related to the given identity, including when the identity was created /// and any associated linked logins. /// </summary> /// <param name="identityId">A unique identifier in the format REGION:GUID.</param> /// /// <returns>The response from the DescribeIdentity service method, as returned by CognitoIdentity.</returns> /// <exception cref="Amazon.CognitoIdentity.Model.InternalErrorException"> /// Thrown when the service encounters an error during processing the request. /// </exception> /// <exception cref="Amazon.CognitoIdentity.Model.InvalidParameterException"> /// Thrown for missing or bad input parameter(s). /// </exception> /// <exception cref="Amazon.CognitoIdentity.Model.NotAuthorizedException"> /// Thrown when a user is not authorized to access the requested resource. /// </exception> /// <exception cref="Amazon.CognitoIdentity.Model.ResourceNotFoundException"> /// Thrown when the requested resource (for example, a dataset or record) does not exist. /// </exception> /// <exception cref="Amazon.CognitoIdentity.Model.TooManyRequestsException"> /// Thrown when a request is throttled. /// </exception> public void DescribeIdentityAsync(string identityId, AmazonServiceCallback<DescribeIdentityRequest, DescribeIdentityResponse> callback, AsyncOptions options = null) { var request = new DescribeIdentityRequest(); request.IdentityId = identityId; DescribeIdentityAsync(request, callback, options); }
/// <summary> /// Initiates the asynchronous execution of the DescribeIdentity operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeIdentity 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<DescribeIdentityResponse> DescribeIdentityAsync(DescribeIdentityRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeIdentityRequestMarshaller(); var unmarshaller = DescribeIdentityResponseUnmarshaller.Instance; return InvokeAsync<DescribeIdentityRequest,DescribeIdentityResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Returns metadata related to the given identity, including when the identity was created /// and any associated linked logins. /// /// /// <para> /// You must use AWS Developer credentials to call this API. /// </para> /// </summary> /// <param name="identityId">A unique identifier in the format REGION:GUID.</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 DescribeIdentity service method, as returned by CognitoIdentity.</returns> /// <exception cref="Amazon.CognitoIdentity.Model.InternalErrorException"> /// Thrown when the service encounters an error during processing the request. /// </exception> /// <exception cref="Amazon.CognitoIdentity.Model.InvalidParameterException"> /// Thrown for missing or bad input parameter(s). /// </exception> /// <exception cref="Amazon.CognitoIdentity.Model.NotAuthorizedException"> /// Thrown when a user is not authorized to access the requested resource. /// </exception> /// <exception cref="Amazon.CognitoIdentity.Model.ResourceNotFoundException"> /// Thrown when the requested resource (for example, a dataset or record) does not exist. /// </exception> /// <exception cref="Amazon.CognitoIdentity.Model.TooManyRequestsException"> /// Thrown when a request is throttled. /// </exception> public Task<DescribeIdentityResponse> DescribeIdentityAsync(string identityId, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new DescribeIdentityRequest(); request.IdentityId = identityId; return DescribeIdentityAsync(request, cancellationToken); }
/// <summary> /// Returns metadata related to the given identity, including when the identity was created /// and any associated linked logins. /// /// /// <para> /// You must use AWS Developer credentials to call this API. /// </para> /// </summary> /// <param name="identityId">A unique identifier in the format REGION:GUID.</param> /// /// <returns>The response from the DescribeIdentity service method, as returned by CognitoIdentity.</returns> /// <exception cref="Amazon.CognitoIdentity.Model.InternalErrorException"> /// Thrown when the service encounters an error during processing the request. /// </exception> /// <exception cref="Amazon.CognitoIdentity.Model.InvalidParameterException"> /// Thrown for missing or bad input parameter(s). /// </exception> /// <exception cref="Amazon.CognitoIdentity.Model.NotAuthorizedException"> /// Thrown when a user is not authorized to access the requested resource. /// </exception> /// <exception cref="Amazon.CognitoIdentity.Model.ResourceNotFoundException"> /// Thrown when the requested resource (for example, a dataset or record) does not exist. /// </exception> /// <exception cref="Amazon.CognitoIdentity.Model.TooManyRequestsException"> /// Thrown when a request is throttled. /// </exception> public DescribeIdentityResponse DescribeIdentity(string identityId) { var request = new DescribeIdentityRequest(); request.IdentityId = identityId; return DescribeIdentity(request); }
/// <summary> /// Initiates the asynchronous execution of the DescribeIdentity operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeIdentity operation on AmazonCognitoIdentityClient.</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 EndDescribeIdentity /// operation.</returns> public IAsyncResult BeginDescribeIdentity(DescribeIdentityRequest request, AsyncCallback callback, object state) { var marshaller = new DescribeIdentityRequestMarshaller(); var unmarshaller = DescribeIdentityResponseUnmarshaller.Instance; return BeginInvoke<DescribeIdentityRequest>(request, marshaller, unmarshaller, callback, state); }