@gradientedge/cdk-utils 9.83.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 +10 -10
- package/dist/src/lib/azure/services/api-management/main.js +43 -73
- 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 +23 -52
- 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
- package/dist/src/lib/azure/.gen/providers/azapi/resource/index.d.ts +0 -639
- package/dist/src/lib/azure/.gen/providers/azapi/resource/index.js +0 -1177
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const common_1 = require("../../common");
|
|
11
|
-
const api_to_eventbridge_target_1 = require("../api-to-eventbridge-target");
|
|
12
|
-
const api_destined_lambda_1 = require("./api-destined-lambda");
|
|
1
|
+
import { Fn, RemovalPolicy } from 'aws-cdk-lib';
|
|
2
|
+
import { AccessLogFormat, BasePathMapping, Cors, EndpointType, Integration, IntegrationType, JsonSchemaType, JsonSchemaVersion, LogGroupLogDestination, MethodLoggingLevel, Model, PassthroughBehavior, Resource, RestApi, } from 'aws-cdk-lib/aws-apigateway';
|
|
3
|
+
import { EventBus } from 'aws-cdk-lib/aws-events';
|
|
4
|
+
import { CloudWatchLogGroup } from 'aws-cdk-lib/aws-events-targets';
|
|
5
|
+
import { PolicyDocument, Role, ServicePrincipal } from 'aws-cdk-lib/aws-iam';
|
|
6
|
+
import { EventBridgeDestination } from 'aws-cdk-lib/aws-lambda-destinations';
|
|
7
|
+
import { CommonConstruct } from '../../common/index.js';
|
|
8
|
+
import { ApiToEventbridgeTargetEvent, ApiToEventbridgeTargetRestApi, } from '../api-to-eventbridge-target/index.js';
|
|
9
|
+
import { ApiDestinedLambda } from './api-destined-lambda.js';
|
|
13
10
|
/**
|
|
14
11
|
* @deprecated Use ApiToEventBridgeTarget instead. This will be removed in a future release.
|
|
15
12
|
* @classdesc Provides a construct to create and deploy API Gateway invocations to EventBridge
|
|
@@ -28,7 +25,7 @@ const api_destined_lambda_1 = require("./api-destined-lambda");
|
|
|
28
25
|
* }
|
|
29
26
|
* }
|
|
30
27
|
*/
|
|
31
|
-
class ApiToEventBridgeTargetWithSns extends
|
|
28
|
+
export class ApiToEventBridgeTargetWithSns extends CommonConstruct {
|
|
32
29
|
props;
|
|
33
30
|
id;
|
|
34
31
|
/* application related resources */
|
|
@@ -44,9 +41,9 @@ class ApiToEventBridgeTargetWithSns extends common_1.CommonConstruct {
|
|
|
44
41
|
super(parent, id, props);
|
|
45
42
|
this.props = props;
|
|
46
43
|
this.id = id;
|
|
47
|
-
this.apiDestinedLambda = new
|
|
48
|
-
this.apiEvent = new
|
|
49
|
-
this.apiDestinedRestApi = new
|
|
44
|
+
this.apiDestinedLambda = new ApiDestinedLambda();
|
|
45
|
+
this.apiEvent = new ApiToEventbridgeTargetEvent();
|
|
46
|
+
this.apiDestinedRestApi = new ApiToEventbridgeTargetRestApi();
|
|
50
47
|
this.apiResource = 'notify';
|
|
51
48
|
}
|
|
52
49
|
initResources() {
|
|
@@ -120,7 +117,7 @@ class ApiToEventBridgeTargetWithSns extends common_1.CommonConstruct {
|
|
|
120
117
|
createApiDestinedLambdaPolicy() {
|
|
121
118
|
if (this.props.api.useExisting)
|
|
122
119
|
return;
|
|
123
|
-
this.apiDestinedLambda.policy = new
|
|
120
|
+
this.apiDestinedLambda.policy = new PolicyDocument({
|
|
124
121
|
statements: [this.iamManager.statementForPutEvents([this.apiEvent.eventBus.eventBusArn])],
|
|
125
122
|
});
|
|
126
123
|
}
|
|
@@ -163,8 +160,8 @@ class ApiToEventBridgeTargetWithSns extends common_1.CommonConstruct {
|
|
|
163
160
|
createApiDestinedLambdaDestinations() {
|
|
164
161
|
if (this.props.api.useExisting)
|
|
165
162
|
return;
|
|
166
|
-
this.apiDestinedLambda.destinationSuccess = new
|
|
167
|
-
this.apiDestinedLambda.destinationFailure = new
|
|
163
|
+
this.apiDestinedLambda.destinationSuccess = new EventBridgeDestination(this.apiEvent.eventBus);
|
|
164
|
+
this.apiDestinedLambda.destinationFailure = new EventBridgeDestination(this.apiEvent.eventBus);
|
|
168
165
|
}
|
|
169
166
|
/**
|
|
170
167
|
* @summary Method to create lambda function for Api Destined
|
|
@@ -185,7 +182,7 @@ class ApiToEventBridgeTargetWithSns extends common_1.CommonConstruct {
|
|
|
185
182
|
*/
|
|
186
183
|
createApiDestinedEventBus() {
|
|
187
184
|
if (this.props.api.useExisting) {
|
|
188
|
-
this.apiEvent.eventBus =
|
|
185
|
+
this.apiEvent.eventBus = EventBus.fromEventBusName(this, `${this.id}-destined-event-bus`, `${this.props.event.eventBusName}-${this.props.stage}`);
|
|
189
186
|
return;
|
|
190
187
|
}
|
|
191
188
|
this.apiEvent.eventBus = this.eventManager.createEventBus(`${this.id}-destined-event-bus`, this, {
|
|
@@ -224,7 +221,7 @@ class ApiToEventBridgeTargetWithSns extends common_1.CommonConstruct {
|
|
|
224
221
|
ruleName: `${this.id}-api-destination-success`,
|
|
225
222
|
...this.props.event.ruleSuccess,
|
|
226
223
|
};
|
|
227
|
-
this.apiEvent.ruleSuccess = this.eventManager.createRule(`${this.id}-api-destination-rule-success`, this, this.props.event.ruleSuccess, this.apiEvent.eventBus, [new
|
|
224
|
+
this.apiEvent.ruleSuccess = this.eventManager.createRule(`${this.id}-api-destination-rule-success`, this, this.props.event.ruleSuccess, this.apiEvent.eventBus, [new CloudWatchLogGroup(this.apiEvent.logGroupSuccess)]);
|
|
228
225
|
}
|
|
229
226
|
/**
|
|
230
227
|
* @summary Method to create a log group for failed api destined payload deliveries
|
|
@@ -254,14 +251,14 @@ class ApiToEventBridgeTargetWithSns extends common_1.CommonConstruct {
|
|
|
254
251
|
ruleName: `${this.id}-api-destination-failure`,
|
|
255
252
|
...this.props.event.ruleFailure,
|
|
256
253
|
};
|
|
257
|
-
this.apiEvent.ruleFailure = this.eventManager.createRule(`${this.id}-api-destination-rule-failure`, this, this.props.event.ruleFailure, this.apiEvent.eventBus, [new
|
|
254
|
+
this.apiEvent.ruleFailure = this.eventManager.createRule(`${this.id}-api-destination-rule-failure`, this, this.props.event.ruleFailure, this.apiEvent.eventBus, [new CloudWatchLogGroup(this.apiEvent.logGroupFailure)]);
|
|
258
255
|
}
|
|
259
256
|
/**
|
|
260
257
|
* @summary Method to create a role for sns topic
|
|
261
258
|
*/
|
|
262
259
|
createApiDestinedTopicRole() {
|
|
263
|
-
this.apiDestinedRestApi.role = new
|
|
264
|
-
assumedBy: new
|
|
260
|
+
this.apiDestinedRestApi.role = new Role(this, `${this.id}-sns-rest-api-role`, {
|
|
261
|
+
assumedBy: new ServicePrincipal('apigateway.amazonaws.com'),
|
|
265
262
|
});
|
|
266
263
|
}
|
|
267
264
|
/**
|
|
@@ -346,7 +343,7 @@ class ApiToEventBridgeTargetWithSns extends common_1.CommonConstruct {
|
|
|
346
343
|
createApiDestinedIntegration() {
|
|
347
344
|
if (!this.props.api.withResource)
|
|
348
345
|
return;
|
|
349
|
-
this.apiDestinedRestApi.integration = new
|
|
346
|
+
this.apiDestinedRestApi.integration = new Integration({
|
|
350
347
|
integrationHttpMethod: 'POST',
|
|
351
348
|
options: {
|
|
352
349
|
credentialsRole: this.apiDestinedRestApi.role,
|
|
@@ -354,12 +351,12 @@ class ApiToEventBridgeTargetWithSns extends common_1.CommonConstruct {
|
|
|
354
351
|
this.apiDestinedRestApi.integrationResponse,
|
|
355
352
|
this.apiDestinedRestApi.integrationErrorResponse,
|
|
356
353
|
],
|
|
357
|
-
passthroughBehavior:
|
|
354
|
+
passthroughBehavior: PassthroughBehavior.NEVER,
|
|
358
355
|
requestParameters: this.apiDestinedRestApi.integrationRequestParameters,
|
|
359
356
|
requestTemplates: this.apiDestinedRestApi.integrationRequestTemplates,
|
|
360
357
|
...this.props.api.integrationOptions,
|
|
361
358
|
},
|
|
362
|
-
type:
|
|
359
|
+
type: IntegrationType.AWS,
|
|
363
360
|
uri: `arn:aws:apigateway:${this.props.region}:sns:path//`,
|
|
364
361
|
});
|
|
365
362
|
}
|
|
@@ -406,7 +403,7 @@ class ApiToEventBridgeTargetWithSns extends common_1.CommonConstruct {
|
|
|
406
403
|
*/
|
|
407
404
|
createApiDestinedRestApi() {
|
|
408
405
|
if (this.props.api.useExisting && this.props.api.importedRestApiRef) {
|
|
409
|
-
this.apiDestinedRestApi.api =
|
|
406
|
+
this.apiDestinedRestApi.api = RestApi.fromRestApiId(this, `${this.id}-sns-rest-api`, Fn.importValue(this.props.api.importedRestApiRef));
|
|
410
407
|
return;
|
|
411
408
|
}
|
|
412
409
|
if (!this.props.api.restApi?.restApiName)
|
|
@@ -415,29 +412,29 @@ class ApiToEventBridgeTargetWithSns extends common_1.CommonConstruct {
|
|
|
415
412
|
const restApiAccessLogName = this.resourceNameFormatter.format(`${this.props.api.restApi?.restApiName}-access`, this.props.resourceNameOptions?.apigateway);
|
|
416
413
|
const accessLogGroup = this.logManager.createLogGroup(`${this.id}-rest-api-access-log`, this, {
|
|
417
414
|
logGroupName: restApiAccessLogName,
|
|
418
|
-
removalPolicy:
|
|
415
|
+
removalPolicy: RemovalPolicy.DESTROY,
|
|
419
416
|
});
|
|
420
|
-
this.apiDestinedRestApi.api = new
|
|
417
|
+
this.apiDestinedRestApi.api = new RestApi(this, `${this.id}-sns-rest-api`, {
|
|
421
418
|
defaultCorsPreflightOptions: {
|
|
422
|
-
allowHeaders:
|
|
419
|
+
allowHeaders: Cors.DEFAULT_HEADERS,
|
|
423
420
|
allowMethods: ['POST'],
|
|
424
|
-
allowOrigins:
|
|
421
|
+
allowOrigins: Cors.ALL_ORIGINS,
|
|
425
422
|
},
|
|
426
423
|
defaultIntegration: this.apiDestinedRestApi.integration,
|
|
427
424
|
defaultMethodOptions: {
|
|
428
425
|
methodResponses: [this.apiDestinedRestApi.methodResponse, this.apiDestinedRestApi.methodErrorResponse],
|
|
429
426
|
},
|
|
430
427
|
deployOptions: {
|
|
431
|
-
accessLogDestination: new
|
|
432
|
-
accessLogFormat:
|
|
428
|
+
accessLogDestination: new LogGroupLogDestination(accessLogGroup),
|
|
429
|
+
accessLogFormat: AccessLogFormat.jsonWithStandardFields(),
|
|
433
430
|
dataTraceEnabled: true,
|
|
434
431
|
description: `${this.id} - ${this.props.stage} stage`,
|
|
435
|
-
loggingLevel:
|
|
432
|
+
loggingLevel: MethodLoggingLevel.INFO,
|
|
436
433
|
metricsEnabled: true,
|
|
437
434
|
stageName: this.props.stage,
|
|
438
435
|
},
|
|
439
436
|
endpointConfiguration: {
|
|
440
|
-
types: [
|
|
437
|
+
types: [EndpointType.REGIONAL],
|
|
441
438
|
},
|
|
442
439
|
...this.props.api,
|
|
443
440
|
restApiName,
|
|
@@ -451,15 +448,15 @@ class ApiToEventBridgeTargetWithSns extends common_1.CommonConstruct {
|
|
|
451
448
|
createApiDestinedResponseModel() {
|
|
452
449
|
if (!this.props.api.withResource)
|
|
453
450
|
return;
|
|
454
|
-
this.apiDestinedRestApi.responseModel = new
|
|
451
|
+
this.apiDestinedRestApi.responseModel = new Model(this, `${this.id}-response-model`, {
|
|
455
452
|
contentType: 'application/json',
|
|
456
453
|
modelName: 'ResponseModel',
|
|
457
454
|
restApi: this.apiDestinedRestApi.api,
|
|
458
455
|
schema: {
|
|
459
|
-
properties: { message: { type:
|
|
460
|
-
schema:
|
|
456
|
+
properties: { message: { type: JsonSchemaType.STRING } },
|
|
457
|
+
schema: JsonSchemaVersion.DRAFT4,
|
|
461
458
|
title: 'pollResponse',
|
|
462
|
-
type:
|
|
459
|
+
type: JsonSchemaType.OBJECT,
|
|
463
460
|
},
|
|
464
461
|
...this.props.api.responseModel,
|
|
465
462
|
});
|
|
@@ -470,18 +467,18 @@ class ApiToEventBridgeTargetWithSns extends common_1.CommonConstruct {
|
|
|
470
467
|
createApiDestinedErrorResponseModel() {
|
|
471
468
|
if (!this.props.api.withResource)
|
|
472
469
|
return;
|
|
473
|
-
this.apiDestinedRestApi.errorResponseModel = new
|
|
470
|
+
this.apiDestinedRestApi.errorResponseModel = new Model(this, `${this.id}-error-response-model`, {
|
|
474
471
|
contentType: 'application/json',
|
|
475
472
|
modelName: 'ErrorResponseModel',
|
|
476
473
|
restApi: this.apiDestinedRestApi.api,
|
|
477
474
|
schema: {
|
|
478
475
|
properties: {
|
|
479
|
-
message: { type:
|
|
480
|
-
state: { type:
|
|
476
|
+
message: { type: JsonSchemaType.STRING },
|
|
477
|
+
state: { type: JsonSchemaType.STRING },
|
|
481
478
|
},
|
|
482
|
-
schema:
|
|
479
|
+
schema: JsonSchemaVersion.DRAFT4,
|
|
483
480
|
title: 'errorResponse',
|
|
484
|
-
type:
|
|
481
|
+
type: JsonSchemaType.OBJECT,
|
|
485
482
|
},
|
|
486
483
|
...this.props.api.errorResponseModel,
|
|
487
484
|
});
|
|
@@ -494,9 +491,9 @@ class ApiToEventBridgeTargetWithSns extends common_1.CommonConstruct {
|
|
|
494
491
|
return;
|
|
495
492
|
let rootResource;
|
|
496
493
|
if (this.props.api.withResource && this.props.api.importedRestApiRootResourceRef) {
|
|
497
|
-
rootResource =
|
|
494
|
+
rootResource = Resource.fromResourceAttributes(this, `${this.id}-root-resource`, {
|
|
498
495
|
path: '/',
|
|
499
|
-
resourceId:
|
|
496
|
+
resourceId: Fn.importValue(this.props.api.importedRestApiRootResourceRef),
|
|
500
497
|
restApi: this.apiDestinedRestApi.api,
|
|
501
498
|
});
|
|
502
499
|
}
|
|
@@ -532,7 +529,7 @@ class ApiToEventBridgeTargetWithSns extends common_1.CommonConstruct {
|
|
|
532
529
|
createApiBasePathMapping() {
|
|
533
530
|
if (this.props.api.useExisting)
|
|
534
531
|
return;
|
|
535
|
-
new
|
|
532
|
+
new BasePathMapping(this, `${this.id}-base-bath-mapping`, {
|
|
536
533
|
basePath: '',
|
|
537
534
|
domainName: this.apiDestinedRestApi.domain,
|
|
538
535
|
restApi: this.apiDestinedRestApi.api,
|
|
@@ -548,4 +545,3 @@ class ApiToEventBridgeTargetWithSns extends common_1.CommonConstruct {
|
|
|
548
545
|
this.route53Manager.createApiGatewayARecord(`${this.id}-custom-domain-a-record`, this, this.props.apiSubDomain, this.apiDestinedRestApi.domain, this.apiDestinedRestApi.hostedZone, this.props.skipStageForARecords);
|
|
549
546
|
}
|
|
550
547
|
}
|
|
551
|
-
exports.ApiToEventBridgeTargetWithSns = ApiToEventBridgeTargetWithSns;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LambdaEnvironment } from '../../services';
|
|
1
|
+
import { LambdaEnvironment } from '../../services/index.js';
|
|
2
2
|
import { EventBridgeDestination } from 'aws-cdk-lib/aws-lambda-destinations';
|
|
3
3
|
import { AssetCode, IFunction, LayerVersion } from 'aws-cdk-lib/aws-lambda';
|
|
4
4
|
import { PolicyDocument, Role } from 'aws-cdk-lib/aws-iam';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -4,7 +4,7 @@ import { Role } from 'aws-cdk-lib/aws-iam';
|
|
|
4
4
|
import { IFunction } from 'aws-cdk-lib/aws-lambda';
|
|
5
5
|
import { IHostedZone } from 'aws-cdk-lib/aws-route53';
|
|
6
6
|
import { Topic } from 'aws-cdk-lib/aws-sns';
|
|
7
|
-
import { ApiToLambdaTargetRestApiType } from './types';
|
|
7
|
+
import { ApiToLambdaTargetRestApiType } from './types.js';
|
|
8
8
|
/**
|
|
9
9
|
* @classdesc Provides a construct to contain api resources for ApiToLambdaTarget
|
|
10
10
|
*/
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ApiToLambdaTargetRestApi = void 0;
|
|
4
1
|
/**
|
|
5
2
|
* @classdesc Provides a construct to contain api resources for ApiToLambdaTarget
|
|
6
3
|
*/
|
|
7
|
-
class ApiToLambdaTargetRestApi {
|
|
4
|
+
export class ApiToLambdaTargetRestApi {
|
|
8
5
|
api;
|
|
9
6
|
basePathMappings = [];
|
|
10
7
|
certificate;
|
|
@@ -25,4 +22,3 @@ class ApiToLambdaTargetRestApi {
|
|
|
25
22
|
topic;
|
|
26
23
|
role;
|
|
27
24
|
}
|
|
28
|
-
exports.ApiToLambdaTargetRestApi = ApiToLambdaTargetRestApi;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './api';
|
|
2
|
-
export * from './main';
|
|
3
|
-
export * from './types';
|
|
1
|
+
export * from './api.js';
|
|
2
|
+
export * from './main.js';
|
|
3
|
+
export * from './types.js';
|
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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("./api"), exports);
|
|
18
|
-
__exportStar(require("./main"), exports);
|
|
19
|
-
__exportStar(require("./types"), exports);
|
|
1
|
+
export * from './api.js';
|
|
2
|
+
export * from './main.js';
|
|
3
|
+
export * from './types.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ISecret } from 'aws-cdk-lib/aws-secretsmanager';
|
|
2
2
|
import { Construct } from 'constructs';
|
|
3
|
-
import { CommonConstruct } from '../../common';
|
|
4
|
-
import { ApiToLambdaTargetProps, ApiToLambdaTargetRestApiType } from './types';
|
|
3
|
+
import { CommonConstruct } from '../../common/index.js';
|
|
4
|
+
import { ApiToLambdaTargetProps, ApiToLambdaTargetRestApiType } from './types.js';
|
|
5
5
|
/**
|
|
6
6
|
*/
|
|
7
7
|
export declare class ApiToLambdaTarget extends CommonConstruct {
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const aws_lambda_1 = require("aws-cdk-lib/aws-lambda");
|
|
8
|
-
const common_1 = require("../../common");
|
|
9
|
-
const api_1 = require("./api");
|
|
1
|
+
import { Fn } from 'aws-cdk-lib';
|
|
2
|
+
import { BasePathMapping, LambdaIntegration, Resource, RestApi } from 'aws-cdk-lib/aws-apigateway';
|
|
3
|
+
import { PolicyDocument, Role, ServicePrincipal } from 'aws-cdk-lib/aws-iam';
|
|
4
|
+
import { Function } from 'aws-cdk-lib/aws-lambda';
|
|
5
|
+
import { CommonConstruct } from '../../common/index.js';
|
|
6
|
+
import { ApiToLambdaTargetRestApi } from './api.js';
|
|
10
7
|
/**
|
|
11
8
|
*/
|
|
12
|
-
class ApiToLambdaTarget extends
|
|
9
|
+
export class ApiToLambdaTarget extends CommonConstruct {
|
|
13
10
|
props;
|
|
14
11
|
id;
|
|
15
12
|
/* application related resources */
|
|
@@ -21,7 +18,7 @@ class ApiToLambdaTarget extends common_1.CommonConstruct {
|
|
|
21
18
|
super(parent, id, props);
|
|
22
19
|
this.props = props;
|
|
23
20
|
this.id = id;
|
|
24
|
-
this.apiToLambdaTargetRestApi = new
|
|
21
|
+
this.apiToLambdaTargetRestApi = new ApiToLambdaTargetRestApi();
|
|
25
22
|
}
|
|
26
23
|
initResources() {
|
|
27
24
|
this.resolveSecrets();
|
|
@@ -103,14 +100,14 @@ class ApiToLambdaTarget extends common_1.CommonConstruct {
|
|
|
103
100
|
};
|
|
104
101
|
}
|
|
105
102
|
resolveApiToLambdaTargetFunction() {
|
|
106
|
-
this.apiToLambdaTargetRestApi.lambda =
|
|
103
|
+
this.apiToLambdaTargetRestApi.lambda = Function.fromFunctionName(this, `${this.id}-lambda`, this.resourceNameFormatter.format(this.props.lambdaFunctionName));
|
|
107
104
|
}
|
|
108
105
|
/**
|
|
109
106
|
* @summary Method to create rest restApi for Api
|
|
110
107
|
*/
|
|
111
108
|
createApiToLambdaTargetRestApi() {
|
|
112
109
|
if (this.props.api.useExisting && this.props.api.importedRestApiRef) {
|
|
113
|
-
this.apiToLambdaTargetRestApi.api =
|
|
110
|
+
this.apiToLambdaTargetRestApi.api = RestApi.fromRestApiId(this, `${this.id}-rest-api`, Fn.importValue(this.props.api.importedRestApiRef));
|
|
114
111
|
return;
|
|
115
112
|
}
|
|
116
113
|
this.props.api.restApi = {
|
|
@@ -134,9 +131,9 @@ class ApiToLambdaTarget extends common_1.CommonConstruct {
|
|
|
134
131
|
return;
|
|
135
132
|
let rootResource;
|
|
136
133
|
if (this.props.api.withResource && this.props.api.importedRestApiRootResourceRef) {
|
|
137
|
-
rootResource =
|
|
134
|
+
rootResource = Resource.fromResourceAttributes(this, `${this.id}-root-resource`, {
|
|
138
135
|
path: '/',
|
|
139
|
-
resourceId:
|
|
136
|
+
resourceId: Fn.importValue(this.props.api.importedRestApiRootResourceRef),
|
|
140
137
|
restApi: this.apiToLambdaTargetRestApi.api,
|
|
141
138
|
});
|
|
142
139
|
}
|
|
@@ -146,7 +143,7 @@ class ApiToLambdaTarget extends common_1.CommonConstruct {
|
|
|
146
143
|
this.apiToLambdaTargetRestApi.resource = rootResource.addResource(this.props.api.resource ?? this.apiResource);
|
|
147
144
|
}
|
|
148
145
|
createApiToLambdaTargetPolicy() {
|
|
149
|
-
this.apiToLambdaTargetRestApi.policy = new
|
|
146
|
+
this.apiToLambdaTargetRestApi.policy = new PolicyDocument({
|
|
150
147
|
statements: [
|
|
151
148
|
this.iamManager.statementForPutEvents(),
|
|
152
149
|
this.iamManager.statementForInvokeLambda([this.apiToLambdaTargetRestApi.lambda.functionArn]),
|
|
@@ -159,8 +156,8 @@ class ApiToLambdaTarget extends common_1.CommonConstruct {
|
|
|
159
156
|
createApiToLambdaTargetRole() {
|
|
160
157
|
if (!this.apiToLambdaTargetRestApi.policy)
|
|
161
158
|
throw 'Policy undefined';
|
|
162
|
-
this.apiToLambdaTargetRestApi.role = new
|
|
163
|
-
assumedBy: new
|
|
159
|
+
this.apiToLambdaTargetRestApi.role = new Role(this, `${this.id}-rest-api-role`, {
|
|
160
|
+
assumedBy: new ServicePrincipal('apigateway.amazonaws.com'),
|
|
164
161
|
inlinePolicies: { policy: this.apiToLambdaTargetRestApi.policy },
|
|
165
162
|
});
|
|
166
163
|
}
|
|
@@ -168,7 +165,7 @@ class ApiToLambdaTarget extends common_1.CommonConstruct {
|
|
|
168
165
|
* @summary Method to create api integration resource method
|
|
169
166
|
*/
|
|
170
167
|
createApiToLambdaTargetIntegration() {
|
|
171
|
-
this.apiToLambdaTargetRestApi.integration = new
|
|
168
|
+
this.apiToLambdaTargetRestApi.integration = new LambdaIntegration(this.apiToLambdaTargetRestApi.lambda, {
|
|
172
169
|
allowTestInvoke: true,
|
|
173
170
|
credentialsRole: this.apiToLambdaTargetRestApi.role,
|
|
174
171
|
});
|
|
@@ -203,7 +200,7 @@ class ApiToLambdaTarget extends common_1.CommonConstruct {
|
|
|
203
200
|
createApiBasePathMapping() {
|
|
204
201
|
if (this.props.api.useExisting)
|
|
205
202
|
return;
|
|
206
|
-
new
|
|
203
|
+
new BasePathMapping(this, `${this.id}-base-bath-mapping`, {
|
|
207
204
|
basePath: '',
|
|
208
205
|
domainName: this.apiToLambdaTargetRestApi.domain,
|
|
209
206
|
restApi: this.apiToLambdaTargetRestApi.api,
|
|
@@ -219,4 +216,3 @@ class ApiToLambdaTarget extends common_1.CommonConstruct {
|
|
|
219
216
|
this.route53Manager.createApiGatewayARecord(`${this.id}-custom-domain-a-record`, this, this.props.apiSubDomain, this.apiToLambdaTargetRestApi.domain, this.apiToLambdaTargetRestApi.hostedZone, this.props.skipStageForARecords);
|
|
220
217
|
}
|
|
221
218
|
}
|
|
222
|
-
exports.ApiToLambdaTarget = ApiToLambdaTarget;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CommonStackProps } from '../../common';
|
|
1
|
+
import { CommonStackProps } from '../../common/index.js';
|
|
2
2
|
import { BasePathMapping, DomainName, IAuthorizer, Integration, IntegrationResponse, IRestApi, Method, MethodResponse, Model, Resource } from 'aws-cdk-lib/aws-apigateway';
|
|
3
|
-
import { AcmProps, LambdaRestApiProps } from '../../services';
|
|
3
|
+
import { AcmProps, LambdaRestApiProps } from '../../services/index.js';
|
|
4
4
|
import * as acm from 'aws-cdk-lib/aws-certificatemanager';
|
|
5
5
|
import * as route53 from 'aws-cdk-lib/aws-route53';
|
|
6
6
|
import { IFunction } from 'aws-cdk-lib/aws-lambda';
|
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
import { CfnApplication, CfnConfigurationProfile, CfnEnvironment, CfnHostedConfigurationVersion, IDeploymentStrategy } from 'aws-cdk-lib/aws-appconfig';
|
|
2
2
|
import { Construct } from 'constructs';
|
|
3
|
-
import { CommonConstruct } from '../../common';
|
|
4
|
-
import { ApplicationConfigurationProps } from './types';
|
|
3
|
+
import { CommonConstruct } from '../../common/index.js';
|
|
4
|
+
import { ApplicationConfigurationProps } from './types.js';
|
|
5
5
|
export declare class ApplicationConfiguration extends CommonConstruct {
|
|
6
6
|
props: ApplicationConfigurationProps;
|
|
7
7
|
id: string;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const aws_appconfig_1 = require("aws-cdk-lib/aws-appconfig");
|
|
6
|
-
const common_1 = require("../../common");
|
|
7
|
-
class ApplicationConfiguration extends common_1.CommonConstruct {
|
|
1
|
+
import { Duration, Fn } from 'aws-cdk-lib';
|
|
2
|
+
import { CfnDeployment, CfnHostedConfigurationVersion, DeploymentStrategy, RolloutStrategy, } from 'aws-cdk-lib/aws-appconfig';
|
|
3
|
+
import { CommonConstruct } from '../../common/index.js';
|
|
4
|
+
export class ApplicationConfiguration extends CommonConstruct {
|
|
8
5
|
id;
|
|
9
6
|
appConfigApplication;
|
|
10
7
|
appConfigEnvironment;
|
|
@@ -32,15 +29,15 @@ class ApplicationConfiguration extends common_1.CommonConstruct {
|
|
|
32
29
|
this.appConfigApplication = this.appConfigManager.createApplication(`${this.id}-ac-application`, this, this.props.appConfig);
|
|
33
30
|
}
|
|
34
31
|
createAppConfigEnvironment() {
|
|
35
|
-
this.appConfigEnvironment = this.appConfigManager.createEnvironment(`${this.id}-ac-environment`, this,
|
|
32
|
+
this.appConfigEnvironment = this.appConfigManager.createEnvironment(`${this.id}-ac-environment`, this, Fn.ref(this.appConfigApplication.logicalId), this.props.appConfig);
|
|
36
33
|
}
|
|
37
34
|
createAppConfigProfile() {
|
|
38
|
-
this.appConfigProfile = this.appConfigManager.createConfigurationProfile(`${this.id}-ac-profile`, this,
|
|
35
|
+
this.appConfigProfile = this.appConfigManager.createConfigurationProfile(`${this.id}-ac-profile`, this, Fn.ref(this.appConfigApplication.logicalId), this.props.appConfig);
|
|
39
36
|
}
|
|
40
37
|
createAppConfigVersion() {
|
|
41
|
-
this.appConfigVersion = new
|
|
42
|
-
applicationId:
|
|
43
|
-
configurationProfileId:
|
|
38
|
+
this.appConfigVersion = new CfnHostedConfigurationVersion(this, `${this.id}-ac-configuration`, {
|
|
39
|
+
applicationId: Fn.ref(this.appConfigApplication.logicalId),
|
|
40
|
+
configurationProfileId: Fn.ref(this.appConfigProfile.logicalId),
|
|
44
41
|
content: JSON.stringify(this.props.appConfigContent),
|
|
45
42
|
contentType: 'application/json',
|
|
46
43
|
});
|
|
@@ -49,35 +46,34 @@ class ApplicationConfiguration extends common_1.CommonConstruct {
|
|
|
49
46
|
if (!this.props.appConfig.deploymentStrategy)
|
|
50
47
|
return;
|
|
51
48
|
if (this.props.appConfig.deploymentStrategy?.deploymentStrategyArn) {
|
|
52
|
-
this.appConfigDeploymentStrategy =
|
|
49
|
+
this.appConfigDeploymentStrategy = DeploymentStrategy.fromDeploymentStrategyArn(this, `${this.id}-ac-deployment-strategy`, this.props.appConfig.deploymentStrategy?.deploymentStrategyArn);
|
|
53
50
|
return;
|
|
54
51
|
}
|
|
55
|
-
this.appConfigDeploymentStrategy = new
|
|
52
|
+
this.appConfigDeploymentStrategy = new DeploymentStrategy(this, `${this.id}-ac-deployment-strategy`, {
|
|
56
53
|
...this.props.appConfig.deploymentStrategy,
|
|
57
54
|
rolloutStrategy: this.props.appConfig.deploymentStrategy?.rolloutStrategy ??
|
|
58
|
-
|
|
55
|
+
RolloutStrategy.linear({
|
|
59
56
|
growthFactor: 100,
|
|
60
|
-
deploymentDuration:
|
|
61
|
-
finalBakeTime:
|
|
57
|
+
deploymentDuration: Duration.minutes(0),
|
|
58
|
+
finalBakeTime: Duration.minutes(0),
|
|
62
59
|
}),
|
|
63
60
|
deploymentStrategyName: this.resourceNameFormatter.format(this.props.appConfig.deploymentStrategy.deploymentStrategyName ?? 'common-deployment-strategy', this.props.resourceNameOptions?.appconfig),
|
|
64
61
|
});
|
|
65
62
|
}
|
|
66
63
|
createAppConfigDeployment() {
|
|
67
|
-
new
|
|
68
|
-
applicationId:
|
|
69
|
-
configurationProfileId:
|
|
70
|
-
configurationVersion:
|
|
64
|
+
new CfnDeployment(this, `${this.id}-app-config-deployment`, {
|
|
65
|
+
applicationId: Fn.ref(this.appConfigApplication.logicalId),
|
|
66
|
+
configurationProfileId: Fn.ref(this.appConfigProfile.logicalId),
|
|
67
|
+
configurationVersion: Fn.ref(this.appConfigVersion.logicalId),
|
|
71
68
|
deploymentStrategyId: this.appConfigDeploymentStrategy.deploymentStrategyId,
|
|
72
|
-
environmentId:
|
|
69
|
+
environmentId: Fn.ref(this.appConfigEnvironment.logicalId),
|
|
73
70
|
});
|
|
74
71
|
}
|
|
75
72
|
resolveEnvironmentVariables() {
|
|
76
73
|
return {
|
|
77
|
-
APP_CONFIG_APPLICATION_ID:
|
|
78
|
-
APP_CONFIG_CONFIGURATION_PROFILE_ID:
|
|
79
|
-
APP_CONFIG_ENVIRONMENT_ID:
|
|
74
|
+
APP_CONFIG_APPLICATION_ID: Fn.ref(this.appConfigApplication.logicalId),
|
|
75
|
+
APP_CONFIG_CONFIGURATION_PROFILE_ID: Fn.ref(this.appConfigProfile.logicalId),
|
|
76
|
+
APP_CONFIG_ENVIRONMENT_ID: Fn.ref(this.appConfigEnvironment.logicalId),
|
|
80
77
|
};
|
|
81
78
|
}
|
|
82
79
|
}
|
|
83
|
-
exports.ApplicationConfiguration = ApplicationConfiguration;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CommonStackProps } from '../../common';
|
|
2
|
-
import { AppConfigProps } from '../../services';
|
|
1
|
+
import { CommonStackProps } from '../../common/index.js';
|
|
2
|
+
import { AppConfigProps } from '../../services/index.js';
|
|
3
3
|
export interface ApplicationConfigurationProps extends CommonStackProps {
|
|
4
4
|
appConfig: AppConfigProps;
|
|
5
5
|
appConfigContent: any;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -5,7 +5,7 @@ import { IFunction } from 'aws-cdk-lib/aws-lambda';
|
|
|
5
5
|
import { LogGroup } from 'aws-cdk-lib/aws-logs';
|
|
6
6
|
import { Queue } from 'aws-cdk-lib/aws-sqs';
|
|
7
7
|
import { Chain, Map, StateMachine } from 'aws-cdk-lib/aws-stepfunctions';
|
|
8
|
-
import { EventHandlerType } from './types';
|
|
8
|
+
import { EventHandlerType } from './types.js';
|
|
9
9
|
export declare class Handler implements EventHandlerType {
|
|
10
10
|
archive: Archive;
|
|
11
11
|
ecsTargets: EcsTask[];
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Handler = void 0;
|
|
4
|
-
class Handler {
|
|
1
|
+
export class Handler {
|
|
5
2
|
archive;
|
|
6
3
|
ecsTargets = [];
|
|
7
4
|
eventBus;
|
|
@@ -22,4 +19,3 @@ class Handler {
|
|
|
22
19
|
workflowPolicy;
|
|
23
20
|
workflowRole;
|
|
24
21
|
}
|
|
25
|
-
exports.Handler = Handler;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './handler';
|
|
2
|
-
export * from './main';
|
|
3
|
-
export * from './types';
|
|
1
|
+
export * from './handler.js';
|
|
2
|
+
export * from './main.js';
|
|
3
|
+
export * from './types.js';
|