Amazon.IdentityManagement.AmazonIdentityManagementServiceClient.ListGroupPoliciesAsync C# (CSharp) Method

ListGroupPoliciesAsync() public method

Initiates the asynchronous execution of the ListGroupPolicies operation.
public ListGroupPoliciesAsync ( ListGroupPoliciesRequest request, ListGroupPoliciesResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
request ListGroupPoliciesRequest Container for the necessary parameters to execute the ListGroupPolicies operation on AmazonIdentityManagementServiceClient.
callback ListGroupPoliciesResponse>.AmazonServiceCallback An Action delegate that is invoked when the operation completes.
options AsyncOptions A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.
return void
        public void ListGroupPoliciesAsync(ListGroupPoliciesRequest request, AmazonServiceCallback<ListGroupPoliciesRequest, ListGroupPoliciesResponse> callback, AsyncOptions options = null)
        {
            options = options == null?new AsyncOptions():options;
            var marshaller = new ListGroupPoliciesRequestMarshaller();
            var unmarshaller = ListGroupPoliciesResponseUnmarshaller.Instance;
            Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;
            if(callback !=null )
                callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { 
                    AmazonServiceResult<ListGroupPoliciesRequest,ListGroupPoliciesResponse> responseObject 
                            = new AmazonServiceResult<ListGroupPoliciesRequest,ListGroupPoliciesResponse>((ListGroupPoliciesRequest)req, (ListGroupPoliciesResponse)res, ex , ao.State);    
                        callback(responseObject); 
                };
            BeginInvoke<ListGroupPoliciesRequest>(request, marshaller, unmarshaller, options, callbackHelper);
        }

Same methods

AmazonIdentityManagementServiceClient::ListGroupPoliciesAsync ( ListGroupPoliciesRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonIdentityManagementServiceClient