@gradientedge/cdk-utils 9.84.0 → 9.85.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.husky/pre-commit +4 -0
- package/app/api-destined-function/node_modules/.bin/rimraf +2 -2
- package/app/api-destined-function/node_modules/.bin/uuid +4 -4
- package/app/api-destined-function/package.json +5 -4
- package/babel.config.mjs +16 -0
- package/dist/app/api-destined-function/src/lib/lambda.js +4 -8
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -17
- package/dist/lib/lambda.js +4 -8
- package/dist/lib/lambda.js.map +1 -1
- package/dist/src/lib/aws/common/construct.d.ts +3 -3
- package/dist/src/lib/aws/common/construct.js +41 -45
- package/dist/src/lib/aws/common/index.d.ts +4 -4
- package/dist/src/lib/aws/common/index.js +4 -20
- package/dist/src/lib/aws/common/resource-name-formatter.d.ts +1 -1
- package/dist/src/lib/aws/common/resource-name-formatter.js +12 -14
- package/dist/src/lib/aws/common/stack.d.ts +2 -2
- package/dist/src/lib/aws/common/stack.js +22 -29
- package/dist/src/lib/aws/common/types.d.ts +1 -1
- package/dist/src/lib/aws/common/types.js +1 -2
- package/dist/src/lib/aws/construct/api-to-any-target/index.d.ts +3 -3
- package/dist/src/lib/aws/construct/api-to-any-target/index.js +3 -19
- package/dist/src/lib/aws/construct/api-to-any-target/main.d.ts +2 -2
- package/dist/src/lib/aws/construct/api-to-any-target/main.js +19 -23
- package/dist/src/lib/aws/construct/api-to-any-target/target.d.ts +1 -1
- package/dist/src/lib/aws/construct/api-to-any-target/target.js +1 -5
- package/dist/src/lib/aws/construct/api-to-any-target/types.d.ts +2 -2
- package/dist/src/lib/aws/construct/api-to-any-target/types.js +1 -2
- package/dist/src/lib/aws/construct/api-to-eventbridge-target/api.d.ts +1 -1
- package/dist/src/lib/aws/construct/api-to-eventbridge-target/api.js +1 -5
- package/dist/src/lib/aws/construct/api-to-eventbridge-target/event.d.ts +1 -1
- package/dist/src/lib/aws/construct/api-to-eventbridge-target/event.js +1 -5
- package/dist/src/lib/aws/construct/api-to-eventbridge-target/index.d.ts +4 -4
- package/dist/src/lib/aws/construct/api-to-eventbridge-target/index.js +4 -20
- package/dist/src/lib/aws/construct/api-to-eventbridge-target/main.d.ts +2 -2
- package/dist/src/lib/aws/construct/api-to-eventbridge-target/main.js +40 -44
- package/dist/src/lib/aws/construct/api-to-eventbridge-target/types.d.ts +2 -2
- package/dist/src/lib/aws/construct/api-to-eventbridge-target/types.js +1 -2
- package/dist/src/lib/aws/construct/api-to-eventbridge-target-with-sns/api-destined-lambda.d.ts +1 -1
- package/dist/src/lib/aws/construct/api-to-eventbridge-target-with-sns/api-destined-lambda.js +1 -5
- package/dist/src/lib/aws/construct/api-to-eventbridge-target-with-sns/index.d.ts +3 -3
- package/dist/src/lib/aws/construct/api-to-eventbridge-target-with-sns/index.js +3 -19
- package/dist/src/lib/aws/construct/api-to-eventbridge-target-with-sns/main.d.ts +3 -3
- package/dist/src/lib/aws/construct/api-to-eventbridge-target-with-sns/main.js +45 -49
- package/dist/src/lib/aws/construct/api-to-eventbridge-target-with-sns/types.d.ts +1 -1
- package/dist/src/lib/aws/construct/api-to-eventbridge-target-with-sns/types.js +1 -2
- package/dist/src/lib/aws/construct/api-to-lambda-target/api.d.ts +1 -1
- package/dist/src/lib/aws/construct/api-to-lambda-target/api.js +1 -5
- package/dist/src/lib/aws/construct/api-to-lambda-target/index.d.ts +3 -3
- package/dist/src/lib/aws/construct/api-to-lambda-target/index.js +3 -19
- package/dist/src/lib/aws/construct/api-to-lambda-target/main.d.ts +2 -2
- package/dist/src/lib/aws/construct/api-to-lambda-target/main.js +17 -21
- package/dist/src/lib/aws/construct/api-to-lambda-target/types.d.ts +2 -2
- package/dist/src/lib/aws/construct/api-to-lambda-target/types.js +1 -2
- package/dist/src/lib/aws/construct/application-configuration/index.d.ts +2 -2
- package/dist/src/lib/aws/construct/application-configuration/index.js +2 -18
- package/dist/src/lib/aws/construct/application-configuration/main.d.ts +2 -2
- package/dist/src/lib/aws/construct/application-configuration/main.js +22 -26
- package/dist/src/lib/aws/construct/application-configuration/types.d.ts +2 -2
- package/dist/src/lib/aws/construct/application-configuration/types.js +1 -2
- package/dist/src/lib/aws/construct/event-handler/handler.d.ts +1 -1
- package/dist/src/lib/aws/construct/event-handler/handler.js +1 -5
- package/dist/src/lib/aws/construct/event-handler/index.d.ts +3 -3
- package/dist/src/lib/aws/construct/event-handler/index.js +3 -19
- package/dist/src/lib/aws/construct/event-handler/main.d.ts +3 -3
- package/dist/src/lib/aws/construct/event-handler/main.js +22 -29
- package/dist/src/lib/aws/construct/event-handler/types.d.ts +2 -2
- package/dist/src/lib/aws/construct/event-handler/types.js +1 -2
- package/dist/src/lib/aws/construct/index.d.ts +14 -14
- package/dist/src/lib/aws/construct/index.js +14 -30
- package/dist/src/lib/aws/construct/lambda-with-iam-access/index.d.ts +2 -2
- package/dist/src/lib/aws/construct/lambda-with-iam-access/index.js +2 -18
- package/dist/src/lib/aws/construct/lambda-with-iam-access/main.d.ts +2 -2
- package/dist/src/lib/aws/construct/lambda-with-iam-access/main.js +22 -29
- package/dist/src/lib/aws/construct/lambda-with-iam-access/types.d.ts +2 -2
- package/dist/src/lib/aws/construct/lambda-with-iam-access/types.js +1 -2
- package/dist/src/lib/aws/construct/piped-event-handler/index.d.ts +2 -2
- package/dist/src/lib/aws/construct/piped-event-handler/index.js +2 -18
- package/dist/src/lib/aws/construct/piped-event-handler/main.d.ts +2 -2
- package/dist/src/lib/aws/construct/piped-event-handler/main.js +8 -15
- package/dist/src/lib/aws/construct/piped-event-handler/types.d.ts +2 -2
- package/dist/src/lib/aws/construct/piped-event-handler/types.js +1 -2
- package/dist/src/lib/aws/construct/rest-api-lambda/index.d.ts +2 -2
- package/dist/src/lib/aws/construct/rest-api-lambda/index.js +2 -18
- package/dist/src/lib/aws/construct/rest-api-lambda/main.d.ts +2 -2
- package/dist/src/lib/aws/construct/rest-api-lambda/main.js +11 -18
- package/dist/src/lib/aws/construct/rest-api-lambda/types.d.ts +2 -2
- package/dist/src/lib/aws/construct/rest-api-lambda/types.js +1 -2
- package/dist/src/lib/aws/construct/rest-api-lambda-with-cache/index.d.ts +2 -2
- package/dist/src/lib/aws/construct/rest-api-lambda-with-cache/index.js +2 -18
- package/dist/src/lib/aws/construct/rest-api-lambda-with-cache/main.d.ts +2 -2
- package/dist/src/lib/aws/construct/rest-api-lambda-with-cache/main.js +14 -21
- package/dist/src/lib/aws/construct/rest-api-lambda-with-cache/types.d.ts +2 -2
- package/dist/src/lib/aws/construct/rest-api-lambda-with-cache/types.js +1 -2
- package/dist/src/lib/aws/construct/site-with-ecs-backend/constants.js +2 -5
- package/dist/src/lib/aws/construct/site-with-ecs-backend/index.d.ts +3 -3
- package/dist/src/lib/aws/construct/site-with-ecs-backend/index.js +3 -19
- package/dist/src/lib/aws/construct/site-with-ecs-backend/main.d.ts +2 -2
- package/dist/src/lib/aws/construct/site-with-ecs-backend/main.js +31 -38
- package/dist/src/lib/aws/construct/site-with-ecs-backend/types.d.ts +3 -3
- package/dist/src/lib/aws/construct/site-with-ecs-backend/types.js +1 -2
- package/dist/src/lib/aws/construct/site-with-lambda-backend/constants.js +3 -6
- package/dist/src/lib/aws/construct/site-with-lambda-backend/index.d.ts +3 -3
- package/dist/src/lib/aws/construct/site-with-lambda-backend/index.js +3 -19
- package/dist/src/lib/aws/construct/site-with-lambda-backend/main.d.ts +2 -2
- package/dist/src/lib/aws/construct/site-with-lambda-backend/main.js +31 -38
- package/dist/src/lib/aws/construct/site-with-lambda-backend/types.d.ts +3 -3
- package/dist/src/lib/aws/construct/site-with-lambda-backend/types.js +1 -2
- package/dist/src/lib/aws/construct/static-asset-deployment/index.d.ts +2 -2
- package/dist/src/lib/aws/construct/static-asset-deployment/index.js +2 -18
- package/dist/src/lib/aws/construct/static-asset-deployment/main.d.ts +2 -2
- package/dist/src/lib/aws/construct/static-asset-deployment/main.js +13 -20
- package/dist/src/lib/aws/construct/static-asset-deployment/types.d.ts +2 -2
- package/dist/src/lib/aws/construct/static-asset-deployment/types.js +1 -2
- package/dist/src/lib/aws/construct/static-site/index.d.ts +2 -2
- package/dist/src/lib/aws/construct/static-site/index.js +2 -18
- package/dist/src/lib/aws/construct/static-site/main.d.ts +2 -5
- package/dist/src/lib/aws/construct/static-site/main.js +5 -15
- package/dist/src/lib/aws/construct/static-site/types.d.ts +2 -2
- package/dist/src/lib/aws/construct/static-site/types.js +1 -2
- package/dist/src/lib/aws/index.d.ts +5 -5
- package/dist/src/lib/aws/index.js +5 -21
- package/dist/src/lib/aws/services/api-gateway/index.d.ts +2 -2
- package/dist/src/lib/aws/services/api-gateway/index.js +2 -18
- package/dist/src/lib/aws/services/api-gateway/main.d.ts +2 -2
- package/dist/src/lib/aws/services/api-gateway/main.js +27 -34
- package/dist/src/lib/aws/services/api-gateway/types.d.ts +1 -1
- package/dist/src/lib/aws/services/api-gateway/types.js +1 -2
- package/dist/src/lib/aws/services/appconfig/constants.js +2 -5
- package/dist/src/lib/aws/services/appconfig/index.d.ts +3 -3
- package/dist/src/lib/aws/services/appconfig/index.js +3 -19
- package/dist/src/lib/aws/services/appconfig/main.d.ts +3 -3
- package/dist/src/lib/aws/services/appconfig/main.js +23 -27
- package/dist/src/lib/aws/services/appconfig/types.js +1 -2
- package/dist/src/lib/aws/services/certificate-manager/index.d.ts +2 -2
- package/dist/src/lib/aws/services/certificate-manager/index.js +2 -18
- package/dist/src/lib/aws/services/certificate-manager/main.d.ts +2 -2
- package/dist/src/lib/aws/services/certificate-manager/main.js +10 -14
- package/dist/src/lib/aws/services/certificate-manager/types.js +1 -2
- package/dist/src/lib/aws/services/cloudfront/index.d.ts +2 -2
- package/dist/src/lib/aws/services/cloudfront/index.js +2 -18
- package/dist/src/lib/aws/services/cloudfront/main.d.ts +7 -20
- package/dist/src/lib/aws/services/cloudfront/main.js +54 -141
- package/dist/src/lib/aws/services/cloudfront/types.d.ts +2 -7
- package/dist/src/lib/aws/services/cloudfront/types.js +1 -2
- package/dist/src/lib/aws/services/cloudtrail/index.d.ts +2 -2
- package/dist/src/lib/aws/services/cloudtrail/index.js +2 -18
- package/dist/src/lib/aws/services/cloudtrail/main.d.ts +2 -2
- package/dist/src/lib/aws/services/cloudtrail/main.js +6 -10
- package/dist/src/lib/aws/services/cloudtrail/types.js +1 -2
- package/dist/src/lib/aws/services/cloudwatch/index.d.ts +3 -3
- package/dist/src/lib/aws/services/cloudwatch/index.js +3 -19
- package/dist/src/lib/aws/services/cloudwatch/logs.d.ts +2 -2
- package/dist/src/lib/aws/services/cloudwatch/logs.js +9 -49
- package/dist/src/lib/aws/services/cloudwatch/main.d.ts +2 -2
- package/dist/src/lib/aws/services/cloudwatch/main.js +8 -48
- package/dist/src/lib/aws/services/cloudwatch/types.d.ts +1 -1
- package/dist/src/lib/aws/services/cloudwatch/types.js +1 -2
- package/dist/src/lib/aws/services/codebuild/index.d.ts +1 -1
- package/dist/src/lib/aws/services/codebuild/index.js +1 -17
- package/dist/src/lib/aws/services/codebuild/main.d.ts +1 -1
- package/dist/src/lib/aws/services/codebuild/main.js +8 -12
- package/dist/src/lib/aws/services/constants.js +2 -5
- package/dist/src/lib/aws/services/dynamodb/index.d.ts +2 -2
- package/dist/src/lib/aws/services/dynamodb/index.js +2 -18
- package/dist/src/lib/aws/services/dynamodb/main.d.ts +2 -2
- package/dist/src/lib/aws/services/dynamodb/main.js +19 -24
- package/dist/src/lib/aws/services/dynamodb/types.d.ts +1 -1
- package/dist/src/lib/aws/services/dynamodb/types.js +1 -2
- package/dist/src/lib/aws/services/elastic-container-registry/index.d.ts +1 -1
- package/dist/src/lib/aws/services/elastic-container-registry/index.js +1 -17
- package/dist/src/lib/aws/services/elastic-container-registry/main.d.ts +1 -1
- package/dist/src/lib/aws/services/elastic-container-registry/main.js +5 -9
- package/dist/src/lib/aws/services/elastic-container-service/index.d.ts +2 -2
- package/dist/src/lib/aws/services/elastic-container-service/index.js +2 -18
- package/dist/src/lib/aws/services/elastic-container-service/main.d.ts +2 -2
- package/dist/src/lib/aws/services/elastic-container-service/main.js +29 -36
- package/dist/src/lib/aws/services/elastic-container-service/types.d.ts +1 -1
- package/dist/src/lib/aws/services/elastic-container-service/types.js +1 -2
- package/dist/src/lib/aws/services/elastic-file-system/index.d.ts +2 -2
- package/dist/src/lib/aws/services/elastic-file-system/index.js +2 -18
- package/dist/src/lib/aws/services/elastic-file-system/main.d.ts +2 -2
- package/dist/src/lib/aws/services/elastic-file-system/main.js +19 -26
- package/dist/src/lib/aws/services/elastic-file-system/types.js +1 -2
- package/dist/src/lib/aws/services/elastic-kubernetes-service/index.d.ts +2 -2
- package/dist/src/lib/aws/services/elastic-kubernetes-service/index.js +2 -18
- package/dist/src/lib/aws/services/elastic-kubernetes-service/main.d.ts +2 -2
- package/dist/src/lib/aws/services/elastic-kubernetes-service/main.js +9 -13
- package/dist/src/lib/aws/services/elastic-kubernetes-service/types.js +1 -2
- package/dist/src/lib/aws/services/elasticache/index.d.ts +2 -2
- package/dist/src/lib/aws/services/elasticache/index.js +2 -18
- package/dist/src/lib/aws/services/elasticache/main.d.ts +2 -2
- package/dist/src/lib/aws/services/elasticache/main.js +14 -21
- package/dist/src/lib/aws/services/elasticache/types.js +1 -2
- package/dist/src/lib/aws/services/eventbridge/index.d.ts +3 -3
- package/dist/src/lib/aws/services/eventbridge/index.js +3 -19
- package/dist/src/lib/aws/services/eventbridge/main.d.ts +2 -2
- package/dist/src/lib/aws/services/eventbridge/main.js +39 -46
- package/dist/src/lib/aws/services/eventbridge/target.d.ts +1 -1
- package/dist/src/lib/aws/services/eventbridge/target.js +7 -12
- package/dist/src/lib/aws/services/eventbridge/types.d.ts +1 -1
- package/dist/src/lib/aws/services/eventbridge/types.js +1 -2
- package/dist/src/lib/aws/services/evidently/index.d.ts +2 -2
- package/dist/src/lib/aws/services/evidently/index.js +2 -18
- package/dist/src/lib/aws/services/evidently/main.d.ts +2 -2
- package/dist/src/lib/aws/services/evidently/main.js +18 -22
- package/dist/src/lib/aws/services/evidently/types.js +1 -2
- package/dist/src/lib/aws/services/identity-access-management/index.d.ts +1 -1
- package/dist/src/lib/aws/services/identity-access-management/index.js +1 -17
- package/dist/src/lib/aws/services/identity-access-management/main.d.ts +1 -1
- package/dist/src/lib/aws/services/identity-access-management/main.js +112 -116
- package/dist/src/lib/aws/services/index.d.ts +28 -28
- package/dist/src/lib/aws/services/index.js +28 -44
- package/dist/src/lib/aws/services/key-management-service/index.d.ts +2 -2
- package/dist/src/lib/aws/services/key-management-service/index.js +2 -18
- package/dist/src/lib/aws/services/key-management-service/main.d.ts +2 -2
- package/dist/src/lib/aws/services/key-management-service/main.js +6 -10
- package/dist/src/lib/aws/services/key-management-service/types.js +1 -2
- package/dist/src/lib/aws/services/lambda/index.d.ts +2 -2
- package/dist/src/lib/aws/services/lambda/index.js +2 -18
- package/dist/src/lib/aws/services/lambda/main.d.ts +4 -3
- package/dist/src/lib/aws/services/lambda/main.js +48 -57
- package/dist/src/lib/aws/services/lambda/types.d.ts +4 -3
- package/dist/src/lib/aws/services/lambda/types.js +1 -2
- package/dist/src/lib/aws/services/route53/index.d.ts +2 -2
- package/dist/src/lib/aws/services/route53/index.js +2 -18
- package/dist/src/lib/aws/services/route53/main.d.ts +2 -2
- package/dist/src/lib/aws/services/route53/main.js +21 -25
- package/dist/src/lib/aws/services/route53/types.js +1 -2
- package/dist/src/lib/aws/services/secrets-manager/index.d.ts +2 -2
- package/dist/src/lib/aws/services/secrets-manager/index.js +2 -18
- package/dist/src/lib/aws/services/secrets-manager/main.d.ts +2 -2
- package/dist/src/lib/aws/services/secrets-manager/main.js +12 -16
- package/dist/src/lib/aws/services/secrets-manager/types.js +1 -2
- package/dist/src/lib/aws/services/simple-notification-service/index.d.ts +2 -2
- package/dist/src/lib/aws/services/simple-notification-service/index.js +2 -18
- package/dist/src/lib/aws/services/simple-notification-service/main.d.ts +2 -2
- package/dist/src/lib/aws/services/simple-notification-service/main.js +14 -21
- package/dist/src/lib/aws/services/simple-notification-service/types.js +1 -2
- package/dist/src/lib/aws/services/simple-queue-service/index.d.ts +2 -2
- package/dist/src/lib/aws/services/simple-queue-service/index.js +2 -18
- package/dist/src/lib/aws/services/simple-queue-service/main.d.ts +3 -3
- package/dist/src/lib/aws/services/simple-queue-service/main.js +18 -25
- package/dist/src/lib/aws/services/simple-queue-service/types.d.ts +1 -1
- package/dist/src/lib/aws/services/simple-queue-service/types.js +1 -2
- package/dist/src/lib/aws/services/simple-storage-service/index.d.ts +2 -2
- package/dist/src/lib/aws/services/simple-storage-service/index.js +2 -18
- package/dist/src/lib/aws/services/simple-storage-service/main.d.ts +2 -2
- package/dist/src/lib/aws/services/simple-storage-service/main.js +35 -42
- package/dist/src/lib/aws/services/simple-storage-service/types.d.ts +1 -1
- package/dist/src/lib/aws/services/simple-storage-service/types.js +1 -2
- package/dist/src/lib/aws/services/step-function/index.d.ts +2 -2
- package/dist/src/lib/aws/services/step-function/index.js +2 -18
- package/dist/src/lib/aws/services/step-function/main.d.ts +2 -2
- package/dist/src/lib/aws/services/step-function/main.js +45 -52
- package/dist/src/lib/aws/services/step-function/types.js +1 -2
- package/dist/src/lib/aws/services/systems-manager/index.d.ts +2 -2
- package/dist/src/lib/aws/services/systems-manager/index.js +2 -18
- package/dist/src/lib/aws/services/systems-manager/main.d.ts +2 -2
- package/dist/src/lib/aws/services/systems-manager/main.js +11 -16
- package/dist/src/lib/aws/services/systems-manager/types.js +1 -2
- package/dist/src/lib/aws/services/virtual-private-cloud/index.d.ts +2 -2
- package/dist/src/lib/aws/services/virtual-private-cloud/index.js +2 -18
- package/dist/src/lib/aws/services/virtual-private-cloud/ipv6.d.ts +2 -2
- package/dist/src/lib/aws/services/virtual-private-cloud/ipv6.js +12 -19
- package/dist/src/lib/aws/services/virtual-private-cloud/main.d.ts +2 -2
- package/dist/src/lib/aws/services/virtual-private-cloud/main.js +19 -26
- package/dist/src/lib/aws/services/virtual-private-cloud/types.js +1 -2
- package/dist/src/lib/aws/services/web-application-firewall/index.d.ts +2 -2
- package/dist/src/lib/aws/services/web-application-firewall/index.js +2 -18
- package/dist/src/lib/aws/services/web-application-firewall/main.d.ts +2 -2
- package/dist/src/lib/aws/services/web-application-firewall/main.js +9 -13
- package/dist/src/lib/aws/services/web-application-firewall/types.js +1 -2
- package/dist/src/lib/aws/types/index.js +1 -2
- package/dist/src/lib/aws/utils/index.d.ts +1 -1
- package/dist/src/lib/aws/utils/index.js +11 -20
- package/dist/src/lib/azure/.gen/providers/azapi/provider/index.js +4 -43
- package/dist/src/lib/azure/common/constants.js +3 -6
- package/dist/src/lib/azure/common/construct.d.ts +3 -3
- package/dist/src/lib/azure/common/construct.js +37 -41
- package/dist/src/lib/azure/common/index.d.ts +6 -6
- package/dist/src/lib/azure/common/index.js +6 -22
- package/dist/src/lib/azure/common/resource-name-formatter.d.ts +1 -2
- package/dist/src/lib/azure/common/resource-name-formatter.js +2 -6
- package/dist/src/lib/azure/common/stack.d.ts +2 -2
- package/dist/src/lib/azure/common/stack.js +20 -27
- package/dist/src/lib/azure/common/tagging.js +5 -9
- package/dist/src/lib/azure/common/types.d.ts +3 -3
- package/dist/src/lib/azure/common/types.js +1 -2
- package/dist/src/lib/azure/index.d.ts +4 -4
- package/dist/src/lib/azure/index.js +4 -20
- package/dist/src/lib/azure/services/api-management/index.d.ts +2 -2
- package/dist/src/lib/azure/services/api-management/index.js +2 -18
- package/dist/src/lib/azure/services/api-management/main.d.ts +9 -9
- package/dist/src/lib/azure/services/api-management/main.js +41 -48
- package/dist/src/lib/azure/services/api-management/types.d.ts +6 -6
- package/dist/src/lib/azure/services/api-management/types.js +1 -2
- package/dist/src/lib/azure/services/app-configuration/index.d.ts +2 -2
- package/dist/src/lib/azure/services/app-configuration/index.js +2 -18
- package/dist/src/lib/azure/services/app-configuration/main.d.ts +3 -3
- package/dist/src/lib/azure/services/app-configuration/main.js +9 -13
- package/dist/src/lib/azure/services/app-configuration/types.d.ts +1 -1
- package/dist/src/lib/azure/services/app-configuration/types.js +1 -2
- package/dist/src/lib/azure/services/app-service/index.d.ts +2 -2
- package/dist/src/lib/azure/services/app-service/index.js +2 -18
- package/dist/src/lib/azure/services/app-service/main.d.ts +4 -4
- package/dist/src/lib/azure/services/app-service/main.js +16 -20
- package/dist/src/lib/azure/services/app-service/types.d.ts +2 -2
- package/dist/src/lib/azure/services/app-service/types.js +1 -2
- package/dist/src/lib/azure/services/application-insights/index.d.ts +2 -2
- package/dist/src/lib/azure/services/application-insights/index.js +2 -18
- package/dist/src/lib/azure/services/application-insights/main.d.ts +3 -3
- package/dist/src/lib/azure/services/application-insights/main.js +9 -13
- package/dist/src/lib/azure/services/application-insights/types.d.ts +1 -1
- package/dist/src/lib/azure/services/application-insights/types.js +1 -2
- package/dist/src/lib/azure/services/cosmosdb/index.d.ts +2 -2
- package/dist/src/lib/azure/services/cosmosdb/index.js +2 -18
- package/dist/src/lib/azure/services/cosmosdb/main.d.ts +5 -5
- package/dist/src/lib/azure/services/cosmosdb/main.js +21 -25
- package/dist/src/lib/azure/services/cosmosdb/types.d.ts +3 -3
- package/dist/src/lib/azure/services/cosmosdb/types.js +1 -2
- package/dist/src/lib/azure/services/dns/index.d.ts +2 -2
- package/dist/src/lib/azure/services/dns/index.js +2 -18
- package/dist/src/lib/azure/services/dns/main.d.ts +6 -6
- package/dist/src/lib/azure/services/dns/main.js +24 -28
- package/dist/src/lib/azure/services/dns/types.d.ts +4 -4
- package/dist/src/lib/azure/services/dns/types.js +1 -2
- package/dist/src/lib/azure/services/eventgrid/index.d.ts +2 -2
- package/dist/src/lib/azure/services/eventgrid/index.js +2 -18
- package/dist/src/lib/azure/services/eventgrid/main.d.ts +6 -6
- package/dist/src/lib/azure/services/eventgrid/main.js +34 -38
- package/dist/src/lib/azure/services/eventgrid/types.d.ts +3 -3
- package/dist/src/lib/azure/services/eventgrid/types.js +1 -2
- package/dist/src/lib/azure/services/function/index.d.ts +2 -2
- package/dist/src/lib/azure/services/function/index.js +2 -18
- package/dist/src/lib/azure/services/function/main.d.ts +5 -5
- package/dist/src/lib/azure/services/function/main.js +17 -21
- package/dist/src/lib/azure/services/function/types.d.ts +3 -3
- package/dist/src/lib/azure/services/function/types.js +1 -2
- package/dist/src/lib/azure/services/index.d.ts +15 -15
- package/dist/src/lib/azure/services/index.js +15 -31
- package/dist/src/lib/azure/services/key-vault/index.d.ts +2 -2
- package/dist/src/lib/azure/services/key-vault/index.js +2 -18
- package/dist/src/lib/azure/services/key-vault/main.d.ts +3 -3
- package/dist/src/lib/azure/services/key-vault/main.js +9 -13
- package/dist/src/lib/azure/services/key-vault/types.d.ts +1 -1
- package/dist/src/lib/azure/services/key-vault/types.js +1 -2
- package/dist/src/lib/azure/services/log-analytics-workspace/index.d.ts +2 -2
- package/dist/src/lib/azure/services/log-analytics-workspace/index.js +2 -18
- package/dist/src/lib/azure/services/log-analytics-workspace/main.d.ts +3 -3
- package/dist/src/lib/azure/services/log-analytics-workspace/main.js +9 -13
- package/dist/src/lib/azure/services/log-analytics-workspace/types.d.ts +1 -1
- package/dist/src/lib/azure/services/log-analytics-workspace/types.js +1 -2
- package/dist/src/lib/azure/services/monitor/index.d.ts +2 -2
- package/dist/src/lib/azure/services/monitor/index.js +2 -18
- package/dist/src/lib/azure/services/monitor/main.d.ts +3 -3
- package/dist/src/lib/azure/services/monitor/main.js +7 -11
- package/dist/src/lib/azure/services/monitor/types.d.ts +1 -1
- package/dist/src/lib/azure/services/monitor/types.js +1 -2
- package/dist/src/lib/azure/services/redis/index.d.ts +2 -2
- package/dist/src/lib/azure/services/redis/index.js +2 -18
- package/dist/src/lib/azure/services/redis/main.d.ts +3 -3
- package/dist/src/lib/azure/services/redis/main.js +9 -13
- package/dist/src/lib/azure/services/redis/types.d.ts +1 -1
- package/dist/src/lib/azure/services/redis/types.js +1 -2
- package/dist/src/lib/azure/services/resource-group/index.d.ts +2 -2
- package/dist/src/lib/azure/services/resource-group/index.js +2 -18
- package/dist/src/lib/azure/services/resource-group/main.d.ts +3 -3
- package/dist/src/lib/azure/services/resource-group/main.js +7 -11
- package/dist/src/lib/azure/services/resource-group/types.d.ts +1 -1
- package/dist/src/lib/azure/services/resource-group/types.js +1 -2
- package/dist/src/lib/azure/services/servicebus/index.d.ts +2 -2
- package/dist/src/lib/azure/services/servicebus/index.js +2 -18
- package/dist/src/lib/azure/services/servicebus/main.d.ts +7 -7
- package/dist/src/lib/azure/services/servicebus/main.js +29 -33
- package/dist/src/lib/azure/services/servicebus/types.d.ts +5 -5
- package/dist/src/lib/azure/services/servicebus/types.js +1 -2
- package/dist/src/lib/azure/services/storage/index.d.ts +2 -2
- package/dist/src/lib/azure/services/storage/index.js +2 -18
- package/dist/src/lib/azure/services/storage/main.d.ts +6 -6
- package/dist/src/lib/azure/services/storage/main.js +27 -31
- package/dist/src/lib/azure/services/storage/types.d.ts +5 -5
- package/dist/src/lib/azure/services/storage/types.js +1 -2
- package/dist/src/lib/azure/types/index.js +1 -2
- package/dist/src/lib/azure/utils/index.d.ts +1 -1
- package/dist/src/lib/azure/utils/index.js +5 -12
- package/dist/src/lib/cloudflare/common/constants.js +2 -5
- package/dist/src/lib/cloudflare/common/construct.d.ts +4 -4
- package/dist/src/lib/cloudflare/common/construct.js +32 -36
- package/dist/src/lib/cloudflare/common/index.d.ts +4 -4
- package/dist/src/lib/cloudflare/common/index.js +4 -20
- package/dist/src/lib/cloudflare/common/stack.d.ts +2 -2
- package/dist/src/lib/cloudflare/common/stack.js +18 -25
- package/dist/src/lib/cloudflare/common/types.d.ts +3 -3
- package/dist/src/lib/cloudflare/common/types.js +1 -2
- package/dist/src/lib/cloudflare/construct/index.d.ts +2 -2
- package/dist/src/lib/cloudflare/construct/index.js +2 -18
- package/dist/src/lib/cloudflare/construct/pages-static-site/index.d.ts +2 -2
- package/dist/src/lib/cloudflare/construct/pages-static-site/index.js +2 -18
- package/dist/src/lib/cloudflare/construct/pages-static-site/main.d.ts +7 -7
- package/dist/src/lib/cloudflare/construct/pages-static-site/main.js +12 -16
- package/dist/src/lib/cloudflare/construct/pages-static-site/types.d.ts +2 -2
- package/dist/src/lib/cloudflare/construct/pages-static-site/types.js +1 -2
- package/dist/src/lib/cloudflare/construct/worker-site/index.d.ts +2 -2
- package/dist/src/lib/cloudflare/construct/worker-site/index.js +2 -18
- package/dist/src/lib/cloudflare/construct/worker-site/main.d.ts +5 -5
- package/dist/src/lib/cloudflare/construct/worker-site/main.js +15 -19
- package/dist/src/lib/cloudflare/construct/worker-site/types.d.ts +2 -2
- package/dist/src/lib/cloudflare/construct/worker-site/types.js +1 -2
- package/dist/src/lib/cloudflare/index.d.ts +5 -5
- package/dist/src/lib/cloudflare/index.js +5 -21
- package/dist/src/lib/cloudflare/services/access/index.d.ts +2 -2
- package/dist/src/lib/cloudflare/services/access/index.js +2 -18
- package/dist/src/lib/cloudflare/services/access/main.d.ts +13 -13
- package/dist/src/lib/cloudflare/services/access/main.js +45 -49
- package/dist/src/lib/cloudflare/services/access/types.d.ts +11 -11
- package/dist/src/lib/cloudflare/services/access/types.js +1 -2
- package/dist/src/lib/cloudflare/services/api-shield/index.d.ts +2 -2
- package/dist/src/lib/cloudflare/services/api-shield/index.js +2 -18
- package/dist/src/lib/cloudflare/services/api-shield/main.d.ts +7 -7
- package/dist/src/lib/cloudflare/services/api-shield/main.js +22 -26
- package/dist/src/lib/cloudflare/services/api-shield/types.d.ts +5 -5
- package/dist/src/lib/cloudflare/services/api-shield/types.js +1 -2
- package/dist/src/lib/cloudflare/services/argo/index.d.ts +2 -2
- package/dist/src/lib/cloudflare/services/argo/index.js +2 -18
- package/dist/src/lib/cloudflare/services/argo/main.d.ts +4 -4
- package/dist/src/lib/cloudflare/services/argo/main.js +10 -14
- package/dist/src/lib/cloudflare/services/argo/types.d.ts +2 -2
- package/dist/src/lib/cloudflare/services/argo/types.js +1 -2
- package/dist/src/lib/cloudflare/services/filter/index.d.ts +2 -2
- package/dist/src/lib/cloudflare/services/filter/index.js +2 -18
- package/dist/src/lib/cloudflare/services/filter/main.d.ts +3 -3
- package/dist/src/lib/cloudflare/services/filter/main.js +6 -10
- package/dist/src/lib/cloudflare/services/filter/types.d.ts +1 -1
- package/dist/src/lib/cloudflare/services/filter/types.js +1 -2
- package/dist/src/lib/cloudflare/services/firewall/index.d.ts +2 -2
- package/dist/src/lib/cloudflare/services/firewall/index.js +2 -18
- package/dist/src/lib/cloudflare/services/firewall/main.d.ts +3 -3
- package/dist/src/lib/cloudflare/services/firewall/main.js +6 -10
- package/dist/src/lib/cloudflare/services/firewall/types.d.ts +1 -1
- package/dist/src/lib/cloudflare/services/firewall/types.js +1 -2
- package/dist/src/lib/cloudflare/services/index.d.ts +10 -10
- package/dist/src/lib/cloudflare/services/index.js +10 -26
- package/dist/src/lib/cloudflare/services/page/index.d.ts +2 -2
- package/dist/src/lib/cloudflare/services/page/index.js +2 -18
- package/dist/src/lib/cloudflare/services/page/main.d.ts +5 -5
- package/dist/src/lib/cloudflare/services/page/main.js +17 -21
- package/dist/src/lib/cloudflare/services/page/types.d.ts +3 -3
- package/dist/src/lib/cloudflare/services/page/types.js +1 -2
- package/dist/src/lib/cloudflare/services/record/index.d.ts +2 -2
- package/dist/src/lib/cloudflare/services/record/index.js +2 -18
- package/dist/src/lib/cloudflare/services/record/main.d.ts +3 -3
- package/dist/src/lib/cloudflare/services/record/main.js +6 -10
- package/dist/src/lib/cloudflare/services/record/types.d.ts +1 -1
- package/dist/src/lib/cloudflare/services/record/types.js +1 -2
- package/dist/src/lib/cloudflare/services/rule-set/index.d.ts +2 -2
- package/dist/src/lib/cloudflare/services/rule-set/index.js +2 -18
- package/dist/src/lib/cloudflare/services/rule-set/main.d.ts +3 -3
- package/dist/src/lib/cloudflare/services/rule-set/main.js +6 -10
- package/dist/src/lib/cloudflare/services/rule-set/types.d.ts +1 -1
- package/dist/src/lib/cloudflare/services/rule-set/types.js +1 -2
- package/dist/src/lib/cloudflare/services/worker/index.d.ts +2 -2
- package/dist/src/lib/cloudflare/services/worker/index.js +2 -18
- package/dist/src/lib/cloudflare/services/worker/main.d.ts +8 -8
- package/dist/src/lib/cloudflare/services/worker/main.js +26 -30
- package/dist/src/lib/cloudflare/services/worker/types.d.ts +6 -6
- package/dist/src/lib/cloudflare/services/worker/types.js +1 -2
- package/dist/src/lib/cloudflare/services/zone/index.d.ts +2 -2
- package/dist/src/lib/cloudflare/services/zone/index.js +2 -18
- package/dist/src/lib/cloudflare/services/zone/main.d.ts +11 -11
- package/dist/src/lib/cloudflare/services/zone/main.js +36 -40
- package/dist/src/lib/cloudflare/services/zone/types.d.ts +9 -9
- package/dist/src/lib/cloudflare/services/zone/types.js +1 -2
- package/dist/src/lib/cloudflare/types/index.js +1 -2
- package/dist/src/lib/cloudflare/utils/index.d.ts +1 -1
- package/dist/src/lib/cloudflare/utils/index.js +5 -12
- package/dist/src/lib/common/construct.d.ts +1 -1
- package/dist/src/lib/common/construct.js +2 -6
- package/dist/src/lib/common/index.d.ts +4 -4
- package/dist/src/lib/common/index.js +7 -28
- package/dist/src/lib/common/stack.d.ts +1 -1
- package/dist/src/lib/common/stack.js +2 -6
- package/dist/src/lib/common/types.js +1 -2
- package/dist/src/lib/common/utils.d.ts +15 -4
- package/dist/src/lib/common/utils.js +18 -13
- package/dist/src/lib/index.d.ts +4 -4
- package/dist/src/lib/index.js +4 -20
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/eslint.config.mjs +60 -2
- package/index.ts +1 -1
- package/package.json +62 -55
- package/setup.js +3 -2
- package/src/lib/aws/common/construct.ts +5 -5
- package/src/lib/aws/common/index.ts +4 -4
- package/src/lib/aws/common/resource-name-formatter.ts +14 -9
- package/src/lib/aws/common/stack.ts +4 -4
- package/src/lib/aws/common/types.ts +1 -1
- package/src/lib/aws/construct/api-to-any-target/index.ts +3 -3
- package/src/lib/aws/construct/api-to-any-target/main.ts +3 -3
- package/src/lib/aws/construct/api-to-any-target/target.ts +1 -1
- package/src/lib/aws/construct/api-to-any-target/types.ts +2 -2
- package/src/lib/aws/construct/api-to-eventbridge-target/api.ts +1 -1
- package/src/lib/aws/construct/api-to-eventbridge-target/event.ts +1 -1
- package/src/lib/aws/construct/api-to-eventbridge-target/index.ts +4 -4
- package/src/lib/aws/construct/api-to-eventbridge-target/main.ts +4 -4
- package/src/lib/aws/construct/api-to-eventbridge-target/types.ts +2 -2
- package/src/lib/aws/construct/api-to-eventbridge-target-with-sns/api-destined-lambda.ts +1 -1
- package/src/lib/aws/construct/api-to-eventbridge-target-with-sns/index.ts +3 -3
- package/src/lib/aws/construct/api-to-eventbridge-target-with-sns/main.ts +4 -4
- package/src/lib/aws/construct/api-to-eventbridge-target-with-sns/types.ts +1 -1
- package/src/lib/aws/construct/api-to-lambda-target/api.ts +1 -1
- package/src/lib/aws/construct/api-to-lambda-target/index.ts +3 -3
- package/src/lib/aws/construct/api-to-lambda-target/main.ts +3 -3
- package/src/lib/aws/construct/api-to-lambda-target/types.ts +2 -2
- package/src/lib/aws/construct/application-configuration/index.ts +2 -2
- package/src/lib/aws/construct/application-configuration/main.ts +2 -2
- package/src/lib/aws/construct/application-configuration/types.ts +2 -2
- package/src/lib/aws/construct/event-handler/handler.ts +1 -1
- package/src/lib/aws/construct/event-handler/index.ts +3 -3
- package/src/lib/aws/construct/event-handler/main.ts +3 -3
- package/src/lib/aws/construct/event-handler/types.ts +9 -2
- package/src/lib/aws/construct/index.ts +14 -14
- package/src/lib/aws/construct/lambda-with-iam-access/index.ts +2 -2
- package/src/lib/aws/construct/lambda-with-iam-access/main.ts +3 -3
- package/src/lib/aws/construct/lambda-with-iam-access/types.ts +2 -2
- package/src/lib/aws/construct/piped-event-handler/index.ts +2 -2
- package/src/lib/aws/construct/piped-event-handler/main.ts +2 -2
- package/src/lib/aws/construct/piped-event-handler/types.ts +2 -2
- package/src/lib/aws/construct/rest-api-lambda/index.ts +2 -2
- package/src/lib/aws/construct/rest-api-lambda/main.ts +2 -2
- package/src/lib/aws/construct/rest-api-lambda/types.ts +2 -2
- package/src/lib/aws/construct/rest-api-lambda-with-cache/index.ts +2 -2
- package/src/lib/aws/construct/rest-api-lambda-with-cache/main.ts +3 -3
- package/src/lib/aws/construct/rest-api-lambda-with-cache/types.ts +2 -2
- package/src/lib/aws/construct/site-with-ecs-backend/index.ts +3 -3
- package/src/lib/aws/construct/site-with-ecs-backend/main.ts +2 -2
- package/src/lib/aws/construct/site-with-ecs-backend/types.ts +3 -3
- package/src/lib/aws/construct/site-with-lambda-backend/index.ts +3 -3
- package/src/lib/aws/construct/site-with-lambda-backend/main.ts +3 -3
- package/src/lib/aws/construct/site-with-lambda-backend/types.ts +4 -5
- package/src/lib/aws/construct/static-asset-deployment/index.ts +2 -2
- package/src/lib/aws/construct/static-asset-deployment/main.ts +2 -2
- package/src/lib/aws/construct/static-asset-deployment/types.ts +2 -2
- package/src/lib/aws/construct/static-site/index.ts +2 -2
- package/src/lib/aws/construct/static-site/main.ts +2 -10
- package/src/lib/aws/construct/static-site/types.ts +2 -2
- package/src/lib/aws/index.ts +5 -5
- package/src/lib/aws/services/api-gateway/index.ts +2 -2
- package/src/lib/aws/services/api-gateway/main.ts +3 -3
- package/src/lib/aws/services/api-gateway/types.ts +2 -2
- package/src/lib/aws/services/appconfig/index.ts +3 -3
- package/src/lib/aws/services/appconfig/main.ts +5 -5
- package/src/lib/aws/services/appconfig/types.ts +0 -2
- package/src/lib/aws/services/certificate-manager/index.ts +2 -2
- package/src/lib/aws/services/certificate-manager/main.ts +3 -3
- package/src/lib/aws/services/cloudfront/index.ts +2 -2
- package/src/lib/aws/services/cloudfront/main.ts +21 -81
- package/src/lib/aws/services/cloudfront/types.ts +2 -13
- package/src/lib/aws/services/cloudtrail/index.ts +2 -2
- package/src/lib/aws/services/cloudtrail/main.ts +3 -3
- package/src/lib/aws/services/cloudtrail/types.ts +0 -1
- package/src/lib/aws/services/cloudwatch/index.ts +3 -3
- package/src/lib/aws/services/cloudwatch/logs.ts +3 -3
- package/src/lib/aws/services/cloudwatch/main.ts +3 -3
- package/src/lib/aws/services/cloudwatch/types.ts +1 -1
- package/src/lib/aws/services/codebuild/index.ts +1 -1
- package/src/lib/aws/services/codebuild/main.ts +1 -1
- package/src/lib/aws/services/dynamodb/index.ts +2 -2
- package/src/lib/aws/services/dynamodb/main.ts +6 -4
- package/src/lib/aws/services/dynamodb/types.ts +1 -2
- package/src/lib/aws/services/elastic-container-registry/index.ts +1 -1
- package/src/lib/aws/services/elastic-container-registry/main.ts +2 -2
- package/src/lib/aws/services/elastic-container-service/index.ts +2 -2
- package/src/lib/aws/services/elastic-container-service/main.ts +3 -3
- package/src/lib/aws/services/elastic-container-service/types.ts +1 -2
- package/src/lib/aws/services/elastic-file-system/index.ts +2 -2
- package/src/lib/aws/services/elastic-file-system/main.ts +3 -3
- package/src/lib/aws/services/elastic-file-system/types.ts +0 -1
- package/src/lib/aws/services/elastic-kubernetes-service/index.ts +2 -2
- package/src/lib/aws/services/elastic-kubernetes-service/main.ts +3 -3
- package/src/lib/aws/services/elastic-kubernetes-service/types.ts +0 -1
- package/src/lib/aws/services/elasticache/index.ts +2 -2
- package/src/lib/aws/services/elasticache/main.ts +3 -3
- package/src/lib/aws/services/elasticache/types.ts +0 -1
- package/src/lib/aws/services/eventbridge/index.ts +3 -3
- package/src/lib/aws/services/eventbridge/main.ts +3 -3
- package/src/lib/aws/services/eventbridge/target.ts +1 -1
- package/src/lib/aws/services/eventbridge/types.ts +1 -2
- package/src/lib/aws/services/evidently/index.ts +2 -2
- package/src/lib/aws/services/evidently/main.ts +3 -3
- package/src/lib/aws/services/evidently/types.ts +0 -1
- package/src/lib/aws/services/identity-access-management/index.ts +1 -1
- package/src/lib/aws/services/identity-access-management/main.ts +2 -2
- package/src/lib/aws/services/index.ts +28 -28
- package/src/lib/aws/services/key-management-service/index.ts +2 -2
- package/src/lib/aws/services/key-management-service/main.ts +3 -3
- package/src/lib/aws/services/key-management-service/types.ts +0 -1
- package/src/lib/aws/services/lambda/index.ts +2 -2
- package/src/lib/aws/services/lambda/main.ts +10 -15
- package/src/lib/aws/services/lambda/types.ts +4 -4
- package/src/lib/aws/services/route53/index.ts +2 -2
- package/src/lib/aws/services/route53/main.ts +3 -3
- package/src/lib/aws/services/secrets-manager/index.ts +2 -2
- package/src/lib/aws/services/secrets-manager/main.ts +3 -3
- package/src/lib/aws/services/secrets-manager/types.ts +0 -1
- package/src/lib/aws/services/simple-notification-service/index.ts +2 -2
- package/src/lib/aws/services/simple-notification-service/main.ts +3 -3
- package/src/lib/aws/services/simple-notification-service/types.ts +0 -1
- package/src/lib/aws/services/simple-queue-service/index.ts +2 -2
- package/src/lib/aws/services/simple-queue-service/main.ts +4 -4
- package/src/lib/aws/services/simple-queue-service/types.ts +1 -2
- package/src/lib/aws/services/simple-storage-service/index.ts +2 -2
- package/src/lib/aws/services/simple-storage-service/main.ts +3 -3
- package/src/lib/aws/services/simple-storage-service/types.ts +1 -2
- package/src/lib/aws/services/step-function/index.ts +2 -2
- package/src/lib/aws/services/step-function/main.ts +3 -3
- package/src/lib/aws/services/step-function/types.ts +0 -1
- package/src/lib/aws/services/systems-manager/index.ts +2 -2
- package/src/lib/aws/services/systems-manager/main.ts +3 -3
- package/src/lib/aws/services/systems-manager/types.ts +0 -1
- package/src/lib/aws/services/virtual-private-cloud/index.ts +2 -2
- package/src/lib/aws/services/virtual-private-cloud/ipv6.ts +2 -2
- package/src/lib/aws/services/virtual-private-cloud/main.ts +4 -4
- package/src/lib/aws/services/virtual-private-cloud/types.ts +0 -1
- package/src/lib/aws/services/web-application-firewall/index.ts +2 -2
- package/src/lib/aws/services/web-application-firewall/main.ts +3 -3
- package/src/lib/aws/services/web-application-firewall/types.ts +0 -1
- package/src/lib/aws/utils/index.ts +1 -1
- package/src/lib/azure/common/construct.ts +16 -16
- package/src/lib/azure/common/index.ts +6 -6
- package/src/lib/azure/common/resource-name-formatter.ts +1 -2
- package/src/lib/azure/common/stack.ts +5 -5
- package/src/lib/azure/common/tagging.ts +1 -1
- package/src/lib/azure/common/types.ts +3 -3
- package/src/lib/azure/index.ts +4 -4
- package/src/lib/azure/services/api-management/index.ts +2 -2
- package/src/lib/azure/services/api-management/main.ts +20 -20
- package/src/lib/azure/services/api-management/types.ts +6 -6
- package/src/lib/azure/services/app-configuration/index.ts +2 -2
- package/src/lib/azure/services/app-configuration/main.ts +5 -5
- package/src/lib/azure/services/app-configuration/types.ts +1 -1
- package/src/lib/azure/services/app-service/index.ts +2 -2
- package/src/lib/azure/services/app-service/main.ts +6 -6
- package/src/lib/azure/services/app-service/types.ts +2 -2
- package/src/lib/azure/services/application-insights/index.ts +2 -2
- package/src/lib/azure/services/application-insights/main.ts +5 -5
- package/src/lib/azure/services/application-insights/types.ts +1 -1
- package/src/lib/azure/services/cosmosdb/index.ts +2 -2
- package/src/lib/azure/services/cosmosdb/main.ts +7 -7
- package/src/lib/azure/services/cosmosdb/types.ts +3 -3
- package/src/lib/azure/services/dns/index.ts +2 -2
- package/src/lib/azure/services/dns/main.ts +8 -8
- package/src/lib/azure/services/dns/types.ts +4 -4
- package/src/lib/azure/services/eventgrid/index.ts +2 -2
- package/src/lib/azure/services/eventgrid/main.ts +10 -10
- package/src/lib/azure/services/eventgrid/types.ts +3 -3
- package/src/lib/azure/services/function/index.ts +2 -2
- package/src/lib/azure/services/function/main.ts +7 -7
- package/src/lib/azure/services/function/types.ts +3 -3
- package/src/lib/azure/services/index.ts +15 -15
- package/src/lib/azure/services/key-vault/index.ts +2 -2
- package/src/lib/azure/services/key-vault/main.ts +5 -5
- package/src/lib/azure/services/key-vault/types.ts +1 -1
- package/src/lib/azure/services/log-analytics-workspace/index.ts +2 -2
- package/src/lib/azure/services/log-analytics-workspace/main.ts +5 -5
- package/src/lib/azure/services/log-analytics-workspace/types.ts +1 -1
- package/src/lib/azure/services/monitor/index.ts +2 -2
- package/src/lib/azure/services/monitor/main.ts +4 -4
- package/src/lib/azure/services/monitor/types.ts +1 -1
- package/src/lib/azure/services/redis/index.ts +2 -2
- package/src/lib/azure/services/redis/main.ts +5 -5
- package/src/lib/azure/services/redis/types.ts +1 -1
- package/src/lib/azure/services/resource-group/index.ts +2 -2
- package/src/lib/azure/services/resource-group/main.ts +4 -4
- package/src/lib/azure/services/resource-group/types.ts +1 -1
- package/src/lib/azure/services/servicebus/index.ts +2 -2
- package/src/lib/azure/services/servicebus/main.ts +12 -12
- package/src/lib/azure/services/servicebus/types.ts +5 -5
- package/src/lib/azure/services/storage/index.ts +2 -2
- package/src/lib/azure/services/storage/main.ts +11 -11
- package/src/lib/azure/services/storage/types.ts +6 -7
- package/src/lib/azure/utils/index.ts +1 -1
- package/src/lib/cloudflare/common/construct.ts +7 -7
- package/src/lib/cloudflare/common/index.ts +4 -4
- package/src/lib/cloudflare/common/stack.ts +3 -3
- package/src/lib/cloudflare/common/types.ts +3 -3
- package/src/lib/cloudflare/construct/index.ts +2 -2
- package/src/lib/cloudflare/construct/pages-static-site/index.ts +2 -2
- package/src/lib/cloudflare/construct/pages-static-site/main.ts +11 -11
- package/src/lib/cloudflare/construct/pages-static-site/types.ts +2 -2
- package/src/lib/cloudflare/construct/worker-site/index.ts +2 -2
- package/src/lib/cloudflare/construct/worker-site/main.ts +10 -10
- package/src/lib/cloudflare/construct/worker-site/types.ts +8 -2
- package/src/lib/cloudflare/index.ts +5 -5
- package/src/lib/cloudflare/services/access/index.ts +2 -2
- package/src/lib/cloudflare/services/access/main.ts +17 -17
- package/src/lib/cloudflare/services/access/types.ts +11 -11
- package/src/lib/cloudflare/services/api-shield/index.ts +2 -2
- package/src/lib/cloudflare/services/api-shield/main.ts +8 -8
- package/src/lib/cloudflare/services/api-shield/types.ts +6 -7
- package/src/lib/cloudflare/services/argo/index.ts +2 -2
- package/src/lib/cloudflare/services/argo/main.ts +5 -6
- package/src/lib/cloudflare/services/argo/types.ts +2 -2
- package/src/lib/cloudflare/services/filter/index.ts +2 -2
- package/src/lib/cloudflare/services/filter/main.ts +4 -4
- package/src/lib/cloudflare/services/filter/types.ts +1 -1
- package/src/lib/cloudflare/services/firewall/index.ts +2 -2
- package/src/lib/cloudflare/services/firewall/main.ts +4 -4
- package/src/lib/cloudflare/services/firewall/types.ts +1 -1
- package/src/lib/cloudflare/services/index.ts +10 -10
- package/src/lib/cloudflare/services/page/index.ts +2 -2
- package/src/lib/cloudflare/services/page/main.ts +6 -6
- package/src/lib/cloudflare/services/page/types.ts +3 -3
- package/src/lib/cloudflare/services/record/index.ts +2 -2
- package/src/lib/cloudflare/services/record/main.ts +4 -4
- package/src/lib/cloudflare/services/record/types.ts +1 -1
- package/src/lib/cloudflare/services/rule-set/index.ts +2 -2
- package/src/lib/cloudflare/services/rule-set/main.ts +4 -5
- package/src/lib/cloudflare/services/rule-set/types.ts +1 -1
- package/src/lib/cloudflare/services/worker/index.ts +2 -2
- package/src/lib/cloudflare/services/worker/main.ts +9 -9
- package/src/lib/cloudflare/services/worker/types.ts +6 -6
- package/src/lib/cloudflare/services/zone/index.ts +2 -2
- package/src/lib/cloudflare/services/zone/main.ts +12 -12
- package/src/lib/cloudflare/services/zone/types.ts +9 -9
- package/src/lib/cloudflare/utils/index.ts +1 -1
- package/src/lib/common/construct.ts +1 -1
- package/src/lib/common/index.ts +4 -4
- package/src/lib/common/stack.ts +1 -1
- package/src/lib/common/utils.ts +17 -4
- package/src/lib/index.ts +4 -4
- package/vitest.config.ts +38 -0
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ApiManager = void 0;
|
|
7
|
-
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
8
|
-
const aws_apigateway_1 = require("aws-cdk-lib/aws-apigateway");
|
|
9
|
-
const lodash_1 = __importDefault(require("lodash"));
|
|
10
|
-
const utils_1 = require("../../utils");
|
|
1
|
+
import { RemovalPolicy, Size, Tags } from 'aws-cdk-lib';
|
|
2
|
+
import { Cors, Deployment, DomainName, EndpointType, LambdaRestApi, LogGroupLogDestination, SecurityPolicy, } from 'aws-cdk-lib/aws-apigateway';
|
|
3
|
+
import _ from 'lodash';
|
|
4
|
+
import { createCfnOutput } from '../../utils/index.js';
|
|
11
5
|
/**
|
|
12
6
|
* @classdesc Provides operations on AWS API Gateway.
|
|
13
7
|
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
@@ -25,7 +19,7 @@ const utils_1 = require("../../utils");
|
|
|
25
19
|
* }
|
|
26
20
|
* @see [CDK API Gateway Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigateway-readme.html}
|
|
27
21
|
*/
|
|
28
|
-
class ApiManager {
|
|
22
|
+
export class ApiManager {
|
|
29
23
|
/**
|
|
30
24
|
* @summary Method to create a Rest API with Lambda backend/target
|
|
31
25
|
* @param id scoped id of the resource
|
|
@@ -42,35 +36,35 @@ class ApiManager {
|
|
|
42
36
|
const restApiAccessLogName = scope.resourceNameFormatter.format(`${props.restApiName}-access`, scope.props.resourceNameOptions?.apigateway);
|
|
43
37
|
const accessLogGroup = scope.logManager.createLogGroup(`${id}-rest-api-access-log`, scope, {
|
|
44
38
|
logGroupName: restApiAccessLogName,
|
|
45
|
-
removalPolicy:
|
|
39
|
+
removalPolicy: RemovalPolicy.DESTROY,
|
|
46
40
|
});
|
|
47
|
-
const api = new
|
|
41
|
+
const api = new LambdaRestApi(scope, `${id}`, {
|
|
48
42
|
...props,
|
|
49
43
|
cloudWatchRole: props.cloudWatchRole || false,
|
|
50
44
|
deploy: props.deploy || true,
|
|
51
45
|
deployOptions: {
|
|
52
46
|
...props.deployOptions,
|
|
53
|
-
accessLogDestination: new
|
|
47
|
+
accessLogDestination: new LogGroupLogDestination(accessLogGroup),
|
|
54
48
|
description: `${id} - ${scope.props.stage} stage`,
|
|
55
49
|
stageName: scope.props.stage,
|
|
56
50
|
},
|
|
57
51
|
endpointConfiguration: {
|
|
58
52
|
...props.endpointConfiguration,
|
|
59
|
-
types: props.endpointConfiguration?.types || [
|
|
53
|
+
types: props.endpointConfiguration?.types || [EndpointType.REGIONAL],
|
|
60
54
|
},
|
|
61
55
|
failOnWarnings: props.failOnWarnings || false,
|
|
62
56
|
handler: lambdaFunction,
|
|
63
|
-
minCompressionSize: props.minCompressionSizeInBytes ?
|
|
57
|
+
minCompressionSize: props.minCompressionSizeInBytes ? Size.bytes(props.minCompressionSizeInBytes) : undefined,
|
|
64
58
|
proxy: props.proxy ?? true,
|
|
65
59
|
restApiName,
|
|
66
60
|
});
|
|
67
|
-
if (props.tags && !
|
|
68
|
-
|
|
69
|
-
|
|
61
|
+
if (props.tags && !_.isEmpty(props.tags)) {
|
|
62
|
+
_.forEach(props.tags, tag => {
|
|
63
|
+
Tags.of(api).add(tag.key, tag.value);
|
|
70
64
|
});
|
|
71
65
|
}
|
|
72
|
-
|
|
73
|
-
|
|
66
|
+
createCfnOutput(`${id}-restApiId`, scope, api.restApiId);
|
|
67
|
+
createCfnOutput(`${id}-restApiName`, scope, api.restApiName);
|
|
74
68
|
return api;
|
|
75
69
|
}
|
|
76
70
|
/**
|
|
@@ -81,13 +75,13 @@ class ApiManager {
|
|
|
81
75
|
* @param certificate the certificate used for custom restApi domain
|
|
82
76
|
*/
|
|
83
77
|
createApiDomain(id, scope, domainName, certificate) {
|
|
84
|
-
const apiDomain = new
|
|
78
|
+
const apiDomain = new DomainName(scope, `${id}`, {
|
|
85
79
|
certificate,
|
|
86
80
|
domainName,
|
|
87
|
-
endpointType: scope.isProductionStage() ?
|
|
88
|
-
securityPolicy:
|
|
81
|
+
endpointType: scope.isProductionStage() ? EndpointType.EDGE : EndpointType.REGIONAL,
|
|
82
|
+
securityPolicy: SecurityPolicy.TLS_1_2,
|
|
89
83
|
});
|
|
90
|
-
|
|
84
|
+
createCfnOutput(`${id}-customDomainName`, scope, apiDomain.domainName);
|
|
91
85
|
return apiDomain;
|
|
92
86
|
}
|
|
93
87
|
/**
|
|
@@ -109,7 +103,7 @@ class ApiManager {
|
|
|
109
103
|
* @param mockMethodResponses
|
|
110
104
|
*/
|
|
111
105
|
createApiResource(id, scope, parent, path, integration, addProxy, authorizer, allowedOrigins, allowedMethods, allowedHeaders, methodRequestParameters, proxyIntegration, enableDefaultCors, mockIntegration, mockMethodResponses) {
|
|
112
|
-
const methods = allowedMethods ??
|
|
106
|
+
const methods = allowedMethods ?? Cors.ALL_METHODS;
|
|
113
107
|
let defaultCorsPreflightOptions;
|
|
114
108
|
if (enableDefaultCors === false) {
|
|
115
109
|
defaultCorsPreflightOptions = undefined;
|
|
@@ -117,15 +111,15 @@ class ApiManager {
|
|
|
117
111
|
else {
|
|
118
112
|
defaultCorsPreflightOptions = {
|
|
119
113
|
allowCredentials: true,
|
|
120
|
-
allowHeaders: allowedHeaders ??
|
|
114
|
+
allowHeaders: allowedHeaders ?? Cors.DEFAULT_HEADERS,
|
|
121
115
|
allowMethods: [...methods, 'OPTIONS'],
|
|
122
|
-
allowOrigins: allowedOrigins ??
|
|
116
|
+
allowOrigins: allowedOrigins ?? Cors.ALL_ORIGINS,
|
|
123
117
|
};
|
|
124
118
|
}
|
|
125
119
|
const resource = parent.addResource(path, {
|
|
126
120
|
defaultCorsPreflightOptions: defaultCorsPreflightOptions,
|
|
127
121
|
});
|
|
128
|
-
|
|
122
|
+
_.forEach(methods, method => {
|
|
129
123
|
if (enableDefaultCors === false && mockIntegration && method === 'OPTIONS') {
|
|
130
124
|
resource.addMethod(method, mockIntegration, {
|
|
131
125
|
authorizer,
|
|
@@ -140,12 +134,12 @@ class ApiManager {
|
|
|
140
134
|
});
|
|
141
135
|
}
|
|
142
136
|
});
|
|
143
|
-
|
|
137
|
+
createCfnOutput(`${id}-${path}ResourceId`, scope, resource.resourceId);
|
|
144
138
|
if (addProxy) {
|
|
145
139
|
const resourceProxy = resource.addResource(`{${path}+}`, {
|
|
146
140
|
defaultCorsPreflightOptions: defaultCorsPreflightOptions,
|
|
147
141
|
});
|
|
148
|
-
|
|
142
|
+
_.forEach(methods, method => {
|
|
149
143
|
if (enableDefaultCors === false && mockIntegration && method === 'OPTIONS') {
|
|
150
144
|
resourceProxy.addMethod(method, mockIntegration, {
|
|
151
145
|
authorizer,
|
|
@@ -160,7 +154,7 @@ class ApiManager {
|
|
|
160
154
|
});
|
|
161
155
|
}
|
|
162
156
|
});
|
|
163
|
-
|
|
157
|
+
createCfnOutput(`${id}-${path}ProxyResourceId`, scope, resourceProxy.resourceId);
|
|
164
158
|
}
|
|
165
159
|
return resource;
|
|
166
160
|
}
|
|
@@ -171,10 +165,9 @@ class ApiManager {
|
|
|
171
165
|
* @param api
|
|
172
166
|
*/
|
|
173
167
|
createApiDeployment(id, scope, api) {
|
|
174
|
-
new
|
|
168
|
+
new Deployment(scope, `${id}`, {
|
|
175
169
|
api,
|
|
176
170
|
retainDeployments: false,
|
|
177
171
|
});
|
|
178
172
|
}
|
|
179
173
|
}
|
|
180
|
-
exports.ApiManager = ApiManager;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LambdaRestApiProps as LambdaRestApigProps, RestApiProps } from 'aws-cdk-lib/aws-apigateway';
|
|
2
|
-
import { TagProps } from '../../types';
|
|
2
|
+
import { TagProps } from '../../types/index.js';
|
|
3
3
|
/**
|
|
4
4
|
*/
|
|
5
5
|
export interface LambdaRestApiProps extends LambdaRestApigProps {
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ArnsByRegionForArm64 = exports.ArnsByRegionForX86_64 = void 0;
|
|
4
1
|
/**
|
|
5
2
|
* @returns { Map<string, string> } AppConfig extension ARN by region for x84
|
|
6
3
|
*/
|
|
7
|
-
|
|
4
|
+
export const ArnsByRegionForX86_64 = {
|
|
8
5
|
'af-south-1': 'arn:aws:lambda:af-south-1:574348263942:layer:AWS-AppConfig-Extension:116',
|
|
9
6
|
'ap-east-1': 'arn:aws:lambda:ap-east-1:630222743974:layer:AWS-AppConfig-Extension:106',
|
|
10
7
|
'ap-northeast-1': 'arn:aws:lambda:ap-northeast-1:980059726660:layer:AWS-AppConfig-Extension:119',
|
|
@@ -40,7 +37,7 @@ exports.ArnsByRegionForX86_64 = {
|
|
|
40
37
|
/**
|
|
41
38
|
* @returns { Map<string, string> } AppConfig extension ARN by region for arm64
|
|
42
39
|
*/
|
|
43
|
-
|
|
40
|
+
export const ArnsByRegionForArm64 = {
|
|
44
41
|
'ap-northeast-1': 'arn:aws:lambda:ap-northeast-1:980059726660:layer:AWS-AppConfig-Extension-Arm64:72',
|
|
45
42
|
'ap-south-1': 'arn:aws:lambda:ap-south-1:554480029851:layer:AWS-AppConfig-Extension-Arm64:81',
|
|
46
43
|
'ap-southeast-1': 'arn:aws:lambda:ap-southeast-1:421114256042:layer:AWS-AppConfig-Extension-Arm64:79',
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './constants';
|
|
2
|
-
export * from './main';
|
|
3
|
-
export * from './types';
|
|
1
|
+
export * from './constants.js';
|
|
2
|
+
export * from './main.js';
|
|
3
|
+
export * from './types.js';
|
|
@@ -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("./constants"), exports);
|
|
18
|
-
__exportStar(require("./main"), exports);
|
|
19
|
-
__exportStar(require("./types"), exports);
|
|
1
|
+
export * from './constants.js';
|
|
2
|
+
export * from './main.js';
|
|
3
|
+
export * from './types.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CfnApplication, CfnConfigurationProfile, CfnEnvironment, DeploymentStrategy } from 'aws-cdk-lib/aws-appconfig';
|
|
2
|
-
import { CommonConstruct } from '../../common';
|
|
3
|
-
import { Architecture } from '../constants';
|
|
4
|
-
import { AppConfigProps } from './types';
|
|
2
|
+
import { CommonConstruct } from '../../common/index.js';
|
|
3
|
+
import { Architecture } from '../constants.js';
|
|
4
|
+
import { AppConfigProps } from './types.js';
|
|
5
5
|
/**
|
|
6
6
|
* @classdesc Provides operations on AWS
|
|
7
7
|
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const utils_1 = require("../../utils");
|
|
7
|
-
const constants_1 = require("../constants");
|
|
8
|
-
const constants_2 = require("./constants");
|
|
1
|
+
import { Fn } from 'aws-cdk-lib';
|
|
2
|
+
import { CfnApplication, CfnConfigurationProfile, CfnEnvironment, DeploymentStrategy, RolloutStrategy, } from 'aws-cdk-lib/aws-appconfig';
|
|
3
|
+
import { createCfnOutput } from '../../utils/index.js';
|
|
4
|
+
import { Architecture } from '../constants.js';
|
|
5
|
+
import { ArnsByRegionForArm64, ArnsByRegionForX86_64 } from './constants.js';
|
|
9
6
|
/**
|
|
10
7
|
* @classdesc Provides operations on AWS
|
|
11
8
|
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
@@ -22,7 +19,7 @@ const constants_2 = require("./constants");
|
|
|
22
19
|
* }
|
|
23
20
|
* @see [CDK AppConfig Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appconfig-readme.html}
|
|
24
21
|
*/
|
|
25
|
-
class AppConfigManager {
|
|
22
|
+
export class AppConfigManager {
|
|
26
23
|
/**
|
|
27
24
|
* Method to get static ARNs for AppConfig extensions
|
|
28
25
|
* @param scope scope in which this resource is defined
|
|
@@ -30,10 +27,10 @@ class AppConfigManager {
|
|
|
30
27
|
*/
|
|
31
28
|
getArnForAppConfigExtension(scope, type) {
|
|
32
29
|
switch (type) {
|
|
33
|
-
case
|
|
34
|
-
return
|
|
35
|
-
case
|
|
36
|
-
return
|
|
30
|
+
case Architecture.ARM_64:
|
|
31
|
+
return ArnsByRegionForArm64[scope.props.region];
|
|
32
|
+
case Architecture.X86_64:
|
|
33
|
+
return ArnsByRegionForX86_64[scope.props.region];
|
|
37
34
|
default:
|
|
38
35
|
throw `Invalid type ${type} specified`;
|
|
39
36
|
}
|
|
@@ -48,12 +45,12 @@ class AppConfigManager {
|
|
|
48
45
|
createApplication(id, scope, props) {
|
|
49
46
|
if (!props)
|
|
50
47
|
throw `AppConfig props undefined for ${id}`;
|
|
51
|
-
const application = new
|
|
48
|
+
const application = new CfnApplication(scope, `${id}`, {
|
|
52
49
|
...props.application,
|
|
53
50
|
name: scope.resourceNameFormatter.format(props.application.name, scope.props.resourceNameOptions?.appconfig),
|
|
54
51
|
});
|
|
55
|
-
|
|
56
|
-
|
|
52
|
+
createCfnOutput(`${id}-ApplicationId`, scope, Fn.ref(application.logicalId));
|
|
53
|
+
createCfnOutput(`${id}-ApplicationName`, scope, application.name);
|
|
57
54
|
return application;
|
|
58
55
|
}
|
|
59
56
|
/**
|
|
@@ -67,13 +64,13 @@ class AppConfigManager {
|
|
|
67
64
|
createEnvironment(id, scope, applicationId, props) {
|
|
68
65
|
if (!props)
|
|
69
66
|
throw `AppConfig props undefined for ${id}`;
|
|
70
|
-
const environment = new
|
|
67
|
+
const environment = new CfnEnvironment(scope, `${id}`, {
|
|
71
68
|
...props.environment,
|
|
72
69
|
applicationId,
|
|
73
70
|
name: props.environment.name ?? scope.props.stage,
|
|
74
71
|
});
|
|
75
|
-
|
|
76
|
-
|
|
72
|
+
createCfnOutput(`${id}-configurationEnvironmentId`, scope, Fn.ref(environment.logicalId));
|
|
73
|
+
createCfnOutput(`${id}-configurationEnvironmentName`, scope, environment.name);
|
|
77
74
|
return environment;
|
|
78
75
|
}
|
|
79
76
|
/**
|
|
@@ -88,14 +85,14 @@ class AppConfigManager {
|
|
|
88
85
|
createConfigurationProfile(id, scope, applicationId, props) {
|
|
89
86
|
if (!props)
|
|
90
87
|
throw `AppConfig props undefined for ${id}`;
|
|
91
|
-
const profile = new
|
|
88
|
+
const profile = new CfnConfigurationProfile(scope, `${id}`, {
|
|
92
89
|
...props.configurationProfile,
|
|
93
90
|
applicationId,
|
|
94
91
|
locationUri: props.configurationProfile.locationUri || 'hosted',
|
|
95
92
|
name: scope.resourceNameFormatter.format(props.configurationProfile.name, scope.props.resourceNameOptions?.appconfig),
|
|
96
93
|
});
|
|
97
|
-
|
|
98
|
-
|
|
94
|
+
createCfnOutput(`${id}-configurationProfileId`, scope, Fn.ref(profile.logicalId));
|
|
95
|
+
createCfnOutput(`${id}-configurationProfileName`, scope, profile.name);
|
|
99
96
|
return profile;
|
|
100
97
|
}
|
|
101
98
|
/**
|
|
@@ -110,14 +107,13 @@ class AppConfigManager {
|
|
|
110
107
|
throw `AppConfig props undefined for ${id}`;
|
|
111
108
|
if (!props.deploymentStrategy)
|
|
112
109
|
throw `AppConfig deploymentStrategy props undefined for ${id}`;
|
|
113
|
-
const deploymentStrategy = new
|
|
110
|
+
const deploymentStrategy = new DeploymentStrategy(scope, `${id}`, {
|
|
114
111
|
...props,
|
|
115
112
|
deploymentStrategyName: scope.resourceNameFormatter.format(props.deploymentStrategy.deploymentStrategyName ?? 'common-deployment-strategy', scope.props.resourceNameOptions?.appconfig),
|
|
116
|
-
rolloutStrategy: props.deploymentStrategy.rolloutStrategy ??
|
|
113
|
+
rolloutStrategy: props.deploymentStrategy.rolloutStrategy ?? RolloutStrategy.ALL_AT_ONCE,
|
|
117
114
|
});
|
|
118
|
-
|
|
119
|
-
|
|
115
|
+
createCfnOutput(`${id}-deploymentStrategyId`, scope, deploymentStrategy.deploymentStrategyId);
|
|
116
|
+
createCfnOutput(`${id}-deploymentStrategyArn`, scope, deploymentStrategy.deploymentStrategyArn);
|
|
120
117
|
return deploymentStrategy;
|
|
121
118
|
}
|
|
122
119
|
}
|
|
123
|
-
exports.AppConfigManager = AppConfigManager;
|
|
@@ -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 { ICertificate } from 'aws-cdk-lib/aws-certificatemanager';
|
|
2
2
|
import { IHostedZone } from 'aws-cdk-lib/aws-route53';
|
|
3
|
-
import { CommonConstruct } from '../../common';
|
|
4
|
-
import { AcmProps } from './types';
|
|
3
|
+
import { CommonConstruct } from '../../common/index.js';
|
|
4
|
+
import { AcmProps } from './types.js';
|
|
5
5
|
/**
|
|
6
6
|
* @classdesc Provides operations on AWS Certificates.
|
|
7
7
|
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
5
|
-
const aws_certificatemanager_1 = require("aws-cdk-lib/aws-certificatemanager");
|
|
6
|
-
const utils_1 = require("../../utils");
|
|
1
|
+
import { Stack } from 'aws-cdk-lib';
|
|
2
|
+
import { Certificate, CertificateValidation } from 'aws-cdk-lib/aws-certificatemanager';
|
|
3
|
+
import { createCfnOutput } from '../../utils/index.js';
|
|
7
4
|
/**
|
|
8
5
|
* @classdesc Provides operations on AWS Certificates.
|
|
9
6
|
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
@@ -20,7 +17,7 @@ const utils_1 = require("../../utils");
|
|
|
20
17
|
* }
|
|
21
18
|
* @see [CDK Certificate Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_certificatemanager-readme.html}
|
|
22
19
|
*/
|
|
23
|
-
class AcmManager {
|
|
20
|
+
export class AcmManager {
|
|
24
21
|
/**
|
|
25
22
|
* @summary Method to create/import a certificate
|
|
26
23
|
* @param id scoped id of the resource
|
|
@@ -46,21 +43,20 @@ class AcmManager {
|
|
|
46
43
|
if (props.useExistingCertificate) {
|
|
47
44
|
let certificateArn = props.certificateArn;
|
|
48
45
|
if (!certificateArn) {
|
|
49
|
-
const certificateAccount = props.certificateAccount ? props.certificateAccount :
|
|
50
|
-
const certificateRegion = props.certificateRegion ? props.certificateRegion :
|
|
46
|
+
const certificateAccount = props.certificateAccount ? props.certificateAccount : Stack.of(scope).account;
|
|
47
|
+
const certificateRegion = props.certificateRegion ? props.certificateRegion : Stack.of(scope).region;
|
|
51
48
|
certificateArn = `arn:aws:acm:${certificateRegion}:${certificateAccount}:certificate/${props.certificateId}`;
|
|
52
49
|
}
|
|
53
|
-
certificate =
|
|
50
|
+
certificate = Certificate.fromCertificateArn(scope, `${id}`, certificateArn);
|
|
54
51
|
}
|
|
55
52
|
else {
|
|
56
|
-
certificate = new
|
|
53
|
+
certificate = new Certificate(scope, `${id}`, {
|
|
57
54
|
domainName: props.domainName,
|
|
58
55
|
subjectAlternativeNames: props.subjectAlternativeNames,
|
|
59
|
-
validation:
|
|
56
|
+
validation: CertificateValidation.fromDns(hostedZone),
|
|
60
57
|
});
|
|
61
58
|
}
|
|
62
|
-
|
|
59
|
+
createCfnOutput(`${id}-certificateArn`, scope, certificate.certificateArn);
|
|
63
60
|
return certificate;
|
|
64
61
|
}
|
|
65
62
|
}
|
|
66
|
-
exports.AcmManager = AcmManager;
|
|
@@ -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,15 +1,15 @@
|
|
|
1
1
|
import { ICertificate } from 'aws-cdk-lib/aws-certificatemanager';
|
|
2
2
|
import * as cf from 'aws-cdk-lib/aws-cloudfront';
|
|
3
|
-
import {
|
|
4
|
-
import { HttpOrigin
|
|
3
|
+
import { DistributionAttributes, FunctionAssociation, IDistribution, IResponseHeadersPolicyRef, OriginAccessIdentity } from 'aws-cdk-lib/aws-cloudfront';
|
|
4
|
+
import { HttpOrigin } from 'aws-cdk-lib/aws-cloudfront-origins';
|
|
5
5
|
import { ISecurityGroup, IVpc } from 'aws-cdk-lib/aws-ec2';
|
|
6
6
|
import { IAccessPoint } from 'aws-cdk-lib/aws-efs';
|
|
7
7
|
import { Role } from 'aws-cdk-lib/aws-iam';
|
|
8
8
|
import { AssetCode, ILayerVersion } from 'aws-cdk-lib/aws-lambda';
|
|
9
9
|
import { IBucket } from 'aws-cdk-lib/aws-s3';
|
|
10
|
-
import { CommonConstruct } from '../../common';
|
|
11
|
-
import { LambdaEdgeProps } from '../lambda';
|
|
12
|
-
import {
|
|
10
|
+
import { CommonConstruct } from '../../common/index.js';
|
|
11
|
+
import { LambdaEdgeProps } from '../lambda/index.js';
|
|
12
|
+
import { CloudfrontFunctionProps, DistributionProps } from './types.js';
|
|
13
13
|
/**
|
|
14
14
|
* @classdesc Provides operations on AWS
|
|
15
15
|
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
@@ -35,24 +35,11 @@ import { CloudFrontProps, CloudfrontFunctionProps, DistributionProps } from './t
|
|
|
35
35
|
*/
|
|
36
36
|
export declare class CloudFrontManager {
|
|
37
37
|
createOriginAccessIdentity(id: string, scope: CommonConstruct, accessBucket?: IBucket): cf.OriginAccessIdentity;
|
|
38
|
-
/**
|
|
39
|
-
* @summary Method to create a cloudfront distribution
|
|
40
|
-
* @param id scoped id of the resource
|
|
41
|
-
* @param scope scope in which this resource is defined
|
|
42
|
-
* @param props distribution properties
|
|
43
|
-
* @param siteBucket
|
|
44
|
-
* @param logBucket
|
|
45
|
-
* @param oai
|
|
46
|
-
* @param certificate
|
|
47
|
-
* @param aliases
|
|
48
|
-
*/
|
|
49
|
-
createCloudFrontDistribution(id: string, scope: CommonConstruct, props: CloudFrontProps, siteBucket?: IBucket, logBucket?: IBucket, oai?: OriginAccessIdentity, certificate?: ICertificate, aliases?: string[]): cf.CloudFrontWebDistribution;
|
|
50
38
|
/**
|
|
51
39
|
* Method to create a CloudFront distribution with S3 Origin
|
|
52
40
|
* @param id scoped id of the resource
|
|
53
41
|
* @param scope scope in which this resource is defined
|
|
54
42
|
* @param props distribution properties
|
|
55
|
-
* @param origin
|
|
56
43
|
* @param siteBucket
|
|
57
44
|
* @param logBucket
|
|
58
45
|
* @param oai
|
|
@@ -60,7 +47,7 @@ export declare class CloudFrontManager {
|
|
|
60
47
|
* @param aliases
|
|
61
48
|
* @param defaultFunctionAssociations
|
|
62
49
|
*/
|
|
63
|
-
createDistributionWithS3Origin(id: string, scope: CommonConstruct, props: DistributionProps,
|
|
50
|
+
createDistributionWithS3Origin(id: string, scope: CommonConstruct, props: DistributionProps, siteBucket: IBucket, logBucket?: IBucket, oai?: OriginAccessIdentity, certificate?: ICertificate, aliases?: string[], defaultFunctionAssociations?: FunctionAssociation[]): cf.Distribution;
|
|
64
51
|
/**
|
|
65
52
|
* Method to create a CloudFront distribution with HTTP Origin
|
|
66
53
|
* @param id scoped id of the resource
|
|
@@ -73,7 +60,7 @@ export declare class CloudFrontManager {
|
|
|
73
60
|
* @param defaultFunctionAssociations
|
|
74
61
|
* @param responseHeadersPolicy
|
|
75
62
|
*/
|
|
76
|
-
createDistributionWithHttpOrigin(id: string, scope: CommonConstruct, props: DistributionProps, origin: HttpOrigin, domainNames: string[], logBucket?: IBucket, certificate?: ICertificate, defaultFunctionAssociations?: FunctionAssociation[], responseHeadersPolicy?:
|
|
63
|
+
createDistributionWithHttpOrigin(id: string, scope: CommonConstruct, props: DistributionProps, origin: HttpOrigin, domainNames: string[], logBucket?: IBucket, certificate?: ICertificate, defaultFunctionAssociations?: FunctionAssociation[], responseHeadersPolicy?: IResponseHeadersPolicyRef): cf.Distribution;
|
|
77
64
|
/**
|
|
78
65
|
* @summary Method to provision a Lambda@Edge function
|
|
79
66
|
* @param id scoped id of the resource
|