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

DeleteInstanceProfileAsync() public method

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

Same methods

AmazonIdentityManagementServiceClient::DeleteInstanceProfileAsync ( DeleteInstanceProfileRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonIdentityManagementServiceClient