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

PutGroupPolicyAsync() public method

Initiates the asynchronous execution of the PutGroupPolicy operation.
public PutGroupPolicyAsync ( PutGroupPolicyRequest request, PutGroupPolicyResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
request PutGroupPolicyRequest Container for the necessary parameters to execute the PutGroupPolicy operation on AmazonIdentityManagementServiceClient.
callback PutGroupPolicyResponse>.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 PutGroupPolicyAsync(PutGroupPolicyRequest request, AmazonServiceCallback<PutGroupPolicyRequest, PutGroupPolicyResponse> callback, AsyncOptions options = null)
        {
            options = options == null?new AsyncOptions():options;
            var marshaller = new PutGroupPolicyRequestMarshaller();
            var unmarshaller = PutGroupPolicyResponseUnmarshaller.Instance;
            Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;
            if(callback !=null )
                callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { 
                    AmazonServiceResult<PutGroupPolicyRequest,PutGroupPolicyResponse> responseObject 
                            = new AmazonServiceResult<PutGroupPolicyRequest,PutGroupPolicyResponse>((PutGroupPolicyRequest)req, (PutGroupPolicyResponse)res, ex , ao.State);    
                        callback(responseObject); 
                };
            BeginInvoke<PutGroupPolicyRequest>(request, marshaller, unmarshaller, options, callbackHelper);
        }

Same methods

AmazonIdentityManagementServiceClient::PutGroupPolicyAsync ( PutGroupPolicyRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonIdentityManagementServiceClient