awslimitchecker.runner module

class awslimitchecker.runner.Runner[source]

Bases: object

__dict__ = dict_proxy({'__module__': 'awslimitchecker.runner', 'color_output': <function color_output at 0x7f217017e7d0>, 'parse_args': <function parse_args at 0x7f217017e500>, '__weakref__': <attribute '__weakref__' of 'Runner' objects>, 'list_services': <function list_services at 0x7f217017e578>, 'check_thresholds': <function check_thresholds at 0x7f217017e8c0>, 'console_entry_point': <function console_entry_point at 0x7f217017e9b0>, '__doc__': None, 'list_defaults': <function list_defaults at 0x7f217017e668>, 'iam_policy': <function iam_policy at 0x7f217017e6e0>, '__dict__': <attribute '__dict__' of 'Runner' objects>, 'set_limit_overrides': <function set_limit_overrides at 0x7f217017e938>, 'list_limits': <function list_limits at 0x7f217017e5f0>, 'print_issue': <function print_issue at 0x7f217017e848>, '__init__': <function __init__ at 0x7f217017e488>, 'show_usage': <function show_usage at 0x7f217017e758>})
__init__()[source]
__module__ = 'awslimitchecker.runner'
__weakref__

list of weak references to the object (if defined)

check_thresholds()[source]
color_output(s, color)[source]
console_entry_point()[source]
iam_policy()[source]
list_defaults()[source]
list_limits()[source]
list_services()[source]
parse_args(argv)[source]

parse arguments/options

Parameters:argv (list) – argument list to parse, usually sys.argv[1:]
Returns:parsed arguments
Return type:argparse.Namespace
print_issue(service_name, limit, crits, warns)[source]
Parameters:
  • service_name (str) – the name of the service
  • limit (AwsLimit) – the Limit this relates to
  • crits – the specific usage values that crossed the critical threshold
  • crits – the specific usage values that crossed the warning threshold
set_limit_overrides(overrides)[source]
show_usage()[source]
awslimitchecker.runner.console_entry_point()[source]