@gradientedge/cdk-utils 4.6.0 → 4.6.4
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/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/.yarn-integrity +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/@types/uuid/LICENSE +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/@types/uuid/README.md +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/@types/uuid/index.d.mts +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/@types/uuid/index.d.ts +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/@types/uuid/package.json +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/LICENSE.md +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/README.md +0 -0
- package/{dist/app/api-destined-function/layers/nodejs/node_modules/.bin → app/api-destined-function/layers/nodejs/node_modules/uuid/dist/bin}/uuid +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/index.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/md5.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/nil.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/parse.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/regex.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/rng.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/sha1.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/stringify.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v1.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v3.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v35.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v4.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v5.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/validate.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/version.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/index.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/md5.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/nil.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/parse.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/regex.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/rng.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/sha1.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/stringify.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v1.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v3.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v35.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v4.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v5.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/validate.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/version.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/index.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/md5-browser.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/md5.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/nil.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/parse.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/regex.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/rng-browser.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/rng.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/sha1-browser.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/sha1.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/stringify.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuid.min.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidNIL.min.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidParse.min.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidStringify.min.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidValidate.min.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidVersion.min.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv1.min.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv3.min.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv4.min.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv5.min.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/uuid-bin.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/v1.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/v3.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/v35.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/v4.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/v5.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/validate.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/dist/version.js +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/package.json +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/node_modules/uuid/wrapper.mjs +0 -0
- package/{dist/app → app}/api-destined-function/layers/nodejs/package.json +1 -2
- package/app/api-destined-function/package.json +1 -2
- package/dist/app/api-destined-function/src/lib/lambda.d.ts +0 -1
- package/dist/app/api-destined-function/src/lib/lambda.js +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/src/lib/common/construct.d.ts +0 -1
- package/dist/src/lib/common/construct.js +0 -1
- package/dist/src/lib/common/index.d.ts +0 -1
- package/dist/src/lib/common/index.js +0 -1
- package/dist/src/lib/common/stack.d.ts +0 -1
- package/dist/src/lib/common/stack.js +0 -1
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.d.ts +0 -1
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.js +0 -1
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.d.ts +0 -1
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.js +0 -1
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.d.ts +0 -1
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.js +0 -1
- package/dist/src/lib/construct/api-to-eventbridge-target/index.d.ts +0 -1
- package/dist/src/lib/construct/api-to-eventbridge-target/index.js +0 -1
- package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts +0 -5
- package/dist/src/lib/construct/api-to-eventbridge-target/main.js +6 -13
- package/dist/src/lib/construct/graphql-api-lambda/index.d.ts +0 -1
- package/dist/src/lib/construct/graphql-api-lambda/index.js +0 -1
- package/dist/src/lib/construct/graphql-api-lambda/main.d.ts +0 -1
- package/dist/src/lib/construct/graphql-api-lambda/main.js +0 -1
- package/dist/src/lib/construct/graphql-api-lambda-with-cache/index.d.ts +1 -0
- package/dist/src/lib/construct/graphql-api-lambda-with-cache/index.js +13 -0
- package/dist/src/lib/construct/graphql-api-lambda-with-cache/main.d.ts +64 -0
- package/dist/src/lib/construct/graphql-api-lambda-with-cache/main.js +132 -0
- package/dist/src/lib/construct/index.d.ts +1 -1
- package/dist/src/lib/construct/index.js +1 -1
- package/dist/src/lib/construct/site-with-ecs-backend/index.d.ts +0 -1
- package/dist/src/lib/construct/site-with-ecs-backend/index.js +0 -1
- package/dist/src/lib/construct/site-with-ecs-backend/main.d.ts +0 -1
- package/dist/src/lib/construct/site-with-ecs-backend/main.js +0 -1
- package/dist/src/lib/construct/static-site/index.d.ts +0 -1
- package/dist/src/lib/construct/static-site/index.js +0 -1
- package/dist/src/lib/construct/static-site/main.d.ts +0 -1
- package/dist/src/lib/construct/static-site/main.js +0 -1
- package/dist/src/lib/manager/aws/acm-manager.d.ts +0 -1
- package/dist/src/lib/manager/aws/acm-manager.js +0 -1
- package/dist/src/lib/manager/aws/api-manager.d.ts +0 -1
- package/dist/src/lib/manager/aws/api-manager.js +0 -1
- package/dist/src/lib/manager/aws/app-config-manager.d.ts +0 -1
- package/dist/src/lib/manager/aws/app-config-manager.js +0 -1
- package/dist/src/lib/manager/aws/cloudfront-manager.d.ts +0 -1
- package/dist/src/lib/manager/aws/cloudfront-manager.js +0 -1
- package/dist/src/lib/manager/aws/cloudtrail-manager.d.ts +0 -1
- package/dist/src/lib/manager/aws/cloudtrail-manager.js +0 -1
- package/dist/src/lib/manager/aws/cloudwatch-manager.d.ts +0 -1
- package/dist/src/lib/manager/aws/cloudwatch-manager.js +0 -1
- package/dist/src/lib/manager/aws/codebuild-manager.d.ts +0 -1
- package/dist/src/lib/manager/aws/codebuild-manager.js +0 -1
- package/dist/src/lib/manager/aws/dynamodb-manager.d.ts +0 -1
- package/dist/src/lib/manager/aws/dynamodb-manager.js +0 -1
- package/dist/src/lib/manager/aws/ecr-manager.d.ts +0 -1
- package/dist/src/lib/manager/aws/ecr-manager.js +0 -1
- package/dist/src/lib/manager/aws/ecs-manager.d.ts +0 -1
- package/dist/src/lib/manager/aws/ecs-manager.js +0 -1
- package/dist/src/lib/manager/aws/eks-manager.d.ts +0 -1
- package/dist/src/lib/manager/aws/eks-manager.js +0 -1
- package/dist/src/lib/manager/aws/elasticache-manager.d.ts +0 -1
- package/dist/src/lib/manager/aws/elasticache-manager.js +0 -1
- package/dist/src/lib/manager/aws/event-manager.d.ts +0 -1
- package/dist/src/lib/manager/aws/event-manager.js +0 -1
- package/dist/src/lib/manager/aws/iam-manager.d.ts +0 -1
- package/dist/src/lib/manager/aws/iam-manager.js +0 -1
- package/dist/src/lib/manager/aws/index.d.ts +0 -1
- package/dist/src/lib/manager/aws/index.js +0 -1
- package/dist/src/lib/manager/aws/lambda-manager.d.ts +0 -1
- package/dist/src/lib/manager/aws/lambda-manager.js +0 -1
- package/dist/src/lib/manager/aws/log-manager.d.ts +0 -1
- package/dist/src/lib/manager/aws/log-manager.js +0 -1
- package/dist/src/lib/manager/aws/route53-manager.d.ts +0 -1
- package/dist/src/lib/manager/aws/route53-manager.js +0 -1
- package/dist/src/lib/manager/aws/s3-manager.d.ts +0 -1
- package/dist/src/lib/manager/aws/s3-manager.js +0 -1
- package/dist/src/lib/manager/aws/secrets-manager.d.ts +0 -1
- package/dist/src/lib/manager/aws/secrets-manager.js +0 -1
- package/dist/src/lib/manager/aws/sns-manager.d.ts +0 -1
- package/dist/src/lib/manager/aws/sns-manager.js +0 -1
- package/dist/src/lib/manager/aws/ssm-manager.d.ts +0 -1
- package/dist/src/lib/manager/aws/ssm-manager.js +0 -1
- package/dist/src/lib/manager/aws/vpc-manager.d.ts +0 -1
- package/dist/src/lib/manager/aws/vpc-manager.js +1 -1
- package/dist/src/lib/manager/aws/waf-manager.d.ts +0 -1
- package/dist/src/lib/manager/aws/waf-manager.js +0 -1
- package/dist/src/lib/manager/index.d.ts +0 -1
- package/dist/src/lib/manager/index.js +0 -1
- package/dist/src/lib/types/aws/index.d.ts +12 -1
- package/dist/src/lib/types/aws/index.js +0 -1
- package/dist/src/lib/types/index.d.ts +0 -1
- package/dist/src/lib/types/index.js +0 -1
- package/dist/src/lib/utils/aws/index.d.ts +0 -1
- package/dist/src/lib/utils/aws/index.js +0 -1
- package/dist/src/lib/utils/index.d.ts +0 -1
- package/dist/src/lib/utils/index.js +0 -1
- package/package.json +13 -12
- package/src/lib/construct/api-to-eventbridge-target/main.ts +8 -22
- package/src/lib/construct/graphql-api-lambda-with-cache/index.ts +1 -0
- package/src/lib/construct/graphql-api-lambda-with-cache/main.ts +150 -0
- package/src/lib/construct/index.ts +1 -0
- package/src/lib/manager/aws/vpc-manager.ts +1 -0
- package/src/lib/types/aws/index.ts +13 -0
- package/tsconfig.prd.json +8 -0
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/bin/uuid +0 -2
- package/dist/app/api-destined-function/src/lib/lambda.d.ts.map +0 -1
- package/dist/app/api-destined-function/src/lib/lambda.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/src/lib/common/construct.d.ts.map +0 -1
- package/dist/src/lib/common/construct.js.map +0 -1
- package/dist/src/lib/common/index.d.ts.map +0 -1
- package/dist/src/lib/common/index.js.map +0 -1
- package/dist/src/lib/common/stack.d.ts.map +0 -1
- package/dist/src/lib/common/stack.js.map +0 -1
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.d.ts.map +0 -1
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.js.map +0 -1
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.d.ts.map +0 -1
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.js.map +0 -1
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.d.ts.map +0 -1
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.js.map +0 -1
- package/dist/src/lib/construct/api-to-eventbridge-target/index.d.ts.map +0 -1
- package/dist/src/lib/construct/api-to-eventbridge-target/index.js.map +0 -1
- package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts.map +0 -1
- package/dist/src/lib/construct/api-to-eventbridge-target/main.js.map +0 -1
- package/dist/src/lib/construct/graphql-api-lambda/index.d.ts.map +0 -1
- package/dist/src/lib/construct/graphql-api-lambda/index.js.map +0 -1
- package/dist/src/lib/construct/graphql-api-lambda/main.d.ts.map +0 -1
- package/dist/src/lib/construct/graphql-api-lambda/main.js.map +0 -1
- package/dist/src/lib/construct/index.d.ts.map +0 -1
- package/dist/src/lib/construct/index.js.map +0 -1
- package/dist/src/lib/construct/site-with-ecs-backend/index.d.ts.map +0 -1
- package/dist/src/lib/construct/site-with-ecs-backend/index.js.map +0 -1
- package/dist/src/lib/construct/site-with-ecs-backend/main.d.ts.map +0 -1
- package/dist/src/lib/construct/site-with-ecs-backend/main.js.map +0 -1
- package/dist/src/lib/construct/static-site/index.d.ts.map +0 -1
- package/dist/src/lib/construct/static-site/index.js.map +0 -1
- package/dist/src/lib/construct/static-site/main.d.ts.map +0 -1
- package/dist/src/lib/construct/static-site/main.js.map +0 -1
- package/dist/src/lib/manager/aws/acm-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/acm-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/api-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/api-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/app-config-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/app-config-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/cloudfront-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/cloudfront-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/cloudtrail-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/cloudtrail-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/cloudwatch-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/cloudwatch-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/codebuild-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/codebuild-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/dynamodb-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/dynamodb-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/ecr-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/ecr-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/ecs-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/ecs-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/eks-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/eks-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/elasticache-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/elasticache-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/event-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/event-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/iam-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/iam-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/index.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/index.js.map +0 -1
- package/dist/src/lib/manager/aws/lambda-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/lambda-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/log-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/log-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/route53-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/route53-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/s3-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/s3-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/secrets-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/secrets-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/sns-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/sns-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/ssm-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/ssm-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/vpc-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/vpc-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/waf-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/waf-manager.js.map +0 -1
- package/dist/src/lib/manager/index.d.ts.map +0 -1
- package/dist/src/lib/manager/index.js.map +0 -1
- package/dist/src/lib/types/aws/index.d.ts.map +0 -1
- package/dist/src/lib/types/aws/index.js.map +0 -1
- package/dist/src/lib/types/index.d.ts.map +0 -1
- package/dist/src/lib/types/index.js.map +0 -1
- package/dist/src/lib/utils/aws/index.d.ts.map +0 -1
- package/dist/src/lib/utils/aws/index.js.map +0 -1
- package/dist/src/lib/utils/index.d.ts.map +0 -1
- package/dist/src/lib/utils/index.js.map +0 -1
|
@@ -0,0 +1,132 @@
|
|
|
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.GraphQLApiLambdaWithCache = void 0;
|
|
23
|
+
const cdk = __importStar(require("aws-cdk-lib"));
|
|
24
|
+
const ec2 = __importStar(require("aws-cdk-lib/aws-ec2"));
|
|
25
|
+
const iam = __importStar(require("aws-cdk-lib/aws-iam"));
|
|
26
|
+
const __1 = require("..");
|
|
27
|
+
const utils = __importStar(require("../../utils"));
|
|
28
|
+
/**
|
|
29
|
+
* @stability stable
|
|
30
|
+
* @category cdk-utils.graphql-api-lambda-with-cache
|
|
31
|
+
* @subcategory construct
|
|
32
|
+
* @classdesc Provides a construct to create and deploy a Graphql API as Lambda with Caching
|
|
33
|
+
*
|
|
34
|
+
* <b>Architecture</b> 
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* import { GraphQlApiLambdaWithCacheProps } '@gradientedge/cdk-utils'
|
|
38
|
+
* import { Construct } from 'constructs'
|
|
39
|
+
*
|
|
40
|
+
* class CustomConstruct extends GraphQLApiLambdaWithCache {
|
|
41
|
+
* constructor(parent: Construct, id: string, props: GraphQlApiLambdaWithCacheProps) {
|
|
42
|
+
* super(parent, id, props)
|
|
43
|
+
* this.props = props
|
|
44
|
+
* this.id = id
|
|
45
|
+
* this.initResources()
|
|
46
|
+
* }
|
|
47
|
+
* }
|
|
48
|
+
*/
|
|
49
|
+
class GraphQLApiLambdaWithCache extends __1.GraphQLApiLambda {
|
|
50
|
+
/* graphql restApi props */
|
|
51
|
+
props;
|
|
52
|
+
id;
|
|
53
|
+
/* graphql restApi resources */
|
|
54
|
+
graphQLVpc;
|
|
55
|
+
graphQLElastiCache;
|
|
56
|
+
graphQLSecurityGroup;
|
|
57
|
+
securityGroupStackName;
|
|
58
|
+
securityGroupExportName;
|
|
59
|
+
vpcExportName;
|
|
60
|
+
constructor(parent, id, props) {
|
|
61
|
+
super(parent, id, props);
|
|
62
|
+
this.props = props;
|
|
63
|
+
this.id = id;
|
|
64
|
+
}
|
|
65
|
+
initResources() {
|
|
66
|
+
this.setVpc();
|
|
67
|
+
this.setSecurityGroup();
|
|
68
|
+
this.createElastiCache();
|
|
69
|
+
super.initResources();
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Create VPC
|
|
73
|
+
* @protected
|
|
74
|
+
*/
|
|
75
|
+
setVpc() {
|
|
76
|
+
if (this.props.vpcExportName) {
|
|
77
|
+
this.graphQLVpc = this.vpcManager.retrieveCommonVpc(`${this.id}`, this, this.props.vpcExportName);
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
this.graphQLVpc = this.vpcManager.createCommonVpc(this, this.props.graphQLVpc, this.props.graphQLVpc.vpcName);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Resolve Security Group
|
|
85
|
+
* @protected
|
|
86
|
+
*/
|
|
87
|
+
setSecurityGroup() {
|
|
88
|
+
if (this.props.securityGroupExportName) {
|
|
89
|
+
this.graphQLSecurityGroup = ec2.SecurityGroup.fromSecurityGroupId(this, `${this.id}`, cdk.Fn.importValue(this.props.securityGroupExportName));
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
this.graphQLSecurityGroup = new ec2.SecurityGroup(this, `${this.id}-security-group-${this.props.stage}`, {
|
|
93
|
+
securityGroupName: `${this.id}-security-group-${this.props.stage}`,
|
|
94
|
+
vpc: this.graphQLVpc,
|
|
95
|
+
});
|
|
96
|
+
this.graphQLSecurityGroup.addIngressRule(ec2.Peer.anyIpv4(), ec2.Port.allIcmp(), 'All Traffic');
|
|
97
|
+
utils.createCfnOutput(`${this.id}-security-group-id`, this, this.graphQLSecurityGroup.securityGroupId);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Create ElastiCache
|
|
102
|
+
* @protected
|
|
103
|
+
*/
|
|
104
|
+
createElastiCache() {
|
|
105
|
+
this.graphQLElastiCache = this.elasticacheManager.createElastiCache(`${this.id}-elasticache`, this, this.props.graphQLElastiCache, this.graphQLVpc.privateSubnets.map(subnet => subnet.subnetId), [this.graphQLSecurityGroup.toString()]);
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Create Lambda Role
|
|
109
|
+
* @protected
|
|
110
|
+
*/
|
|
111
|
+
createLambdaRole() {
|
|
112
|
+
super.createLambdaRole();
|
|
113
|
+
this.graphQLApiLambdaRole.addManagedPolicy(iam.ManagedPolicy.fromAwsManagedPolicyName('service-role/AWSLambdaVPCAccessExecutionRole'));
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* @summary Method to create environment variables for GraphQL Lambda function
|
|
117
|
+
* @protected
|
|
118
|
+
*/
|
|
119
|
+
createLambdaEnvironment() {
|
|
120
|
+
this.graphQLApiLambdaEnvironment = {
|
|
121
|
+
CACHE_REDIS_HOST: `${this.graphQLElastiCache.attrRedisEndpointAddress}`,
|
|
122
|
+
CACHE_REDIS_PORT: `${this.graphQLElastiCache.attrRedisEndpointPort}`,
|
|
123
|
+
NODE_ENV: this.props.nodeEnv,
|
|
124
|
+
LOG_LEVEL: this.props.logLevel,
|
|
125
|
+
TZ: this.props.timezone,
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
createLambdaFunction() {
|
|
129
|
+
this.graphQLApiLambdaFunction = this.lambdaManager.createLambdaFunction(`${this.id}-graphql-server`, this, this.props.graphqlApi, this.graphQLApiLambdaRole, this.graphQLApiLambdaLayers, this.props.graphQLApiSource, this.props.graphQLApiHandler || 'index.handler', this.graphQLApiLambdaEnvironment, this.graphQLVpc, [this.graphQLSecurityGroup], undefined, undefined, this.graphQLVpc);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
exports.GraphQLApiLambdaWithCache = GraphQLApiLambdaWithCache;
|
|
@@ -12,6 +12,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./api-to-eventbridge-target"), exports);
|
|
14
14
|
__exportStar(require("./graphql-api-lambda"), exports);
|
|
15
|
+
__exportStar(require("./graphql-api-lambda-with-cache"), exports);
|
|
15
16
|
__exportStar(require("./site-with-ecs-backend"), exports);
|
|
16
17
|
__exportStar(require("./static-site"), exports);
|
|
17
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -38,4 +38,3 @@ export declare class CodeBuildManager {
|
|
|
38
38
|
*/
|
|
39
39
|
createProjectForCloudfrontInvalidation(id: string, scope: common.CommonConstruct, dockerFilepath: string, distributionId: string, paths?: string): cdk.aws_codebuild.Project;
|
|
40
40
|
}
|
|
41
|
-
//# sourceMappingURL=codebuild-manager.d.ts.map
|
|
@@ -46,4 +46,3 @@ export declare class EcsManager {
|
|
|
46
46
|
*/
|
|
47
47
|
createEcsFargateTask(id: string, scope: common.CommonConstruct, props: types.EcsTaskProps, cluster: ecs.ICluster, role: iam.Role, logGroup: logs.ILogGroup, containerImage: ecs.ContainerImage, environment?: any): ecs.TaskDefinition;
|
|
48
48
|
}
|
|
49
|
-
//# sourceMappingURL=ecs-manager.d.ts.map
|
|
@@ -40,4 +40,3 @@ export declare class ElastiCacheManager {
|
|
|
40
40
|
*/
|
|
41
41
|
createElastiCache(id: string, scope: common.CommonConstruct, props: types.ElastiCacheProps, subnetIds: string[], securityGroupIds: string[], logDeliveryConfigurations?: any): elasticache.CfnCacheCluster;
|
|
42
42
|
}
|
|
43
|
-
//# sourceMappingURL=elasticache-manager.d.ts.map
|
|
@@ -65,4 +65,3 @@ export declare class EventManager {
|
|
|
65
65
|
*/
|
|
66
66
|
createFargateTaskRule(id: string, scope: common.CommonConstruct, props: types.RuleProps, cluster: ecs.ICluster, task: ecs.ITaskDefinition, subnetIds: string[], role: iam.Role | iam.CfnRole, eventPattern?: any): events.CfnRule;
|
|
67
67
|
}
|
|
68
|
-
//# sourceMappingURL=event-manager.d.ts.map
|
|
@@ -92,4 +92,3 @@ export declare class LambdaManager {
|
|
|
92
92
|
*/
|
|
93
93
|
createEdgeFunction(id: string, scope: common.CommonConstruct, props: types.LambdaEdgeProps, layers: lambda.ILayerVersion[], code: lambda.AssetCode, environment?: any, vpc?: ec2.IVpc, securityGroups?: ec2.ISecurityGroup[], accessPoint?: efs.IAccessPoint, mountPath?: string): cdk.aws_cloudfront.experimental.EdgeFunction;
|
|
94
94
|
}
|
|
95
|
-
//# sourceMappingURL=lambda-manager.d.ts.map
|
|
@@ -71,4 +71,3 @@ export declare class S3Manager {
|
|
|
71
71
|
*/
|
|
72
72
|
doBucketDeployment(id: string, scope: common.CommonConstruct, siteBucket: s3.IBucket, distribution: cloudfront.IDistribution, sources: s3deploy.ISource[], prefix: string, prune?: boolean): void;
|
|
73
73
|
}
|
|
74
|
-
//# sourceMappingURL=s3-manager.d.ts.map
|
|
@@ -68,6 +68,7 @@ class VpcManager {
|
|
|
68
68
|
utils.createCfnOutput(`${id}PublicSubnetRouteTableIds`, scope, vpc.publicSubnets.map(subnet => subnet.routeTable.routeTableId).toString());
|
|
69
69
|
utils.createCfnOutput(`${id}PrivateSubnetRouteTableIds`, scope, vpc.privateSubnets.map(subnet => subnet.routeTable.routeTableId).toString());
|
|
70
70
|
utils.createCfnOutput(`${id}AvailabilityZones`, scope, vpc.availabilityZones.toString());
|
|
71
|
+
utils.createCfnOutput(`${id}DefaultSecurityGroup`, scope, vpc.vpcDefaultSecurityGroup.toString());
|
|
71
72
|
return vpc;
|
|
72
73
|
}
|
|
73
74
|
/**
|
|
@@ -92,4 +93,3 @@ class VpcManager {
|
|
|
92
93
|
}
|
|
93
94
|
}
|
|
94
95
|
exports.VpcManager = VpcManager;
|
|
95
|
-
//# sourceMappingURL=vpc-manager.js.map
|
|
@@ -107,6 +107,8 @@ export interface HealthCheck extends elb.HealthCheck {
|
|
|
107
107
|
* @subcategory Types
|
|
108
108
|
*/
|
|
109
109
|
export interface LambdaEnvironment {
|
|
110
|
+
CACHE_REDIS_HOST?: string;
|
|
111
|
+
CACHE_REDIS_PORT?: string;
|
|
110
112
|
NODE_ENV: string;
|
|
111
113
|
LOG_LEVEL: string;
|
|
112
114
|
TZ: string;
|
|
@@ -142,6 +144,16 @@ export interface GraphQlApiLambdaProps extends CommonStackProps {
|
|
|
142
144
|
logLevel: string;
|
|
143
145
|
timezone: string;
|
|
144
146
|
}
|
|
147
|
+
/**
|
|
148
|
+
* @category cdk-utils.graphql-api-lambda-with-cache
|
|
149
|
+
* @subcategory Properties
|
|
150
|
+
*/
|
|
151
|
+
export interface GraphQlApiLambdaWithCacheProps extends GraphQlApiLambdaProps {
|
|
152
|
+
graphQLVpc: ec2.VpcProps;
|
|
153
|
+
graphQLElastiCache: ElastiCacheProps;
|
|
154
|
+
securityGroupExportName: string;
|
|
155
|
+
vpcExportName: string;
|
|
156
|
+
}
|
|
145
157
|
/**
|
|
146
158
|
* @category cdk-utils.api-to-eventbridge-target
|
|
147
159
|
* @subcategory Types
|
|
@@ -487,4 +499,3 @@ export interface WafWebACLProps extends wafv2.CfnWebACLProps {
|
|
|
487
499
|
export interface ElastiCacheProps extends elasticache.CfnCacheClusterProps {
|
|
488
500
|
}
|
|
489
501
|
export {};
|
|
490
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -13,4 +13,3 @@ import { CommonConstruct } from '../../common';
|
|
|
13
13
|
* @return {cdk.CfnOutput} The CloudFormation output
|
|
14
14
|
*/
|
|
15
15
|
export declare function createCfnOutput(id: string, scope: CommonConstruct, value?: string, description?: string, overrideId?: boolean): cdk.CfnOutput;
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|