c7n.commands module

class c7n.commands.DuplicateKeyCheckLoader(stream)[source]

Bases: yaml.loader.SafeLoader

construct_mapping(node, deep=False)[source]
c7n.commands._load_vars(options)[source]
c7n.commands._metrics_get_endpoints(options)[source]

Determine the start and end dates based on user-supplied options.

c7n.commands._print_cls_schema(cls)[source]
c7n.commands._print_no_policies_warning(options, policies)[source]
c7n.commands._schema_get_docstring(starting_class)[source]

Given a class, return its docstring.

If no docstring is present for the class, search base classes in MRO for a docstring.

c7n.commands.logs(options, policies)[source]
c7n.commands.metrics_cmd(options, policies)[source]
c7n.commands.policy_command(f)[source]
c7n.commands.report(options, policies)[source]
c7n.commands.run(options, policies)[source]
c7n.commands.schema_cmd(options)[source]

Print info about the resources, actions and filters available.

c7n.commands.schema_completer(prefix)[source]

For tab-completion via argcomplete, return completion options.

For the given prefix so far, return the possible options. Note that filtering via startswith happens after this list is returned.

c7n.commands.validate(options)[source]
c7n.commands.version_cmd(options)[source]