querying.all
querying.all
See the examples under https://github.com/salesforce/policy_sentry/tree/master/examples/library-usage/querying
IAM Database queries that are not specific to either the Actions, ARNs, or Condition Keys tables.
get_all_actions(lowercase=False)
Gets a huge list of all IAM actions. This is used as part of the policyuniverse approach to minimizing IAM Policies to meet AWS-mandated character limits on policies.
:param lowercase: Set to true to have the list of actions be in all lowercase strings. :return: A list of all actions present in the database.
get_all_service_prefixes()
Gets all the AWS service prefixes from the actions table.
If the action table does NOT have specific IAM actions (and therefore only supports * actions), then it will not be included in the response.
Returns:
Type | Description |
---|---|
List |
A list of all AWS service prefixes present in the table. |