{"_id":"@dendronhq/aws-constants","_rev":"2-6dc508354d7f1ce49803349fad9f8f73","name":"@dendronhq/aws-constants","dist-tags":{"latest":"0.1.2"},"versions":{"3.0.3":{"name":"@dendronhq/aws-constants","description":"Library of helpful constants","version":"3.0.3","main":"./lib/src/index.js","types":"./lib/src/index.d.ts","license":"Apache-2.0","repository":{"type":"git","url":""},"keywords":[],"homepage":"","scripts":{"clean":"rimraf lib && rimraf coverage","format":"prettier --ignore-path='../../.prettierignore' --write .","lint":"echo stub","prepublishOnly":"npm run build","prebuild":"npm run clean && npm run format && npm run lint && echo Using TypeScript && tsc --version","build":"npm run compile","compile":"tsc -p tsconfig.build.json","test":"jest","coverage":"jest --coverage","watch":"npm run compile -- --watch","test:unit":"jest ","test:unit:debug":"NODE_ENV=test node --inspect-brk node_modules/.bin/jest --runInBand","test:watch":"LOG_DST=/tmp/pods-core.txt jest --watch"},"author":{"name":"Kevin S Lin","email":"kevin@thence.io","url":"https://github.com/kevinslin"},"dependencies":{"axios":"^0.19.0","execa":"^2.0.3","fs-extra":"^8.1.0","jest":"^24.9.0","lodash":"^4.17.15","pino":"^5.13.1","yargs":"^13.3.0"},"devDependencies":{"ts-jest":"^24.3.0","typescript":"^3.5.3","@types/axios":"^0.14.0","@types/execa":"^2.0.0","@types/fs-extra":"^8.0.0","@types/jest":"^24.0.24","@types/lodash":"^4.14.136","@types/pino":"^5.8.8","@types/yargs":"^13.0.2"},"_id":"@dendronhq/aws-constants@3.0.3","_nodeVersion":"12.14.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-+lQNECkl2wrHo9BNASjll9wGRh9f4syp8ogeghpn2jJ6iDALno1ACvO0oekgc70wc8vIY6/s1K7ed360Vkgw+Q==","shasum":"70a3b85e8fe0ffce1daa6623e33fc8fcbb6af58e","tarball":"https://registry.npmjs.org/@dendronhq/aws-constants/-/aws-constants-3.0.3.tgz","fileCount":43,"unpackedSize":1556221,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfY6fXCRA9TVsSAnZWagAArREQAIeu8uy+M+iP6E08Gwyg\n4tpzGCS6BLnc5Lizl7jaZEgHqVruX8NUGUDjDzoOcOoLeIOqdzZTaFJXpeLy\njLhQeqUJ63JHZ7yIdz+pNj0zsbRF9bEyfudqPym0cReueL4G2J5Lf1pZbawt\nJY+dD2ICpVvArMEt9wEPlY5m3Ewq1cC7NXcTaYlCZLDsZwMMVEUQx1HQTv9j\nav9zO6IxV4nEZ9XogvMvNB4qlXFmRz6U7K9D+50hNKFV7sGZPF0h9ACzST94\n+xGpWLdpgEBgN9Vq1iJnB9rUc7U7sAR/rFRyD31R+N+iaDiYN+lGgR2TelnG\n6mB+hJm1EuwuIF51+Dj7DuyPEmNofs/SfvvUoAdzpG66gy7VPa6spEXh+nwU\n6HJ6boN+JKeiU4+2R24skcITsipBrDsB+yVb5TCHzC0lb0y54Oj6/0oEOolJ\n5+FH5WTnuViw+TJ5TuM1JdHm2S9oPCzAXY6XOMG9ohibFu0JaqzwwoKNQhxs\nisL6rKiPTh9qMcTltDVwKZ2Qj6PwMKO1GUFI20NfEjj/TdCMGsBIuRM+j4Rh\nCQ6M52g5IKzKXqr3Ed2x9qjKrDi1AvQ+hi9xnSGNQUUsJIcCax4ZCorSnXRg\nIh7ImaUF8bMHSqufXsXdhawNbKTvZ94znHpqYHuJdTEB1nVyCALM+H+nbcCI\n0hQR\r\n=aUpN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDN4PaYdJiEgdrw2helq5M6McJ12axIMHK/CNOCIBucUAiBfH+t7QRsmjUhMtMDgsHASZEIc4d7eAm8yWgCnxgDRdQ=="}]},"maintainers":[{"name":"kevins8","email":"kevinslin8@gmail.com"}],"_npmUser":{"name":"kevins8","email":"kevinslin8@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aws-constants_3.0.3_1600366550640_0.9812003476591782"},"_hasShrinkwrap":false},"0.1.2":{"name":"@dendronhq/aws-constants","description":"Library of helpful constants","version":"0.1.2","main":"./lib/src/index.js","types":"./lib/src/index.d.ts","license":"Apache-2.0","repository":{"type":"git","url":""},"keywords":[],"homepage":"","scripts":{"clean":"rimraf lib && rimraf coverage","format":"prettier --ignore-path='../../.prettierignore' --write .","lint":"echo stub","prepublishOnly":"npm run build","prebuild":"npm run clean && npm run format && npm run lint && echo Using TypeScript && tsc --version","build":"npm run compile","compile":"tsc -p tsconfig.build.json","test":"jest","coverage":"jest --coverage","watch":"npm run compile -- --watch","test:unit":"jest ","test:unit:debug":"NODE_ENV=test node --inspect-brk node_modules/.bin/jest --runInBand","test:watch":"LOG_DST=/tmp/pods-core.txt jest --watch"},"author":{"name":"Kevin S Lin","email":"kevin@thence.io","url":"https://github.com/kevinslin"},"dependencies":{"axios":"^0.19.0","execa":"^2.0.3","fs-extra":"^8.1.0","jest":"^24.9.0","lodash":"^4.17.15","pino":"^5.13.1","yargs":"^13.3.0"},"devDependencies":{"@types/axios":"^0.14.0","@types/execa":"^2.0.0","@types/fs-extra":"^8.0.0","@types/jest":"^24.0.24","@types/lodash":"^4.14.136","@types/pino":"^5.8.8","@types/yargs":"^13.0.2","ts-jest":"^24.3.0","typescript":"^3.5.3"},"gitHead":"b4650f40363b436f3dcf176168734ac002089173","_id":"@dendronhq/aws-constants@0.1.2","_nodeVersion":"12.14.0","_npmVersion":"lerna/3.19.0/node@v12.14.0+x64 (darwin)","dist":{"integrity":"sha512-MJf7HBPndJ82/1qScbDtFmjfrZxlUDOQsB4e2w/W9YrqKPaJWEdN0PELAXPPKDj/Mfe7VdrLzT0exGolcWy7xg==","shasum":"9c5bf0c8b422caddcc3e7da77508d2e1868dae91","tarball":"https://registry.npmjs.org/@dendronhq/aws-constants/-/aws-constants-0.1.2.tgz","fileCount":43,"unpackedSize":1556278,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfY6k4CRA9TVsSAnZWagAArQ4P/iJ3gIT4pYkBUFNXh679\nh1kGCq01klU7wACzdgYfHEaj09+OMS+W033udtBD8ac+w8GWd/Je5n6UXSqn\nF/E3fkPf8htrQ38Ck1jiY4f0YpfdoeHj2mKeSb0fI+6QqwZNnLhujNKOHNF6\nAescqogZGSaw2NNlkxw9Uj/Pff4gASiWdnizsCC0IQeUgJa6fjOl2NuQRwAM\nNzQxLsZhQ66V3xkNVnSO7mz4xxQIQTPgD/WEKdVOSpdpFQ+Wyq0vRkMVBA0i\nwxWWTHusT+rWivSq1Jk9cLHdxT01b5rpadw4AJr/g0AoGHcIoDPp5crwjRRz\ncHMJlTeLkkEPCjLi7A/GDrsZE691OcaXBSRw6YoAbLXXV0OrjTcF7ftL4IIu\nPPYvNCO6+fDWn+tQGPG4egVzp02tCMpPZWV4HHLXJsYfjlnQZV1hAfzs4ndH\nnIzGDT9nn0amDEwPrPFpLtb1g576kbPUMVmoAdlpr6nfkTDQDmiKEwIWNXUD\n//R/1cwMhswt3lrUIQ9SOhiwsTRjNaVTrGUcKHocw8uIQ7Yv4SBQNBZBVT8T\ncrPXugrIkwv0DEX10iAEco/4WSbpcnysP/smsxSAt/RrY6FHcy00J7gaMOzR\nK40crlATPRWooOcvLCFfKJUwpwg/wV5QtFMQNTnFGMw6kyoIph3tUQ9ktcQ2\nkqYW\r\n=FaXR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAk7Srr2uTPrltnGxAOdLwKbIS1ibFJXW1taSiBzBiejAiEAvuKvPRmMksbFdfbOuGe6Co95F9mV0N5wxPauhyDSSTY="}]},"maintainers":[{"name":"kevins8","email":"kevinslin8@gmail.com"}],"_npmUser":{"name":"kevins8","email":"kevinslin8@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aws-constants_0.1.2_1600366904366_0.8040969061448491"},"_hasShrinkwrap":false}},"time":{"created":"2020-09-17T18:15:50.302Z","3.0.3":"2020-09-17T18:15:50.862Z","modified":"2022-04-05T03:44:32.932Z","0.1.2":"2020-09-17T18:21:44.693Z"},"maintainers":[{"name":"kevins8","email":"kevinslin8@gmail.com"}],"description":"Library of helpful constants","keywords":[],"repository":{"type":"git","url":""},"author":{"name":"Kevin S Lin","email":"kevin@thence.io","url":"https://github.com/kevinslin"},"license":"Apache-2.0","readme":"# CDK Constants\n\nThis repository contains constants that make it easier to work with the [aws-cdk](https://github.com/aws/aws-cdk) (CDK).\n\n## Why?\n\nThe CDK is awesome but it currently lacks types when initializing constructs such as IAM service principals and managed policies. Finding the right construct names requires diving into AWS documentation. Because there is no verification of these construct initializers, errors are only surfaced after deployment and via a rollback.\n\nThis library aims to be an up to date constants library for all things AWS so the above never happens again!\n\n## Quickstart\n\nInstall or update from npm\n\nTypeScript/Javascript\n\n```console\nnpm i cdk-constants\n\n```\n\nPython\n\n```console\npip install cdk-constants\n```\n\n## Usage\n\n** TypeScript **\n\n```typescript\nimport { ServicePrincipals, ManagedPolicies } from \"cdk-constants\";\n\nconst lambdaRole = new Role(this, \"lambdaDomainChecker\", {\n  assumedBy: new ServicePrincipal(ServicePrincipals.LAMBDA),\n  managedPolicies: [\n    ManagedPolicy.fromAwsManagedPolicyName(\n      ManagedPolicies.AWS_LAMBDA_BASIC_EXECUTION_ROLE\n    ),\n  ],\n});\n```\n\n** Python **\n\n```python\nfrom cdk_constants import ServicePrincipals, ManagedPolicies\n\nlambda_role = Role(self, \"lambdaDomainChecker\",\n    assumed_by=ServicePrincipal(ServicePrincipals.LAMBDA),\n    managed_policies=[\n        ManagedPolicy.from_aws_managed_policy_name(ManagedPolicies.AWS_LAMBDA_BASIC_EXECUTION_ROLE)\n    ]\n)\n```\n\n## Properties\n\n### [ServicePrincipals](https://github.com/kevinslin/cdk-constants/blob/master/lib/principals.ts)\n\n- AWS services principals\n\n### [ManagedPolicies](https://github.com/kevinslin/cdk-constants/blob/master/lib/policies.ts)\n\n- Managed AWS policies\n\n## Credits\n\n`cdk-constants` wouldn't be possible without modules from the following authors\n\n- [Jared Short](https://gist.github.com/shortjared): initial [gist](https://gist.github.com/shortjared/4c1e3fe52bdfa47522cfe5b41e5d6f22) of all service principals\n- [Gene Wood](https://gist.github.com/gene1wood): [gist](https://gist.github.com/gene1wood/55b358748be3c314f956) to pull all aws managed policies\n\n## Contributions\n\nAll contributors are welcome. As you are reading this, AWS has probably released a new service. Please see [CONTRIBUTING](CONTRIBUTING.md) for information on how to setup a development environment and submit code.\n\nSome upcoming items on the roadmap:\n\n- list of aws regions and azs, including gov and china\n- list of all iam permissions\n- [x] jsii compilation into different languages that CDK supports\n\n## License\n\ncdk-constants is distributed under the [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0).\n\nSee [LICENSE](./LICENSE) for more information.\n","readmeFilename":"README.md"}