Define custom IAM Policies by allowed or denied set of actions against a set of resources with optional context and conditions.
Deny rules trump allow rules.
This is based of @ddt/iam and AWS Reference Policies .
npm install --save iam-policies
Or
yarn add iam-policies
// @deno-types="https://raw.githubusercontent.com/roggervalf/iam-policies/master/dist/main.d.ts"
import {
ActionBasedPolicy,
IdentityBasedPolicy,
ResourceBasedPolicy
} from 'https://raw.githubusercontent.com/roggervalf/iam-policies/master/dist/main.es.js';
or
// @deno-types="https://deno.land/x/iam_policies@master/dist/main.d.ts"
import {
ActionBasedPolicy,
IdentityBasedPolicy,
ResourceBasedPolicy
} from 'https://deno.land/x/iam_policies@master/dist/main.es.js';
import {
ActionBasedPolicy,
IdentityBasedPolicy,
ResourceBasedPolicy
} from 'iam-policies';
- Here is an example of using it into a GraphQL project (step 7).
Supports these glob features:
- Policies creation (ActionBasedPolicy, IdentityBasedPolicy and ResourceBasedPolicy)
- Permission verifications
Please click on the language that you prefer
-
Translations:
- Chinese docs by @mickymao1110 (< v3.5.0 )
- English docs by @roggervalf
Fork the repo, make some changes, submit a pull-request! Here is the contributing doc that has some details.
MIT © roggervalf