@gradientedge/cdk-utils 4.4.5 → 4.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/api-destined-function/node_modules/.yarn-integrity +1 -1
- package/app/api-destined-function/node_modules/minimatch/README.md +1 -1
- package/app/api-destined-function/node_modules/minimatch/minimatch.js +74 -45
- package/app/api-destined-function/node_modules/minimatch/package.json +3 -3
- package/app/api-destined-function/node_modules/uuid/dist/bin/uuid +2 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/index.js +9 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/md5.js +215 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/nil.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/parse.js +35 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/regex.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/rng.js +19 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/stringify.js +30 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v1.js +95 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v3.js +4 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v35.js +64 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v4.js +24 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v5.js +4 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/validate.js +7 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/version.js +11 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/index.js +9 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/md5.js +13 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/nil.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/parse.js +35 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/regex.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/rng.js +12 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/sha1.js +13 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/stringify.js +29 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/v1.js +95 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/v3.js +4 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/v35.js +64 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/v4.js +24 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/v5.js +4 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/validate.js +7 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/version.js +11 -0
- package/app/api-destined-function/node_modules/uuid/dist/index.js +79 -0
- package/app/api-destined-function/node_modules/uuid/dist/md5-browser.js +223 -0
- package/app/api-destined-function/node_modules/uuid/dist/md5.js +23 -0
- package/app/api-destined-function/node_modules/uuid/dist/nil.js +8 -0
- package/app/api-destined-function/node_modules/uuid/dist/parse.js +45 -0
- package/app/api-destined-function/node_modules/uuid/dist/regex.js +8 -0
- package/app/api-destined-function/node_modules/uuid/dist/rng-browser.js +26 -0
- package/app/api-destined-function/node_modules/uuid/dist/rng.js +24 -0
- package/app/api-destined-function/node_modules/uuid/dist/sha1-browser.js +104 -0
- package/app/api-destined-function/node_modules/uuid/dist/sha1.js +23 -0
- package/app/api-destined-function/node_modules/uuid/dist/stringify.js +39 -0
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuid.min.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidNIL.min.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidParse.min.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidStringify.min.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidValidate.min.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidVersion.min.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv1.min.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv3.min.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv4.min.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv5.min.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/uuid-bin.js +85 -0
- package/app/api-destined-function/node_modules/uuid/dist/v1.js +107 -0
- package/app/api-destined-function/node_modules/uuid/dist/v3.js +16 -0
- package/app/api-destined-function/node_modules/uuid/dist/v35.js +78 -0
- package/app/api-destined-function/node_modules/uuid/dist/v4.js +37 -0
- package/app/api-destined-function/node_modules/uuid/dist/v5.js +16 -0
- package/app/api-destined-function/node_modules/uuid/dist/validate.js +17 -0
- package/app/api-destined-function/node_modules/uuid/dist/version.js +21 -0
- package/app/api-destined-function/package.json +1 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/.bin/uuid +2 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/.yarn-integrity +109 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/LICENSE +21 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/README.md +16 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/index.d.mts +10 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/index.d.ts +80 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/package.json +54 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/LICENSE.md +9 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/README.md +505 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/bin/uuid +2 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/index.js +9 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/md5.js +215 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/nil.js +1 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/parse.js +35 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/regex.js +1 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/rng.js +19 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/stringify.js +30 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v1.js +95 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v3.js +4 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v35.js +64 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v4.js +24 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v5.js +4 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/validate.js +7 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/version.js +11 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/index.js +9 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/md5.js +13 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/nil.js +1 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/parse.js +35 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/regex.js +1 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/rng.js +12 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/sha1.js +13 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/stringify.js +29 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v1.js +95 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v3.js +4 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v35.js +64 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v4.js +24 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v5.js +4 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/validate.js +7 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/version.js +11 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/index.js +79 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/md5-browser.js +223 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/md5.js +23 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/nil.js +8 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/parse.js +45 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/regex.js +8 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/rng-browser.js +26 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/rng.js +24 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/sha1-browser.js +104 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/sha1.js +23 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/stringify.js +39 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuid.min.js +1 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidNIL.min.js +1 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidParse.min.js +1 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidStringify.min.js +1 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidValidate.min.js +1 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidVersion.min.js +1 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv1.min.js +1 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv3.min.js +1 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv4.min.js +1 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv5.min.js +1 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/uuid-bin.js +85 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v1.js +107 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v3.js +16 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v35.js +78 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v4.js +37 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v5.js +16 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/validate.js +17 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/version.js +21 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/package.json +135 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/wrapper.mjs +10 -0
- package/dist/app/api-destined-function/layers/nodejs/package.json +30 -0
- package/dist/app/api-destined-function/src/lib/lambda.d.ts +19 -0
- package/dist/app/api-destined-function/src/lib/lambda.d.ts.map +1 -0
- package/dist/app/api-destined-function/src/lib/lambda.js +34 -0
- package/dist/app/api-destined-function/src/lib/lambda.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js.map +1 -0
- package/dist/src/lib/common/construct.d.ts +80 -0
- package/dist/src/lib/common/construct.d.ts.map +1 -0
- package/dist/src/lib/common/construct.js +134 -0
- package/dist/src/lib/common/construct.js.map +1 -0
- package/dist/src/lib/common/index.d.ts +3 -0
- package/dist/src/lib/common/index.d.ts.map +1 -0
- package/dist/src/lib/common/index.js +15 -0
- package/dist/src/lib/common/index.js.map +1 -0
- package/dist/src/lib/common/stack.d.ts +55 -0
- package/dist/src/lib/common/stack.d.ts.map +1 -0
- package/dist/src/lib/common/stack.js +148 -0
- package/dist/src/lib/common/stack.js.map +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.d.ts +17 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.d.ts.map +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.js +18 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.js.map +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.d.ts +20 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.d.ts.map +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.js +20 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.js.map +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.d.ts +36 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.d.ts.map +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.js +30 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.js.map +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/index.d.ts +5 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/index.d.ts.map +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/index.js +17 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/index.js.map +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts +135 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts.map +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/main.js +488 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/main.js.map +1 -0
- package/dist/src/lib/construct/graphql-api-lambda/index.d.ts +2 -0
- package/dist/src/lib/construct/graphql-api-lambda/index.d.ts.map +1 -0
- package/dist/src/lib/construct/graphql-api-lambda/index.js +14 -0
- package/dist/src/lib/construct/graphql-api-lambda/index.js.map +1 -0
- package/dist/src/lib/construct/graphql-api-lambda/main.d.ts +113 -0
- package/dist/src/lib/construct/graphql-api-lambda/main.d.ts.map +1 -0
- package/dist/src/lib/construct/graphql-api-lambda/main.js +202 -0
- package/dist/src/lib/construct/graphql-api-lambda/main.js.map +1 -0
- package/dist/src/lib/construct/index.d.ts +5 -0
- package/dist/src/lib/construct/index.d.ts.map +1 -0
- package/dist/src/lib/construct/index.js +17 -0
- package/dist/src/lib/construct/index.js.map +1 -0
- package/dist/src/lib/construct/site-with-ecs-backend/index.d.ts +2 -0
- package/dist/src/lib/construct/site-with-ecs-backend/index.d.ts.map +1 -0
- package/dist/src/lib/construct/site-with-ecs-backend/index.js +14 -0
- package/dist/src/lib/construct/site-with-ecs-backend/index.js.map +1 -0
- package/dist/src/lib/construct/site-with-ecs-backend/main.d.ts +168 -0
- package/dist/src/lib/construct/site-with-ecs-backend/main.d.ts.map +1 -0
- package/dist/src/lib/construct/site-with-ecs-backend/main.js +328 -0
- package/dist/src/lib/construct/site-with-ecs-backend/main.js.map +1 -0
- package/dist/src/lib/construct/static-site/index.d.ts +2 -0
- package/dist/src/lib/construct/static-site/index.d.ts.map +1 -0
- package/dist/src/lib/construct/static-site/index.js +14 -0
- package/dist/src/lib/construct/static-site/index.js.map +1 -0
- package/dist/src/lib/construct/static-site/main.d.ts +95 -0
- package/dist/src/lib/construct/static-site/main.d.ts.map +1 -0
- package/dist/src/lib/construct/static-site/main.js +169 -0
- package/dist/src/lib/construct/static-site/main.js.map +1 -0
- package/dist/src/lib/manager/aws/acm-manager.d.ts +47 -0
- package/dist/src/lib/manager/aws/acm-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/acm-manager.js +91 -0
- package/dist/src/lib/manager/aws/acm-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/api-manager.d.ts +44 -0
- package/dist/src/lib/manager/aws/api-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/api-manager.js +112 -0
- package/dist/src/lib/manager/aws/api-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/app-config-manager.d.ts +66 -0
- package/dist/src/lib/manager/aws/app-config-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/app-config-manager.js +149 -0
- package/dist/src/lib/manager/aws/app-config-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/cloudfront-manager.d.ts +113 -0
- package/dist/src/lib/manager/aws/cloudfront-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/cloudfront-manager.js +283 -0
- package/dist/src/lib/manager/aws/cloudfront-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/cloudtrail-manager.d.ts +49 -0
- package/dist/src/lib/manager/aws/cloudtrail-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/cloudtrail-manager.js +100 -0
- package/dist/src/lib/manager/aws/cloudtrail-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/cloudwatch-manager.d.ts +122 -0
- package/dist/src/lib/manager/aws/cloudwatch-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/cloudwatch-manager.js +353 -0
- package/dist/src/lib/manager/aws/cloudwatch-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/codebuild-manager.d.ts +41 -0
- package/dist/src/lib/manager/aws/codebuild-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/codebuild-manager.js +95 -0
- package/dist/src/lib/manager/aws/codebuild-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/dynamodb-manager.d.ts +33 -0
- package/dist/src/lib/manager/aws/dynamodb-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/dynamodb-manager.js +80 -0
- package/dist/src/lib/manager/aws/dynamodb-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/ecr-manager.d.ts +32 -0
- package/dist/src/lib/manager/aws/ecr-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/ecr-manager.js +61 -0
- package/dist/src/lib/manager/aws/ecr-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/ecs-manager.d.ts +49 -0
- package/dist/src/lib/manager/aws/ecs-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/ecs-manager.js +104 -0
- package/dist/src/lib/manager/aws/ecs-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/eks-manager.d.ts +37 -0
- package/dist/src/lib/manager/aws/eks-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/eks-manager.js +110 -0
- package/dist/src/lib/manager/aws/eks-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/event-manager.d.ts +68 -0
- package/dist/src/lib/manager/aws/event-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/event-manager.js +163 -0
- package/dist/src/lib/manager/aws/event-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/iam-manager.d.ts +155 -0
- package/dist/src/lib/manager/aws/iam-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/iam-manager.js +381 -0
- package/dist/src/lib/manager/aws/iam-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/index.d.ts +23 -0
- package/dist/src/lib/manager/aws/index.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/index.js +35 -0
- package/dist/src/lib/manager/aws/index.js.map +1 -0
- package/dist/src/lib/manager/aws/lambda-manager.d.ts +95 -0
- package/dist/src/lib/manager/aws/lambda-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/lambda-manager.js +197 -0
- package/dist/src/lib/manager/aws/lambda-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/log-manager.d.ts +52 -0
- package/dist/src/lib/manager/aws/log-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/log-manager.js +109 -0
- package/dist/src/lib/manager/aws/log-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/route53-manager.d.ts +69 -0
- package/dist/src/lib/manager/aws/route53-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/route53-manager.js +159 -0
- package/dist/src/lib/manager/aws/route53-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/s3-manager.d.ts +74 -0
- package/dist/src/lib/manager/aws/s3-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/s3-manager.js +203 -0
- package/dist/src/lib/manager/aws/s3-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/secrets-manager.d.ts +58 -0
- package/dist/src/lib/manager/aws/secrets-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/secrets-manager.js +117 -0
- package/dist/src/lib/manager/aws/secrets-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/sns-manager.d.ts +43 -0
- package/dist/src/lib/manager/aws/sns-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/sns-manager.js +91 -0
- package/dist/src/lib/manager/aws/sns-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/ssm-manager.d.ts +61 -0
- package/dist/src/lib/manager/aws/ssm-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/ssm-manager.js +125 -0
- package/dist/src/lib/manager/aws/ssm-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/vpc-manager.d.ts +46 -0
- package/dist/src/lib/manager/aws/vpc-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/vpc-manager.js +95 -0
- package/dist/src/lib/manager/aws/vpc-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/waf-manager.d.ts +40 -0
- package/dist/src/lib/manager/aws/waf-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/waf-manager.js +90 -0
- package/dist/src/lib/manager/aws/waf-manager.js.map +1 -0
- package/dist/src/lib/manager/index.d.ts +2 -0
- package/dist/src/lib/manager/index.d.ts.map +1 -0
- package/dist/src/lib/manager/index.js +14 -0
- package/dist/src/lib/manager/index.js.map +1 -0
- package/dist/src/lib/types/aws/index.d.ts +480 -0
- package/dist/src/lib/types/aws/index.d.ts.map +1 -0
- package/dist/src/lib/types/aws/index.js +3 -0
- package/dist/src/lib/types/aws/index.js.map +1 -0
- package/dist/src/lib/types/index.d.ts +2 -0
- package/dist/src/lib/types/index.d.ts.map +1 -0
- package/dist/src/lib/types/index.js +14 -0
- package/dist/src/lib/types/index.js.map +1 -0
- package/dist/src/lib/utils/aws/index.d.ts +16 -0
- package/dist/src/lib/utils/aws/index.d.ts.map +1 -0
- package/dist/src/lib/utils/aws/index.js +50 -0
- package/dist/src/lib/utils/aws/index.js.map +1 -0
- package/dist/src/lib/utils/index.d.ts +63 -0
- package/dist/src/lib/utils/index.d.ts.map +1 -0
- package/dist/src/lib/utils/index.js +85 -0
- package/dist/src/lib/utils/index.js.map +1 -0
- package/package.json +8 -7
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _rng = _interopRequireDefault(require("./rng.js"));
|
|
9
|
+
|
|
10
|
+
var _stringify = _interopRequireDefault(require("./stringify.js"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
14
|
+
function v4(options, buf, offset) {
|
|
15
|
+
options = options || {};
|
|
16
|
+
|
|
17
|
+
const rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
21
|
+
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
|
22
|
+
|
|
23
|
+
if (buf) {
|
|
24
|
+
offset = offset || 0;
|
|
25
|
+
|
|
26
|
+
for (let i = 0; i < 16; ++i) {
|
|
27
|
+
buf[offset + i] = rnds[i];
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return buf;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return (0, _stringify.default)(rnds);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
var _default = v4;
|
|
37
|
+
exports.default = _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _v = _interopRequireDefault(require("./v35.js"));
|
|
9
|
+
|
|
10
|
+
var _sha = _interopRequireDefault(require("./sha1.js"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
14
|
+
const v5 = (0, _v.default)('v5', 0x50, _sha.default);
|
|
15
|
+
var _default = v5;
|
|
16
|
+
exports.default = _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _regex = _interopRequireDefault(require("./regex.js"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
function validate(uuid) {
|
|
13
|
+
return typeof uuid === 'string' && _regex.default.test(uuid);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
var _default = validate;
|
|
17
|
+
exports.default = _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _validate = _interopRequireDefault(require("./validate.js"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
function version(uuid) {
|
|
13
|
+
if (!(0, _validate.default)(uuid)) {
|
|
14
|
+
throw TypeError('Invalid UUID');
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
return parseInt(uuid.substr(14, 1), 16);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
var _default = version;
|
|
21
|
+
exports.default = _default;
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "uuid",
|
|
3
|
+
"version": "8.3.2",
|
|
4
|
+
"description": "RFC4122 (v1, v4, and v5) UUIDs",
|
|
5
|
+
"commitlint": {
|
|
6
|
+
"extends": [
|
|
7
|
+
"@commitlint/config-conventional"
|
|
8
|
+
]
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"uuid",
|
|
12
|
+
"guid",
|
|
13
|
+
"rfc4122"
|
|
14
|
+
],
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"bin": {
|
|
17
|
+
"uuid": "./dist/bin/uuid"
|
|
18
|
+
},
|
|
19
|
+
"sideEffects": false,
|
|
20
|
+
"main": "./dist/index.js",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"node": {
|
|
24
|
+
"module": "./dist/esm-node/index.js",
|
|
25
|
+
"require": "./dist/index.js",
|
|
26
|
+
"import": "./wrapper.mjs"
|
|
27
|
+
},
|
|
28
|
+
"default": "./dist/esm-browser/index.js"
|
|
29
|
+
},
|
|
30
|
+
"./package.json": "./package.json"
|
|
31
|
+
},
|
|
32
|
+
"module": "./dist/esm-node/index.js",
|
|
33
|
+
"browser": {
|
|
34
|
+
"./dist/md5.js": "./dist/md5-browser.js",
|
|
35
|
+
"./dist/rng.js": "./dist/rng-browser.js",
|
|
36
|
+
"./dist/sha1.js": "./dist/sha1-browser.js",
|
|
37
|
+
"./dist/esm-node/index.js": "./dist/esm-browser/index.js"
|
|
38
|
+
},
|
|
39
|
+
"files": [
|
|
40
|
+
"CHANGELOG.md",
|
|
41
|
+
"CONTRIBUTING.md",
|
|
42
|
+
"LICENSE.md",
|
|
43
|
+
"README.md",
|
|
44
|
+
"dist",
|
|
45
|
+
"wrapper.mjs"
|
|
46
|
+
],
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@babel/cli": "7.11.6",
|
|
49
|
+
"@babel/core": "7.11.6",
|
|
50
|
+
"@babel/preset-env": "7.11.5",
|
|
51
|
+
"@commitlint/cli": "11.0.0",
|
|
52
|
+
"@commitlint/config-conventional": "11.0.0",
|
|
53
|
+
"@rollup/plugin-node-resolve": "9.0.0",
|
|
54
|
+
"babel-eslint": "10.1.0",
|
|
55
|
+
"bundlewatch": "0.3.1",
|
|
56
|
+
"eslint": "7.10.0",
|
|
57
|
+
"eslint-config-prettier": "6.12.0",
|
|
58
|
+
"eslint-config-standard": "14.1.1",
|
|
59
|
+
"eslint-plugin-import": "2.22.1",
|
|
60
|
+
"eslint-plugin-node": "11.1.0",
|
|
61
|
+
"eslint-plugin-prettier": "3.1.4",
|
|
62
|
+
"eslint-plugin-promise": "4.2.1",
|
|
63
|
+
"eslint-plugin-standard": "4.0.1",
|
|
64
|
+
"husky": "4.3.0",
|
|
65
|
+
"jest": "25.5.4",
|
|
66
|
+
"lint-staged": "10.4.0",
|
|
67
|
+
"npm-run-all": "4.1.5",
|
|
68
|
+
"optional-dev-dependency": "2.0.1",
|
|
69
|
+
"prettier": "2.1.2",
|
|
70
|
+
"random-seed": "0.3.0",
|
|
71
|
+
"rollup": "2.28.2",
|
|
72
|
+
"rollup-plugin-terser": "7.0.2",
|
|
73
|
+
"runmd": "1.3.2",
|
|
74
|
+
"standard-version": "9.0.0"
|
|
75
|
+
},
|
|
76
|
+
"optionalDevDependencies": {
|
|
77
|
+
"@wdio/browserstack-service": "6.4.0",
|
|
78
|
+
"@wdio/cli": "6.4.0",
|
|
79
|
+
"@wdio/jasmine-framework": "6.4.0",
|
|
80
|
+
"@wdio/local-runner": "6.4.0",
|
|
81
|
+
"@wdio/spec-reporter": "6.4.0",
|
|
82
|
+
"@wdio/static-server-service": "6.4.0",
|
|
83
|
+
"@wdio/sync": "6.4.0"
|
|
84
|
+
},
|
|
85
|
+
"scripts": {
|
|
86
|
+
"examples:browser:webpack:build": "cd examples/browser-webpack && npm install && npm run build",
|
|
87
|
+
"examples:browser:rollup:build": "cd examples/browser-rollup && npm install && npm run build",
|
|
88
|
+
"examples:node:commonjs:test": "cd examples/node-commonjs && npm install && npm test",
|
|
89
|
+
"examples:node:esmodules:test": "cd examples/node-esmodules && npm install && npm test",
|
|
90
|
+
"lint": "npm run eslint:check && npm run prettier:check",
|
|
91
|
+
"eslint:check": "eslint src/ test/ examples/ *.js",
|
|
92
|
+
"eslint:fix": "eslint --fix src/ test/ examples/ *.js",
|
|
93
|
+
"pretest": "[ -n $CI ] || npm run build",
|
|
94
|
+
"test": "BABEL_ENV=commonjs node --throw-deprecation node_modules/.bin/jest test/unit/",
|
|
95
|
+
"pretest:browser": "optional-dev-dependency && npm run build && npm-run-all --parallel examples:browser:**",
|
|
96
|
+
"test:browser": "wdio run ./wdio.conf.js",
|
|
97
|
+
"pretest:node": "npm run build",
|
|
98
|
+
"test:node": "npm-run-all --parallel examples:node:**",
|
|
99
|
+
"test:pack": "./scripts/testpack.sh",
|
|
100
|
+
"pretest:benchmark": "npm run build",
|
|
101
|
+
"test:benchmark": "cd examples/benchmark && npm install && npm test",
|
|
102
|
+
"prettier:check": "prettier --ignore-path .prettierignore --check '**/*.{js,jsx,json,md}'",
|
|
103
|
+
"prettier:fix": "prettier --ignore-path .prettierignore --write '**/*.{js,jsx,json,md}'",
|
|
104
|
+
"bundlewatch": "npm run pretest:browser && bundlewatch --config bundlewatch.config.json",
|
|
105
|
+
"md": "runmd --watch --output=README.md README_js.md",
|
|
106
|
+
"docs": "( node --version | grep -q 'v12' ) && ( npm run build && runmd --output=README.md README_js.md )",
|
|
107
|
+
"docs:diff": "npm run docs && git diff --quiet README.md",
|
|
108
|
+
"build": "./scripts/build.sh",
|
|
109
|
+
"prepack": "npm run build",
|
|
110
|
+
"release": "standard-version --no-verify"
|
|
111
|
+
},
|
|
112
|
+
"repository": {
|
|
113
|
+
"type": "git",
|
|
114
|
+
"url": "https://github.com/uuidjs/uuid.git"
|
|
115
|
+
},
|
|
116
|
+
"husky": {
|
|
117
|
+
"hooks": {
|
|
118
|
+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
|
|
119
|
+
"pre-commit": "lint-staged"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"lint-staged": {
|
|
123
|
+
"*.{js,jsx,json,md}": [
|
|
124
|
+
"prettier --write"
|
|
125
|
+
],
|
|
126
|
+
"*.{js,jsx}": [
|
|
127
|
+
"eslint --fix"
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
"standard-version": {
|
|
131
|
+
"scripts": {
|
|
132
|
+
"postchangelog": "prettier --write CHANGELOG.md"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import uuid from './dist/index.js';
|
|
2
|
+
export const v1 = uuid.v1;
|
|
3
|
+
export const v3 = uuid.v3;
|
|
4
|
+
export const v4 = uuid.v4;
|
|
5
|
+
export const v5 = uuid.v5;
|
|
6
|
+
export const NIL = uuid.NIL;
|
|
7
|
+
export const version = uuid.version;
|
|
8
|
+
export const validate = uuid.validate;
|
|
9
|
+
export const stringify = uuid.stringify;
|
|
10
|
+
export const parse = uuid.parse;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@gradientedge/cdk-utils-api-destined-function",
|
|
3
|
+
"version": "0.0.0-SNAPSHOT",
|
|
4
|
+
"description": "Application for API Destined Function",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"license": "UNLICENSED",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=14.16.0 <15"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/gradientedge/cdk-utils.git"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "yarn package:function && yarn copy:layers",
|
|
16
|
+
"copy:layers": "cp -R layers ../../dist/app/api-destined-function",
|
|
17
|
+
"init": "yarn install",
|
|
18
|
+
"package:function": "mkdirp layers/nodejs && cp -R package.json layers/nodejs && cd layers/nodejs && yarn install --production --no-lockfile",
|
|
19
|
+
"start": "node dist/index",
|
|
20
|
+
"test": "npx jest --ci --runInBand --passWithNoTests"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@types/uuid": "^8.3.4",
|
|
24
|
+
"uuid": "^8.3.2"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"mkdirp": "^1.0.4",
|
|
28
|
+
"rimraf": "^3.0.2"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const processEvent: (event: any) => {
|
|
2
|
+
statusCode: number;
|
|
3
|
+
id: string;
|
|
4
|
+
message: string;
|
|
5
|
+
body: {
|
|
6
|
+
payload: {
|
|
7
|
+
body: any;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
origin: any;
|
|
11
|
+
source: string;
|
|
12
|
+
sourceId: string | undefined;
|
|
13
|
+
httpMethod: any;
|
|
14
|
+
path: any;
|
|
15
|
+
referer: any;
|
|
16
|
+
resource: any;
|
|
17
|
+
success: boolean;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=lambda.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lambda.d.ts","sourceRoot":"","sources":["../../../../../app/api-destined-function/src/lib/lambda.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,UAAW,GAAG;;;;;;;;;;;;;;;;;CAqBtC,CAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.processEvent = void 0;
|
|
4
|
+
const uuid_1 = require("uuid");
|
|
5
|
+
const processEvent = (event) => {
|
|
6
|
+
if (!event)
|
|
7
|
+
throw new Error('Invalid Event');
|
|
8
|
+
return {
|
|
9
|
+
statusCode: 200,
|
|
10
|
+
id: (0, uuid_1.v4)(),
|
|
11
|
+
message: 'Webhook call successful',
|
|
12
|
+
body: {
|
|
13
|
+
payload: {
|
|
14
|
+
body: event.body,
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
origin: event.headers?.origin,
|
|
18
|
+
source: 'custom:api-destined-lambda',
|
|
19
|
+
sourceId: process.env.SOURCE_ID,
|
|
20
|
+
httpMethod: event.httpMethod,
|
|
21
|
+
path: event.path,
|
|
22
|
+
referer: event.headers?.referer,
|
|
23
|
+
resource: event.resource,
|
|
24
|
+
success: true,
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
exports.processEvent = processEvent;
|
|
28
|
+
exports.handler = async (event, context, callback) => {
|
|
29
|
+
console.log('Event:', JSON.stringify(event));
|
|
30
|
+
console.log('Context:', JSON.stringify(context));
|
|
31
|
+
console.log('Event Records:', JSON.stringify(event.Records));
|
|
32
|
+
return callback(null, (0, exports.processEvent)(event));
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=lambda.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lambda.js","sourceRoot":"","sources":["../../../../../app/api-destined-function/src/lib/lambda.ts"],"names":[],"mappings":";;;AAAA,+BAAmC;AAE5B,MAAM,YAAY,GAAG,CAAC,KAAU,EAAE,EAAE;IACzC,IAAI,CAAC,KAAK;QAAE,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAA;IAE5C,OAAO;QACL,UAAU,EAAE,GAAG;QACf,EAAE,EAAE,IAAA,SAAM,GAAE;QACZ,OAAO,EAAE,yBAAyB;QAClC,IAAI,EAAE;YACJ,OAAO,EAAE;gBACP,IAAI,EAAE,KAAK,CAAC,IAAI;aACjB;SACF;QACD,MAAM,EAAE,KAAK,CAAC,OAAO,EAAE,MAAM;QAC7B,MAAM,EAAE,4BAA4B;QACpC,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,SAAS;QAC/B,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,OAAO;QAC/B,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,OAAO,EAAE,IAAI;KACd,CAAA;AACH,CAAC,CAAA;AArBY,QAAA,YAAY,gBAqBxB;AAED,OAAO,CAAC,OAAO,GAAG,KAAK,EAAE,KAAU,EAAE,OAAY,EAAE,QAAa,EAAE,EAAE;IAClE,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAA;IAC5C,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAA;IAChD,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAA;IAC5D,OAAO,QAAQ,CAAC,IAAI,EAAE,IAAA,oBAAY,EAAC,KAAK,CAAC,CAAC,CAAA;AAC5C,CAAC,CAAA"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,qBAAqB,CAAA;AACnC,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAAgC;AAChC,sDAAmC;AACnC,oDAAiC;AACjC,kDAA+B;AAC/B,kDAA+B"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import * as cdk from 'aws-cdk-lib';
|
|
2
|
+
import { Construct } from 'constructs';
|
|
3
|
+
import * as aws from '../manager/aws';
|
|
4
|
+
import * as types from '../types';
|
|
5
|
+
/**
|
|
6
|
+
* @stability stable
|
|
7
|
+
* @category cdk-utils.common-construct
|
|
8
|
+
* @subcategory Construct
|
|
9
|
+
* @classdesc Common construct to use as a base for all higher level constructs.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* import { CommonConstruct } from '@gradientedge/cdk-utils';
|
|
13
|
+
*
|
|
14
|
+
* class CustomConstruct extends CommonConstruct {
|
|
15
|
+
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
16
|
+
* super(parent, id, props);
|
|
17
|
+
* this.props = props;
|
|
18
|
+
* };
|
|
19
|
+
* };
|
|
20
|
+
*/
|
|
21
|
+
export declare class CommonConstruct extends Construct {
|
|
22
|
+
props: types.CommonStackProps;
|
|
23
|
+
acmManager: aws.AcmManager;
|
|
24
|
+
apiManager: aws.ApiManager;
|
|
25
|
+
appConfigManager: aws.AppConfigManager;
|
|
26
|
+
codeBuildManager: aws.CodeBuildManager;
|
|
27
|
+
cloudFrontManager: aws.CloudFrontManager;
|
|
28
|
+
cloudTrailManager: aws.CloudTrailManager;
|
|
29
|
+
cloudWatchManager: aws.CloudWatchManager;
|
|
30
|
+
dynamodbManager: aws.DynamodbManager;
|
|
31
|
+
ecrManager: aws.EcrManager;
|
|
32
|
+
ecsManager: aws.EcsManager;
|
|
33
|
+
eksManager: aws.EksManager;
|
|
34
|
+
eventManager: aws.EventManager;
|
|
35
|
+
iamManager: aws.IamManager;
|
|
36
|
+
lambdaManager: aws.LambdaManager;
|
|
37
|
+
logManager: aws.LogManager;
|
|
38
|
+
route53Manager: aws.Route53Manager;
|
|
39
|
+
s3Manager: aws.S3Manager;
|
|
40
|
+
secretsManager: aws.SecretsManager;
|
|
41
|
+
snsManager: aws.SnsManager;
|
|
42
|
+
ssMManager: aws.SsmManager;
|
|
43
|
+
vpcManager: aws.VpcManager;
|
|
44
|
+
wafManager: aws.WafManager;
|
|
45
|
+
fullyQualifiedDomainName: string;
|
|
46
|
+
constructor(parent: Construct, id: string, props: types.CommonStackProps);
|
|
47
|
+
/**
|
|
48
|
+
* @summary Helper method to add CloudFormation outputs from the construct
|
|
49
|
+
* @param {string} id scoped id of the resource
|
|
50
|
+
* @param {string} value the value of the exported output
|
|
51
|
+
* @param {string?} description optional description for the output
|
|
52
|
+
* @param {boolean} overrideId Flag which indicates whether to override the default logical id of the output
|
|
53
|
+
*/
|
|
54
|
+
protected addCfnOutput(id: string, value: string, description?: string, overrideId?: boolean): cdk.CfnOutput;
|
|
55
|
+
/**
|
|
56
|
+
* @summary Determine the fully qualified domain name based on domainName & subDomain
|
|
57
|
+
*/
|
|
58
|
+
protected determineFullyQualifiedDomain(): void;
|
|
59
|
+
/**
|
|
60
|
+
* @summary Utility method to determine if the initialisation is in development (dev) stage
|
|
61
|
+
* This is determined by the stage property injected via cdk context
|
|
62
|
+
*/
|
|
63
|
+
isDevelopmentStage: () => boolean;
|
|
64
|
+
/**
|
|
65
|
+
* @summary Utility method to determine if the initialisation is in test (tst) stage
|
|
66
|
+
* This is determined by the stage property injected via cdk context
|
|
67
|
+
*/
|
|
68
|
+
isTestStage: () => boolean;
|
|
69
|
+
/**
|
|
70
|
+
* @summary Utility method to determine if the initialisation is in uat (uat) stage
|
|
71
|
+
* This is determined by the stage property injected via cdk context
|
|
72
|
+
*/
|
|
73
|
+
isUatStage: () => boolean;
|
|
74
|
+
/**
|
|
75
|
+
* @summary Utility method to determine if the initialisation is in production (prd) stage
|
|
76
|
+
* This is determined by the stage property injected via cdk context
|
|
77
|
+
*/
|
|
78
|
+
isProductionStage: () => boolean;
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=construct.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"construct.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/construct.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,aAAa,CAAA;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AACtC,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAA;AACrC,OAAO,KAAK,KAAK,MAAM,UAAU,CAAA;AAGjC;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,eAAgB,SAAQ,SAAS;IAC5C,KAAK,EAAE,KAAK,CAAC,gBAAgB,CAAA;IAC7B,UAAU,EAAE,GAAG,CAAC,UAAU,CAAA;IAC1B,UAAU,EAAE,GAAG,CAAC,UAAU,CAAA;IAC1B,gBAAgB,EAAE,GAAG,CAAC,gBAAgB,CAAA;IACtC,gBAAgB,EAAE,GAAG,CAAC,gBAAgB,CAAA;IACtC,iBAAiB,EAAE,GAAG,CAAC,iBAAiB,CAAA;IACxC,iBAAiB,EAAE,GAAG,CAAC,iBAAiB,CAAA;IACxC,iBAAiB,EAAE,GAAG,CAAC,iBAAiB,CAAA;IACxC,eAAe,EAAE,GAAG,CAAC,eAAe,CAAA;IACpC,UAAU,EAAE,GAAG,CAAC,UAAU,CAAA;IAC1B,UAAU,EAAE,GAAG,CAAC,UAAU,CAAA;IAC1B,UAAU,EAAE,GAAG,CAAC,UAAU,CAAA;IAC1B,YAAY,EAAE,GAAG,CAAC,YAAY,CAAA;IAC9B,UAAU,EAAE,GAAG,CAAC,UAAU,CAAA;IAC1B,aAAa,EAAE,GAAG,CAAC,aAAa,CAAA;IAChC,UAAU,EAAE,GAAG,CAAC,UAAU,CAAA;IAC1B,cAAc,EAAE,GAAG,CAAC,cAAc,CAAA;IAClC,SAAS,EAAE,GAAG,CAAC,SAAS,CAAA;IACxB,cAAc,EAAE,GAAG,CAAC,cAAc,CAAA;IAClC,UAAU,EAAE,GAAG,CAAC,UAAU,CAAA;IAC1B,UAAU,EAAE,GAAG,CAAC,UAAU,CAAA;IAC1B,UAAU,EAAE,GAAG,CAAC,UAAU,CAAA;IAC1B,UAAU,EAAE,GAAG,CAAC,UAAU,CAAA;IAC1B,wBAAwB,EAAE,MAAM,CAAA;gBAEpB,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,gBAAgB;IA6BxE;;;;;;OAMG;IACH,SAAS,CAAC,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,EAAE,UAAU,UAAO,GAAG,GAAG,CAAC,SAAS;IAIzG;;OAEG;IACH,SAAS,CAAC,6BAA6B;IAMvC;;;OAGG;IACI,kBAAkB,gBAA2C;IAEpE;;;OAGG;IACI,WAAW,gBAA4C;IAE9D;;;OAGG;IACI,UAAU,gBAA2C;IAE5D;;;OAGG;IACI,iBAAiB,gBAA2C;CACpE"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.CommonConstruct = void 0;
|
|
23
|
+
const constructs_1 = require("constructs");
|
|
24
|
+
const aws = __importStar(require("../manager/aws"));
|
|
25
|
+
const utils = __importStar(require("../utils"));
|
|
26
|
+
/**
|
|
27
|
+
* @stability stable
|
|
28
|
+
* @category cdk-utils.common-construct
|
|
29
|
+
* @subcategory Construct
|
|
30
|
+
* @classdesc Common construct to use as a base for all higher level constructs.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* import { CommonConstruct } from '@gradientedge/cdk-utils';
|
|
34
|
+
*
|
|
35
|
+
* class CustomConstruct extends CommonConstruct {
|
|
36
|
+
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
37
|
+
* super(parent, id, props);
|
|
38
|
+
* this.props = props;
|
|
39
|
+
* };
|
|
40
|
+
* };
|
|
41
|
+
*/
|
|
42
|
+
class CommonConstruct extends constructs_1.Construct {
|
|
43
|
+
props;
|
|
44
|
+
acmManager;
|
|
45
|
+
apiManager;
|
|
46
|
+
appConfigManager;
|
|
47
|
+
codeBuildManager;
|
|
48
|
+
cloudFrontManager;
|
|
49
|
+
cloudTrailManager;
|
|
50
|
+
cloudWatchManager;
|
|
51
|
+
dynamodbManager;
|
|
52
|
+
ecrManager;
|
|
53
|
+
ecsManager;
|
|
54
|
+
eksManager;
|
|
55
|
+
eventManager;
|
|
56
|
+
iamManager;
|
|
57
|
+
lambdaManager;
|
|
58
|
+
logManager;
|
|
59
|
+
route53Manager;
|
|
60
|
+
s3Manager;
|
|
61
|
+
secretsManager;
|
|
62
|
+
snsManager;
|
|
63
|
+
ssMManager;
|
|
64
|
+
vpcManager;
|
|
65
|
+
wafManager;
|
|
66
|
+
fullyQualifiedDomainName;
|
|
67
|
+
constructor(parent, id, props) {
|
|
68
|
+
super(parent, id);
|
|
69
|
+
this.props = props;
|
|
70
|
+
this.acmManager = new aws.AcmManager();
|
|
71
|
+
this.apiManager = new aws.ApiManager();
|
|
72
|
+
this.appConfigManager = new aws.AppConfigManager();
|
|
73
|
+
this.codeBuildManager = new aws.CodeBuildManager();
|
|
74
|
+
this.cloudFrontManager = new aws.CloudFrontManager();
|
|
75
|
+
this.cloudTrailManager = new aws.CloudTrailManager();
|
|
76
|
+
this.cloudWatchManager = new aws.CloudWatchManager();
|
|
77
|
+
this.dynamodbManager = new aws.DynamodbManager();
|
|
78
|
+
this.ecrManager = new aws.EcrManager();
|
|
79
|
+
this.ecsManager = new aws.EcsManager();
|
|
80
|
+
this.eksManager = new aws.EksManager();
|
|
81
|
+
this.eventManager = new aws.EventManager();
|
|
82
|
+
this.iamManager = new aws.IamManager();
|
|
83
|
+
this.lambdaManager = new aws.LambdaManager();
|
|
84
|
+
this.logManager = new aws.LogManager();
|
|
85
|
+
this.route53Manager = new aws.Route53Manager();
|
|
86
|
+
this.s3Manager = new aws.S3Manager();
|
|
87
|
+
this.secretsManager = new aws.SecretsManager();
|
|
88
|
+
this.snsManager = new aws.SnsManager();
|
|
89
|
+
this.ssMManager = new aws.SsmManager();
|
|
90
|
+
this.vpcManager = new aws.VpcManager();
|
|
91
|
+
this.wafManager = new aws.WafManager();
|
|
92
|
+
this.determineFullyQualifiedDomain();
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* @summary Helper method to add CloudFormation outputs from the construct
|
|
96
|
+
* @param {string} id scoped id of the resource
|
|
97
|
+
* @param {string} value the value of the exported output
|
|
98
|
+
* @param {string?} description optional description for the output
|
|
99
|
+
* @param {boolean} overrideId Flag which indicates whether to override the default logical id of the output
|
|
100
|
+
*/
|
|
101
|
+
addCfnOutput(id, value, description, overrideId = true) {
|
|
102
|
+
return utils.createCfnOutput(id, this, value, description, overrideId);
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* @summary Determine the fully qualified domain name based on domainName & subDomain
|
|
106
|
+
*/
|
|
107
|
+
determineFullyQualifiedDomain() {
|
|
108
|
+
this.fullyQualifiedDomainName = this.props.subDomain
|
|
109
|
+
? `${this.props.subDomain}.${this.props.domainName}`
|
|
110
|
+
: this.props.domainName;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* @summary Utility method to determine if the initialisation is in development (dev) stage
|
|
114
|
+
* This is determined by the stage property injected via cdk context
|
|
115
|
+
*/
|
|
116
|
+
isDevelopmentStage = () => utils.isDevStage(this.props.stage);
|
|
117
|
+
/**
|
|
118
|
+
* @summary Utility method to determine if the initialisation is in test (tst) stage
|
|
119
|
+
* This is determined by the stage property injected via cdk context
|
|
120
|
+
*/
|
|
121
|
+
isTestStage = () => utils.isTestStage(this.props.stage);
|
|
122
|
+
/**
|
|
123
|
+
* @summary Utility method to determine if the initialisation is in uat (uat) stage
|
|
124
|
+
* This is determined by the stage property injected via cdk context
|
|
125
|
+
*/
|
|
126
|
+
isUatStage = () => utils.isUatStage(this.props.stage);
|
|
127
|
+
/**
|
|
128
|
+
* @summary Utility method to determine if the initialisation is in production (prd) stage
|
|
129
|
+
* This is determined by the stage property injected via cdk context
|
|
130
|
+
*/
|
|
131
|
+
isProductionStage = () => utils.isPrdStage(this.props.stage);
|
|
132
|
+
}
|
|
133
|
+
exports.CommonConstruct = CommonConstruct;
|
|
134
|
+
//# sourceMappingURL=construct.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"construct.js","sourceRoot":"","sources":["../../../../src/lib/common/construct.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./construct"), exports);
|
|
14
|
+
__exportStar(require("./stack"), exports);
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAA2B;AAC3B,0CAAuB"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as cdk from 'aws-cdk-lib';
|
|
2
|
+
import { CommonStackProps } from '../types';
|
|
3
|
+
import { CommonConstruct } from './construct';
|
|
4
|
+
/**
|
|
5
|
+
* @stability stable
|
|
6
|
+
* @category cdk-utils.common-stack
|
|
7
|
+
* @subcategory Construct
|
|
8
|
+
* @classdesc Common stack to use as a base for all higher level constructs.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* import { CommonStack } from '@gradientedge/cdk-utils'
|
|
12
|
+
*
|
|
13
|
+
* class CustomStack extends CommonStack {
|
|
14
|
+
* constructor(parent: cdk.App, name: string, props: cdk.StackProps) {
|
|
15
|
+
* super(parent, name, props)
|
|
16
|
+
* // provision resources
|
|
17
|
+
* }
|
|
18
|
+
* }
|
|
19
|
+
*/
|
|
20
|
+
export declare class CommonStack extends cdk.Stack {
|
|
21
|
+
construct: CommonConstruct;
|
|
22
|
+
props: CommonStackProps;
|
|
23
|
+
constructor(parent: cdk.App, name: string, props: cdk.StackProps);
|
|
24
|
+
/**
|
|
25
|
+
* @summary Method to determine the core CDK construct properties injected via context cdk.json
|
|
26
|
+
* @param {cdk.StackProps} props The stack properties
|
|
27
|
+
* @return The stack properties
|
|
28
|
+
*/
|
|
29
|
+
protected determineConstructProps(props: cdk.StackProps): {
|
|
30
|
+
stackName: string | undefined;
|
|
31
|
+
name: string;
|
|
32
|
+
region: any;
|
|
33
|
+
stage: any;
|
|
34
|
+
domainName: any;
|
|
35
|
+
subDomain: any;
|
|
36
|
+
extraContexts: any;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* @summary Method to determine extra cdk contexts apart from the main cdk.json
|
|
40
|
+
* - Sets the properties from the extra contexts into cdk node context
|
|
41
|
+
* - Primary use is to have layered config in separate files to enable easier maintenance and readability
|
|
42
|
+
*/
|
|
43
|
+
protected determineExtraContexts(): void;
|
|
44
|
+
/**
|
|
45
|
+
* @summary Method to determine extra cdk stage contexts apart from the main cdk.json
|
|
46
|
+
* - Sets the properties from the extra stage contexts into cdk node context
|
|
47
|
+
* - Primary use is to have layered config for each environment which is injected into the context
|
|
48
|
+
*/
|
|
49
|
+
protected determineStageContexts(): void;
|
|
50
|
+
/**
|
|
51
|
+
* @summary Determine the fully qualified domain name based on domainName & subDomain
|
|
52
|
+
*/
|
|
53
|
+
protected fullyQualifiedDomain(): any;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=stack.d.ts.map
|