How to use the policyuniverse._action_categories.items function in policyuniverse

To help you get started, we’ve selected a few policyuniverse examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Netflix-Skunkworks / policyuniverse / policyuniverse / action_categories.py View on Github external
def actions_for_category(category):
    """
    Returns set of actions containing each group passed in.
    
    Param:
        category must be in {'Permissions', 'List', 'Read', 'Tagging', 'Write'}
    
    Returns:
        set of matching actions
    """
    actions = set()
    for action, action_category in _action_categories.items():
        if action_category == category:
            actions.add(action)
    return actions