@gradientedge/cdk-utils 9.84.0 → 9.86.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 +63 -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,2 +1,2 @@
|
|
|
1
|
-
export * from './main'
|
|
2
|
-
export * from './types'
|
|
1
|
+
export * from './main.js'
|
|
2
|
+
export * from './types.js'
|
|
@@ -2,8 +2,8 @@ import { SqsQueue } from 'aws-cdk-lib/aws-events-targets'
|
|
|
2
2
|
import { IQueue } from 'aws-cdk-lib/aws-sqs'
|
|
3
3
|
import { Construct } from 'constructs'
|
|
4
4
|
import _ from 'lodash'
|
|
5
|
-
import { EventHandler } from '../event-handler'
|
|
6
|
-
import { PipedEventHandlerProps } from './types'
|
|
5
|
+
import { EventHandler } from '../event-handler/index.js'
|
|
6
|
+
import { PipedEventHandlerProps } from './types.js'
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @classdesc Provides a construct to create and deploy an EventBridge Piped Event Handler
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { QueueProps } from 'aws-cdk-lib/aws-sqs'
|
|
2
|
-
import { SqsToLambdaPipeProps, SqsToSfnPipeProps } from '../../services'
|
|
3
|
-
import { EventHandlerProps } from '../event-handler'
|
|
2
|
+
import { SqsToLambdaPipeProps, SqsToSfnPipeProps } from '../../services/index.js'
|
|
3
|
+
import { EventHandlerProps } from '../event-handler/index.js'
|
|
4
4
|
|
|
5
5
|
export interface PipedEventHandlerProps extends EventHandlerProps {
|
|
6
6
|
pipedDlq: QueueProps
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './main'
|
|
2
|
-
export * from './types'
|
|
1
|
+
export * from './main.js'
|
|
2
|
+
export * from './types.js'
|
|
@@ -6,8 +6,8 @@ import { IHostedZone } from 'aws-cdk-lib/aws-route53'
|
|
|
6
6
|
import { ISecret } from 'aws-cdk-lib/aws-secretsmanager'
|
|
7
7
|
import { Construct } from 'constructs'
|
|
8
8
|
import _ from 'lodash'
|
|
9
|
-
import { CommonConstruct } from '../../common'
|
|
10
|
-
import { RestApiLambdaEnvironment, RestApiLambdaProps } from './types'
|
|
9
|
+
import { CommonConstruct } from '../../common/index.js'
|
|
10
|
+
import { RestApiLambdaEnvironment, RestApiLambdaProps } from './types.js'
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* @classdesc Provides a construct to create and deploy a RestApi as Lambda
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AcmProps, LambdaEnvironment, LambdaProps, LambdaRestApiProps } from '../../services'
|
|
2
|
-
import { CommonStackProps } from '../../common'
|
|
1
|
+
import { AcmProps, LambdaEnvironment, LambdaProps, LambdaRestApiProps } from '../../services/index.js'
|
|
2
|
+
import { CommonStackProps } from '../../common/index.js'
|
|
3
3
|
import { AssetCode } from 'aws-cdk-lib/aws-lambda'
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './main'
|
|
2
|
-
export * from './types'
|
|
1
|
+
export * from './main.js'
|
|
2
|
+
export * from './types.js'
|
|
@@ -4,9 +4,9 @@ import { CfnReplicationGroup } from 'aws-cdk-lib/aws-elasticache'
|
|
|
4
4
|
import { ManagedPolicy } from 'aws-cdk-lib/aws-iam'
|
|
5
5
|
import { Construct } from 'constructs'
|
|
6
6
|
import _ from 'lodash'
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
7
|
+
import { createCfnOutput } from '../../utils/index.js'
|
|
8
|
+
import { RestApiLambdaWithCacheProps } from './types.js'
|
|
9
|
+
import { RestApiLambda } from '../rest-api-lambda/index.js'
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @classdesc Provides a construct to create and deploy a RestApi API as Lambda with Caching
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RestApiLambdaProps } from '../rest-api-lambda'
|
|
2
|
-
import { ReplicatedElastiCacheProps, VpcProps } from '../../services'
|
|
1
|
+
import { RestApiLambdaProps } from '../rest-api-lambda/index.js'
|
|
2
|
+
import { ReplicatedElastiCacheProps, VpcProps } from '../../services/index.js'
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
*/
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './constants'
|
|
2
|
-
export * from './main'
|
|
3
|
-
export * from './types'
|
|
1
|
+
export * from './constants.js'
|
|
2
|
+
export * from './main.js'
|
|
3
|
+
export * from './types.js'
|
|
@@ -33,8 +33,8 @@ import { IHostedZone } from 'aws-cdk-lib/aws-route53'
|
|
|
33
33
|
import { IBucket } from 'aws-cdk-lib/aws-s3'
|
|
34
34
|
import { Construct } from 'constructs'
|
|
35
35
|
import _ from 'lodash'
|
|
36
|
-
import { CommonConstruct } from '../../common'
|
|
37
|
-
import { SiteCachePolicyProps, SiteResponseHeadersPolicyProps, SiteWithEcsBackendProps } from './types'
|
|
36
|
+
import { CommonConstruct } from '../../common/index.js'
|
|
37
|
+
import { SiteCachePolicyProps, SiteResponseHeadersPolicyProps, SiteWithEcsBackendProps } from './types.js'
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* @classdesc Provides a construct to create and deploy a site hosted with an clustered ECS/ELB backend
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommonStackProps } from '../../common'
|
|
1
|
+
import { CommonStackProps } from '../../common/index.js'
|
|
2
2
|
import {
|
|
3
3
|
AcmProps,
|
|
4
4
|
CloudfrontFunctionProps,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
HealthCheck,
|
|
11
11
|
LogProps,
|
|
12
12
|
S3BucketProps,
|
|
13
|
-
} from '../../services'
|
|
13
|
+
} from '../../services/index.js'
|
|
14
14
|
import { VpcProps } from 'aws-cdk-lib/aws-ec2'
|
|
15
15
|
import {
|
|
16
16
|
OriginRequestPolicyProps,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
ResponseHeadersPolicyProps,
|
|
20
20
|
CachePolicyProps,
|
|
21
21
|
} from 'aws-cdk-lib/aws-cloudfront'
|
|
22
|
-
import { SiteResponseHeaderPolicyType } from './constants'
|
|
22
|
+
import { SiteResponseHeaderPolicyType } from './constants.js'
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*/
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './constants'
|
|
2
|
-
export * from './main'
|
|
3
|
-
export * from './types'
|
|
1
|
+
export * from './constants.js'
|
|
2
|
+
export * from './main.js'
|
|
3
|
+
export * from './types.js'
|
|
@@ -18,13 +18,13 @@ import { IBucket } from 'aws-cdk-lib/aws-s3'
|
|
|
18
18
|
import { BucketDeployment } from 'aws-cdk-lib/aws-s3-deployment'
|
|
19
19
|
import { Construct } from 'constructs'
|
|
20
20
|
import _ from 'lodash'
|
|
21
|
-
import { CommonConstruct } from '../../common'
|
|
22
|
-
import { LAMBDA_ALIAS_NAME_CURRENT } from './constants'
|
|
21
|
+
import { CommonConstruct } from '../../common/index.js'
|
|
22
|
+
import { LAMBDA_ALIAS_NAME_CURRENT } from './constants.js'
|
|
23
23
|
import {
|
|
24
24
|
SiteWithLambdaBackendCachePolicyProps,
|
|
25
25
|
SiteWithLambdaBackendProps,
|
|
26
26
|
SiteWithLambdaBackendResponseHeadersPolicyProps,
|
|
27
|
-
} from './types'
|
|
27
|
+
} from './types.js'
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* @classdesc Provides a construct to create and deploy a site hosted with an clustered ECS/ELB backend
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
ResponseHeadersStrictTransportSecurity,
|
|
6
6
|
ResponseSecurityHeadersBehavior,
|
|
7
7
|
} from 'aws-cdk-lib/aws-cloudfront'
|
|
8
|
-
import { CommonStackProps } from '../../common'
|
|
8
|
+
import { CommonStackProps } from '../../common/index.js'
|
|
9
9
|
import {
|
|
10
10
|
AcmProps,
|
|
11
11
|
CloudfrontFunctionProps,
|
|
@@ -13,8 +13,8 @@ import {
|
|
|
13
13
|
LambdaProps,
|
|
14
14
|
LogProps,
|
|
15
15
|
S3BucketProps,
|
|
16
|
-
} from '../../services'
|
|
17
|
-
import { SiteWithLambdaBackendResponseHeaderPolicyType } from './constants'
|
|
16
|
+
} from '../../services/index.js'
|
|
17
|
+
import { SiteWithLambdaBackendResponseHeaderPolicyType } from './constants.js'
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
*/
|
|
@@ -43,8 +43,7 @@ export interface SiteWithLambdaBackendProps extends CommonStackProps {
|
|
|
43
43
|
useExistingVpc: boolean
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
export interface SiteWithLambdaBackendResponseHeadersStrictTransportSecurity
|
|
47
|
-
extends ResponseHeadersStrictTransportSecurity {
|
|
46
|
+
export interface SiteWithLambdaBackendResponseHeadersStrictTransportSecurity extends ResponseHeadersStrictTransportSecurity {
|
|
48
47
|
accessControlMaxAgeInSeconds: number
|
|
49
48
|
}
|
|
50
49
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './main'
|
|
2
|
-
export * from './types'
|
|
1
|
+
export * from './main.js'
|
|
2
|
+
export * from './types.js'
|
|
@@ -4,8 +4,8 @@ import { IDistribution, DistributionAttributes } from 'aws-cdk-lib/aws-cloudfron
|
|
|
4
4
|
import { Construct } from 'constructs'
|
|
5
5
|
import { BucketDeployment, Source, BucketDeploymentProps, ISource } from 'aws-cdk-lib/aws-s3-deployment'
|
|
6
6
|
import _ from 'lodash'
|
|
7
|
-
import { CommonConstruct } from '../../common'
|
|
8
|
-
import { StaticAssetDeploymentProps } from './types'
|
|
7
|
+
import { CommonConstruct } from '../../common/index.js'
|
|
8
|
+
import { StaticAssetDeploymentProps } from './types.js'
|
|
9
9
|
import appRoot from 'app-root-path'
|
|
10
10
|
import path from 'path'
|
|
11
11
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BucketDeploymentProps, S3BucketProps } from '../../services'
|
|
2
|
-
import { CommonStackProps } from '../../common'
|
|
1
|
+
import { BucketDeploymentProps, S3BucketProps } from '../../services/index.js'
|
|
2
|
+
import { CommonStackProps } from '../../common/index.js'
|
|
3
3
|
|
|
4
4
|
export interface AssetExport {
|
|
5
5
|
key: string
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './main'
|
|
2
|
-
export * from './types'
|
|
1
|
+
export * from './main.js'
|
|
2
|
+
export * from './types.js'
|
|
@@ -6,12 +6,11 @@ import {
|
|
|
6
6
|
IFunction,
|
|
7
7
|
OriginAccessIdentity,
|
|
8
8
|
} from 'aws-cdk-lib/aws-cloudfront'
|
|
9
|
-
import { S3Origin } from 'aws-cdk-lib/aws-cloudfront-origins'
|
|
10
9
|
import { ARecord, IHostedZone } from 'aws-cdk-lib/aws-route53'
|
|
11
10
|
import { IBucket } from 'aws-cdk-lib/aws-s3'
|
|
12
11
|
import { Construct } from 'constructs'
|
|
13
|
-
import { CommonConstruct } from '../../common'
|
|
14
|
-
import { StaticSiteProps } from './types'
|
|
12
|
+
import { CommonConstruct } from '../../common/index.js'
|
|
13
|
+
import { StaticSiteProps } from './types.js'
|
|
15
14
|
|
|
16
15
|
/**
|
|
17
16
|
* @classdesc Provides a construct to create and deploy a s3 hosted static site
|
|
@@ -38,7 +37,6 @@ export class StaticSite extends CommonConstruct {
|
|
|
38
37
|
siteCertificate: ICertificate
|
|
39
38
|
siteARecord: ARecord
|
|
40
39
|
siteBucket: IBucket
|
|
41
|
-
siteOrigin: S3Origin
|
|
42
40
|
siteDistribution: IDistribution
|
|
43
41
|
siteLogBucket: IBucket
|
|
44
42
|
siteOriginAccessIdentity: OriginAccessIdentity
|
|
@@ -60,7 +58,6 @@ export class StaticSite extends CommonConstruct {
|
|
|
60
58
|
this.resolveCertificate()
|
|
61
59
|
this.createSiteLogBucket()
|
|
62
60
|
this.createSiteBucket()
|
|
63
|
-
this.createSiteOrigin()
|
|
64
61
|
this.createSiteCloudfrontFunction()
|
|
65
62
|
this.resolveSiteFunctionAssociations()
|
|
66
63
|
this.createSiteOriginAccessIdentity()
|
|
@@ -118,10 +115,6 @@ export class StaticSite extends CommonConstruct {
|
|
|
118
115
|
this.siteBucket = this.s3Manager.createS3Bucket(`${this.id}-site`, this, this.props.siteBucket)
|
|
119
116
|
}
|
|
120
117
|
|
|
121
|
-
protected createSiteOrigin() {
|
|
122
|
-
this.siteOrigin = new S3Origin(this.siteBucket)
|
|
123
|
-
}
|
|
124
|
-
|
|
125
118
|
/**
|
|
126
119
|
* @summary Method to create a site cloudfront function
|
|
127
120
|
*/
|
|
@@ -164,7 +157,6 @@ export class StaticSite extends CommonConstruct {
|
|
|
164
157
|
`${this.id}-distribution`,
|
|
165
158
|
this,
|
|
166
159
|
this.props.siteDistribution,
|
|
167
|
-
this.siteOrigin,
|
|
168
160
|
this.siteBucket,
|
|
169
161
|
this.siteLogBucket,
|
|
170
162
|
this.siteOriginAccessIdentity,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CommonStackProps } from '../../common'
|
|
2
|
-
import { AcmProps, CloudfrontFunctionProps, DistributionProps, S3BucketProps } from '../../services'
|
|
1
|
+
import { CommonStackProps } from '../../common/index.js'
|
|
2
|
+
import { AcmProps, CloudfrontFunctionProps, DistributionProps, S3BucketProps } from '../../services/index.js'
|
|
3
3
|
import { ISource } from 'aws-cdk-lib/aws-s3-deployment'
|
|
4
4
|
|
|
5
5
|
/**
|
package/src/lib/aws/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './common'
|
|
2
|
-
export * from './construct'
|
|
3
|
-
export * from './services'
|
|
4
|
-
export * from './types'
|
|
5
|
-
export * from './utils'
|
|
1
|
+
export * from './common/index.js'
|
|
2
|
+
export * from './construct/index.js'
|
|
3
|
+
export * from './services/index.js'
|
|
4
|
+
export * from './types/index.js'
|
|
5
|
+
export * from './utils/index.js'
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './main'
|
|
2
|
-
export * from './types'
|
|
1
|
+
export * from './main.js'
|
|
2
|
+
export * from './types.js'
|
|
@@ -16,9 +16,9 @@ import {
|
|
|
16
16
|
import { ICertificate } from 'aws-cdk-lib/aws-certificatemanager'
|
|
17
17
|
import { IFunction } from 'aws-cdk-lib/aws-lambda'
|
|
18
18
|
import _ from 'lodash'
|
|
19
|
-
import { CommonConstruct } from '../../common'
|
|
20
|
-
import { createCfnOutput } from '../../utils'
|
|
21
|
-
import { LambdaRestApiProps } from './types'
|
|
19
|
+
import { CommonConstruct } from '../../common/index.js'
|
|
20
|
+
import { createCfnOutput } from '../../utils/index.js'
|
|
21
|
+
import { LambdaRestApiProps } from './types.js'
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* @classdesc Provides operations on AWS API Gateway.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LambdaRestApiProps as LambdaRestApigProps, RestApiProps } from 'aws-cdk-lib/aws-apigateway'
|
|
2
|
-
import { ResourceNameFormatterProps } from '../../common'
|
|
3
|
-
import { TagProps } from '../../types'
|
|
2
|
+
import { ResourceNameFormatterProps } from '../../common/index.js'
|
|
3
|
+
import { TagProps } from '../../types/index.js'
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
*/
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './constants'
|
|
2
|
-
export * from './main'
|
|
3
|
-
export * from './types'
|
|
1
|
+
export * from './constants.js'
|
|
2
|
+
export * from './main.js'
|
|
3
|
+
export * from './types.js'
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
DeploymentStrategy,
|
|
7
7
|
RolloutStrategy,
|
|
8
8
|
} from 'aws-cdk-lib/aws-appconfig'
|
|
9
|
-
import { CommonConstruct } from '../../common'
|
|
10
|
-
import { createCfnOutput } from '../../utils'
|
|
11
|
-
import { Architecture } from '../constants'
|
|
12
|
-
import { ArnsByRegionForArm64, ArnsByRegionForX86_64 } from './constants'
|
|
13
|
-
import { AppConfigProps } from './types'
|
|
9
|
+
import { CommonConstruct } from '../../common/index.js'
|
|
10
|
+
import { createCfnOutput } from '../../utils/index.js'
|
|
11
|
+
import { Architecture } from '../constants.js'
|
|
12
|
+
import { ArnsByRegionForArm64, ArnsByRegionForX86_64 } from './constants.js'
|
|
13
|
+
import { AppConfigProps } from './types.js'
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* @classdesc Provides operations on AWS
|
|
@@ -2,11 +2,9 @@ import {
|
|
|
2
2
|
CfnApplicationProps,
|
|
3
3
|
CfnConfigurationProfileProps,
|
|
4
4
|
CfnDeploymentProps,
|
|
5
|
-
CfnDeploymentStrategyProps,
|
|
6
5
|
CfnEnvironmentProps,
|
|
7
6
|
DeploymentStrategyProps,
|
|
8
7
|
} from 'aws-cdk-lib/aws-appconfig'
|
|
9
|
-
import { ResourceNameFormatterProps } from '../../common'
|
|
10
8
|
|
|
11
9
|
/**
|
|
12
10
|
*
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './main'
|
|
2
|
-
export * from './types'
|
|
1
|
+
export * from './main.js'
|
|
2
|
+
export * from './types.js'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Stack } from 'aws-cdk-lib'
|
|
2
2
|
import { Certificate, CertificateValidation, ICertificate } from 'aws-cdk-lib/aws-certificatemanager'
|
|
3
3
|
import { IHostedZone } from 'aws-cdk-lib/aws-route53'
|
|
4
|
-
import { CommonConstruct } from '../../common'
|
|
5
|
-
import { createCfnOutput } from '../../utils'
|
|
6
|
-
import { AcmProps } from './types'
|
|
4
|
+
import { CommonConstruct } from '../../common/index.js'
|
|
5
|
+
import { createCfnOutput } from '../../utils/index.js'
|
|
6
|
+
import { AcmProps } from './types.js'
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @classdesc Provides operations on AWS Certificates.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './main'
|
|
2
|
-
export * from './types'
|
|
1
|
+
export * from './main.js'
|
|
2
|
+
export * from './types.js'
|
|
@@ -1,34 +1,31 @@
|
|
|
1
|
-
import { Duration, Tags } from 'aws-cdk-lib'
|
|
1
|
+
import { Duration, RemovalPolicy, Tags } from 'aws-cdk-lib'
|
|
2
2
|
import { ICertificate } from 'aws-cdk-lib/aws-certificatemanager'
|
|
3
3
|
import * as cf from 'aws-cdk-lib/aws-cloudfront'
|
|
4
4
|
import {
|
|
5
|
-
IDistribution,
|
|
6
|
-
DistributionAttributes,
|
|
7
|
-
CloudFrontWebDistribution,
|
|
8
5
|
Distribution,
|
|
6
|
+
DistributionAttributes,
|
|
9
7
|
Function,
|
|
10
8
|
FunctionAssociation,
|
|
11
9
|
FunctionCode,
|
|
12
10
|
HttpVersion,
|
|
13
|
-
|
|
11
|
+
IDistribution,
|
|
12
|
+
IResponseHeadersPolicyRef,
|
|
14
13
|
OriginAccessIdentity,
|
|
15
14
|
PriceClass,
|
|
16
|
-
SSLMethod,
|
|
17
15
|
SecurityPolicyProtocol,
|
|
18
|
-
ViewerCertificate,
|
|
19
16
|
} from 'aws-cdk-lib/aws-cloudfront'
|
|
20
|
-
import { HttpOrigin,
|
|
17
|
+
import { HttpOrigin, S3BucketOrigin } from 'aws-cdk-lib/aws-cloudfront-origins'
|
|
21
18
|
import { ISecurityGroup, IVpc } from 'aws-cdk-lib/aws-ec2'
|
|
22
19
|
import { IAccessPoint } from 'aws-cdk-lib/aws-efs'
|
|
23
20
|
import { Role } from 'aws-cdk-lib/aws-iam'
|
|
24
21
|
import { AssetCode, FileSystem, ILayerVersion } from 'aws-cdk-lib/aws-lambda'
|
|
25
22
|
import { IBucket } from 'aws-cdk-lib/aws-s3'
|
|
26
23
|
import { AwsCustomResource, AwsCustomResourcePolicy, PhysicalResourceId } from 'aws-cdk-lib/custom-resources'
|
|
27
|
-
import { CommonConstruct, CommonStack } from '../../common'
|
|
28
|
-
import { createCfnOutput } from '../../utils'
|
|
29
|
-
import { LambdaEdgeProps } from '../lambda'
|
|
30
|
-
import { CloudFrontProps, CloudfrontFunctionProps, DistributionProps } from './types'
|
|
31
24
|
import _ from 'lodash'
|
|
25
|
+
import { CommonConstruct, CommonStack } from '../../common/index.js'
|
|
26
|
+
import { createCfnOutput } from '../../utils/index.js'
|
|
27
|
+
import { LambdaEdgeProps } from '../lambda/index.js'
|
|
28
|
+
import { CloudfrontFunctionProps, DistributionProps } from './types.js'
|
|
32
29
|
|
|
33
30
|
/**
|
|
34
31
|
* @classdesc Provides operations on AWS
|
|
@@ -63,75 +60,11 @@ export class CloudFrontManager {
|
|
|
63
60
|
return oai
|
|
64
61
|
}
|
|
65
62
|
|
|
66
|
-
/**
|
|
67
|
-
* @summary Method to create a cloudfront distribution
|
|
68
|
-
* @param id scoped id of the resource
|
|
69
|
-
* @param scope scope in which this resource is defined
|
|
70
|
-
* @param props distribution properties
|
|
71
|
-
* @param siteBucket
|
|
72
|
-
* @param logBucket
|
|
73
|
-
* @param oai
|
|
74
|
-
* @param certificate
|
|
75
|
-
* @param aliases
|
|
76
|
-
*/
|
|
77
|
-
public createCloudFrontDistribution(
|
|
78
|
-
id: string,
|
|
79
|
-
scope: CommonConstruct,
|
|
80
|
-
props: CloudFrontProps,
|
|
81
|
-
siteBucket?: IBucket,
|
|
82
|
-
logBucket?: IBucket,
|
|
83
|
-
oai?: OriginAccessIdentity,
|
|
84
|
-
certificate?: ICertificate,
|
|
85
|
-
aliases?: string[]
|
|
86
|
-
) {
|
|
87
|
-
if (!siteBucket) throw `SiteBucket not defined for ${id}`
|
|
88
|
-
if (!certificate) throw `Certificate not defined for ${id}`
|
|
89
|
-
if (!props) throw `CloudFront props undefined for ${id}`
|
|
90
|
-
|
|
91
|
-
const distribution = new CloudFrontWebDistribution(scope, `${id}`, {
|
|
92
|
-
...props,
|
|
93
|
-
comment: `${id} - ${scope.props.stage} stage`,
|
|
94
|
-
enabled: props.enabled ?? true,
|
|
95
|
-
httpVersion: props.httpVersion ?? HttpVersion.HTTP2,
|
|
96
|
-
loggingConfig: {
|
|
97
|
-
bucket: logBucket,
|
|
98
|
-
prefix: 'cloudfront/',
|
|
99
|
-
},
|
|
100
|
-
originConfigs: [
|
|
101
|
-
{
|
|
102
|
-
behaviors: [{ isDefaultBehavior: true }],
|
|
103
|
-
s3OriginSource: {
|
|
104
|
-
originAccessIdentity: oai,
|
|
105
|
-
s3BucketSource: siteBucket,
|
|
106
|
-
},
|
|
107
|
-
},
|
|
108
|
-
],
|
|
109
|
-
priceClass: props.priceClass ?? PriceClass.PRICE_CLASS_ALL,
|
|
110
|
-
viewerCertificate: ViewerCertificate.fromAcmCertificate(certificate, {
|
|
111
|
-
aliases: aliases,
|
|
112
|
-
securityPolicy: SecurityPolicyProtocol.TLS_V1_2_2021,
|
|
113
|
-
sslMethod: SSLMethod.SNI,
|
|
114
|
-
}),
|
|
115
|
-
})
|
|
116
|
-
|
|
117
|
-
if (props.tags && !_.isEmpty(props.tags)) {
|
|
118
|
-
_.forEach(props.tags, tag => {
|
|
119
|
-
Tags.of(distribution).add(tag.key, tag.value)
|
|
120
|
-
})
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
createCfnOutput(`${id}-distributionId`, scope, distribution.distributionId)
|
|
124
|
-
createCfnOutput(`${id}-distributionDomainName`, scope, distribution.distributionDomainName)
|
|
125
|
-
|
|
126
|
-
return distribution
|
|
127
|
-
}
|
|
128
|
-
|
|
129
63
|
/**
|
|
130
64
|
* Method to create a CloudFront distribution with S3 Origin
|
|
131
65
|
* @param id scoped id of the resource
|
|
132
66
|
* @param scope scope in which this resource is defined
|
|
133
67
|
* @param props distribution properties
|
|
134
|
-
* @param origin
|
|
135
68
|
* @param siteBucket
|
|
136
69
|
* @param logBucket
|
|
137
70
|
* @param oai
|
|
@@ -143,7 +76,6 @@ export class CloudFrontManager {
|
|
|
143
76
|
id: string,
|
|
144
77
|
scope: CommonConstruct,
|
|
145
78
|
props: DistributionProps,
|
|
146
|
-
origin: S3Origin,
|
|
147
79
|
siteBucket: IBucket,
|
|
148
80
|
logBucket?: IBucket,
|
|
149
81
|
oai?: OriginAccessIdentity,
|
|
@@ -158,7 +90,7 @@ export class CloudFrontManager {
|
|
|
158
90
|
defaultBehavior: {
|
|
159
91
|
...props.defaultBehavior,
|
|
160
92
|
functionAssociations: defaultFunctionAssociations ?? undefined,
|
|
161
|
-
origin,
|
|
93
|
+
origin: S3BucketOrigin.withOriginAccessIdentity(siteBucket, { originAccessIdentity: oai }),
|
|
162
94
|
},
|
|
163
95
|
domainNames: aliases,
|
|
164
96
|
enableLogging: props.enableLogging ?? true,
|
|
@@ -204,7 +136,7 @@ export class CloudFrontManager {
|
|
|
204
136
|
logBucket?: IBucket,
|
|
205
137
|
certificate?: ICertificate,
|
|
206
138
|
defaultFunctionAssociations?: FunctionAssociation[],
|
|
207
|
-
responseHeadersPolicy?:
|
|
139
|
+
responseHeadersPolicy?: IResponseHeadersPolicyRef
|
|
208
140
|
) {
|
|
209
141
|
const distribution = new Distribution(scope, `${id}`, {
|
|
210
142
|
additionalBehaviors: props.additionalBehaviors,
|
|
@@ -277,6 +209,10 @@ export class CloudFrontManager {
|
|
|
277
209
|
if (!props) throw `EdgeFunction props undefined for ${id}`
|
|
278
210
|
if (!props.functionName) throw `EdgeFunction functionName undefined for ${id}`
|
|
279
211
|
|
|
212
|
+
const functionName = scope.resourceNameFormatter.format(
|
|
213
|
+
props.functionName,
|
|
214
|
+
scope.props.resourceNameOptions?.cloudfront
|
|
215
|
+
)
|
|
280
216
|
const edgeFunction = new cf.experimental.EdgeFunction(scope, `${id}`, {
|
|
281
217
|
code: code,
|
|
282
218
|
description: props.description,
|
|
@@ -284,10 +220,14 @@ export class CloudFrontManager {
|
|
|
284
220
|
...environment,
|
|
285
221
|
},
|
|
286
222
|
filesystem: accessPoint ? FileSystem.fromEfsAccessPoint(accessPoint, mountPath ?? '/mnt/msg') : undefined,
|
|
287
|
-
functionName
|
|
223
|
+
functionName,
|
|
288
224
|
handler: props.handler ?? 'index.handler',
|
|
289
225
|
layers: layers,
|
|
290
|
-
|
|
226
|
+
logGroup: scope.logManager.createLogGroup(`${id}-log-group`, scope, {
|
|
227
|
+
logGroupName: functionName,
|
|
228
|
+
removalPolicy: RemovalPolicy.DESTROY,
|
|
229
|
+
retention: scope.props.logRetention,
|
|
230
|
+
}),
|
|
291
231
|
memorySize: props.memorySize,
|
|
292
232
|
reservedConcurrentExecutions: props.reservedConcurrentExecutions,
|
|
293
233
|
role: role,
|
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
CloudFrontWebDistributionProps,
|
|
4
|
-
FunctionProps,
|
|
5
|
-
} from 'aws-cdk-lib/aws-cloudfront'
|
|
6
|
-
import { ResourceNameFormatterProps } from '../../common'
|
|
7
|
-
import { TagProps } from '../../types'
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
*/
|
|
11
|
-
export interface CloudFrontProps extends CloudFrontWebDistributionProps {
|
|
12
|
-
tags?: TagProps[]
|
|
13
|
-
}
|
|
1
|
+
import { DistributionProps as CfDistributionProps, FunctionProps } from 'aws-cdk-lib/aws-cloudfront'
|
|
2
|
+
import { TagProps } from '../../types/index.js'
|
|
14
3
|
|
|
15
4
|
/**
|
|
16
5
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './main'
|
|
2
|
-
export * from './types'
|
|
1
|
+
export * from './main.js'
|
|
2
|
+
export * from './types.js'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CfnTrail } from 'aws-cdk-lib/aws-cloudtrail'
|
|
2
2
|
import { CfnLogGroup } from 'aws-cdk-lib/aws-logs'
|
|
3
3
|
import { CfnBucketPolicy, IBucket } from 'aws-cdk-lib/aws-s3'
|
|
4
|
-
import { CommonConstruct } from '../../common'
|
|
5
|
-
import { createCfnOutput } from '../../utils'
|
|
6
|
-
import { CloudTrailProps } from './types'
|
|
4
|
+
import { CommonConstruct } from '../../common/index.js'
|
|
5
|
+
import { createCfnOutput } from '../../utils/index.js'
|
|
6
|
+
import { CloudTrailProps } from './types.js'
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @classdesc Provides operations on AWS CloudTrail.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './logs'
|
|
2
|
-
export * from './main'
|
|
3
|
-
export * from './types'
|
|
1
|
+
export * from './logs.js'
|
|
2
|
+
export * from './main.js'
|
|
3
|
+
export * from './types.js'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as cdk from 'aws-cdk-lib'
|
|
2
2
|
import * as logs from 'aws-cdk-lib/aws-logs'
|
|
3
3
|
import _ from 'lodash'
|
|
4
|
-
import { CommonConstruct } from '../../common'
|
|
5
|
-
import * as utils from '../../utils'
|
|
6
|
-
import { LogProps, MetricFilterProps } from './types'
|
|
4
|
+
import { CommonConstruct } from '../../common/index.js'
|
|
5
|
+
import * as utils from '../../utils/index.js'
|
|
6
|
+
import { LogProps, MetricFilterProps } from './types.js'
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @classdesc Provides operations on AWS CloudWatch.
|