aws_scripts/collect_aws_api_calls_boto3.py
def call_method_with_time_out(method):
    """
    Note: some of the methods doesnt get any response back (not response nor error/exception)
    to prevent the program stuck at these function, there is a timeout defined
    """
    required_params = []
    try:
        method()
    except TimeoutError as e:
        print_green("Time out: " + str(method.__name__))
        required_params = ["timeout"]
    except ParamValidationError as e:
        print_green(str(e))
        required_params = re.findall(r'\"(.+?)\"', str(e))
    except Exception as e:
        # Can't handle methods with required arguments.
        required_params = ["N/P"]
    return required_params

    Note: some of the methods doesnt get any response back (not response nor error/exception)
    to prevent the program stuck at these function, there is a timeout defined
    
some of the methods doesnt get any response back (not response nor error/exception)
to prevent the program stuck at these function, there is a timeout defined
some of the methods doesnt get any response back ( not response nor error / exception ) to prevent the program stuck at these function there is a timeout defined
def call_method_with_time_out(method):
    required_params = []
    try:
        method()
    except TimeoutError as e:
        print_green("Time out: " + str(method.__name__))
        required_params = ["timeout"]
    except ParamValidationError as e:
        print_green(str(e))
        required_params = re.findall(r'\"(.+?)\"', str(e))
    except Exception as e:
        required_params = ["N/P"]
    return required_params
def call_method_with_time_out ( method ) : required_params = [ ] try : method ( ) except TimeoutError as e : print_green ( "Time out: " + str ( method . __name__ ) ) required_params = [ "timeout" ] except ParamValidationError as e : print_green ( str ( e ) ) required_params = re . findall ( r'\"(.+?)\"' , str ( e ) ) except Exception as e : required_params = [ "N/P" ] return required_params
Note: some of the methods doesnt get any response back (not response nor error/exception)
to prevent the program stuck at these function, there is a timeout defined
Note : some of the methods doesnt get any response back ( not response nor error / exception ) to prevent the program stuck at these function there is a timeout defined
"""
    Note: some of the methods doesnt get any response back (not response nor error/exception)
    to prevent the program stuck at these function, there is a timeout defined
    """ # Can't handle methods with required arguments.
method