awslimitchecker.runner module

class awslimitchecker.runner.Runner[source]

Bases: object

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