@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,10 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const aws_apigateway_1 = require("aws-cdk-lib/aws-apigateway");
|
|
6
|
-
const common_1 = require("../../common");
|
|
7
|
-
const target_1 = require("./target");
|
|
1
|
+
import { Fn, RemovalPolicy } from 'aws-cdk-lib';
|
|
2
|
+
import { AccessLogFormat, BasePathMapping, Cors, EndpointType, LogGroupLogDestination, MethodLoggingLevel, Resource, RestApi, } from 'aws-cdk-lib/aws-apigateway';
|
|
3
|
+
import { CommonConstruct } from '../../common/index.js';
|
|
4
|
+
import { ApiToAnyTargetRestApi } from './target.js';
|
|
8
5
|
/**
|
|
9
6
|
* @classdesc Provides a construct to create and deploy a shallow API Gateway
|
|
10
7
|
* @example
|
|
@@ -20,7 +17,7 @@ const target_1 = require("./target");
|
|
|
20
17
|
* }
|
|
21
18
|
* }
|
|
22
19
|
*/
|
|
23
|
-
class ApiToAnyTarget extends
|
|
20
|
+
export class ApiToAnyTarget extends CommonConstruct {
|
|
24
21
|
props;
|
|
25
22
|
id;
|
|
26
23
|
/* application related resources */
|
|
@@ -32,7 +29,7 @@ class ApiToAnyTarget extends common_1.CommonConstruct {
|
|
|
32
29
|
super(parent, id, props);
|
|
33
30
|
this.props = props;
|
|
34
31
|
this.id = id;
|
|
35
|
-
this.apiToAnyTargetRestApi = new
|
|
32
|
+
this.apiToAnyTargetRestApi = new ApiToAnyTargetRestApi();
|
|
36
33
|
}
|
|
37
34
|
initResources() {
|
|
38
35
|
/* application related resources */
|
|
@@ -74,7 +71,7 @@ class ApiToAnyTarget extends common_1.CommonConstruct {
|
|
|
74
71
|
}
|
|
75
72
|
createApiToAnyTargetRestApi() {
|
|
76
73
|
if (this.props.api.useExisting && this.props.api.importedRestApiRef) {
|
|
77
|
-
this.apiToAnyTargetRestApi.api =
|
|
74
|
+
this.apiToAnyTargetRestApi.api = RestApi.fromRestApiId(this, `${this.id}-rest-api`, Fn.importValue(this.props.api.importedRestApiRef));
|
|
78
75
|
return;
|
|
79
76
|
}
|
|
80
77
|
if (!this.props.api.restApi?.restApiName)
|
|
@@ -83,14 +80,14 @@ class ApiToAnyTarget extends common_1.CommonConstruct {
|
|
|
83
80
|
const restApiAccessLogName = this.resourceNameFormatter.format(`${this.props.api.restApi?.restApiName}-access`, this.props.resourceNameOptions?.apigateway);
|
|
84
81
|
this.apiToAnyTargetRestApi.accessLogGroup = this.logManager.createLogGroup(`${this.id}-rest-api-access-log`, this, {
|
|
85
82
|
logGroupName: restApiAccessLogName,
|
|
86
|
-
removalPolicy:
|
|
83
|
+
removalPolicy: RemovalPolicy.DESTROY,
|
|
87
84
|
});
|
|
88
|
-
this.apiToAnyTargetRestApi.api = new
|
|
85
|
+
this.apiToAnyTargetRestApi.api = new RestApi(this, `${this.id}-rest-api`, {
|
|
89
86
|
cloudWatchRole: this.props.api.restApi?.cloudWatchRole ?? true,
|
|
90
87
|
defaultCorsPreflightOptions: {
|
|
91
|
-
allowHeaders:
|
|
92
|
-
allowMethods:
|
|
93
|
-
allowOrigins:
|
|
88
|
+
allowHeaders: Cors.DEFAULT_HEADERS,
|
|
89
|
+
allowMethods: Cors.ALL_METHODS,
|
|
90
|
+
allowOrigins: Cors.ALL_ORIGINS,
|
|
94
91
|
},
|
|
95
92
|
defaultIntegration: this.apiToAnyTargetRestApi.integration,
|
|
96
93
|
defaultMethodOptions: {
|
|
@@ -98,17 +95,17 @@ class ApiToAnyTarget extends common_1.CommonConstruct {
|
|
|
98
95
|
},
|
|
99
96
|
deploy: this.props.api.restApi?.deploy ?? true,
|
|
100
97
|
deployOptions: {
|
|
101
|
-
accessLogDestination: new
|
|
102
|
-
accessLogFormat:
|
|
98
|
+
accessLogDestination: new LogGroupLogDestination(this.apiToAnyTargetRestApi.accessLogGroup),
|
|
99
|
+
accessLogFormat: AccessLogFormat.jsonWithStandardFields(),
|
|
103
100
|
dataTraceEnabled: this.props.api.restApi?.deployOptions?.dataTraceEnabled,
|
|
104
101
|
description: `${this.id} - ${this.props.stage} stage`,
|
|
105
|
-
loggingLevel:
|
|
102
|
+
loggingLevel: MethodLoggingLevel.INFO,
|
|
106
103
|
metricsEnabled: true,
|
|
107
104
|
stageName: this.props.stage,
|
|
108
105
|
tracingEnabled: this.props.api.restApi?.deployOptions?.tracingEnabled,
|
|
109
106
|
},
|
|
110
107
|
endpointConfiguration: {
|
|
111
|
-
types: [this.isProductionStage() ?
|
|
108
|
+
types: [this.isProductionStage() ? EndpointType.EDGE : EndpointType.REGIONAL],
|
|
112
109
|
},
|
|
113
110
|
...this.props.api.restApi,
|
|
114
111
|
restApiName,
|
|
@@ -121,9 +118,9 @@ class ApiToAnyTarget extends common_1.CommonConstruct {
|
|
|
121
118
|
return;
|
|
122
119
|
let rootResource;
|
|
123
120
|
if (this.props.api.withResource && this.props.api.importedRestApiRootResourceRef) {
|
|
124
|
-
rootResource =
|
|
121
|
+
rootResource = Resource.fromResourceAttributes(this, `${this.id}-root-resource-for-${apiResourceProps.path}`, {
|
|
125
122
|
path: '/',
|
|
126
|
-
resourceId:
|
|
123
|
+
resourceId: Fn.importValue(this.props.api.importedRestApiRootResourceRef),
|
|
127
124
|
restApi: this.apiToAnyTargetRestApi.api,
|
|
128
125
|
});
|
|
129
126
|
}
|
|
@@ -142,7 +139,7 @@ class ApiToAnyTarget extends common_1.CommonConstruct {
|
|
|
142
139
|
createApiBasePathMapping() {
|
|
143
140
|
if (this.props.api.useExisting)
|
|
144
141
|
return;
|
|
145
|
-
new
|
|
142
|
+
new BasePathMapping(this, `${this.id}-base-bath-mapping`, {
|
|
146
143
|
basePath: '',
|
|
147
144
|
domainName: this.apiToAnyTargetRestApi.domain,
|
|
148
145
|
restApi: this.apiToAnyTargetRestApi.api,
|
|
@@ -155,4 +152,3 @@ class ApiToAnyTarget extends common_1.CommonConstruct {
|
|
|
155
152
|
this.route53Manager.createApiGatewayARecord(`${this.id}-custom-domain-a-record`, this, this.props.apiSubDomain, this.apiToAnyTargetRestApi.domain, this.apiToAnyTargetRestApi.hostedZone, this.props.skipStageForARecords);
|
|
156
153
|
}
|
|
157
154
|
}
|
|
158
|
-
exports.ApiToAnyTarget = ApiToAnyTarget;
|
|
@@ -2,7 +2,7 @@ import { IRestApi, IAuthorizer, BasePathMapping, DomainName, Integration, Method
|
|
|
2
2
|
import { ICertificate } from 'aws-cdk-lib/aws-certificatemanager';
|
|
3
3
|
import { LogGroup } from 'aws-cdk-lib/aws-logs';
|
|
4
4
|
import { IHostedZone } from 'aws-cdk-lib/aws-route53';
|
|
5
|
-
import { ApiToAnyTargetRestApiType } from './types';
|
|
5
|
+
import { ApiToAnyTargetRestApiType } from './types.js';
|
|
6
6
|
export declare class ApiToAnyTargetRestApi implements ApiToAnyTargetRestApiType {
|
|
7
7
|
accessLogGroup: LogGroup;
|
|
8
8
|
api: IRestApi;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ApiToAnyTargetRestApi = void 0;
|
|
4
|
-
class ApiToAnyTargetRestApi {
|
|
1
|
+
export class ApiToAnyTargetRestApi {
|
|
5
2
|
accessLogGroup;
|
|
6
3
|
api;
|
|
7
4
|
authoriser;
|
|
@@ -15,4 +12,3 @@ class ApiToAnyTargetRestApi {
|
|
|
15
12
|
methodResponse;
|
|
16
13
|
resource;
|
|
17
14
|
}
|
|
18
|
-
exports.ApiToAnyTargetRestApi = ApiToAnyTargetRestApi;
|
|
@@ -2,8 +2,8 @@ import { BasePathMapping, DomainName, IAuthorizer, IResource, IRestApi, Integrat
|
|
|
2
2
|
import { ICertificate } from 'aws-cdk-lib/aws-certificatemanager';
|
|
3
3
|
import { LogGroup } from 'aws-cdk-lib/aws-logs';
|
|
4
4
|
import { IHostedZone } from 'aws-cdk-lib/aws-route53';
|
|
5
|
-
import { CommonStackProps } from '../../common';
|
|
6
|
-
import { AcmProps, RestApigProps } from '../../services';
|
|
5
|
+
import { CommonStackProps } from '../../common/index.js';
|
|
6
|
+
import { AcmProps, RestApigProps } from '../../services/index.js';
|
|
7
7
|
export interface ApiToAnyTargetRestApiType {
|
|
8
8
|
accessLogGroup: LogGroup;
|
|
9
9
|
api: IRestApi;
|
|
@@ -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 { LogGroup } from 'aws-cdk-lib/aws-logs';
|
|
5
5
|
import { IHostedZone } from 'aws-cdk-lib/aws-route53';
|
|
6
6
|
import { Topic } from 'aws-cdk-lib/aws-sns';
|
|
7
|
-
import { ApiToEventBridgeTargetRestApiType } from './types';
|
|
7
|
+
import { ApiToEventBridgeTargetRestApiType } from './types.js';
|
|
8
8
|
/**
|
|
9
9
|
* @classdesc Provides a construct to contain api resources for ApiToEventBridgeTargetWithSns
|
|
10
10
|
*/
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ApiToEventbridgeTargetRestApi = void 0;
|
|
4
1
|
/**
|
|
5
2
|
* @classdesc Provides a construct to contain api resources for ApiToEventBridgeTargetWithSns
|
|
6
3
|
*/
|
|
7
|
-
class ApiToEventbridgeTargetRestApi {
|
|
4
|
+
export class ApiToEventbridgeTargetRestApi {
|
|
8
5
|
accessLogGroup;
|
|
9
6
|
api;
|
|
10
7
|
certificate;
|
|
@@ -24,4 +21,3 @@ class ApiToEventbridgeTargetRestApi {
|
|
|
24
21
|
topic;
|
|
25
22
|
role;
|
|
26
23
|
}
|
|
27
|
-
exports.ApiToEventbridgeTargetRestApi = ApiToEventbridgeTargetRestApi;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IEventBus, Rule } from 'aws-cdk-lib/aws-events';
|
|
2
2
|
import { LogGroup } from 'aws-cdk-lib/aws-logs';
|
|
3
|
-
import { ApiToEventBridgeTargetEventType } from './types';
|
|
3
|
+
import { ApiToEventBridgeTargetEventType } from './types.js';
|
|
4
4
|
/**
|
|
5
5
|
* @classdesc Provides a construct to contain event resources for ApiToEventBridgeTargetWithSns
|
|
6
6
|
*/
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ApiToEventbridgeTargetEvent = void 0;
|
|
4
1
|
/**
|
|
5
2
|
* @classdesc Provides a construct to contain event resources for ApiToEventBridgeTargetWithSns
|
|
6
3
|
*/
|
|
7
|
-
class ApiToEventbridgeTargetEvent {
|
|
4
|
+
export class ApiToEventbridgeTargetEvent {
|
|
8
5
|
eventBus;
|
|
9
6
|
logGroup;
|
|
10
7
|
logGroupFailure;
|
|
@@ -13,4 +10,3 @@ class ApiToEventbridgeTargetEvent {
|
|
|
13
10
|
ruleFailure;
|
|
14
11
|
ruleSuccess;
|
|
15
12
|
}
|
|
16
|
-
exports.ApiToEventbridgeTargetEvent = ApiToEventbridgeTargetEvent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './api';
|
|
2
|
-
export * from './event';
|
|
3
|
-
export * from './main';
|
|
4
|
-
export * from './types';
|
|
1
|
+
export * from './api.js';
|
|
2
|
+
export * from './event.js';
|
|
3
|
+
export * from './main.js';
|
|
4
|
+
export * from './types.js';
|
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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("./event"), exports);
|
|
19
|
-
__exportStar(require("./main"), exports);
|
|
20
|
-
__exportStar(require("./types"), exports);
|
|
1
|
+
export * from './api.js';
|
|
2
|
+
export * from './event.js';
|
|
3
|
+
export * from './main.js';
|
|
4
|
+
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 { ApiToEventBridgeTargetEventType, ApiToEventBridgeTargetProps, ApiToEventBridgeTargetRestApiType } from './types';
|
|
3
|
+
import { CommonConstruct } from '../../common/index.js';
|
|
4
|
+
import { ApiToEventBridgeTargetEventType, ApiToEventBridgeTargetProps, ApiToEventBridgeTargetRestApiType } from './types.js';
|
|
5
5
|
/**
|
|
6
6
|
* @classdesc Provides a construct to create and deploy API Gateway invocations to EventBridge
|
|
7
7
|
*
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const common_1 = require("../../common");
|
|
10
|
-
const api_1 = require("./api");
|
|
11
|
-
const event_1 = require("./event");
|
|
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 { CommonConstruct } from '../../common/index.js';
|
|
7
|
+
import { ApiToEventbridgeTargetRestApi } from './api.js';
|
|
8
|
+
import { ApiToEventbridgeTargetEvent } from './event.js';
|
|
12
9
|
/**
|
|
13
10
|
* @classdesc Provides a construct to create and deploy API Gateway invocations to EventBridge
|
|
14
11
|
*
|
|
@@ -26,7 +23,7 @@ const event_1 = require("./event");
|
|
|
26
23
|
* }
|
|
27
24
|
* }
|
|
28
25
|
*/
|
|
29
|
-
class ApiToEventBridgeTarget extends
|
|
26
|
+
export class ApiToEventBridgeTarget extends CommonConstruct {
|
|
30
27
|
props;
|
|
31
28
|
id;
|
|
32
29
|
/* application related resources */
|
|
@@ -40,8 +37,8 @@ class ApiToEventBridgeTarget extends common_1.CommonConstruct {
|
|
|
40
37
|
super(parent, id, props);
|
|
41
38
|
this.props = props;
|
|
42
39
|
this.id = id;
|
|
43
|
-
this.apiEvent = new
|
|
44
|
-
this.apiToEventBridgeTargetRestApi = new
|
|
40
|
+
this.apiEvent = new ApiToEventbridgeTargetEvent();
|
|
41
|
+
this.apiToEventBridgeTargetRestApi = new ApiToEventbridgeTargetRestApi();
|
|
45
42
|
this.apiResource = 'notify';
|
|
46
43
|
}
|
|
47
44
|
initResources() {
|
|
@@ -105,7 +102,7 @@ class ApiToEventBridgeTarget extends common_1.CommonConstruct {
|
|
|
105
102
|
*/
|
|
106
103
|
createApiToEventBridgeTargetEventBus() {
|
|
107
104
|
if (this.props.api.useExisting) {
|
|
108
|
-
this.apiEvent.eventBus =
|
|
105
|
+
this.apiEvent.eventBus = EventBus.fromEventBusName(this, `${this.id}-event-bus`, this.resourceNameFormatter.format(this.props.event.eventBusName ?? 'default', this.props.resourceNameOptions?.eventbridgeBus));
|
|
109
106
|
return;
|
|
110
107
|
}
|
|
111
108
|
this.apiEvent.eventBus = this.eventManager.createEventBus(`${this.id}-event-bus`, this, {
|
|
@@ -139,10 +136,10 @@ class ApiToEventBridgeTarget extends common_1.CommonConstruct {
|
|
|
139
136
|
},
|
|
140
137
|
...this.props.event.rule,
|
|
141
138
|
};
|
|
142
|
-
this.apiEvent.rule = this.eventManager.createRule(`${this.id}-api-to-eventbridge-target-rule`, this, this.props.event.rule, this.apiEvent.eventBus, [new
|
|
139
|
+
this.apiEvent.rule = this.eventManager.createRule(`${this.id}-api-to-eventbridge-target-rule`, this, this.props.event.rule, this.apiEvent.eventBus, [new CloudWatchLogGroup(this.apiEvent.logGroup)]);
|
|
143
140
|
}
|
|
144
141
|
createApiToEventBridgeTargetPolicy() {
|
|
145
|
-
this.apiToEventBridgeTargetRestApi.policy = new
|
|
142
|
+
this.apiToEventBridgeTargetRestApi.policy = new PolicyDocument({
|
|
146
143
|
statements: [this.iamManager.statementForPutEvents()],
|
|
147
144
|
});
|
|
148
145
|
}
|
|
@@ -152,8 +149,8 @@ class ApiToEventBridgeTarget extends common_1.CommonConstruct {
|
|
|
152
149
|
createApiToEventBridgeTargetRole() {
|
|
153
150
|
if (!this.apiToEventBridgeTargetRestApi.policy)
|
|
154
151
|
throw 'Policy undefined';
|
|
155
|
-
this.apiToEventBridgeTargetRestApi.role = new
|
|
156
|
-
assumedBy: new
|
|
152
|
+
this.apiToEventBridgeTargetRestApi.role = new Role(this, `${this.id}-rest-api-role`, {
|
|
153
|
+
assumedBy: new ServicePrincipal('apigateway.amazonaws.com'),
|
|
157
154
|
inlinePolicies: { policy: this.apiToEventBridgeTargetRestApi.policy },
|
|
158
155
|
});
|
|
159
156
|
}
|
|
@@ -232,7 +229,7 @@ class ApiToEventBridgeTarget extends common_1.CommonConstruct {
|
|
|
232
229
|
createApiToEventBridgeTargetIntegration() {
|
|
233
230
|
if (!this.props.api.withResource)
|
|
234
231
|
return;
|
|
235
|
-
this.apiToEventBridgeTargetRestApi.integration = new
|
|
232
|
+
this.apiToEventBridgeTargetRestApi.integration = new Integration({
|
|
236
233
|
integrationHttpMethod: 'POST',
|
|
237
234
|
options: {
|
|
238
235
|
credentialsRole: this.apiToEventBridgeTargetRestApi.role,
|
|
@@ -240,12 +237,12 @@ class ApiToEventBridgeTarget extends common_1.CommonConstruct {
|
|
|
240
237
|
this.apiToEventBridgeTargetRestApi.integrationResponse,
|
|
241
238
|
this.apiToEventBridgeTargetRestApi.integrationErrorResponse,
|
|
242
239
|
],
|
|
243
|
-
passthroughBehavior:
|
|
240
|
+
passthroughBehavior: PassthroughBehavior.NEVER,
|
|
244
241
|
requestParameters: this.apiToEventBridgeTargetRestApi.integrationRequestParameters,
|
|
245
242
|
requestTemplates: this.apiToEventBridgeTargetRestApi.integrationRequestTemplates,
|
|
246
243
|
...this.props.api.integrationOptions,
|
|
247
244
|
},
|
|
248
|
-
type:
|
|
245
|
+
type: IntegrationType.AWS,
|
|
249
246
|
uri: `arn:aws:apigateway:${this.props.region}:events:path//`,
|
|
250
247
|
});
|
|
251
248
|
}
|
|
@@ -292,7 +289,7 @@ class ApiToEventBridgeTarget extends common_1.CommonConstruct {
|
|
|
292
289
|
*/
|
|
293
290
|
createApiToEventBridgeTargetRestApi() {
|
|
294
291
|
if (this.props.api.useExisting && this.props.api.importedRestApiRef) {
|
|
295
|
-
this.apiToEventBridgeTargetRestApi.api =
|
|
292
|
+
this.apiToEventBridgeTargetRestApi.api = RestApi.fromRestApiId(this, `${this.id}-rest-api`, Fn.importValue(this.props.api.importedRestApiRef));
|
|
296
293
|
return;
|
|
297
294
|
}
|
|
298
295
|
if (!this.props.api.restApi?.restApiName)
|
|
@@ -301,14 +298,14 @@ class ApiToEventBridgeTarget extends common_1.CommonConstruct {
|
|
|
301
298
|
const restApiAccessLogName = this.resourceNameFormatter.format(`${this.props.api.restApi?.restApiName}-access`, this.props.resourceNameOptions?.apigateway);
|
|
302
299
|
this.apiToEventBridgeTargetRestApi.accessLogGroup = this.logManager.createLogGroup(`${this.id}-rest-api-access-log`, this, {
|
|
303
300
|
logGroupName: restApiAccessLogName,
|
|
304
|
-
removalPolicy:
|
|
301
|
+
removalPolicy: RemovalPolicy.DESTROY,
|
|
305
302
|
});
|
|
306
|
-
this.apiToEventBridgeTargetRestApi.api = new
|
|
303
|
+
this.apiToEventBridgeTargetRestApi.api = new RestApi(this, `${this.id}-rest-api`, {
|
|
307
304
|
cloudWatchRole: this.props.api.restApi?.cloudWatchRole ?? true,
|
|
308
305
|
defaultCorsPreflightOptions: {
|
|
309
|
-
allowHeaders:
|
|
306
|
+
allowHeaders: Cors.DEFAULT_HEADERS,
|
|
310
307
|
allowMethods: ['POST'],
|
|
311
|
-
allowOrigins:
|
|
308
|
+
allowOrigins: Cors.ALL_ORIGINS,
|
|
312
309
|
},
|
|
313
310
|
defaultIntegration: this.apiToEventBridgeTargetRestApi.integration,
|
|
314
311
|
defaultMethodOptions: {
|
|
@@ -319,17 +316,17 @@ class ApiToEventBridgeTarget extends common_1.CommonConstruct {
|
|
|
319
316
|
},
|
|
320
317
|
deploy: this.props.api.restApi?.deploy ?? true,
|
|
321
318
|
deployOptions: {
|
|
322
|
-
accessLogDestination: new
|
|
323
|
-
accessLogFormat:
|
|
319
|
+
accessLogDestination: new LogGroupLogDestination(this.apiToEventBridgeTargetRestApi.accessLogGroup),
|
|
320
|
+
accessLogFormat: AccessLogFormat.jsonWithStandardFields(),
|
|
324
321
|
dataTraceEnabled: this.props.api.restApi?.deployOptions?.dataTraceEnabled,
|
|
325
322
|
description: `${this.id} - ${this.props.stage} stage`,
|
|
326
|
-
loggingLevel:
|
|
323
|
+
loggingLevel: MethodLoggingLevel.INFO,
|
|
327
324
|
metricsEnabled: true,
|
|
328
325
|
stageName: this.props.stage,
|
|
329
326
|
tracingEnabled: this.props.api.restApi?.deployOptions?.tracingEnabled,
|
|
330
327
|
},
|
|
331
328
|
endpointConfiguration: {
|
|
332
|
-
types: [
|
|
329
|
+
types: [EndpointType.REGIONAL],
|
|
333
330
|
},
|
|
334
331
|
...this.props.api.restApi,
|
|
335
332
|
restApiName,
|
|
@@ -343,15 +340,15 @@ class ApiToEventBridgeTarget extends common_1.CommonConstruct {
|
|
|
343
340
|
createApiToEventBridgeTargetResponseModel() {
|
|
344
341
|
if (!this.props.api.withResource)
|
|
345
342
|
return;
|
|
346
|
-
this.apiToEventBridgeTargetRestApi.responseModel = new
|
|
343
|
+
this.apiToEventBridgeTargetRestApi.responseModel = new Model(this, `${this.id}-response-model`, {
|
|
347
344
|
restApi: this.apiToEventBridgeTargetRestApi.api,
|
|
348
345
|
contentType: 'application/json',
|
|
349
346
|
modelName: 'ResponseModel',
|
|
350
347
|
schema: {
|
|
351
|
-
properties: { message: { type:
|
|
352
|
-
schema:
|
|
348
|
+
properties: { message: { type: JsonSchemaType.STRING } },
|
|
349
|
+
schema: JsonSchemaVersion.DRAFT4,
|
|
353
350
|
title: 'pollResponse',
|
|
354
|
-
type:
|
|
351
|
+
type: JsonSchemaType.OBJECT,
|
|
355
352
|
},
|
|
356
353
|
...this.props.api.responseModel,
|
|
357
354
|
});
|
|
@@ -362,18 +359,18 @@ class ApiToEventBridgeTarget extends common_1.CommonConstruct {
|
|
|
362
359
|
createApiToEventBridgeTargetErrorResponseModel() {
|
|
363
360
|
if (!this.props.api.withResource)
|
|
364
361
|
return;
|
|
365
|
-
this.apiToEventBridgeTargetRestApi.errorResponseModel = new
|
|
362
|
+
this.apiToEventBridgeTargetRestApi.errorResponseModel = new Model(this, `${this.id}-error-response-model`, {
|
|
366
363
|
restApi: this.apiToEventBridgeTargetRestApi.api,
|
|
367
364
|
contentType: 'application/json',
|
|
368
365
|
modelName: 'ErrorResponseModel',
|
|
369
366
|
schema: {
|
|
370
367
|
properties: {
|
|
371
|
-
message: { type:
|
|
372
|
-
state: { type:
|
|
368
|
+
message: { type: JsonSchemaType.STRING },
|
|
369
|
+
state: { type: JsonSchemaType.STRING },
|
|
373
370
|
},
|
|
374
|
-
schema:
|
|
371
|
+
schema: JsonSchemaVersion.DRAFT4,
|
|
375
372
|
title: 'errorResponse',
|
|
376
|
-
type:
|
|
373
|
+
type: JsonSchemaType.OBJECT,
|
|
377
374
|
},
|
|
378
375
|
...this.props.api.errorResponseModel,
|
|
379
376
|
});
|
|
@@ -386,9 +383,9 @@ class ApiToEventBridgeTarget extends common_1.CommonConstruct {
|
|
|
386
383
|
return;
|
|
387
384
|
let rootResource;
|
|
388
385
|
if (this.props.api.withResource && this.props.api.importedRestApiRootResourceRef) {
|
|
389
|
-
rootResource =
|
|
386
|
+
rootResource = Resource.fromResourceAttributes(this, `${this.id}-root-resource`, {
|
|
390
387
|
path: '/',
|
|
391
|
-
resourceId:
|
|
388
|
+
resourceId: Fn.importValue(this.props.api.importedRestApiRootResourceRef),
|
|
392
389
|
restApi: this.apiToEventBridgeTargetRestApi.api,
|
|
393
390
|
});
|
|
394
391
|
}
|
|
@@ -427,7 +424,7 @@ class ApiToEventBridgeTarget extends common_1.CommonConstruct {
|
|
|
427
424
|
createApiBasePathMapping() {
|
|
428
425
|
if (this.props.api.useExisting)
|
|
429
426
|
return;
|
|
430
|
-
new
|
|
427
|
+
new BasePathMapping(this, `${this.id}-base-bath-mapping`, {
|
|
431
428
|
basePath: '',
|
|
432
429
|
domainName: this.apiToEventBridgeTargetRestApi.domain,
|
|
433
430
|
restApi: this.apiToEventBridgeTargetRestApi.api,
|
|
@@ -443,4 +440,3 @@ class ApiToEventBridgeTarget extends common_1.CommonConstruct {
|
|
|
443
440
|
this.route53Manager.createApiGatewayARecord(`${this.id}-custom-domain-a-record`, this, this.props.apiSubDomain, this.apiToEventBridgeTargetRestApi.domain, this.apiToEventBridgeTargetRestApi.hostedZone, this.props.skipStageForARecords);
|
|
444
441
|
}
|
|
445
442
|
}
|
|
446
|
-
exports.ApiToEventBridgeTarget = ApiToEventBridgeTarget;
|
|
@@ -6,8 +6,8 @@ import { AssetCode } from 'aws-cdk-lib/aws-lambda';
|
|
|
6
6
|
import { LogGroup } from 'aws-cdk-lib/aws-logs';
|
|
7
7
|
import { IHostedZone } from 'aws-cdk-lib/aws-route53';
|
|
8
8
|
import { ITopic } from 'aws-cdk-lib/aws-sns';
|
|
9
|
-
import { CommonStackProps } from '../../common';
|
|
10
|
-
import { AcmProps, EventRuleProps, LambdaProps, LogProps, RestApigProps } from '../../services';
|
|
9
|
+
import { CommonStackProps } from '../../common/index.js';
|
|
10
|
+
import { AcmProps, EventRuleProps, LambdaProps, LogProps, RestApigProps } from '../../services/index.js';
|
|
11
11
|
/**
|
|
12
12
|
*/
|
|
13
13
|
export interface ApiToEventBridgeTargetEventType {
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
package/dist/src/lib/aws/construct/api-to-eventbridge-target-with-sns/api-destined-lambda.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PolicyDocument, Role } from 'aws-cdk-lib/aws-iam';
|
|
2
2
|
import { IFunction, LayerVersion } from 'aws-cdk-lib/aws-lambda';
|
|
3
3
|
import { EventBridgeDestination } from 'aws-cdk-lib/aws-lambda-destinations';
|
|
4
|
-
import { ApiDestinedLambdaEnvironment, ApiDestinedLambdaType } from './types';
|
|
4
|
+
import { ApiDestinedLambdaEnvironment, ApiDestinedLambdaType } from './types.js';
|
|
5
5
|
/**
|
|
6
6
|
* @classdesc Provides a construct to contain lambda resources for ApiToEventBridgeTargetWithSns
|
|
7
7
|
*/
|
package/dist/src/lib/aws/construct/api-to-eventbridge-target-with-sns/api-destined-lambda.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ApiDestinedLambda = void 0;
|
|
4
1
|
/**
|
|
5
2
|
* @classdesc Provides a construct to contain lambda resources for ApiToEventBridgeTargetWithSns
|
|
6
3
|
*/
|
|
7
|
-
class ApiDestinedLambda {
|
|
4
|
+
export class ApiDestinedLambda {
|
|
8
5
|
destinationFailure;
|
|
9
6
|
destinationSuccess;
|
|
10
7
|
environment;
|
|
@@ -13,4 +10,3 @@ class ApiDestinedLambda {
|
|
|
13
10
|
policy;
|
|
14
11
|
role;
|
|
15
12
|
}
|
|
16
|
-
exports.ApiDestinedLambda = ApiDestinedLambda;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './api-destined-lambda';
|
|
2
|
-
export * from './main';
|
|
3
|
-
export * from './types';
|
|
1
|
+
export * from './api-destined-lambda.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-destined-lambda"), exports);
|
|
18
|
-
__exportStar(require("./main"), exports);
|
|
19
|
-
__exportStar(require("./types"), exports);
|
|
1
|
+
export * from './api-destined-lambda.js';
|
|
2
|
+
export * from './main.js';
|
|
3
|
+
export * from './types.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ISecret } from 'aws-cdk-lib/aws-secretsmanager';
|
|
2
2
|
import { Construct } from 'constructs';
|
|
3
|
-
import { CommonConstruct } from '../../common';
|
|
4
|
-
import { ApiToEventBridgeTargetEventType, ApiToEventBridgeTargetProps, ApiToEventBridgeTargetRestApiType } from '../api-to-eventbridge-target';
|
|
5
|
-
import { ApiDestinedLambdaType } from './types';
|
|
3
|
+
import { CommonConstruct } from '../../common/index.js';
|
|
4
|
+
import { ApiToEventBridgeTargetEventType, ApiToEventBridgeTargetProps, ApiToEventBridgeTargetRestApiType } from '../api-to-eventbridge-target/index.js';
|
|
5
|
+
import { ApiDestinedLambdaType } from './types.js';
|
|
6
6
|
/**
|
|
7
7
|
* @deprecated Use ApiToEventBridgeTarget instead. This will be removed in a future release.
|
|
8
8
|
* @classdesc Provides a construct to create and deploy API Gateway invocations to EventBridge
|