awslimitchecker.runner module

class awslimitchecker.runner.Runner[source]

Bases: object

__dict__ = mappingproxy({'list_services': <function Runner.list_services>, '__weakref__': <attribute '__weakref__' of 'Runner' objects>, 'check_thresholds': <function Runner.check_thresholds>, '__init__': <function Runner.__init__>, 'parse_args': <function Runner.parse_args>, 'set_limit_overrides': <function Runner.set_limit_overrides>, '__module__': 'awslimitchecker.runner', 'color_output': <function Runner.color_output>, '__dict__': <attribute '__dict__' of 'Runner' objects>, 'print_issue': <function Runner.print_issue>, 'console_entry_point': <function Runner.console_entry_point>, '__doc__': None, 'iam_policy': <function Runner.iam_policy>, 'list_limits': <function Runner.list_limits>, 'show_usage': <function Runner.show_usage>, 'list_defaults': <function Runner.list_defaults>})
__init__()[source]

Initialize self. See help(type(self)) for accurate signature.

__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]