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

DeleteAccountPasswordPolicyAsync() public method

Initiates the asynchronous execution of the DeleteAccountPasswordPolicy operation.
public DeleteAccountPasswordPolicyAsync ( DeleteAccountPasswordPolicyRequest request, DeleteAccountPasswordPolicyResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
request DeleteAccountPasswordPolicyRequest Container for the necessary parameters to execute the DeleteAccountPasswordPolicy operation on AmazonIdentityManagementServiceClient.
callback DeleteAccountPasswordPolicyResponse>.AmazonServiceCallback An Action delegate that is invoked when the operation completes.
options Amazon.Runtime.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 DeleteAccountPasswordPolicyAsync(DeleteAccountPasswordPolicyRequest request, AmazonServiceCallback<DeleteAccountPasswordPolicyRequest, DeleteAccountPasswordPolicyResponse> callback, AsyncOptions options = null)
        {
            options = options == null?new AsyncOptions():options;
            var marshaller = new DeleteAccountPasswordPolicyRequestMarshaller();
            var unmarshaller = DeleteAccountPasswordPolicyResponseUnmarshaller.Instance;
            Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;
            if(callback !=null )
                callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { 
                    AmazonServiceResult<DeleteAccountPasswordPolicyRequest,DeleteAccountPasswordPolicyResponse> responseObject 
                            = new AmazonServiceResult<DeleteAccountPasswordPolicyRequest,DeleteAccountPasswordPolicyResponse>((DeleteAccountPasswordPolicyRequest)req, (DeleteAccountPasswordPolicyResponse)res, ex , ao.State);    
                        callback(responseObject); 
                };
            BeginInvoke<DeleteAccountPasswordPolicyRequest>(request, marshaller, unmarshaller, options, callbackHelper);
        }

Same methods

AmazonIdentityManagementServiceClient::DeleteAccountPasswordPolicyAsync ( DeleteAccountPasswordPolicyRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonIdentityManagementServiceClient::DeleteAccountPasswordPolicyAsync ( System cancellationToken = default(CancellationToken) ) : Task
AmazonIdentityManagementServiceClient::DeleteAccountPasswordPolicyAsync ( DeleteAccountPasswordPolicyResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
AmazonIdentityManagementServiceClient