@gradientedge/cdk-utils 9.84.0 → 9.85.0
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/.husky/pre-commit +4 -0
- package/app/api-destined-function/node_modules/.bin/rimraf +2 -2
- package/app/api-destined-function/node_modules/.bin/uuid +4 -4
- package/app/api-destined-function/package.json +5 -4
- package/babel.config.mjs +16 -0
- package/dist/app/api-destined-function/src/lib/lambda.js +4 -8
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -17
- package/dist/lib/lambda.js +4 -8
- package/dist/lib/lambda.js.map +1 -1
- package/dist/src/lib/aws/common/construct.d.ts +3 -3
- package/dist/src/lib/aws/common/construct.js +41 -45
- package/dist/src/lib/aws/common/index.d.ts +4 -4
- package/dist/src/lib/aws/common/index.js +4 -20
- package/dist/src/lib/aws/common/resource-name-formatter.d.ts +1 -1
- package/dist/src/lib/aws/common/resource-name-formatter.js +12 -14
- package/dist/src/lib/aws/common/stack.d.ts +2 -2
- package/dist/src/lib/aws/common/stack.js +22 -29
- package/dist/src/lib/aws/common/types.d.ts +1 -1
- package/dist/src/lib/aws/common/types.js +1 -2
- package/dist/src/lib/aws/construct/api-to-any-target/index.d.ts +3 -3
- package/dist/src/lib/aws/construct/api-to-any-target/index.js +3 -19
- package/dist/src/lib/aws/construct/api-to-any-target/main.d.ts +2 -2
- package/dist/src/lib/aws/construct/api-to-any-target/main.js +19 -23
- package/dist/src/lib/aws/construct/api-to-any-target/target.d.ts +1 -1
- package/dist/src/lib/aws/construct/api-to-any-target/target.js +1 -5
- package/dist/src/lib/aws/construct/api-to-any-target/types.d.ts +2 -2
- package/dist/src/lib/aws/construct/api-to-any-target/types.js +1 -2
- package/dist/src/lib/aws/construct/api-to-eventbridge-target/api.d.ts +1 -1
- package/dist/src/lib/aws/construct/api-to-eventbridge-target/api.js +1 -5
- package/dist/src/lib/aws/construct/api-to-eventbridge-target/event.d.ts +1 -1
- package/dist/src/lib/aws/construct/api-to-eventbridge-target/event.js +1 -5
- package/dist/src/lib/aws/construct/api-to-eventbridge-target/index.d.ts +4 -4
- package/dist/src/lib/aws/construct/api-to-eventbridge-target/index.js +4 -20
- package/dist/src/lib/aws/construct/api-to-eventbridge-target/main.d.ts +2 -2
- package/dist/src/lib/aws/construct/api-to-eventbridge-target/main.js +40 -44
- package/dist/src/lib/aws/construct/api-to-eventbridge-target/types.d.ts +2 -2
- package/dist/src/lib/aws/construct/api-to-eventbridge-target/types.js +1 -2
- package/dist/src/lib/aws/construct/api-to-eventbridge-target-with-sns/api-destined-lambda.d.ts +1 -1
- package/dist/src/lib/aws/construct/api-to-eventbridge-target-with-sns/api-destined-lambda.js +1 -5
- package/dist/src/lib/aws/construct/api-to-eventbridge-target-with-sns/index.d.ts +3 -3
- package/dist/src/lib/aws/construct/api-to-eventbridge-target-with-sns/index.js +3 -19
- package/dist/src/lib/aws/construct/api-to-eventbridge-target-with-sns/main.d.ts +3 -3
- package/dist/src/lib/aws/construct/api-to-eventbridge-target-with-sns/main.js +45 -49
- package/dist/src/lib/aws/construct/api-to-eventbridge-target-with-sns/types.d.ts +1 -1
- package/dist/src/lib/aws/construct/api-to-eventbridge-target-with-sns/types.js +1 -2
- package/dist/src/lib/aws/construct/api-to-lambda-target/api.d.ts +1 -1
- package/dist/src/lib/aws/construct/api-to-lambda-target/api.js +1 -5
- package/dist/src/lib/aws/construct/api-to-lambda-target/index.d.ts +3 -3
- package/dist/src/lib/aws/construct/api-to-lambda-target/index.js +3 -19
- package/dist/src/lib/aws/construct/api-to-lambda-target/main.d.ts +2 -2
- package/dist/src/lib/aws/construct/api-to-lambda-target/main.js +17 -21
- package/dist/src/lib/aws/construct/api-to-lambda-target/types.d.ts +2 -2
- package/dist/src/lib/aws/construct/api-to-lambda-target/types.js +1 -2
- package/dist/src/lib/aws/construct/application-configuration/index.d.ts +2 -2
- package/dist/src/lib/aws/construct/application-configuration/index.js +2 -18
- package/dist/src/lib/aws/construct/application-configuration/main.d.ts +2 -2
- package/dist/src/lib/aws/construct/application-configuration/main.js +22 -26
- package/dist/src/lib/aws/construct/application-configuration/types.d.ts +2 -2
- package/dist/src/lib/aws/construct/application-configuration/types.js +1 -2
- package/dist/src/lib/aws/construct/event-handler/handler.d.ts +1 -1
- package/dist/src/lib/aws/construct/event-handler/handler.js +1 -5
- package/dist/src/lib/aws/construct/event-handler/index.d.ts +3 -3
- package/dist/src/lib/aws/construct/event-handler/index.js +3 -19
- package/dist/src/lib/aws/construct/event-handler/main.d.ts +3 -3
- package/dist/src/lib/aws/construct/event-handler/main.js +22 -29
- package/dist/src/lib/aws/construct/event-handler/types.d.ts +2 -2
- package/dist/src/lib/aws/construct/event-handler/types.js +1 -2
- package/dist/src/lib/aws/construct/index.d.ts +14 -14
- package/dist/src/lib/aws/construct/index.js +14 -30
- package/dist/src/lib/aws/construct/lambda-with-iam-access/index.d.ts +2 -2
- package/dist/src/lib/aws/construct/lambda-with-iam-access/index.js +2 -18
- package/dist/src/lib/aws/construct/lambda-with-iam-access/main.d.ts +2 -2
- package/dist/src/lib/aws/construct/lambda-with-iam-access/main.js +22 -29
- package/dist/src/lib/aws/construct/lambda-with-iam-access/types.d.ts +2 -2
- package/dist/src/lib/aws/construct/lambda-with-iam-access/types.js +1 -2
- package/dist/src/lib/aws/construct/piped-event-handler/index.d.ts +2 -2
- package/dist/src/lib/aws/construct/piped-event-handler/index.js +2 -18
- package/dist/src/lib/aws/construct/piped-event-handler/main.d.ts +2 -2
- package/dist/src/lib/aws/construct/piped-event-handler/main.js +8 -15
- package/dist/src/lib/aws/construct/piped-event-handler/types.d.ts +2 -2
- package/dist/src/lib/aws/construct/piped-event-handler/types.js +1 -2
- package/dist/src/lib/aws/construct/rest-api-lambda/index.d.ts +2 -2
- package/dist/src/lib/aws/construct/rest-api-lambda/index.js +2 -18
- package/dist/src/lib/aws/construct/rest-api-lambda/main.d.ts +2 -2
- package/dist/src/lib/aws/construct/rest-api-lambda/main.js +11 -18
- package/dist/src/lib/aws/construct/rest-api-lambda/types.d.ts +2 -2
- package/dist/src/lib/aws/construct/rest-api-lambda/types.js +1 -2
- package/dist/src/lib/aws/construct/rest-api-lambda-with-cache/index.d.ts +2 -2
- package/dist/src/lib/aws/construct/rest-api-lambda-with-cache/index.js +2 -18
- package/dist/src/lib/aws/construct/rest-api-lambda-with-cache/main.d.ts +2 -2
- package/dist/src/lib/aws/construct/rest-api-lambda-with-cache/main.js +14 -21
- package/dist/src/lib/aws/construct/rest-api-lambda-with-cache/types.d.ts +2 -2
- package/dist/src/lib/aws/construct/rest-api-lambda-with-cache/types.js +1 -2
- package/dist/src/lib/aws/construct/site-with-ecs-backend/constants.js +2 -5
- package/dist/src/lib/aws/construct/site-with-ecs-backend/index.d.ts +3 -3
- package/dist/src/lib/aws/construct/site-with-ecs-backend/index.js +3 -19
- package/dist/src/lib/aws/construct/site-with-ecs-backend/main.d.ts +2 -2
- package/dist/src/lib/aws/construct/site-with-ecs-backend/main.js +31 -38
- package/dist/src/lib/aws/construct/site-with-ecs-backend/types.d.ts +3 -3
- package/dist/src/lib/aws/construct/site-with-ecs-backend/types.js +1 -2
- package/dist/src/lib/aws/construct/site-with-lambda-backend/constants.js +3 -6
- package/dist/src/lib/aws/construct/site-with-lambda-backend/index.d.ts +3 -3
- package/dist/src/lib/aws/construct/site-with-lambda-backend/index.js +3 -19
- package/dist/src/lib/aws/construct/site-with-lambda-backend/main.d.ts +2 -2
- package/dist/src/lib/aws/construct/site-with-lambda-backend/main.js +31 -38
- package/dist/src/lib/aws/construct/site-with-lambda-backend/types.d.ts +3 -3
- package/dist/src/lib/aws/construct/site-with-lambda-backend/types.js +1 -2
- package/dist/src/lib/aws/construct/static-asset-deployment/index.d.ts +2 -2
- package/dist/src/lib/aws/construct/static-asset-deployment/index.js +2 -18
- package/dist/src/lib/aws/construct/static-asset-deployment/main.d.ts +2 -2
- package/dist/src/lib/aws/construct/static-asset-deployment/main.js +13 -20
- package/dist/src/lib/aws/construct/static-asset-deployment/types.d.ts +2 -2
- package/dist/src/lib/aws/construct/static-asset-deployment/types.js +1 -2
- package/dist/src/lib/aws/construct/static-site/index.d.ts +2 -2
- package/dist/src/lib/aws/construct/static-site/index.js +2 -18
- package/dist/src/lib/aws/construct/static-site/main.d.ts +2 -5
- package/dist/src/lib/aws/construct/static-site/main.js +5 -15
- package/dist/src/lib/aws/construct/static-site/types.d.ts +2 -2
- package/dist/src/lib/aws/construct/static-site/types.js +1 -2
- package/dist/src/lib/aws/index.d.ts +5 -5
- package/dist/src/lib/aws/index.js +5 -21
- package/dist/src/lib/aws/services/api-gateway/index.d.ts +2 -2
- package/dist/src/lib/aws/services/api-gateway/index.js +2 -18
- package/dist/src/lib/aws/services/api-gateway/main.d.ts +2 -2
- package/dist/src/lib/aws/services/api-gateway/main.js +27 -34
- package/dist/src/lib/aws/services/api-gateway/types.d.ts +1 -1
- package/dist/src/lib/aws/services/api-gateway/types.js +1 -2
- package/dist/src/lib/aws/services/appconfig/constants.js +2 -5
- package/dist/src/lib/aws/services/appconfig/index.d.ts +3 -3
- package/dist/src/lib/aws/services/appconfig/index.js +3 -19
- package/dist/src/lib/aws/services/appconfig/main.d.ts +3 -3
- package/dist/src/lib/aws/services/appconfig/main.js +23 -27
- package/dist/src/lib/aws/services/appconfig/types.js +1 -2
- package/dist/src/lib/aws/services/certificate-manager/index.d.ts +2 -2
- package/dist/src/lib/aws/services/certificate-manager/index.js +2 -18
- package/dist/src/lib/aws/services/certificate-manager/main.d.ts +2 -2
- package/dist/src/lib/aws/services/certificate-manager/main.js +10 -14
- package/dist/src/lib/aws/services/certificate-manager/types.js +1 -2
- package/dist/src/lib/aws/services/cloudfront/index.d.ts +2 -2
- package/dist/src/lib/aws/services/cloudfront/index.js +2 -18
- package/dist/src/lib/aws/services/cloudfront/main.d.ts +7 -20
- package/dist/src/lib/aws/services/cloudfront/main.js +54 -141
- package/dist/src/lib/aws/services/cloudfront/types.d.ts +2 -7
- package/dist/src/lib/aws/services/cloudfront/types.js +1 -2
- package/dist/src/lib/aws/services/cloudtrail/index.d.ts +2 -2
- package/dist/src/lib/aws/services/cloudtrail/index.js +2 -18
- package/dist/src/lib/aws/services/cloudtrail/main.d.ts +2 -2
- package/dist/src/lib/aws/services/cloudtrail/main.js +6 -10
- package/dist/src/lib/aws/services/cloudtrail/types.js +1 -2
- package/dist/src/lib/aws/services/cloudwatch/index.d.ts +3 -3
- package/dist/src/lib/aws/services/cloudwatch/index.js +3 -19
- package/dist/src/lib/aws/services/cloudwatch/logs.d.ts +2 -2
- package/dist/src/lib/aws/services/cloudwatch/logs.js +9 -49
- package/dist/src/lib/aws/services/cloudwatch/main.d.ts +2 -2
- package/dist/src/lib/aws/services/cloudwatch/main.js +8 -48
- package/dist/src/lib/aws/services/cloudwatch/types.d.ts +1 -1
- package/dist/src/lib/aws/services/cloudwatch/types.js +1 -2
- package/dist/src/lib/aws/services/codebuild/index.d.ts +1 -1
- package/dist/src/lib/aws/services/codebuild/index.js +1 -17
- package/dist/src/lib/aws/services/codebuild/main.d.ts +1 -1
- package/dist/src/lib/aws/services/codebuild/main.js +8 -12
- package/dist/src/lib/aws/services/constants.js +2 -5
- package/dist/src/lib/aws/services/dynamodb/index.d.ts +2 -2
- package/dist/src/lib/aws/services/dynamodb/index.js +2 -18
- package/dist/src/lib/aws/services/dynamodb/main.d.ts +2 -2
- package/dist/src/lib/aws/services/dynamodb/main.js +19 -24
- package/dist/src/lib/aws/services/dynamodb/types.d.ts +1 -1
- package/dist/src/lib/aws/services/dynamodb/types.js +1 -2
- package/dist/src/lib/aws/services/elastic-container-registry/index.d.ts +1 -1
- package/dist/src/lib/aws/services/elastic-container-registry/index.js +1 -17
- package/dist/src/lib/aws/services/elastic-container-registry/main.d.ts +1 -1
- package/dist/src/lib/aws/services/elastic-container-registry/main.js +5 -9
- package/dist/src/lib/aws/services/elastic-container-service/index.d.ts +2 -2
- package/dist/src/lib/aws/services/elastic-container-service/index.js +2 -18
- package/dist/src/lib/aws/services/elastic-container-service/main.d.ts +2 -2
- package/dist/src/lib/aws/services/elastic-container-service/main.js +29 -36
- package/dist/src/lib/aws/services/elastic-container-service/types.d.ts +1 -1
- package/dist/src/lib/aws/services/elastic-container-service/types.js +1 -2
- package/dist/src/lib/aws/services/elastic-file-system/index.d.ts +2 -2
- package/dist/src/lib/aws/services/elastic-file-system/index.js +2 -18
- package/dist/src/lib/aws/services/elastic-file-system/main.d.ts +2 -2
- package/dist/src/lib/aws/services/elastic-file-system/main.js +19 -26
- package/dist/src/lib/aws/services/elastic-file-system/types.js +1 -2
- package/dist/src/lib/aws/services/elastic-kubernetes-service/index.d.ts +2 -2
- package/dist/src/lib/aws/services/elastic-kubernetes-service/index.js +2 -18
- package/dist/src/lib/aws/services/elastic-kubernetes-service/main.d.ts +2 -2
- package/dist/src/lib/aws/services/elastic-kubernetes-service/main.js +9 -13
- package/dist/src/lib/aws/services/elastic-kubernetes-service/types.js +1 -2
- package/dist/src/lib/aws/services/elasticache/index.d.ts +2 -2
- package/dist/src/lib/aws/services/elasticache/index.js +2 -18
- package/dist/src/lib/aws/services/elasticache/main.d.ts +2 -2
- package/dist/src/lib/aws/services/elasticache/main.js +14 -21
- package/dist/src/lib/aws/services/elasticache/types.js +1 -2
- package/dist/src/lib/aws/services/eventbridge/index.d.ts +3 -3
- package/dist/src/lib/aws/services/eventbridge/index.js +3 -19
- package/dist/src/lib/aws/services/eventbridge/main.d.ts +2 -2
- package/dist/src/lib/aws/services/eventbridge/main.js +39 -46
- package/dist/src/lib/aws/services/eventbridge/target.d.ts +1 -1
- package/dist/src/lib/aws/services/eventbridge/target.js +7 -12
- package/dist/src/lib/aws/services/eventbridge/types.d.ts +1 -1
- package/dist/src/lib/aws/services/eventbridge/types.js +1 -2
- package/dist/src/lib/aws/services/evidently/index.d.ts +2 -2
- package/dist/src/lib/aws/services/evidently/index.js +2 -18
- package/dist/src/lib/aws/services/evidently/main.d.ts +2 -2
- package/dist/src/lib/aws/services/evidently/main.js +18 -22
- package/dist/src/lib/aws/services/evidently/types.js +1 -2
- package/dist/src/lib/aws/services/identity-access-management/index.d.ts +1 -1
- package/dist/src/lib/aws/services/identity-access-management/index.js +1 -17
- package/dist/src/lib/aws/services/identity-access-management/main.d.ts +1 -1
- package/dist/src/lib/aws/services/identity-access-management/main.js +112 -116
- package/dist/src/lib/aws/services/index.d.ts +28 -28
- package/dist/src/lib/aws/services/index.js +28 -44
- package/dist/src/lib/aws/services/key-management-service/index.d.ts +2 -2
- package/dist/src/lib/aws/services/key-management-service/index.js +2 -18
- package/dist/src/lib/aws/services/key-management-service/main.d.ts +2 -2
- package/dist/src/lib/aws/services/key-management-service/main.js +6 -10
- package/dist/src/lib/aws/services/key-management-service/types.js +1 -2
- package/dist/src/lib/aws/services/lambda/index.d.ts +2 -2
- package/dist/src/lib/aws/services/lambda/index.js +2 -18
- package/dist/src/lib/aws/services/lambda/main.d.ts +4 -3
- package/dist/src/lib/aws/services/lambda/main.js +48 -57
- package/dist/src/lib/aws/services/lambda/types.d.ts +4 -3
- package/dist/src/lib/aws/services/lambda/types.js +1 -2
- package/dist/src/lib/aws/services/route53/index.d.ts +2 -2
- package/dist/src/lib/aws/services/route53/index.js +2 -18
- package/dist/src/lib/aws/services/route53/main.d.ts +2 -2
- package/dist/src/lib/aws/services/route53/main.js +21 -25
- package/dist/src/lib/aws/services/route53/types.js +1 -2
- package/dist/src/lib/aws/services/secrets-manager/index.d.ts +2 -2
- package/dist/src/lib/aws/services/secrets-manager/index.js +2 -18
- package/dist/src/lib/aws/services/secrets-manager/main.d.ts +2 -2
- package/dist/src/lib/aws/services/secrets-manager/main.js +12 -16
- package/dist/src/lib/aws/services/secrets-manager/types.js +1 -2
- package/dist/src/lib/aws/services/simple-notification-service/index.d.ts +2 -2
- package/dist/src/lib/aws/services/simple-notification-service/index.js +2 -18
- package/dist/src/lib/aws/services/simple-notification-service/main.d.ts +2 -2
- package/dist/src/lib/aws/services/simple-notification-service/main.js +14 -21
- package/dist/src/lib/aws/services/simple-notification-service/types.js +1 -2
- package/dist/src/lib/aws/services/simple-queue-service/index.d.ts +2 -2
- package/dist/src/lib/aws/services/simple-queue-service/index.js +2 -18
- package/dist/src/lib/aws/services/simple-queue-service/main.d.ts +3 -3
- package/dist/src/lib/aws/services/simple-queue-service/main.js +18 -25
- package/dist/src/lib/aws/services/simple-queue-service/types.d.ts +1 -1
- package/dist/src/lib/aws/services/simple-queue-service/types.js +1 -2
- package/dist/src/lib/aws/services/simple-storage-service/index.d.ts +2 -2
- package/dist/src/lib/aws/services/simple-storage-service/index.js +2 -18
- package/dist/src/lib/aws/services/simple-storage-service/main.d.ts +2 -2
- package/dist/src/lib/aws/services/simple-storage-service/main.js +35 -42
- package/dist/src/lib/aws/services/simple-storage-service/types.d.ts +1 -1
- package/dist/src/lib/aws/services/simple-storage-service/types.js +1 -2
- package/dist/src/lib/aws/services/step-function/index.d.ts +2 -2
- package/dist/src/lib/aws/services/step-function/index.js +2 -18
- package/dist/src/lib/aws/services/step-function/main.d.ts +2 -2
- package/dist/src/lib/aws/services/step-function/main.js +45 -52
- package/dist/src/lib/aws/services/step-function/types.js +1 -2
- package/dist/src/lib/aws/services/systems-manager/index.d.ts +2 -2
- package/dist/src/lib/aws/services/systems-manager/index.js +2 -18
- package/dist/src/lib/aws/services/systems-manager/main.d.ts +2 -2
- package/dist/src/lib/aws/services/systems-manager/main.js +11 -16
- package/dist/src/lib/aws/services/systems-manager/types.js +1 -2
- package/dist/src/lib/aws/services/virtual-private-cloud/index.d.ts +2 -2
- package/dist/src/lib/aws/services/virtual-private-cloud/index.js +2 -18
- package/dist/src/lib/aws/services/virtual-private-cloud/ipv6.d.ts +2 -2
- package/dist/src/lib/aws/services/virtual-private-cloud/ipv6.js +12 -19
- package/dist/src/lib/aws/services/virtual-private-cloud/main.d.ts +2 -2
- package/dist/src/lib/aws/services/virtual-private-cloud/main.js +19 -26
- package/dist/src/lib/aws/services/virtual-private-cloud/types.js +1 -2
- package/dist/src/lib/aws/services/web-application-firewall/index.d.ts +2 -2
- package/dist/src/lib/aws/services/web-application-firewall/index.js +2 -18
- package/dist/src/lib/aws/services/web-application-firewall/main.d.ts +2 -2
- package/dist/src/lib/aws/services/web-application-firewall/main.js +9 -13
- package/dist/src/lib/aws/services/web-application-firewall/types.js +1 -2
- package/dist/src/lib/aws/types/index.js +1 -2
- package/dist/src/lib/aws/utils/index.d.ts +1 -1
- package/dist/src/lib/aws/utils/index.js +11 -20
- package/dist/src/lib/azure/.gen/providers/azapi/provider/index.js +4 -43
- package/dist/src/lib/azure/common/constants.js +3 -6
- package/dist/src/lib/azure/common/construct.d.ts +3 -3
- package/dist/src/lib/azure/common/construct.js +37 -41
- package/dist/src/lib/azure/common/index.d.ts +6 -6
- package/dist/src/lib/azure/common/index.js +6 -22
- package/dist/src/lib/azure/common/resource-name-formatter.d.ts +1 -2
- package/dist/src/lib/azure/common/resource-name-formatter.js +2 -6
- package/dist/src/lib/azure/common/stack.d.ts +2 -2
- package/dist/src/lib/azure/common/stack.js +20 -27
- package/dist/src/lib/azure/common/tagging.js +5 -9
- package/dist/src/lib/azure/common/types.d.ts +3 -3
- package/dist/src/lib/azure/common/types.js +1 -2
- package/dist/src/lib/azure/index.d.ts +4 -4
- package/dist/src/lib/azure/index.js +4 -20
- package/dist/src/lib/azure/services/api-management/index.d.ts +2 -2
- package/dist/src/lib/azure/services/api-management/index.js +2 -18
- package/dist/src/lib/azure/services/api-management/main.d.ts +9 -9
- package/dist/src/lib/azure/services/api-management/main.js +41 -48
- package/dist/src/lib/azure/services/api-management/types.d.ts +6 -6
- package/dist/src/lib/azure/services/api-management/types.js +1 -2
- package/dist/src/lib/azure/services/app-configuration/index.d.ts +2 -2
- package/dist/src/lib/azure/services/app-configuration/index.js +2 -18
- package/dist/src/lib/azure/services/app-configuration/main.d.ts +3 -3
- package/dist/src/lib/azure/services/app-configuration/main.js +9 -13
- package/dist/src/lib/azure/services/app-configuration/types.d.ts +1 -1
- package/dist/src/lib/azure/services/app-configuration/types.js +1 -2
- package/dist/src/lib/azure/services/app-service/index.d.ts +2 -2
- package/dist/src/lib/azure/services/app-service/index.js +2 -18
- package/dist/src/lib/azure/services/app-service/main.d.ts +4 -4
- package/dist/src/lib/azure/services/app-service/main.js +16 -20
- package/dist/src/lib/azure/services/app-service/types.d.ts +2 -2
- package/dist/src/lib/azure/services/app-service/types.js +1 -2
- package/dist/src/lib/azure/services/application-insights/index.d.ts +2 -2
- package/dist/src/lib/azure/services/application-insights/index.js +2 -18
- package/dist/src/lib/azure/services/application-insights/main.d.ts +3 -3
- package/dist/src/lib/azure/services/application-insights/main.js +9 -13
- package/dist/src/lib/azure/services/application-insights/types.d.ts +1 -1
- package/dist/src/lib/azure/services/application-insights/types.js +1 -2
- package/dist/src/lib/azure/services/cosmosdb/index.d.ts +2 -2
- package/dist/src/lib/azure/services/cosmosdb/index.js +2 -18
- package/dist/src/lib/azure/services/cosmosdb/main.d.ts +5 -5
- package/dist/src/lib/azure/services/cosmosdb/main.js +21 -25
- package/dist/src/lib/azure/services/cosmosdb/types.d.ts +3 -3
- package/dist/src/lib/azure/services/cosmosdb/types.js +1 -2
- package/dist/src/lib/azure/services/dns/index.d.ts +2 -2
- package/dist/src/lib/azure/services/dns/index.js +2 -18
- package/dist/src/lib/azure/services/dns/main.d.ts +6 -6
- package/dist/src/lib/azure/services/dns/main.js +24 -28
- package/dist/src/lib/azure/services/dns/types.d.ts +4 -4
- package/dist/src/lib/azure/services/dns/types.js +1 -2
- package/dist/src/lib/azure/services/eventgrid/index.d.ts +2 -2
- package/dist/src/lib/azure/services/eventgrid/index.js +2 -18
- package/dist/src/lib/azure/services/eventgrid/main.d.ts +6 -6
- package/dist/src/lib/azure/services/eventgrid/main.js +34 -38
- package/dist/src/lib/azure/services/eventgrid/types.d.ts +3 -3
- package/dist/src/lib/azure/services/eventgrid/types.js +1 -2
- package/dist/src/lib/azure/services/function/index.d.ts +2 -2
- package/dist/src/lib/azure/services/function/index.js +2 -18
- package/dist/src/lib/azure/services/function/main.d.ts +5 -5
- package/dist/src/lib/azure/services/function/main.js +17 -21
- package/dist/src/lib/azure/services/function/types.d.ts +3 -3
- package/dist/src/lib/azure/services/function/types.js +1 -2
- package/dist/src/lib/azure/services/index.d.ts +15 -15
- package/dist/src/lib/azure/services/index.js +15 -31
- package/dist/src/lib/azure/services/key-vault/index.d.ts +2 -2
- package/dist/src/lib/azure/services/key-vault/index.js +2 -18
- package/dist/src/lib/azure/services/key-vault/main.d.ts +3 -3
- package/dist/src/lib/azure/services/key-vault/main.js +9 -13
- package/dist/src/lib/azure/services/key-vault/types.d.ts +1 -1
- package/dist/src/lib/azure/services/key-vault/types.js +1 -2
- package/dist/src/lib/azure/services/log-analytics-workspace/index.d.ts +2 -2
- package/dist/src/lib/azure/services/log-analytics-workspace/index.js +2 -18
- package/dist/src/lib/azure/services/log-analytics-workspace/main.d.ts +3 -3
- package/dist/src/lib/azure/services/log-analytics-workspace/main.js +9 -13
- package/dist/src/lib/azure/services/log-analytics-workspace/types.d.ts +1 -1
- package/dist/src/lib/azure/services/log-analytics-workspace/types.js +1 -2
- package/dist/src/lib/azure/services/monitor/index.d.ts +2 -2
- package/dist/src/lib/azure/services/monitor/index.js +2 -18
- package/dist/src/lib/azure/services/monitor/main.d.ts +3 -3
- package/dist/src/lib/azure/services/monitor/main.js +7 -11
- package/dist/src/lib/azure/services/monitor/types.d.ts +1 -1
- package/dist/src/lib/azure/services/monitor/types.js +1 -2
- package/dist/src/lib/azure/services/redis/index.d.ts +2 -2
- package/dist/src/lib/azure/services/redis/index.js +2 -18
- package/dist/src/lib/azure/services/redis/main.d.ts +3 -3
- package/dist/src/lib/azure/services/redis/main.js +9 -13
- package/dist/src/lib/azure/services/redis/types.d.ts +1 -1
- package/dist/src/lib/azure/services/redis/types.js +1 -2
- package/dist/src/lib/azure/services/resource-group/index.d.ts +2 -2
- package/dist/src/lib/azure/services/resource-group/index.js +2 -18
- package/dist/src/lib/azure/services/resource-group/main.d.ts +3 -3
- package/dist/src/lib/azure/services/resource-group/main.js +7 -11
- package/dist/src/lib/azure/services/resource-group/types.d.ts +1 -1
- package/dist/src/lib/azure/services/resource-group/types.js +1 -2
- package/dist/src/lib/azure/services/servicebus/index.d.ts +2 -2
- package/dist/src/lib/azure/services/servicebus/index.js +2 -18
- package/dist/src/lib/azure/services/servicebus/main.d.ts +7 -7
- package/dist/src/lib/azure/services/servicebus/main.js +29 -33
- package/dist/src/lib/azure/services/servicebus/types.d.ts +5 -5
- package/dist/src/lib/azure/services/servicebus/types.js +1 -2
- package/dist/src/lib/azure/services/storage/index.d.ts +2 -2
- package/dist/src/lib/azure/services/storage/index.js +2 -18
- package/dist/src/lib/azure/services/storage/main.d.ts +6 -6
- package/dist/src/lib/azure/services/storage/main.js +27 -31
- package/dist/src/lib/azure/services/storage/types.d.ts +5 -5
- package/dist/src/lib/azure/services/storage/types.js +1 -2
- package/dist/src/lib/azure/types/index.js +1 -2
- package/dist/src/lib/azure/utils/index.d.ts +1 -1
- package/dist/src/lib/azure/utils/index.js +5 -12
- package/dist/src/lib/cloudflare/common/constants.js +2 -5
- package/dist/src/lib/cloudflare/common/construct.d.ts +4 -4
- package/dist/src/lib/cloudflare/common/construct.js +32 -36
- package/dist/src/lib/cloudflare/common/index.d.ts +4 -4
- package/dist/src/lib/cloudflare/common/index.js +4 -20
- package/dist/src/lib/cloudflare/common/stack.d.ts +2 -2
- package/dist/src/lib/cloudflare/common/stack.js +18 -25
- package/dist/src/lib/cloudflare/common/types.d.ts +3 -3
- package/dist/src/lib/cloudflare/common/types.js +1 -2
- package/dist/src/lib/cloudflare/construct/index.d.ts +2 -2
- package/dist/src/lib/cloudflare/construct/index.js +2 -18
- package/dist/src/lib/cloudflare/construct/pages-static-site/index.d.ts +2 -2
- package/dist/src/lib/cloudflare/construct/pages-static-site/index.js +2 -18
- package/dist/src/lib/cloudflare/construct/pages-static-site/main.d.ts +7 -7
- package/dist/src/lib/cloudflare/construct/pages-static-site/main.js +12 -16
- package/dist/src/lib/cloudflare/construct/pages-static-site/types.d.ts +2 -2
- package/dist/src/lib/cloudflare/construct/pages-static-site/types.js +1 -2
- package/dist/src/lib/cloudflare/construct/worker-site/index.d.ts +2 -2
- package/dist/src/lib/cloudflare/construct/worker-site/index.js +2 -18
- package/dist/src/lib/cloudflare/construct/worker-site/main.d.ts +5 -5
- package/dist/src/lib/cloudflare/construct/worker-site/main.js +15 -19
- package/dist/src/lib/cloudflare/construct/worker-site/types.d.ts +2 -2
- package/dist/src/lib/cloudflare/construct/worker-site/types.js +1 -2
- package/dist/src/lib/cloudflare/index.d.ts +5 -5
- package/dist/src/lib/cloudflare/index.js +5 -21
- package/dist/src/lib/cloudflare/services/access/index.d.ts +2 -2
- package/dist/src/lib/cloudflare/services/access/index.js +2 -18
- package/dist/src/lib/cloudflare/services/access/main.d.ts +13 -13
- package/dist/src/lib/cloudflare/services/access/main.js +45 -49
- package/dist/src/lib/cloudflare/services/access/types.d.ts +11 -11
- package/dist/src/lib/cloudflare/services/access/types.js +1 -2
- package/dist/src/lib/cloudflare/services/api-shield/index.d.ts +2 -2
- package/dist/src/lib/cloudflare/services/api-shield/index.js +2 -18
- package/dist/src/lib/cloudflare/services/api-shield/main.d.ts +7 -7
- package/dist/src/lib/cloudflare/services/api-shield/main.js +22 -26
- package/dist/src/lib/cloudflare/services/api-shield/types.d.ts +5 -5
- package/dist/src/lib/cloudflare/services/api-shield/types.js +1 -2
- package/dist/src/lib/cloudflare/services/argo/index.d.ts +2 -2
- package/dist/src/lib/cloudflare/services/argo/index.js +2 -18
- package/dist/src/lib/cloudflare/services/argo/main.d.ts +4 -4
- package/dist/src/lib/cloudflare/services/argo/main.js +10 -14
- package/dist/src/lib/cloudflare/services/argo/types.d.ts +2 -2
- package/dist/src/lib/cloudflare/services/argo/types.js +1 -2
- package/dist/src/lib/cloudflare/services/filter/index.d.ts +2 -2
- package/dist/src/lib/cloudflare/services/filter/index.js +2 -18
- package/dist/src/lib/cloudflare/services/filter/main.d.ts +3 -3
- package/dist/src/lib/cloudflare/services/filter/main.js +6 -10
- package/dist/src/lib/cloudflare/services/filter/types.d.ts +1 -1
- package/dist/src/lib/cloudflare/services/filter/types.js +1 -2
- package/dist/src/lib/cloudflare/services/firewall/index.d.ts +2 -2
- package/dist/src/lib/cloudflare/services/firewall/index.js +2 -18
- package/dist/src/lib/cloudflare/services/firewall/main.d.ts +3 -3
- package/dist/src/lib/cloudflare/services/firewall/main.js +6 -10
- package/dist/src/lib/cloudflare/services/firewall/types.d.ts +1 -1
- package/dist/src/lib/cloudflare/services/firewall/types.js +1 -2
- package/dist/src/lib/cloudflare/services/index.d.ts +10 -10
- package/dist/src/lib/cloudflare/services/index.js +10 -26
- package/dist/src/lib/cloudflare/services/page/index.d.ts +2 -2
- package/dist/src/lib/cloudflare/services/page/index.js +2 -18
- package/dist/src/lib/cloudflare/services/page/main.d.ts +5 -5
- package/dist/src/lib/cloudflare/services/page/main.js +17 -21
- package/dist/src/lib/cloudflare/services/page/types.d.ts +3 -3
- package/dist/src/lib/cloudflare/services/page/types.js +1 -2
- package/dist/src/lib/cloudflare/services/record/index.d.ts +2 -2
- package/dist/src/lib/cloudflare/services/record/index.js +2 -18
- package/dist/src/lib/cloudflare/services/record/main.d.ts +3 -3
- package/dist/src/lib/cloudflare/services/record/main.js +6 -10
- package/dist/src/lib/cloudflare/services/record/types.d.ts +1 -1
- package/dist/src/lib/cloudflare/services/record/types.js +1 -2
- package/dist/src/lib/cloudflare/services/rule-set/index.d.ts +2 -2
- package/dist/src/lib/cloudflare/services/rule-set/index.js +2 -18
- package/dist/src/lib/cloudflare/services/rule-set/main.d.ts +3 -3
- package/dist/src/lib/cloudflare/services/rule-set/main.js +6 -10
- package/dist/src/lib/cloudflare/services/rule-set/types.d.ts +1 -1
- package/dist/src/lib/cloudflare/services/rule-set/types.js +1 -2
- package/dist/src/lib/cloudflare/services/worker/index.d.ts +2 -2
- package/dist/src/lib/cloudflare/services/worker/index.js +2 -18
- package/dist/src/lib/cloudflare/services/worker/main.d.ts +8 -8
- package/dist/src/lib/cloudflare/services/worker/main.js +26 -30
- package/dist/src/lib/cloudflare/services/worker/types.d.ts +6 -6
- package/dist/src/lib/cloudflare/services/worker/types.js +1 -2
- package/dist/src/lib/cloudflare/services/zone/index.d.ts +2 -2
- package/dist/src/lib/cloudflare/services/zone/index.js +2 -18
- package/dist/src/lib/cloudflare/services/zone/main.d.ts +11 -11
- package/dist/src/lib/cloudflare/services/zone/main.js +36 -40
- package/dist/src/lib/cloudflare/services/zone/types.d.ts +9 -9
- package/dist/src/lib/cloudflare/services/zone/types.js +1 -2
- package/dist/src/lib/cloudflare/types/index.js +1 -2
- package/dist/src/lib/cloudflare/utils/index.d.ts +1 -1
- package/dist/src/lib/cloudflare/utils/index.js +5 -12
- package/dist/src/lib/common/construct.d.ts +1 -1
- package/dist/src/lib/common/construct.js +2 -6
- package/dist/src/lib/common/index.d.ts +4 -4
- package/dist/src/lib/common/index.js +7 -28
- package/dist/src/lib/common/stack.d.ts +1 -1
- package/dist/src/lib/common/stack.js +2 -6
- package/dist/src/lib/common/types.js +1 -2
- package/dist/src/lib/common/utils.d.ts +15 -4
- package/dist/src/lib/common/utils.js +18 -13
- package/dist/src/lib/index.d.ts +4 -4
- package/dist/src/lib/index.js +4 -20
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/eslint.config.mjs +60 -2
- package/index.ts +1 -1
- package/package.json +62 -55
- package/setup.js +3 -2
- package/src/lib/aws/common/construct.ts +5 -5
- package/src/lib/aws/common/index.ts +4 -4
- package/src/lib/aws/common/resource-name-formatter.ts +14 -9
- package/src/lib/aws/common/stack.ts +4 -4
- package/src/lib/aws/common/types.ts +1 -1
- package/src/lib/aws/construct/api-to-any-target/index.ts +3 -3
- package/src/lib/aws/construct/api-to-any-target/main.ts +3 -3
- package/src/lib/aws/construct/api-to-any-target/target.ts +1 -1
- package/src/lib/aws/construct/api-to-any-target/types.ts +2 -2
- package/src/lib/aws/construct/api-to-eventbridge-target/api.ts +1 -1
- package/src/lib/aws/construct/api-to-eventbridge-target/event.ts +1 -1
- package/src/lib/aws/construct/api-to-eventbridge-target/index.ts +4 -4
- package/src/lib/aws/construct/api-to-eventbridge-target/main.ts +4 -4
- package/src/lib/aws/construct/api-to-eventbridge-target/types.ts +2 -2
- package/src/lib/aws/construct/api-to-eventbridge-target-with-sns/api-destined-lambda.ts +1 -1
- package/src/lib/aws/construct/api-to-eventbridge-target-with-sns/index.ts +3 -3
- package/src/lib/aws/construct/api-to-eventbridge-target-with-sns/main.ts +4 -4
- package/src/lib/aws/construct/api-to-eventbridge-target-with-sns/types.ts +1 -1
- package/src/lib/aws/construct/api-to-lambda-target/api.ts +1 -1
- package/src/lib/aws/construct/api-to-lambda-target/index.ts +3 -3
- package/src/lib/aws/construct/api-to-lambda-target/main.ts +3 -3
- package/src/lib/aws/construct/api-to-lambda-target/types.ts +2 -2
- package/src/lib/aws/construct/application-configuration/index.ts +2 -2
- package/src/lib/aws/construct/application-configuration/main.ts +2 -2
- package/src/lib/aws/construct/application-configuration/types.ts +2 -2
- package/src/lib/aws/construct/event-handler/handler.ts +1 -1
- package/src/lib/aws/construct/event-handler/index.ts +3 -3
- package/src/lib/aws/construct/event-handler/main.ts +3 -3
- package/src/lib/aws/construct/event-handler/types.ts +9 -2
- package/src/lib/aws/construct/index.ts +14 -14
- package/src/lib/aws/construct/lambda-with-iam-access/index.ts +2 -2
- package/src/lib/aws/construct/lambda-with-iam-access/main.ts +3 -3
- package/src/lib/aws/construct/lambda-with-iam-access/types.ts +2 -2
- package/src/lib/aws/construct/piped-event-handler/index.ts +2 -2
- package/src/lib/aws/construct/piped-event-handler/main.ts +2 -2
- package/src/lib/aws/construct/piped-event-handler/types.ts +2 -2
- package/src/lib/aws/construct/rest-api-lambda/index.ts +2 -2
- package/src/lib/aws/construct/rest-api-lambda/main.ts +2 -2
- package/src/lib/aws/construct/rest-api-lambda/types.ts +2 -2
- package/src/lib/aws/construct/rest-api-lambda-with-cache/index.ts +2 -2
- package/src/lib/aws/construct/rest-api-lambda-with-cache/main.ts +3 -3
- package/src/lib/aws/construct/rest-api-lambda-with-cache/types.ts +2 -2
- package/src/lib/aws/construct/site-with-ecs-backend/index.ts +3 -3
- package/src/lib/aws/construct/site-with-ecs-backend/main.ts +2 -2
- package/src/lib/aws/construct/site-with-ecs-backend/types.ts +3 -3
- package/src/lib/aws/construct/site-with-lambda-backend/index.ts +3 -3
- package/src/lib/aws/construct/site-with-lambda-backend/main.ts +3 -3
- package/src/lib/aws/construct/site-with-lambda-backend/types.ts +4 -5
- package/src/lib/aws/construct/static-asset-deployment/index.ts +2 -2
- package/src/lib/aws/construct/static-asset-deployment/main.ts +2 -2
- package/src/lib/aws/construct/static-asset-deployment/types.ts +2 -2
- package/src/lib/aws/construct/static-site/index.ts +2 -2
- package/src/lib/aws/construct/static-site/main.ts +2 -10
- package/src/lib/aws/construct/static-site/types.ts +2 -2
- package/src/lib/aws/index.ts +5 -5
- package/src/lib/aws/services/api-gateway/index.ts +2 -2
- package/src/lib/aws/services/api-gateway/main.ts +3 -3
- package/src/lib/aws/services/api-gateway/types.ts +2 -2
- package/src/lib/aws/services/appconfig/index.ts +3 -3
- package/src/lib/aws/services/appconfig/main.ts +5 -5
- package/src/lib/aws/services/appconfig/types.ts +0 -2
- package/src/lib/aws/services/certificate-manager/index.ts +2 -2
- package/src/lib/aws/services/certificate-manager/main.ts +3 -3
- package/src/lib/aws/services/cloudfront/index.ts +2 -2
- package/src/lib/aws/services/cloudfront/main.ts +21 -81
- package/src/lib/aws/services/cloudfront/types.ts +2 -13
- package/src/lib/aws/services/cloudtrail/index.ts +2 -2
- package/src/lib/aws/services/cloudtrail/main.ts +3 -3
- package/src/lib/aws/services/cloudtrail/types.ts +0 -1
- package/src/lib/aws/services/cloudwatch/index.ts +3 -3
- package/src/lib/aws/services/cloudwatch/logs.ts +3 -3
- package/src/lib/aws/services/cloudwatch/main.ts +3 -3
- package/src/lib/aws/services/cloudwatch/types.ts +1 -1
- package/src/lib/aws/services/codebuild/index.ts +1 -1
- package/src/lib/aws/services/codebuild/main.ts +1 -1
- package/src/lib/aws/services/dynamodb/index.ts +2 -2
- package/src/lib/aws/services/dynamodb/main.ts +6 -4
- package/src/lib/aws/services/dynamodb/types.ts +1 -2
- package/src/lib/aws/services/elastic-container-registry/index.ts +1 -1
- package/src/lib/aws/services/elastic-container-registry/main.ts +2 -2
- package/src/lib/aws/services/elastic-container-service/index.ts +2 -2
- package/src/lib/aws/services/elastic-container-service/main.ts +3 -3
- package/src/lib/aws/services/elastic-container-service/types.ts +1 -2
- package/src/lib/aws/services/elastic-file-system/index.ts +2 -2
- package/src/lib/aws/services/elastic-file-system/main.ts +3 -3
- package/src/lib/aws/services/elastic-file-system/types.ts +0 -1
- package/src/lib/aws/services/elastic-kubernetes-service/index.ts +2 -2
- package/src/lib/aws/services/elastic-kubernetes-service/main.ts +3 -3
- package/src/lib/aws/services/elastic-kubernetes-service/types.ts +0 -1
- package/src/lib/aws/services/elasticache/index.ts +2 -2
- package/src/lib/aws/services/elasticache/main.ts +3 -3
- package/src/lib/aws/services/elasticache/types.ts +0 -1
- package/src/lib/aws/services/eventbridge/index.ts +3 -3
- package/src/lib/aws/services/eventbridge/main.ts +3 -3
- package/src/lib/aws/services/eventbridge/target.ts +1 -1
- package/src/lib/aws/services/eventbridge/types.ts +1 -2
- package/src/lib/aws/services/evidently/index.ts +2 -2
- package/src/lib/aws/services/evidently/main.ts +3 -3
- package/src/lib/aws/services/evidently/types.ts +0 -1
- package/src/lib/aws/services/identity-access-management/index.ts +1 -1
- package/src/lib/aws/services/identity-access-management/main.ts +2 -2
- package/src/lib/aws/services/index.ts +28 -28
- package/src/lib/aws/services/key-management-service/index.ts +2 -2
- package/src/lib/aws/services/key-management-service/main.ts +3 -3
- package/src/lib/aws/services/key-management-service/types.ts +0 -1
- package/src/lib/aws/services/lambda/index.ts +2 -2
- package/src/lib/aws/services/lambda/main.ts +10 -15
- package/src/lib/aws/services/lambda/types.ts +4 -4
- package/src/lib/aws/services/route53/index.ts +2 -2
- package/src/lib/aws/services/route53/main.ts +3 -3
- package/src/lib/aws/services/secrets-manager/index.ts +2 -2
- package/src/lib/aws/services/secrets-manager/main.ts +3 -3
- package/src/lib/aws/services/secrets-manager/types.ts +0 -1
- package/src/lib/aws/services/simple-notification-service/index.ts +2 -2
- package/src/lib/aws/services/simple-notification-service/main.ts +3 -3
- package/src/lib/aws/services/simple-notification-service/types.ts +0 -1
- package/src/lib/aws/services/simple-queue-service/index.ts +2 -2
- package/src/lib/aws/services/simple-queue-service/main.ts +4 -4
- package/src/lib/aws/services/simple-queue-service/types.ts +1 -2
- package/src/lib/aws/services/simple-storage-service/index.ts +2 -2
- package/src/lib/aws/services/simple-storage-service/main.ts +3 -3
- package/src/lib/aws/services/simple-storage-service/types.ts +1 -2
- package/src/lib/aws/services/step-function/index.ts +2 -2
- package/src/lib/aws/services/step-function/main.ts +3 -3
- package/src/lib/aws/services/step-function/types.ts +0 -1
- package/src/lib/aws/services/systems-manager/index.ts +2 -2
- package/src/lib/aws/services/systems-manager/main.ts +3 -3
- package/src/lib/aws/services/systems-manager/types.ts +0 -1
- package/src/lib/aws/services/virtual-private-cloud/index.ts +2 -2
- package/src/lib/aws/services/virtual-private-cloud/ipv6.ts +2 -2
- package/src/lib/aws/services/virtual-private-cloud/main.ts +4 -4
- package/src/lib/aws/services/virtual-private-cloud/types.ts +0 -1
- package/src/lib/aws/services/web-application-firewall/index.ts +2 -2
- package/src/lib/aws/services/web-application-firewall/main.ts +3 -3
- package/src/lib/aws/services/web-application-firewall/types.ts +0 -1
- package/src/lib/aws/utils/index.ts +1 -1
- package/src/lib/azure/common/construct.ts +16 -16
- package/src/lib/azure/common/index.ts +6 -6
- package/src/lib/azure/common/resource-name-formatter.ts +1 -2
- package/src/lib/azure/common/stack.ts +5 -5
- package/src/lib/azure/common/tagging.ts +1 -1
- package/src/lib/azure/common/types.ts +3 -3
- package/src/lib/azure/index.ts +4 -4
- package/src/lib/azure/services/api-management/index.ts +2 -2
- package/src/lib/azure/services/api-management/main.ts +20 -20
- package/src/lib/azure/services/api-management/types.ts +6 -6
- package/src/lib/azure/services/app-configuration/index.ts +2 -2
- package/src/lib/azure/services/app-configuration/main.ts +5 -5
- package/src/lib/azure/services/app-configuration/types.ts +1 -1
- package/src/lib/azure/services/app-service/index.ts +2 -2
- package/src/lib/azure/services/app-service/main.ts +6 -6
- package/src/lib/azure/services/app-service/types.ts +2 -2
- package/src/lib/azure/services/application-insights/index.ts +2 -2
- package/src/lib/azure/services/application-insights/main.ts +5 -5
- package/src/lib/azure/services/application-insights/types.ts +1 -1
- package/src/lib/azure/services/cosmosdb/index.ts +2 -2
- package/src/lib/azure/services/cosmosdb/main.ts +7 -7
- package/src/lib/azure/services/cosmosdb/types.ts +3 -3
- package/src/lib/azure/services/dns/index.ts +2 -2
- package/src/lib/azure/services/dns/main.ts +8 -8
- package/src/lib/azure/services/dns/types.ts +4 -4
- package/src/lib/azure/services/eventgrid/index.ts +2 -2
- package/src/lib/azure/services/eventgrid/main.ts +10 -10
- package/src/lib/azure/services/eventgrid/types.ts +3 -3
- package/src/lib/azure/services/function/index.ts +2 -2
- package/src/lib/azure/services/function/main.ts +7 -7
- package/src/lib/azure/services/function/types.ts +3 -3
- package/src/lib/azure/services/index.ts +15 -15
- package/src/lib/azure/services/key-vault/index.ts +2 -2
- package/src/lib/azure/services/key-vault/main.ts +5 -5
- package/src/lib/azure/services/key-vault/types.ts +1 -1
- package/src/lib/azure/services/log-analytics-workspace/index.ts +2 -2
- package/src/lib/azure/services/log-analytics-workspace/main.ts +5 -5
- package/src/lib/azure/services/log-analytics-workspace/types.ts +1 -1
- package/src/lib/azure/services/monitor/index.ts +2 -2
- package/src/lib/azure/services/monitor/main.ts +4 -4
- package/src/lib/azure/services/monitor/types.ts +1 -1
- package/src/lib/azure/services/redis/index.ts +2 -2
- package/src/lib/azure/services/redis/main.ts +5 -5
- package/src/lib/azure/services/redis/types.ts +1 -1
- package/src/lib/azure/services/resource-group/index.ts +2 -2
- package/src/lib/azure/services/resource-group/main.ts +4 -4
- package/src/lib/azure/services/resource-group/types.ts +1 -1
- package/src/lib/azure/services/servicebus/index.ts +2 -2
- package/src/lib/azure/services/servicebus/main.ts +12 -12
- package/src/lib/azure/services/servicebus/types.ts +5 -5
- package/src/lib/azure/services/storage/index.ts +2 -2
- package/src/lib/azure/services/storage/main.ts +11 -11
- package/src/lib/azure/services/storage/types.ts +6 -7
- package/src/lib/azure/utils/index.ts +1 -1
- package/src/lib/cloudflare/common/construct.ts +7 -7
- package/src/lib/cloudflare/common/index.ts +4 -4
- package/src/lib/cloudflare/common/stack.ts +3 -3
- package/src/lib/cloudflare/common/types.ts +3 -3
- package/src/lib/cloudflare/construct/index.ts +2 -2
- package/src/lib/cloudflare/construct/pages-static-site/index.ts +2 -2
- package/src/lib/cloudflare/construct/pages-static-site/main.ts +11 -11
- package/src/lib/cloudflare/construct/pages-static-site/types.ts +2 -2
- package/src/lib/cloudflare/construct/worker-site/index.ts +2 -2
- package/src/lib/cloudflare/construct/worker-site/main.ts +10 -10
- package/src/lib/cloudflare/construct/worker-site/types.ts +8 -2
- package/src/lib/cloudflare/index.ts +5 -5
- package/src/lib/cloudflare/services/access/index.ts +2 -2
- package/src/lib/cloudflare/services/access/main.ts +17 -17
- package/src/lib/cloudflare/services/access/types.ts +11 -11
- package/src/lib/cloudflare/services/api-shield/index.ts +2 -2
- package/src/lib/cloudflare/services/api-shield/main.ts +8 -8
- package/src/lib/cloudflare/services/api-shield/types.ts +6 -7
- package/src/lib/cloudflare/services/argo/index.ts +2 -2
- package/src/lib/cloudflare/services/argo/main.ts +5 -6
- package/src/lib/cloudflare/services/argo/types.ts +2 -2
- package/src/lib/cloudflare/services/filter/index.ts +2 -2
- package/src/lib/cloudflare/services/filter/main.ts +4 -4
- package/src/lib/cloudflare/services/filter/types.ts +1 -1
- package/src/lib/cloudflare/services/firewall/index.ts +2 -2
- package/src/lib/cloudflare/services/firewall/main.ts +4 -4
- package/src/lib/cloudflare/services/firewall/types.ts +1 -1
- package/src/lib/cloudflare/services/index.ts +10 -10
- package/src/lib/cloudflare/services/page/index.ts +2 -2
- package/src/lib/cloudflare/services/page/main.ts +6 -6
- package/src/lib/cloudflare/services/page/types.ts +3 -3
- package/src/lib/cloudflare/services/record/index.ts +2 -2
- package/src/lib/cloudflare/services/record/main.ts +4 -4
- package/src/lib/cloudflare/services/record/types.ts +1 -1
- package/src/lib/cloudflare/services/rule-set/index.ts +2 -2
- package/src/lib/cloudflare/services/rule-set/main.ts +4 -5
- package/src/lib/cloudflare/services/rule-set/types.ts +1 -1
- package/src/lib/cloudflare/services/worker/index.ts +2 -2
- package/src/lib/cloudflare/services/worker/main.ts +9 -9
- package/src/lib/cloudflare/services/worker/types.ts +6 -6
- package/src/lib/cloudflare/services/zone/index.ts +2 -2
- package/src/lib/cloudflare/services/zone/main.ts +12 -12
- package/src/lib/cloudflare/services/zone/types.ts +9 -9
- package/src/lib/cloudflare/utils/index.ts +1 -1
- package/src/lib/common/construct.ts +1 -1
- package/src/lib/common/index.ts +4 -4
- package/src/lib/common/stack.ts +1 -1
- package/src/lib/common/utils.ts +17 -4
- package/src/lib/index.ts +4 -4
- package/vitest.config.ts +38 -0
|
@@ -1,44 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
__exportStar(require("./elastic-kubernetes-service"), exports);
|
|
30
|
-
__exportStar(require("./elasticache"), exports);
|
|
31
|
-
__exportStar(require("./eventbridge"), exports);
|
|
32
|
-
__exportStar(require("./evidently"), exports);
|
|
33
|
-
__exportStar(require("./identity-access-management"), exports);
|
|
34
|
-
__exportStar(require("./key-management-service"), exports);
|
|
35
|
-
__exportStar(require("./lambda"), exports);
|
|
36
|
-
__exportStar(require("./route53"), exports);
|
|
37
|
-
__exportStar(require("./secrets-manager"), exports);
|
|
38
|
-
__exportStar(require("./simple-notification-service"), exports);
|
|
39
|
-
__exportStar(require("./simple-queue-service"), exports);
|
|
40
|
-
__exportStar(require("./simple-storage-service"), exports);
|
|
41
|
-
__exportStar(require("./step-function"), exports);
|
|
42
|
-
__exportStar(require("./systems-manager"), exports);
|
|
43
|
-
__exportStar(require("./virtual-private-cloud"), exports);
|
|
44
|
-
__exportStar(require("./web-application-firewall"), exports);
|
|
1
|
+
export * from './api-gateway/index.js';
|
|
2
|
+
export * from './appconfig/index.js';
|
|
3
|
+
export * from './certificate-manager/index.js';
|
|
4
|
+
export * from './cloudfront/index.js';
|
|
5
|
+
export * from './cloudtrail/index.js';
|
|
6
|
+
export * from './cloudwatch/index.js';
|
|
7
|
+
export * from './codebuild/index.js';
|
|
8
|
+
export * from './constants.js';
|
|
9
|
+
export * from './dynamodb/index.js';
|
|
10
|
+
export * from './elastic-container-registry/index.js';
|
|
11
|
+
export * from './elastic-container-service/index.js';
|
|
12
|
+
export * from './elastic-file-system/index.js';
|
|
13
|
+
export * from './elastic-kubernetes-service/index.js';
|
|
14
|
+
export * from './elasticache/index.js';
|
|
15
|
+
export * from './eventbridge/index.js';
|
|
16
|
+
export * from './evidently/index.js';
|
|
17
|
+
export * from './identity-access-management/index.js';
|
|
18
|
+
export * from './key-management-service/index.js';
|
|
19
|
+
export * from './lambda/index.js';
|
|
20
|
+
export * from './route53/index.js';
|
|
21
|
+
export * from './secrets-manager/index.js';
|
|
22
|
+
export * from './simple-notification-service/index.js';
|
|
23
|
+
export * from './simple-queue-service/index.js';
|
|
24
|
+
export * from './simple-storage-service/index.js';
|
|
25
|
+
export * from './step-function/index.js';
|
|
26
|
+
export * from './systems-manager/index.js';
|
|
27
|
+
export * from './virtual-private-cloud/index.js';
|
|
28
|
+
export * from './web-application-firewall/index.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './main';
|
|
2
|
-
export * from './types';
|
|
1
|
+
export * from './main.js';
|
|
2
|
+
export * from './types.js';
|
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./main"), exports);
|
|
18
|
-
__exportStar(require("./types"), exports);
|
|
1
|
+
export * from './main.js';
|
|
2
|
+
export * from './types.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Key } from 'aws-cdk-lib/aws-kms';
|
|
2
|
-
import { CommonConstruct } from '../../common';
|
|
3
|
-
import { KmsKeyProps } from './types';
|
|
2
|
+
import { CommonConstruct } from '../../common/index.js';
|
|
3
|
+
import { KmsKeyProps } from './types.js';
|
|
4
4
|
/**
|
|
5
5
|
* @classdesc Provides operations on AWS KMS.
|
|
6
6
|
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.KmsManager = void 0;
|
|
4
|
-
const aws_kms_1 = require("aws-cdk-lib/aws-kms");
|
|
5
|
-
const utils_1 = require("../../utils");
|
|
1
|
+
import { Key } from 'aws-cdk-lib/aws-kms';
|
|
2
|
+
import { createCfnOutput } from '../../utils/index.js';
|
|
6
3
|
/**
|
|
7
4
|
* @classdesc Provides operations on AWS KMS.
|
|
8
5
|
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
@@ -19,7 +16,7 @@ const utils_1 = require("../../utils");
|
|
|
19
16
|
* }
|
|
20
17
|
* @see [CDK KMS Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kms-readme.html}
|
|
21
18
|
*/
|
|
22
|
-
class KmsManager {
|
|
19
|
+
export class KmsManager {
|
|
23
20
|
/**
|
|
24
21
|
* @summary Method to create a KMS key
|
|
25
22
|
* @param id scoped id of the resource
|
|
@@ -31,13 +28,12 @@ class KmsManager {
|
|
|
31
28
|
throw `KMS Key props undefined for ${id}`;
|
|
32
29
|
if (!props.alias)
|
|
33
30
|
throw `KMS Key alias undefined for ${id}`;
|
|
34
|
-
const key = new
|
|
31
|
+
const key = new Key(scope, `${id}`, {
|
|
35
32
|
...props,
|
|
36
33
|
alias: scope.resourceNameFormatter.format(props.alias, scope.props.resourceNameOptions?.kms),
|
|
37
34
|
});
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
createCfnOutput(`${id}-keyId`, scope, key.keyId);
|
|
36
|
+
createCfnOutput(`${id}-keyArn`, scope, key.keyArn);
|
|
40
37
|
return key;
|
|
41
38
|
}
|
|
42
39
|
}
|
|
43
|
-
exports.KmsManager = KmsManager;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './main';
|
|
2
|
-
export * from './types';
|
|
1
|
+
export * from './main.js';
|
|
2
|
+
export * from './types.js';
|
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./main"), exports);
|
|
18
|
-
__exportStar(require("./types"), exports);
|
|
1
|
+
export * from './main.js';
|
|
2
|
+
export * from './types.js';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { experimental } from 'aws-cdk-lib/aws-cloudfront';
|
|
1
2
|
import { ISecurityGroup, IVpc, SubnetSelection } from 'aws-cdk-lib/aws-ec2';
|
|
2
3
|
import { IAccessPoint } from 'aws-cdk-lib/aws-efs';
|
|
3
4
|
import { CfnRole, Role } from 'aws-cdk-lib/aws-iam';
|
|
4
5
|
import { Alias, Architecture, AssetCode, DockerImageCode, DockerImageFunction, Function, ILayerVersion, IVersion, LayerVersion } from 'aws-cdk-lib/aws-lambda';
|
|
5
|
-
import { CommonConstruct } from '../../common';
|
|
6
|
-
import { LambdaAliasProps, LambdaEdgeProps, LambdaProps } from './types';
|
|
6
|
+
import { CommonConstruct } from '../../common/index.js';
|
|
7
|
+
import { LambdaAliasProps, LambdaEdgeProps, LambdaProps } from './types.js';
|
|
7
8
|
/**
|
|
8
9
|
* @classdesc Provides operations on AWS Lambda
|
|
9
10
|
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
@@ -61,7 +62,7 @@ export declare class LambdaManager {
|
|
|
61
62
|
* @param accessPoint
|
|
62
63
|
* @param mountPath
|
|
63
64
|
*/
|
|
64
|
-
createEdgeFunction(id: string, scope: CommonConstruct, props: LambdaEdgeProps, layers: ILayerVersion[], code: AssetCode, role: Role, environment?: any, vpc?: IVpc, securityGroups?: ISecurityGroup[], accessPoint?: IAccessPoint, mountPath?: string):
|
|
65
|
+
createEdgeFunction(id: string, scope: CommonConstruct, props: LambdaEdgeProps, layers: ILayerVersion[], code: AssetCode, role: Role, environment?: any, vpc?: IVpc, securityGroups?: ISecurityGroup[], accessPoint?: IAccessPoint, mountPath?: string): experimental.EdgeFunction;
|
|
65
66
|
/**
|
|
66
67
|
* @summary Method to create a lambda function (nodejs) with docker image
|
|
67
68
|
* @param id scoped id of the resource
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const aws_lambda_1 = require("aws-cdk-lib/aws-lambda");
|
|
10
|
-
const aws_lambda_event_sources_1 = require("aws-cdk-lib/aws-lambda-event-sources");
|
|
11
|
-
const lodash_1 = __importDefault(require("lodash"));
|
|
12
|
-
const common_1 = require("../../common");
|
|
13
|
-
const utils_1 = require("../../utils");
|
|
14
|
-
const cloudfront_1 = require("../cloudfront");
|
|
1
|
+
import { Duration, RemovalPolicy, Tags } from 'aws-cdk-lib';
|
|
2
|
+
import { Role } from 'aws-cdk-lib/aws-iam';
|
|
3
|
+
import { Alias, Architecture, DockerImageFunction, FileSystem, Function, LayerVersion, } from 'aws-cdk-lib/aws-lambda';
|
|
4
|
+
import { SqsEventSource } from 'aws-cdk-lib/aws-lambda-event-sources';
|
|
5
|
+
import _ from 'lodash';
|
|
6
|
+
import { CommonStack } from '../../common/index.js';
|
|
7
|
+
import { createCfnOutput } from '../../utils/index.js';
|
|
8
|
+
import { CloudFrontManager } from '../cloudfront/index.js';
|
|
15
9
|
/**
|
|
16
10
|
* @classdesc Provides operations on AWS Lambda
|
|
17
11
|
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
@@ -28,7 +22,7 @@ const cloudfront_1 = require("../cloudfront");
|
|
|
28
22
|
* }
|
|
29
23
|
* @see [CDK Lambda Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda-readme.html}
|
|
30
24
|
*/
|
|
31
|
-
class LambdaManager {
|
|
25
|
+
export class LambdaManager {
|
|
32
26
|
/**
|
|
33
27
|
* @summary Method to create a lambda layer (nodejs)
|
|
34
28
|
* @param id scoped id of the resource
|
|
@@ -37,20 +31,20 @@ class LambdaManager {
|
|
|
37
31
|
* @param architectures
|
|
38
32
|
*/
|
|
39
33
|
createLambdaLayer(id, scope, code, architectures) {
|
|
40
|
-
const lambdaLayer = new
|
|
34
|
+
const lambdaLayer = new LayerVersion(scope, `${id}`, {
|
|
41
35
|
code: code,
|
|
42
|
-
compatibleArchitectures: architectures ?? [
|
|
43
|
-
compatibleRuntimes: [scope.props.nodejsRuntime ??
|
|
36
|
+
compatibleArchitectures: architectures ?? [Architecture.ARM_64],
|
|
37
|
+
compatibleRuntimes: [scope.props.nodejsRuntime ?? CommonStack.NODEJS_RUNTIME],
|
|
44
38
|
description: `${id}`,
|
|
45
39
|
layerVersionName: scope.resourceNameFormatter.format(id, scope.props.resourceNameOptions?.lambdaLayer),
|
|
46
40
|
});
|
|
47
|
-
|
|
41
|
+
createCfnOutput(`${id}-lambdaLayerArn`, scope, lambdaLayer.layerVersionArn);
|
|
48
42
|
return lambdaLayer;
|
|
49
43
|
}
|
|
50
44
|
createWebAdapterLayer(id, scope) {
|
|
51
45
|
return [
|
|
52
|
-
|
|
53
|
-
|
|
46
|
+
LayerVersion.fromLayerVersionArn(scope, `${id}-${Architecture.X86_64}`, `arn:aws:lambda:${scope.props.region}:753240598075:layer:LambdaAdapterLayerX86:17`),
|
|
47
|
+
LayerVersion.fromLayerVersionArn(scope, `${id}-${Architecture.ARM_64}`, `arn:aws:lambda:${scope.props.region}:753240598075:layer:LambdaAdapterLayerArm64:17`),
|
|
54
48
|
];
|
|
55
49
|
}
|
|
56
50
|
/**
|
|
@@ -80,11 +74,10 @@ class LambdaManager {
|
|
|
80
74
|
const redriveQueue = scope.sqsManager.createRedriveQueueForLambda(`${id}-rdq`, scope, props);
|
|
81
75
|
deadLetterQueue = scope.sqsManager.createDeadLetterQueueForLambda(`${id}-dlq`, scope, props, redriveQueue);
|
|
82
76
|
}
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
...lambdaProps,
|
|
77
|
+
const lambdaFunction = new Function(scope, `${id}`, {
|
|
78
|
+
...props,
|
|
86
79
|
allowPublicSubnet: !!vpc,
|
|
87
|
-
architecture: props.architecture ??
|
|
80
|
+
architecture: props.architecture ?? Architecture.ARM_64,
|
|
88
81
|
code,
|
|
89
82
|
deadLetterQueue,
|
|
90
83
|
environment: {
|
|
@@ -93,36 +86,36 @@ class LambdaManager {
|
|
|
93
86
|
STAGE: scope.props.stage,
|
|
94
87
|
...environment,
|
|
95
88
|
},
|
|
96
|
-
filesystem: accessPoint ?
|
|
89
|
+
filesystem: accessPoint ? FileSystem.fromEfsAccessPoint(accessPoint, mountPath || '/mnt/msg') : undefined,
|
|
97
90
|
functionName,
|
|
98
91
|
handler: handler || 'index.lambda_handler',
|
|
99
92
|
layers,
|
|
100
93
|
logGroup: scope.logManager.createLogGroup(`${id}-log-group`, scope, {
|
|
101
94
|
logGroupName: functionName,
|
|
102
|
-
removalPolicy:
|
|
103
|
-
retention: scope.props.logRetention ??
|
|
95
|
+
removalPolicy: RemovalPolicy.DESTROY,
|
|
96
|
+
retention: scope.props.logRetention ?? props.logRetentionInDays,
|
|
104
97
|
}),
|
|
105
98
|
reservedConcurrentExecutions: props.reservedConcurrentExecutions ?? scope.props.defaultReservedLambdaConcurrentExecutions,
|
|
106
|
-
role: role instanceof
|
|
107
|
-
runtime: props.runtime ?? scope.props.nodejsRuntime ??
|
|
99
|
+
role: role instanceof Role ? role : undefined,
|
|
100
|
+
runtime: props.runtime ?? scope.props.nodejsRuntime ?? CommonStack.NODEJS_RUNTIME,
|
|
108
101
|
securityGroups,
|
|
109
|
-
timeout: props.timeoutInSecs ?
|
|
102
|
+
timeout: props.timeoutInSecs ? Duration.seconds(props.timeoutInSecs) : Duration.minutes(15),
|
|
110
103
|
tracing: scope.props.defaultTracing ?? props.tracing,
|
|
111
104
|
vpc,
|
|
112
105
|
vpcSubnets,
|
|
113
106
|
});
|
|
114
107
|
if (lambdaFunction.deadLetterQueue && props.dlq?.retriesEnabled) {
|
|
115
|
-
lambdaFunction.addEventSource(new
|
|
108
|
+
lambdaFunction.addEventSource(new SqsEventSource(lambdaFunction.deadLetterQueue, {
|
|
116
109
|
batchSize: props.dlq.retryBatchSize ?? 1,
|
|
117
110
|
reportBatchItemFailures: true,
|
|
118
111
|
}));
|
|
119
112
|
}
|
|
120
|
-
if (props.lambdaAliases && !
|
|
113
|
+
if (props.lambdaAliases && !_.isEmpty(props.lambdaAliases)) {
|
|
121
114
|
props.lambdaAliases.forEach(alias => {
|
|
122
115
|
const aliasId = alias.id ?? `${id}-${alias.aliasName}`;
|
|
123
116
|
const functionAlias = this.createLambdaFunctionAlias(`${aliasId}`, scope, alias, lambdaFunction.currentVersion);
|
|
124
|
-
|
|
125
|
-
|
|
117
|
+
createCfnOutput(`${id}-${alias.aliasName}AliasArn`, scope, functionAlias.functionArn);
|
|
118
|
+
createCfnOutput(`${id}-${alias.aliasName}AliasName`, scope, functionAlias.aliasName);
|
|
126
119
|
if (alias.provisionedConcurrency) {
|
|
127
120
|
const functionAutoScaling = functionAlias.addAutoScaling(alias.provisionedConcurrency);
|
|
128
121
|
functionAutoScaling.scaleOnUtilization({
|
|
@@ -131,13 +124,13 @@ class LambdaManager {
|
|
|
131
124
|
}
|
|
132
125
|
});
|
|
133
126
|
}
|
|
134
|
-
if (props.tags && !
|
|
135
|
-
|
|
136
|
-
|
|
127
|
+
if (props.tags && !_.isEmpty(props.tags)) {
|
|
128
|
+
_.forEach(props.tags, tag => {
|
|
129
|
+
Tags.of(lambdaFunction).add(tag.key, tag.value);
|
|
137
130
|
});
|
|
138
131
|
}
|
|
139
|
-
|
|
140
|
-
|
|
132
|
+
createCfnOutput(`${id}-lambdaArn`, scope, lambdaFunction.functionArn);
|
|
133
|
+
createCfnOutput(`${id}-lambdaName`, scope, lambdaFunction.functionName);
|
|
141
134
|
return lambdaFunction;
|
|
142
135
|
}
|
|
143
136
|
/**
|
|
@@ -155,7 +148,7 @@ class LambdaManager {
|
|
|
155
148
|
* @param mountPath
|
|
156
149
|
*/
|
|
157
150
|
createEdgeFunction(id, scope, props, layers, code, role, environment, vpc, securityGroups, accessPoint, mountPath) {
|
|
158
|
-
return new
|
|
151
|
+
return new CloudFrontManager().createEdgeFunction(id, scope, props, layers, code, role, environment, vpc, securityGroups, accessPoint, mountPath);
|
|
159
152
|
}
|
|
160
153
|
/**
|
|
161
154
|
* @summary Method to create a lambda function (nodejs) with docker image
|
|
@@ -182,11 +175,10 @@ class LambdaManager {
|
|
|
182
175
|
const redriveQueue = scope.sqsManager.createRedriveQueueForLambda(`${id}-rdq`, scope, props);
|
|
183
176
|
deadLetterQueue = scope.sqsManager.createDeadLetterQueueForLambda(`${id}-dlq`, scope, props, redriveQueue);
|
|
184
177
|
}
|
|
185
|
-
const
|
|
186
|
-
|
|
187
|
-
...lambdaProps,
|
|
178
|
+
const lambdaFunction = new DockerImageFunction(scope, `${id}`, {
|
|
179
|
+
...props,
|
|
188
180
|
allowPublicSubnet: !!vpc,
|
|
189
|
-
architecture: props.architecture ??
|
|
181
|
+
architecture: props.architecture ?? Architecture.ARM_64,
|
|
190
182
|
code,
|
|
191
183
|
deadLetterQueue,
|
|
192
184
|
environment: {
|
|
@@ -195,28 +187,28 @@ class LambdaManager {
|
|
|
195
187
|
STAGE: scope.props.stage,
|
|
196
188
|
...environment,
|
|
197
189
|
},
|
|
198
|
-
filesystem: accessPoint ?
|
|
190
|
+
filesystem: accessPoint ? FileSystem.fromEfsAccessPoint(accessPoint, mountPath || '/mnt/msg') : undefined,
|
|
199
191
|
functionName,
|
|
200
192
|
logGroup: scope.logManager.createLogGroup(`${id}-log-group`, scope, {
|
|
201
193
|
logGroupName: functionName,
|
|
202
|
-
removalPolicy:
|
|
203
|
-
retention: scope.props.logRetention ??
|
|
194
|
+
removalPolicy: RemovalPolicy.DESTROY,
|
|
195
|
+
retention: scope.props.logRetention ?? props.logRetentionInDays,
|
|
204
196
|
}),
|
|
205
|
-
role: role instanceof
|
|
197
|
+
role: role instanceof Role ? role : undefined,
|
|
206
198
|
securityGroups: securityGroups,
|
|
207
|
-
timeout: props.timeoutInSecs ?
|
|
199
|
+
timeout: props.timeoutInSecs ? Duration.seconds(props.timeoutInSecs) : Duration.minutes(1),
|
|
208
200
|
tracing: props.tracing,
|
|
209
201
|
vpc,
|
|
210
202
|
vpcSubnets,
|
|
211
203
|
});
|
|
212
204
|
if (lambdaFunction.deadLetterQueue && props.dlq?.retriesEnabled) {
|
|
213
|
-
lambdaFunction.addEventSource(new
|
|
205
|
+
lambdaFunction.addEventSource(new SqsEventSource(lambdaFunction.deadLetterQueue, {
|
|
214
206
|
batchSize: props.dlq.retryBatchSize ?? 1,
|
|
215
207
|
reportBatchItemFailures: true,
|
|
216
208
|
}));
|
|
217
209
|
}
|
|
218
|
-
|
|
219
|
-
|
|
210
|
+
createCfnOutput(`${id}-lambdaArn`, scope, lambdaFunction.functionArn);
|
|
211
|
+
createCfnOutput(`${id}-lambdaName`, scope, lambdaFunction.functionName);
|
|
220
212
|
return lambdaFunction;
|
|
221
213
|
}
|
|
222
214
|
/**
|
|
@@ -229,13 +221,12 @@ class LambdaManager {
|
|
|
229
221
|
createLambdaFunctionAlias(id, scope, props, lambdaVersion) {
|
|
230
222
|
if (!props)
|
|
231
223
|
throw `Lambda Alias props undefined for ${id}`;
|
|
232
|
-
const lambdaFunctionAlias = new
|
|
224
|
+
const lambdaFunctionAlias = new Alias(scope, `${id}`, {
|
|
233
225
|
...props,
|
|
234
226
|
version: lambdaVersion,
|
|
235
227
|
});
|
|
236
|
-
|
|
237
|
-
|
|
228
|
+
createCfnOutput(`${id}-lambdaAliasName`, scope, lambdaFunctionAlias.functionArn);
|
|
229
|
+
createCfnOutput(`${id}-lambdaAliasArn`, scope, lambdaFunctionAlias.functionName);
|
|
238
230
|
return lambdaFunctionAlias;
|
|
239
231
|
}
|
|
240
232
|
}
|
|
241
|
-
exports.LambdaManager = LambdaManager;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { EdgeFunctionProps } from 'aws-cdk-lib/aws-cloudfront/lib/experimental';
|
|
1
|
+
import { EdgeFunctionProps } from 'aws-cdk-lib/aws-cloudfront/lib/experimental/edge-function.js';
|
|
2
2
|
import { AliasProps, FunctionProps } from 'aws-cdk-lib/aws-lambda';
|
|
3
3
|
import { SqsEventSourceProps } from 'aws-cdk-lib/aws-lambda-event-sources';
|
|
4
|
-
import { TagProps } from '../../types';
|
|
5
|
-
import { QueueProps } from '../simple-queue-service';
|
|
4
|
+
import { TagProps } from '../../types/index.js';
|
|
5
|
+
import { QueueProps } from '../simple-queue-service/index.js';
|
|
6
6
|
/**
|
|
7
7
|
*/
|
|
8
8
|
export interface ProvisionedConcurrencyProps {
|
|
@@ -17,6 +17,7 @@ export interface LambdaProps extends FunctionProps {
|
|
|
17
17
|
excludeLastModifiedTimestamp?: boolean;
|
|
18
18
|
lambdaAliases?: LambdaAliasProps[];
|
|
19
19
|
logLevel?: string;
|
|
20
|
+
logRetentionInDays?: number;
|
|
20
21
|
redriveq?: QueueProps;
|
|
21
22
|
tags?: TagProps[];
|
|
22
23
|
timeoutInSecs?: number;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './main';
|
|
2
|
-
export * from './types';
|
|
1
|
+
export * from './main.js';
|
|
2
|
+
export * from './types.js';
|
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./main"), exports);
|
|
18
|
-
__exportStar(require("./types"), exports);
|
|
1
|
+
export * from './main.js';
|
|
2
|
+
export * from './types.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DomainName } from 'aws-cdk-lib/aws-apigateway';
|
|
2
2
|
import { IDistribution } from 'aws-cdk-lib/aws-cloudfront';
|
|
3
3
|
import { ARecord, IHostedZone } from 'aws-cdk-lib/aws-route53';
|
|
4
|
-
import { CommonConstruct } from '../../common';
|
|
5
|
-
import { Route53Props } from './types';
|
|
4
|
+
import { CommonConstruct } from '../../common/index.js';
|
|
5
|
+
import { Route53Props } from './types.js';
|
|
6
6
|
/**
|
|
7
7
|
* @classdesc Provides operations on AWS Route53
|
|
8
8
|
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const aws_route53_1 = require("aws-cdk-lib/aws-route53");
|
|
5
|
-
const aws_route53_targets_1 = require("aws-cdk-lib/aws-route53-targets");
|
|
6
|
-
const utils_1 = require("../../utils");
|
|
1
|
+
import { ARecord, HostedZone, RecordTarget } from 'aws-cdk-lib/aws-route53';
|
|
2
|
+
import { ApiGatewayDomain, CloudFrontTarget } from 'aws-cdk-lib/aws-route53-targets';
|
|
3
|
+
import { createCfnOutput } from '../../utils/index.js';
|
|
7
4
|
/**
|
|
8
5
|
* @classdesc Provides operations on AWS Route53
|
|
9
6
|
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
@@ -20,7 +17,7 @@ const utils_1 = require("../../utils");
|
|
|
20
17
|
* }
|
|
21
18
|
* @see [CDK Route53 Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_route53-readme.html}
|
|
22
19
|
*/
|
|
23
|
-
class Route53Manager {
|
|
20
|
+
export class Route53Manager {
|
|
24
21
|
/**
|
|
25
22
|
* @summary Method to create a hosted zone
|
|
26
23
|
* @param id scoped id of the resource
|
|
@@ -32,18 +29,18 @@ class Route53Manager {
|
|
|
32
29
|
if (!props)
|
|
33
30
|
throw `Route53 props undefined for ${id}`;
|
|
34
31
|
if (props.useExistingHostedZone) {
|
|
35
|
-
hostedZone =
|
|
32
|
+
hostedZone = HostedZone.fromLookup(scope, `${id}`, {
|
|
36
33
|
domainName: scope.props.domainName,
|
|
37
34
|
});
|
|
38
35
|
}
|
|
39
36
|
else {
|
|
40
|
-
hostedZone = new
|
|
37
|
+
hostedZone = new HostedZone(scope, `${id}`, {
|
|
41
38
|
comment: `Hosted zone for ${scope.props.domainName}`,
|
|
42
39
|
zoneName: scope.props.domainName,
|
|
43
40
|
});
|
|
44
41
|
}
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
createCfnOutput(`${id}-hostedZoneId`, scope, hostedZone.hostedZoneId);
|
|
43
|
+
createCfnOutput(`${id}-hostedZoneArn`, scope, hostedZone.hostedZoneArn);
|
|
47
44
|
return hostedZone;
|
|
48
45
|
}
|
|
49
46
|
/**
|
|
@@ -55,18 +52,18 @@ class Route53Manager {
|
|
|
55
52
|
withHostedZoneFromFullyQualifiedDomainName(id, scope, useExistingHostedZone) {
|
|
56
53
|
let hostedZone;
|
|
57
54
|
if (useExistingHostedZone) {
|
|
58
|
-
hostedZone =
|
|
55
|
+
hostedZone = HostedZone.fromLookup(scope, `${id}`, {
|
|
59
56
|
domainName: scope.fullyQualifiedDomainName,
|
|
60
57
|
});
|
|
61
58
|
}
|
|
62
59
|
else {
|
|
63
|
-
hostedZone = new
|
|
60
|
+
hostedZone = new HostedZone(scope, `${id}`, {
|
|
64
61
|
comment: `Hosted zone for ${scope.fullyQualifiedDomainName}`,
|
|
65
62
|
zoneName: scope.fullyQualifiedDomainName,
|
|
66
63
|
});
|
|
67
64
|
}
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
createCfnOutput(`${id}-hostedZoneId`, scope, hostedZone.hostedZoneId);
|
|
66
|
+
createCfnOutput(`${id}-hostedZoneArn`, scope, hostedZone.hostedZoneArn);
|
|
70
67
|
return hostedZone;
|
|
71
68
|
}
|
|
72
69
|
/**
|
|
@@ -83,14 +80,14 @@ class Route53Manager {
|
|
|
83
80
|
throw `Distribution undefined for ${id}`;
|
|
84
81
|
if (!hostedZone)
|
|
85
82
|
throw `HostedZone undefined for ${id}`;
|
|
86
|
-
const aRecord = new
|
|
83
|
+
const aRecord = new ARecord(scope, `${id}`, {
|
|
87
84
|
recordName: (recordName && scope.isProductionStage()) || skipStageFromRecord
|
|
88
85
|
? `${recordName}`
|
|
89
86
|
: `${recordName}-${scope.props.stage}`,
|
|
90
|
-
target:
|
|
87
|
+
target: RecordTarget.fromAlias(new CloudFrontTarget(distribution)),
|
|
91
88
|
zone: hostedZone,
|
|
92
89
|
});
|
|
93
|
-
|
|
90
|
+
createCfnOutput(`${id}-aRecordDomainName`, scope, aRecord.domainName);
|
|
94
91
|
return aRecord;
|
|
95
92
|
}
|
|
96
93
|
/**
|
|
@@ -106,12 +103,12 @@ class Route53Manager {
|
|
|
106
103
|
throw `Distribution undefined for ${id}`;
|
|
107
104
|
if (!hostedZone)
|
|
108
105
|
throw `HostedZone undefined for ${id}`;
|
|
109
|
-
const aRecord = new
|
|
106
|
+
const aRecord = new ARecord(scope, `${id}`, {
|
|
110
107
|
recordName: recordName,
|
|
111
|
-
target:
|
|
108
|
+
target: RecordTarget.fromAlias(new CloudFrontTarget(distribution)),
|
|
112
109
|
zone: hostedZone,
|
|
113
110
|
});
|
|
114
|
-
|
|
111
|
+
createCfnOutput(`${id}-aRecordDomainName`, scope, aRecord.domainName);
|
|
115
112
|
return aRecord;
|
|
116
113
|
}
|
|
117
114
|
/**
|
|
@@ -128,13 +125,12 @@ class Route53Manager {
|
|
|
128
125
|
if (recordName && recordName !== '')
|
|
129
126
|
apiRecordName =
|
|
130
127
|
scope.isProductionStage() || skipStageFromRecord ? `${recordName}` : `${recordName}-${scope.props.stage}`;
|
|
131
|
-
const apiARecord = new
|
|
128
|
+
const apiARecord = new ARecord(scope, `${id}`, {
|
|
132
129
|
recordName: apiRecordName,
|
|
133
|
-
target:
|
|
130
|
+
target: RecordTarget.fromAlias(new ApiGatewayDomain(apiDomain)),
|
|
134
131
|
zone: hostedZone,
|
|
135
132
|
});
|
|
136
|
-
|
|
133
|
+
createCfnOutput(`${id}-a-record-domain-name`, scope, apiARecord.domainName);
|
|
137
134
|
return apiARecord;
|
|
138
135
|
}
|
|
139
136
|
}
|
|
140
|
-
exports.Route53Manager = Route53Manager;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './main';
|
|
2
|
-
export * from './types';
|
|
1
|
+
export * from './main.js';
|
|
2
|
+
export * from './types.js';
|