@gradientedge/cdk-utils 8.89.0 → 8.91.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/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/src/lib/common/construct.d.ts +4 -4
- package/dist/src/lib/common/construct.js +1 -1
- package/dist/src/lib/common/index.d.ts +1 -0
- package/dist/src/lib/common/index.js +1 -0
- package/dist/src/lib/common/stack.d.ts +1 -1
- package/dist/src/lib/common/types.d.ts +22 -0
- package/dist/src/lib/common/types.js +2 -0
- package/dist/src/lib/{helper/api-to-eventbridge-target-rest-api.d.ts → construct/api-to-eventbridge-target/api.d.ts} +2 -2
- package/dist/src/lib/{helper/api-to-eventbridge-target-event.d.ts → construct/api-to-eventbridge-target/event.d.ts} +2 -2
- package/dist/src/lib/construct/api-to-eventbridge-target/index.d.ts +3 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/index.js +3 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts +5 -5
- package/dist/src/lib/construct/api-to-eventbridge-target/main.js +4 -3
- package/dist/src/lib/construct/api-to-eventbridge-target/types.d.ts +112 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/types.js +2 -0
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/api-destined-lambda.d.ts +3 -3
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/index.d.ts +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/index.js +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/main.d.ts +7 -6
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/main.js +3 -3
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/types.d.ts +26 -0
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/types.js +2 -0
- package/dist/src/lib/{helper/api-to-lambda-target-rest-api.d.ts → construct/api-to-lambda-target/api.d.ts} +2 -2
- package/dist/src/lib/construct/api-to-lambda-target/index.d.ts +2 -0
- package/dist/src/lib/construct/api-to-lambda-target/index.js +2 -0
- package/dist/src/lib/construct/api-to-lambda-target/main.d.ts +4 -4
- package/dist/src/lib/construct/api-to-lambda-target/main.js +2 -2
- package/dist/src/lib/construct/api-to-lambda-target/types.d.ts +68 -0
- package/dist/src/lib/construct/api-to-lambda-target/types.js +2 -0
- package/dist/src/lib/construct/graphql-api-lambda/index.d.ts +1 -0
- package/dist/src/lib/construct/graphql-api-lambda/index.js +1 -0
- package/dist/src/lib/construct/graphql-api-lambda/main.d.ts +1 -1
- package/dist/src/lib/construct/graphql-api-lambda/types.d.ts +30 -0
- package/dist/src/lib/construct/graphql-api-lambda/types.js +2 -0
- package/dist/src/lib/construct/graphql-api-lambda-with-cache/index.d.ts +1 -0
- package/dist/src/lib/construct/graphql-api-lambda-with-cache/index.js +1 -0
- package/dist/src/lib/construct/graphql-api-lambda-with-cache/main.d.ts +1 -1
- package/dist/src/lib/construct/graphql-api-lambda-with-cache/types.d.ts +15 -0
- package/dist/src/lib/construct/graphql-api-lambda-with-cache/types.js +2 -0
- package/dist/src/lib/construct/lambda-with-iam-access/types.d.ts +2 -1
- package/dist/src/lib/construct/rest-api-lambda/index.d.ts +1 -0
- package/dist/src/lib/construct/rest-api-lambda/index.js +1 -0
- package/dist/src/lib/construct/rest-api-lambda/main.d.ts +1 -1
- package/dist/src/lib/construct/rest-api-lambda/types.d.ts +27 -0
- package/dist/src/lib/construct/rest-api-lambda/types.js +2 -0
- package/dist/src/lib/construct/rest-api-lambda-with-cache/index.d.ts +1 -0
- package/dist/src/lib/construct/rest-api-lambda-with-cache/index.js +1 -0
- package/dist/src/lib/construct/rest-api-lambda-with-cache/main.d.ts +1 -1
- package/dist/src/lib/construct/rest-api-lambda-with-cache/types.d.ts +14 -0
- package/dist/src/lib/construct/rest-api-lambda-with-cache/types.js +2 -0
- package/dist/src/lib/construct/site-with-ecs-backend/index.d.ts +1 -0
- package/dist/src/lib/construct/site-with-ecs-backend/index.js +1 -0
- package/dist/src/lib/construct/site-with-ecs-backend/main.d.ts +1 -1
- package/dist/src/lib/construct/site-with-ecs-backend/types.d.ts +30 -0
- package/dist/src/lib/construct/site-with-ecs-backend/types.js +2 -0
- package/dist/src/lib/construct/static-asset-deployment/types.d.ts +2 -1
- package/dist/src/lib/construct/static-site/index.d.ts +1 -0
- package/dist/src/lib/construct/static-site/index.js +1 -0
- package/dist/src/lib/construct/static-site/main.d.ts +1 -1
- package/dist/src/lib/construct/static-site/types.d.ts +26 -0
- package/dist/src/lib/construct/static-site/types.js +2 -0
- package/dist/src/lib/index.d.ts +5 -0
- package/dist/src/lib/index.js +21 -0
- package/dist/src/lib/services/aws/api-gateway/index.d.ts +2 -0
- package/dist/src/lib/{helper → services/aws/api-gateway}/index.js +2 -3
- package/dist/src/lib/{manager/aws/api-manager.d.ts → services/aws/api-gateway/main.d.ts} +14 -14
- package/dist/src/lib/{manager/aws/api-manager.js → services/aws/api-gateway/main.js} +13 -10
- package/dist/src/lib/services/aws/api-gateway/types.d.ts +9 -0
- package/dist/src/lib/services/aws/api-gateway/types.js +2 -0
- package/dist/src/lib/services/aws/appconfig/constants.d.ts +18 -0
- package/dist/src/lib/services/aws/appconfig/constants.js +60 -0
- package/dist/src/lib/services/aws/appconfig/index.d.ts +3 -0
- package/dist/src/lib/services/aws/appconfig/index.js +19 -0
- package/dist/src/lib/{manager/aws/app-config-manager.d.ts → services/aws/appconfig/main.d.ts} +18 -18
- package/dist/src/lib/services/aws/appconfig/main.js +135 -0
- package/dist/src/lib/services/aws/appconfig/types.d.ts +13 -0
- package/dist/src/lib/services/aws/appconfig/types.js +2 -0
- package/dist/src/lib/services/aws/certificate-manager/index.d.ts +2 -0
- package/dist/src/lib/services/aws/certificate-manager/index.js +18 -0
- package/dist/src/lib/{manager/aws/acm-manager.d.ts → services/aws/certificate-manager/main.d.ts} +7 -7
- package/dist/src/lib/{manager/aws/acm-manager.js → services/aws/certificate-manager/main.js} +5 -5
- package/dist/src/lib/services/aws/certificate-manager/types.d.ts +13 -0
- package/dist/src/lib/services/aws/certificate-manager/types.js +2 -0
- package/dist/src/lib/services/aws/cloudfront/index.d.ts +2 -0
- package/dist/src/lib/services/aws/cloudfront/index.js +18 -0
- package/dist/src/lib/{manager/aws/cloudfront-manager.d.ts → services/aws/cloudfront/main.d.ts} +24 -23
- package/dist/src/lib/{manager/aws/cloudfront-manager.js → services/aws/cloudfront/main.js} +16 -16
- package/dist/src/lib/services/aws/cloudfront/types.d.ts +25 -0
- package/dist/src/lib/services/aws/cloudfront/types.js +2 -0
- package/dist/src/lib/services/aws/cloudtrail/index.d.ts +2 -0
- package/dist/src/lib/services/aws/cloudtrail/index.js +18 -0
- package/dist/src/lib/{manager/aws/cloudtrail-manager.d.ts → services/aws/cloudtrail/main.d.ts} +9 -9
- package/dist/src/lib/{manager/aws/cloudtrail-manager.js → services/aws/cloudtrail/main.js} +7 -7
- package/dist/src/lib/services/aws/cloudtrail/types.d.ts +7 -0
- package/dist/src/lib/services/aws/cloudtrail/types.js +2 -0
- package/dist/src/lib/services/aws/cloudwatch/index.d.ts +3 -0
- package/dist/src/lib/services/aws/cloudwatch/index.js +19 -0
- package/dist/src/lib/{manager/aws/log-manager.d.ts → services/aws/cloudwatch/logs.d.ts} +15 -15
- package/dist/src/lib/{manager/aws/log-manager.js → services/aws/cloudwatch/logs.js} +11 -11
- package/dist/src/lib/services/aws/cloudwatch/main.d.ts +211 -0
- package/dist/src/lib/{manager/aws/cloudwatch-manager.js → services/aws/cloudwatch/main.js} +48 -48
- package/dist/src/lib/services/aws/cloudwatch/types.d.ts +111 -0
- package/dist/src/lib/services/aws/cloudwatch/types.js +2 -0
- package/dist/src/lib/services/aws/codebuild/index.d.ts +1 -0
- package/dist/src/lib/services/aws/codebuild/index.js +17 -0
- package/dist/src/lib/{manager/aws/codebuild-manager.d.ts → services/aws/codebuild/main.d.ts} +7 -7
- package/dist/src/lib/{manager/aws/codebuild-manager.js → services/aws/codebuild/main.js} +4 -4
- package/dist/src/lib/services/aws/dynamodb/index.d.ts +2 -0
- package/dist/src/lib/services/aws/dynamodb/index.js +18 -0
- package/dist/src/lib/{manager/aws/dynamodb-manager.d.ts → services/aws/dynamodb/main.d.ts} +7 -7
- package/dist/src/lib/{manager/aws/dynamodb-manager.js → services/aws/dynamodb/main.js} +5 -5
- package/dist/src/lib/services/aws/dynamodb/types.d.ts +9 -0
- package/dist/src/lib/services/aws/dynamodb/types.js +2 -0
- package/dist/src/lib/services/aws/elastic-container-registry/index.d.ts +1 -0
- package/dist/src/lib/services/aws/elastic-container-registry/index.js +17 -0
- package/dist/src/lib/{manager/aws/ecr-manager.d.ts → services/aws/elastic-container-registry/main.d.ts} +7 -7
- package/dist/src/lib/{manager/aws/ecr-manager.js → services/aws/elastic-container-registry/main.js} +6 -6
- package/dist/src/lib/services/aws/elastic-container-service/index.d.ts +2 -0
- package/dist/src/lib/services/aws/elastic-container-service/index.js +18 -0
- package/dist/src/lib/{manager/aws/ecs-manager.d.ts → services/aws/elastic-container-service/main.d.ts} +15 -15
- package/dist/src/lib/{manager/aws/ecs-manager.js → services/aws/elastic-container-service/main.js} +11 -11
- package/dist/src/lib/services/aws/elastic-container-service/types.d.ts +46 -0
- package/dist/src/lib/services/aws/elastic-container-service/types.js +2 -0
- package/dist/src/lib/services/aws/elastic-file-system/index.d.ts +2 -0
- package/dist/src/lib/services/aws/elastic-file-system/index.js +18 -0
- package/dist/src/lib/{manager/aws/efs-manager.d.ts → services/aws/elastic-file-system/main.d.ts} +10 -10
- package/dist/src/lib/{manager/aws/efs-manager.js → services/aws/elastic-file-system/main.js} +8 -8
- package/dist/src/lib/services/aws/elastic-file-system/types.d.ts +19 -0
- package/dist/src/lib/services/aws/elastic-file-system/types.js +2 -0
- package/dist/src/lib/services/aws/elastic-kubernetes-service/index.d.ts +2 -0
- package/dist/src/lib/services/aws/elastic-kubernetes-service/index.js +18 -0
- package/dist/src/lib/{manager/aws/eks-manager.d.ts → services/aws/elastic-kubernetes-service/main.d.ts} +9 -9
- package/dist/src/lib/{manager/aws/eks-manager.js → services/aws/elastic-kubernetes-service/main.js} +7 -7
- package/dist/src/lib/services/aws/elastic-kubernetes-service/types.d.ts +9 -0
- package/dist/src/lib/services/aws/elastic-kubernetes-service/types.js +2 -0
- package/dist/src/lib/services/aws/elasticache/index.d.ts +2 -0
- package/dist/src/lib/services/aws/elasticache/index.js +18 -0
- package/dist/src/lib/services/aws/elasticache/main.d.ts +51 -0
- package/dist/src/lib/{manager/aws/elasticache-manager.js → services/aws/elasticache/main.js} +11 -12
- package/dist/src/lib/services/aws/elasticache/types.d.ts +13 -0
- package/dist/src/lib/services/aws/elasticache/types.js +2 -0
- package/dist/src/lib/services/aws/eventbridge/index.d.ts +3 -0
- package/dist/src/lib/services/aws/eventbridge/index.js +19 -0
- package/dist/src/lib/{manager/aws/event-manager.d.ts → services/aws/eventbridge/main.d.ts} +20 -20
- package/dist/src/lib/{manager/aws/event-manager.js → services/aws/eventbridge/main.js} +21 -15
- package/dist/src/lib/{manager/aws/event-target-manager.d.ts → services/aws/eventbridge/target.d.ts} +7 -7
- package/dist/src/lib/{manager/aws/event-target-manager.js → services/aws/eventbridge/target.js} +5 -5
- package/dist/src/lib/services/aws/eventbridge/types.d.ts +35 -0
- package/dist/src/lib/services/aws/eventbridge/types.js +2 -0
- package/dist/src/lib/services/aws/evidently/index.d.ts +2 -0
- package/dist/src/lib/services/aws/evidently/index.js +18 -0
- package/dist/src/lib/{manager/aws/evidently-manager.d.ts → services/aws/evidently/main.d.ts} +16 -16
- package/dist/src/lib/{manager/aws/evidently-manager.js → services/aws/evidently/main.js} +10 -10
- package/dist/src/lib/services/aws/evidently/types.d.ts +31 -0
- package/dist/src/lib/services/aws/evidently/types.js +2 -0
- package/dist/src/lib/services/aws/identity-access-management/index.d.ts +1 -0
- package/dist/src/lib/services/aws/identity-access-management/index.js +17 -0
- package/dist/src/lib/{manager/aws/iam-manager.d.ts → services/aws/identity-access-management/main.d.ts} +39 -40
- package/dist/src/lib/{manager/aws/iam-manager.js → services/aws/identity-access-management/main.js} +22 -23
- package/dist/src/lib/services/aws/index.d.ts +28 -0
- package/dist/src/lib/services/aws/index.js +44 -0
- package/dist/src/lib/services/aws/key-management-service/index.d.ts +2 -0
- package/dist/src/lib/services/aws/key-management-service/index.js +18 -0
- package/dist/src/lib/{manager/aws/kms-manager.d.ts → services/aws/key-management-service/main.d.ts} +7 -7
- package/dist/src/lib/{manager/aws/kms-manager.js → services/aws/key-management-service/main.js} +5 -5
- package/dist/src/lib/services/aws/key-management-service/types.d.ts +7 -0
- package/dist/src/lib/services/aws/key-management-service/types.js +2 -0
- package/dist/src/lib/services/aws/lambda/index.d.ts +2 -0
- package/dist/src/lib/services/aws/lambda/index.js +18 -0
- package/dist/src/lib/{manager/aws/lambda-manager.d.ts → services/aws/lambda/main.d.ts} +22 -21
- package/dist/src/lib/{manager/aws/lambda-manager.js → services/aws/lambda/main.js} +21 -21
- package/dist/src/lib/services/aws/lambda/types.d.ts +52 -0
- package/dist/src/lib/services/aws/lambda/types.js +2 -0
- package/dist/src/lib/services/aws/route53/index.d.ts +2 -0
- package/dist/src/lib/services/aws/route53/index.js +18 -0
- package/dist/src/lib/{manager/aws/route53-manager.d.ts → services/aws/route53/main.d.ts} +17 -17
- package/dist/src/lib/{manager/aws/route53-manager.js → services/aws/route53/main.js} +11 -11
- package/dist/src/lib/services/aws/route53/types.d.ts +8 -0
- package/dist/src/lib/services/aws/route53/types.js +2 -0
- package/dist/src/lib/services/aws/secrets-manager/index.d.ts +1 -0
- package/dist/src/lib/services/aws/secrets-manager/index.js +17 -0
- package/dist/src/lib/{manager/aws/secrets-manager.d.ts → services/aws/secrets-manager/main.d.ts} +8 -8
- package/dist/src/lib/{manager/aws/secrets-manager.js → services/aws/secrets-manager/main.js} +6 -6
- package/dist/src/lib/services/aws/simple-notification-service/index.d.ts +2 -0
- package/dist/src/lib/services/aws/simple-notification-service/index.js +18 -0
- package/dist/src/lib/{manager/aws/sns-manager.d.ts → services/aws/simple-notification-service/main.d.ts} +13 -13
- package/dist/src/lib/{manager/aws/sns-manager.js → services/aws/simple-notification-service/main.js} +10 -10
- package/dist/src/lib/services/aws/simple-notification-service/types.d.ts +7 -0
- package/dist/src/lib/services/aws/simple-notification-service/types.js +2 -0
- package/dist/src/lib/services/aws/simple-queue-service/index.d.ts +2 -0
- package/dist/src/lib/services/aws/simple-queue-service/index.js +18 -0
- package/dist/src/lib/services/aws/simple-queue-service/main.d.ts +50 -0
- package/dist/src/lib/{manager/aws/sqs-manager.js → services/aws/simple-queue-service/main.js} +11 -11
- package/dist/src/lib/services/aws/simple-queue-service/types.d.ts +17 -0
- package/dist/src/lib/services/aws/simple-queue-service/types.js +2 -0
- package/dist/src/lib/services/aws/simple-storage-service/index.d.ts +2 -0
- package/dist/src/lib/services/aws/simple-storage-service/index.js +18 -0
- package/dist/src/lib/{manager/aws/s3-manager.d.ts → services/aws/simple-storage-service/main.d.ts} +23 -23
- package/dist/src/lib/{manager/aws/s3-manager.js → services/aws/simple-storage-service/main.js} +15 -16
- package/dist/src/lib/services/aws/simple-storage-service/types.d.ts +31 -0
- package/dist/src/lib/services/aws/simple-storage-service/types.js +2 -0
- package/dist/src/lib/services/aws/step-function/index.d.ts +2 -0
- package/dist/src/lib/services/aws/step-function/index.js +18 -0
- package/dist/src/lib/services/aws/step-function/main.d.ts +157 -0
- package/dist/src/lib/{manager/aws/sfn-manager.js → services/aws/step-function/main.js} +35 -35
- package/dist/src/lib/services/aws/step-function/types.d.ts +120 -0
- package/dist/src/lib/services/aws/step-function/types.js +2 -0
- package/dist/src/lib/services/aws/systems-manager/index.d.ts +2 -0
- package/dist/src/lib/services/aws/systems-manager/index.js +18 -0
- package/dist/src/lib/{manager/aws/ssm-manager.d.ts → services/aws/systems-manager/main.d.ts} +13 -13
- package/dist/src/lib/{manager/aws/ssm-manager.js → services/aws/systems-manager/main.js} +8 -8
- package/dist/src/lib/services/aws/systems-manager/types.d.ts +8 -0
- package/dist/src/lib/services/aws/systems-manager/types.js +2 -0
- package/dist/src/lib/services/aws/virtual-private-cloud/index.d.ts +1 -0
- package/dist/src/lib/services/aws/virtual-private-cloud/index.js +17 -0
- package/dist/src/lib/{manager/aws/vpc-manager.d.ts → services/aws/virtual-private-cloud/main.d.ts} +11 -11
- package/dist/src/lib/{manager/aws/vpc-manager.js → services/aws/virtual-private-cloud/main.js} +8 -8
- package/dist/src/lib/services/aws/web-application-firewall/index.d.ts +2 -0
- package/dist/src/lib/services/aws/web-application-firewall/index.js +18 -0
- package/dist/src/lib/services/aws/web-application-firewall/main.d.ts +39 -0
- package/dist/src/lib/{manager/aws/waf-manager.js → services/aws/web-application-firewall/main.js} +9 -9
- package/dist/src/lib/services/aws/web-application-firewall/types.d.ts +13 -0
- package/dist/src/lib/services/aws/web-application-firewall/types.js +2 -0
- package/dist/src/lib/types/aws/index.d.ts +0 -921
- package/index.ts +1 -1
- package/package.json +5 -5
- package/src/lib/common/construct.ts +4 -4
- package/src/lib/common/index.ts +1 -0
- package/src/lib/common/stack.ts +1 -1
- package/src/lib/common/types.ts +23 -0
- package/src/lib/{helper/api-to-eventbridge-target-rest-api.ts → construct/api-to-eventbridge-target/api.ts} +2 -2
- package/src/lib/{helper/api-to-eventbridge-target-event.ts → construct/api-to-eventbridge-target/event.ts} +2 -2
- package/src/lib/construct/api-to-eventbridge-target/index.ts +3 -0
- package/src/lib/construct/api-to-eventbridge-target/main.ts +13 -8
- package/src/lib/construct/api-to-eventbridge-target/types.ts +126 -0
- package/src/lib/construct/api-to-eventbridge-target-with-sns/api-destined-lambda.ts +3 -3
- package/src/lib/construct/api-to-eventbridge-target-with-sns/index.ts +1 -0
- package/src/lib/construct/api-to-eventbridge-target-with-sns/main.ts +15 -9
- package/src/lib/construct/api-to-eventbridge-target-with-sns/types.ts +28 -0
- package/src/lib/{helper/api-to-lambda-target-rest-api.ts → construct/api-to-lambda-target/api.ts} +2 -2
- package/src/lib/construct/api-to-lambda-target/index.ts +2 -0
- package/src/lib/construct/api-to-lambda-target/main.ts +6 -6
- package/src/lib/construct/api-to-lambda-target/types.ts +78 -0
- package/src/lib/construct/graphql-api-lambda/index.ts +1 -0
- package/src/lib/construct/graphql-api-lambda/main.ts +1 -1
- package/src/lib/construct/graphql-api-lambda/types.ts +31 -0
- package/src/lib/construct/graphql-api-lambda-with-cache/index.ts +1 -0
- package/src/lib/construct/graphql-api-lambda-with-cache/main.ts +1 -1
- package/src/lib/construct/graphql-api-lambda-with-cache/types.ts +16 -0
- package/src/lib/construct/lambda-with-iam-access/types.ts +2 -1
- package/src/lib/construct/rest-api-lambda/index.ts +1 -0
- package/src/lib/construct/rest-api-lambda/main.ts +1 -1
- package/src/lib/construct/rest-api-lambda/types.ts +28 -0
- package/src/lib/construct/rest-api-lambda-with-cache/index.ts +1 -0
- package/src/lib/construct/rest-api-lambda-with-cache/main.ts +1 -1
- package/src/lib/construct/rest-api-lambda-with-cache/types.ts +15 -0
- package/src/lib/construct/site-with-ecs-backend/index.ts +1 -0
- package/src/lib/construct/site-with-ecs-backend/main.ts +1 -1
- package/src/lib/construct/site-with-ecs-backend/types.ts +42 -0
- package/src/lib/construct/static-asset-deployment/types.ts +2 -1
- package/src/lib/construct/static-site/index.ts +1 -0
- package/src/lib/construct/static-site/main.ts +1 -1
- package/src/lib/construct/static-site/types.ts +27 -0
- package/src/lib/index.ts +5 -0
- package/src/lib/services/aws/api-gateway/index.ts +2 -0
- package/src/lib/{manager/aws/api-manager.ts → services/aws/api-gateway/main.ts} +20 -17
- package/src/lib/services/aws/api-gateway/types.ts +10 -0
- package/src/lib/services/aws/appconfig/constants.ts +58 -0
- package/src/lib/services/aws/appconfig/index.ts +3 -0
- package/src/lib/services/aws/appconfig/main.ts +130 -0
- package/src/lib/services/aws/appconfig/types.ts +20 -0
- package/src/lib/services/aws/certificate-manager/index.ts +2 -0
- package/src/lib/{manager/aws/acm-manager.ts → services/aws/certificate-manager/main.ts} +9 -9
- package/src/lib/services/aws/certificate-manager/types.ts +14 -0
- package/src/lib/services/aws/cloudfront/index.ts +2 -0
- package/src/lib/{manager/aws/cloudfront-manager.ts → services/aws/cloudfront/main.ts} +29 -29
- package/src/lib/services/aws/cloudfront/types.ts +28 -0
- package/src/lib/services/aws/cloudtrail/index.ts +2 -0
- package/src/lib/{manager/aws/cloudtrail-manager.ts → services/aws/cloudtrail/main.ts} +11 -11
- package/src/lib/services/aws/cloudtrail/types.ts +7 -0
- package/src/lib/services/aws/cloudwatch/index.ts +3 -0
- package/src/lib/{manager/aws/log-manager.ts → services/aws/cloudwatch/logs.ts} +16 -21
- package/src/lib/{manager/aws/cloudwatch-manager.ts → services/aws/cloudwatch/main.ts} +86 -112
- package/src/lib/services/aws/cloudwatch/types.ts +121 -0
- package/src/lib/services/aws/codebuild/index.ts +1 -0
- package/src/lib/{manager/aws/codebuild-manager.ts → services/aws/codebuild/main.ts} +7 -7
- package/src/lib/services/aws/dynamodb/index.ts +2 -0
- package/src/lib/{manager/aws/dynamodb-manager.ts → services/aws/dynamodb/main.ts} +8 -8
- package/src/lib/services/aws/dynamodb/types.ts +10 -0
- package/src/lib/services/aws/elastic-container-registry/index.ts +1 -0
- package/src/lib/{manager/aws/ecr-manager.ts → services/aws/elastic-container-registry/main.ts} +8 -8
- package/src/lib/services/aws/elastic-container-service/index.ts +2 -0
- package/src/lib/{manager/aws/ecs-manager.ts → services/aws/elastic-container-service/main.ts} +18 -18
- package/src/lib/services/aws/elastic-container-service/types.ts +51 -0
- package/src/lib/services/aws/elastic-file-system/index.ts +2 -0
- package/src/lib/{manager/aws/efs-manager.ts → services/aws/elastic-file-system/main.ts} +13 -13
- package/src/lib/services/aws/elastic-file-system/types.ts +20 -0
- package/src/lib/services/aws/elastic-kubernetes-service/index.ts +2 -0
- package/src/lib/{manager/aws/eks-manager.ts → services/aws/elastic-kubernetes-service/main.ts} +11 -11
- package/src/lib/services/aws/elastic-kubernetes-service/types.ts +10 -0
- package/src/lib/services/aws/elasticache/index.ts +2 -0
- package/src/lib/{manager/aws/elasticache-manager.ts → services/aws/elasticache/main.ts} +18 -20
- package/src/lib/services/aws/elasticache/types.ts +13 -0
- package/src/lib/services/aws/eventbridge/index.ts +3 -0
- package/src/lib/{manager/aws/event-manager.ts → services/aws/eventbridge/main.ts} +32 -26
- package/src/lib/{manager/aws/event-target-manager.ts → services/aws/eventbridge/target.ts} +7 -7
- package/src/lib/services/aws/eventbridge/types.ts +38 -0
- package/src/lib/services/aws/evidently/index.ts +2 -0
- package/src/lib/{manager/aws/evidently-manager.ts → services/aws/evidently/main.ts} +23 -18
- package/src/lib/services/aws/evidently/types.ts +37 -0
- package/src/lib/services/aws/identity-access-management/index.ts +1 -0
- package/src/lib/{manager/aws/iam-manager.ts → services/aws/identity-access-management/main.ts} +40 -51
- package/src/lib/services/aws/index.ts +28 -0
- package/src/lib/services/aws/key-management-service/index.ts +2 -0
- package/src/lib/{manager/aws/kms-manager.ts → services/aws/key-management-service/main.ts} +8 -8
- package/src/lib/services/aws/key-management-service/types.ts +7 -0
- package/src/lib/services/aws/lambda/index.ts +2 -0
- package/src/lib/{manager/aws/lambda-manager.ts → services/aws/lambda/main.ts} +30 -30
- package/src/lib/services/aws/lambda/types.ts +57 -0
- package/src/lib/services/aws/route53/index.ts +2 -0
- package/src/lib/{manager/aws/route53-manager.ts → services/aws/route53/main.ts} +18 -18
- package/src/lib/services/aws/route53/types.ts +9 -0
- package/src/lib/services/aws/secrets-manager/index.ts +1 -0
- package/src/lib/{manager/aws/secrets-manager.ts → services/aws/secrets-manager/main.ts} +9 -14
- package/src/lib/services/aws/simple-notification-service/index.ts +2 -0
- package/src/lib/{manager/aws/sns-manager.ts → services/aws/simple-notification-service/main.ts} +16 -16
- package/src/lib/services/aws/simple-notification-service/types.ts +7 -0
- package/src/lib/services/aws/simple-queue-service/index.ts +2 -0
- package/src/lib/{manager/aws/sqs-manager.ts → services/aws/simple-queue-service/main.ts} +18 -17
- package/src/lib/services/aws/simple-queue-service/types.ts +18 -0
- package/src/lib/services/aws/simple-storage-service/index.ts +2 -0
- package/src/lib/{manager/aws/s3-manager.ts → services/aws/simple-storage-service/main.ts} +26 -27
- package/src/lib/services/aws/simple-storage-service/types.ts +34 -0
- package/src/lib/services/aws/step-function/index.ts +2 -0
- package/src/lib/{manager/aws/sfn-manager.ts → services/aws/step-function/main.ts} +76 -61
- package/src/lib/services/aws/step-function/types.ts +152 -0
- package/src/lib/services/aws/systems-manager/index.ts +2 -0
- package/src/lib/{manager/aws/ssm-manager.ts → services/aws/systems-manager/main.ts} +15 -19
- package/src/lib/services/aws/systems-manager/types.ts +8 -0
- package/src/lib/services/aws/virtual-private-cloud/index.ts +1 -0
- package/src/lib/{manager/aws/vpc-manager.ts → services/aws/virtual-private-cloud/main.ts} +12 -12
- package/src/lib/services/aws/web-application-firewall/index.ts +2 -0
- package/src/lib/{manager/aws/waf-manager.ts → services/aws/web-application-firewall/main.ts} +13 -13
- package/src/lib/services/aws/web-application-firewall/types.ts +13 -0
- package/src/lib/types/aws/index.ts +0 -984
- package/dist/src/lib/helper/index.d.ts +0 -3
- package/dist/src/lib/manager/aws/app-config-manager.js +0 -191
- package/dist/src/lib/manager/aws/cloudwatch-manager.d.ts +0 -211
- package/dist/src/lib/manager/aws/elasticache-manager.d.ts +0 -52
- package/dist/src/lib/manager/aws/index.d.ts +0 -30
- package/dist/src/lib/manager/aws/index.js +0 -46
- package/dist/src/lib/manager/aws/sfn-manager.d.ts +0 -157
- package/dist/src/lib/manager/aws/sqs-manager.d.ts +0 -49
- package/dist/src/lib/manager/aws/waf-manager.d.ts +0 -39
- package/src/lib/helper/index.ts +0 -3
- package/src/lib/manager/aws/app-config-manager.ts +0 -192
- package/src/lib/manager/aws/index.ts +0 -30
- /package/dist/src/lib/{helper/api-to-eventbridge-target-rest-api.js → construct/api-to-eventbridge-target/api.js} +0 -0
- /package/dist/src/lib/{helper/api-to-eventbridge-target-event.js → construct/api-to-eventbridge-target/event.js} +0 -0
- /package/dist/src/lib/{helper/api-to-lambda-target-rest-api.js → construct/api-to-lambda-target/api.js} +0 -0
- /package/dist/src/lib/{manager → services}/aws/constants.d.ts +0 -0
- /package/dist/src/lib/{manager → services}/aws/constants.js +0 -0
- /package/dist/src/lib/{manager → services}/index.d.ts +0 -0
- /package/dist/src/lib/{manager → services}/index.js +0 -0
- /package/src/lib/{manager → services}/aws/constants.ts +0 -0
- /package/src/lib/{manager → services}/index.ts +0 -0
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -16,6 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./src/lib/common"), exports);
|
|
18
18
|
__exportStar(require("./src/lib/construct"), exports);
|
|
19
|
-
__exportStar(require("./src/lib/
|
|
19
|
+
__exportStar(require("./src/lib/services"), exports);
|
|
20
20
|
__exportStar(require("./src/lib/types"), exports);
|
|
21
21
|
__exportStar(require("./src/lib/utils"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as cdk from 'aws-cdk-lib';
|
|
2
2
|
import { Construct } from 'constructs';
|
|
3
|
-
import * as aws from '../
|
|
4
|
-
import
|
|
3
|
+
import * as aws from '../services/aws';
|
|
4
|
+
import { CommonStackProps } from './types';
|
|
5
5
|
/**
|
|
6
6
|
* @stability stable
|
|
7
7
|
* @category cdk-utils.common-construct
|
|
@@ -19,7 +19,7 @@ import * as types from '../types';
|
|
|
19
19
|
* };
|
|
20
20
|
*/
|
|
21
21
|
export declare class CommonConstruct extends Construct {
|
|
22
|
-
props:
|
|
22
|
+
props: CommonStackProps;
|
|
23
23
|
acmManager: aws.AcmManager;
|
|
24
24
|
apiManager: aws.ApiManager;
|
|
25
25
|
appConfigManager: aws.AppConfigManager;
|
|
@@ -50,7 +50,7 @@ export declare class CommonConstruct extends Construct {
|
|
|
50
50
|
vpcManager: aws.VpcManager;
|
|
51
51
|
wafManager: aws.WafManager;
|
|
52
52
|
fullyQualifiedDomainName: string;
|
|
53
|
-
constructor(parent: Construct, id: string, props:
|
|
53
|
+
constructor(parent: Construct, id: string, props: CommonStackProps);
|
|
54
54
|
/**
|
|
55
55
|
* @summary Helper method to add CloudFormation outputs from the construct
|
|
56
56
|
* @param {string} id scoped id of the resource
|
|
@@ -25,7 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.applyMixins = exports.CommonConstruct = void 0;
|
|
27
27
|
const constructs_1 = require("constructs");
|
|
28
|
-
const aws = __importStar(require("../
|
|
28
|
+
const aws = __importStar(require("../services/aws"));
|
|
29
29
|
const utils = __importStar(require("../utils"));
|
|
30
30
|
/**
|
|
31
31
|
* @stability stable
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./construct"), exports);
|
|
18
18
|
__exportStar(require("./stack"), exports);
|
|
19
|
+
__exportStar(require("./types"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as cdk from 'aws-cdk-lib';
|
|
2
|
+
import { Runtime, Tracing } from 'aws-cdk-lib/aws-lambda';
|
|
3
|
+
import { RetentionDays } from 'aws-cdk-lib/aws-logs';
|
|
4
|
+
/**
|
|
5
|
+
* @category cdk-utils.common-stack
|
|
6
|
+
* @subcategory Properties
|
|
7
|
+
*/
|
|
8
|
+
export interface CommonStackProps extends cdk.StackProps {
|
|
9
|
+
name: string;
|
|
10
|
+
region: string;
|
|
11
|
+
stage: string;
|
|
12
|
+
domainName: string;
|
|
13
|
+
subDomain?: string;
|
|
14
|
+
extraContexts?: string[];
|
|
15
|
+
stageContextPath?: string;
|
|
16
|
+
skipStageForARecords: boolean;
|
|
17
|
+
logRetention?: RetentionDays;
|
|
18
|
+
defaultReservedLambdaConcurrentExecutions?: number;
|
|
19
|
+
defaultTracing?: Tracing;
|
|
20
|
+
excludeDomainNameForBuckets?: boolean;
|
|
21
|
+
nodejsRuntime?: Runtime;
|
|
22
|
+
}
|
|
@@ -4,14 +4,14 @@ import * as iam from 'aws-cdk-lib/aws-iam';
|
|
|
4
4
|
import * as logs from 'aws-cdk-lib/aws-logs';
|
|
5
5
|
import * as route53 from 'aws-cdk-lib/aws-route53';
|
|
6
6
|
import * as sns from 'aws-cdk-lib/aws-sns';
|
|
7
|
-
import
|
|
7
|
+
import { ApiToEventBridgeTargetRestApiType } from './types';
|
|
8
8
|
/**
|
|
9
9
|
* @stability stable
|
|
10
10
|
* @category cdk-utils.api-to-eventbridge-target
|
|
11
11
|
* @subcategory member
|
|
12
12
|
* @classdesc Provides a construct to contain api resources for ApiToEventBridgeTargetWithSns
|
|
13
13
|
*/
|
|
14
|
-
export declare class ApiToEventbridgeTargetRestApi implements
|
|
14
|
+
export declare class ApiToEventbridgeTargetRestApi implements ApiToEventBridgeTargetRestApiType {
|
|
15
15
|
accessLogGroup: logs.LogGroup;
|
|
16
16
|
api: apig.RestApi;
|
|
17
17
|
certificate: acm.ICertificate;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as events from 'aws-cdk-lib/aws-events';
|
|
2
2
|
import * as logs from 'aws-cdk-lib/aws-logs';
|
|
3
|
-
import
|
|
3
|
+
import { ApiToEventBridgeTargetEventType } from './types';
|
|
4
4
|
/**
|
|
5
5
|
* @stability stable
|
|
6
6
|
* @category cdk-utils.api-to-eventbridge-target
|
|
7
7
|
* @subcategory member
|
|
8
8
|
* @classdesc Provides a construct to contain event resources for ApiToEventBridgeTargetWithSns
|
|
9
9
|
*/
|
|
10
|
-
export declare class ApiToEventbridgeTargetEvent implements
|
|
10
|
+
export declare class ApiToEventbridgeTargetEvent implements ApiToEventBridgeTargetEventType {
|
|
11
11
|
eventBus: events.IEventBus;
|
|
12
12
|
logGroup: logs.LogGroup;
|
|
13
13
|
logGroupFailure: logs.LogGroup;
|
|
@@ -14,4 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./api"), exports);
|
|
18
|
+
__exportStar(require("./event"), exports);
|
|
17
19
|
__exportStar(require("./main"), exports);
|
|
20
|
+
__exportStar(require("./types"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';
|
|
2
2
|
import { Construct } from 'constructs';
|
|
3
3
|
import { CommonConstruct } from '../../common';
|
|
4
|
-
import
|
|
4
|
+
import { ApiToEventBridgeTargetEventType, ApiToEventBridgeTargetProps, ApiToEventBridgeTargetRestApiType } from './types';
|
|
5
5
|
/**
|
|
6
6
|
* @stability stable
|
|
7
7
|
* @category cdk-utils.api-to-eventbridge-target
|
|
@@ -25,13 +25,13 @@ import * as types from '../../types/aws';
|
|
|
25
25
|
* @mixin
|
|
26
26
|
*/
|
|
27
27
|
export declare class ApiToEventBridgeTarget extends CommonConstruct {
|
|
28
|
-
props:
|
|
28
|
+
props: ApiToEventBridgeTargetProps;
|
|
29
29
|
id: string;
|
|
30
30
|
applicationSecrets: secretsmanager.ISecret[];
|
|
31
|
-
apiEvent:
|
|
32
|
-
apiToEventBridgeTargetRestApi:
|
|
31
|
+
apiEvent: ApiToEventBridgeTargetEventType;
|
|
32
|
+
apiToEventBridgeTargetRestApi: ApiToEventBridgeTargetRestApiType;
|
|
33
33
|
apiResource: string;
|
|
34
|
-
constructor(parent: Construct, id: string, props:
|
|
34
|
+
constructor(parent: Construct, id: string, props: ApiToEventBridgeTargetProps);
|
|
35
35
|
protected initResources(): void;
|
|
36
36
|
/**
|
|
37
37
|
* @summary Method to resolve secrets from SecretsManager
|
|
@@ -30,7 +30,8 @@ const events = __importStar(require("aws-cdk-lib/aws-events"));
|
|
|
30
30
|
const eventstargets = __importStar(require("aws-cdk-lib/aws-events-targets"));
|
|
31
31
|
const iam = __importStar(require("aws-cdk-lib/aws-iam"));
|
|
32
32
|
const common_1 = require("../../common");
|
|
33
|
-
const
|
|
33
|
+
const event_1 = require("./event");
|
|
34
|
+
const api_1 = require("./api");
|
|
34
35
|
/**
|
|
35
36
|
* @stability stable
|
|
36
37
|
* @category cdk-utils.api-to-eventbridge-target
|
|
@@ -67,8 +68,8 @@ class ApiToEventBridgeTarget extends common_1.CommonConstruct {
|
|
|
67
68
|
super(parent, id, props);
|
|
68
69
|
this.props = props;
|
|
69
70
|
this.id = id;
|
|
70
|
-
this.apiEvent = new
|
|
71
|
-
this.apiToEventBridgeTargetRestApi = new
|
|
71
|
+
this.apiEvent = new event_1.ApiToEventbridgeTargetEvent();
|
|
72
|
+
this.apiToEventBridgeTargetRestApi = new api_1.ApiToEventbridgeTargetRestApi();
|
|
72
73
|
this.apiResource = 'notify';
|
|
73
74
|
}
|
|
74
75
|
initResources() {
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { IEventBus, Rule } from 'aws-cdk-lib/aws-events';
|
|
2
|
+
import { LogGroup } from 'aws-cdk-lib/aws-logs';
|
|
3
|
+
import { DomainName, IAuthorizer, Integration, IntegrationOptions, IntegrationResponse, IRestApi, Method, MethodResponse, Model, ModelOptions, Resource, RestApiProps } from 'aws-cdk-lib/aws-apigateway';
|
|
4
|
+
import { ICertificate } from 'aws-cdk-lib/aws-certificatemanager';
|
|
5
|
+
import { IHostedZone } from 'aws-cdk-lib/aws-route53';
|
|
6
|
+
import { ITopic } from 'aws-cdk-lib/aws-sns';
|
|
7
|
+
import { PolicyDocument, Role } from 'aws-cdk-lib/aws-iam';
|
|
8
|
+
import { CommonStackProps } from '../../common';
|
|
9
|
+
import { AcmProps, EventRuleProps, LambdaProps, LogProps } from '../../services';
|
|
10
|
+
import { AssetCode } from 'aws-cdk-lib/aws-lambda';
|
|
11
|
+
/**
|
|
12
|
+
* @category cdk-utils.api-to-eventbridge-target
|
|
13
|
+
* @subcategory Types
|
|
14
|
+
*/
|
|
15
|
+
export interface ApiToEventBridgeTargetEventType {
|
|
16
|
+
eventBus: IEventBus;
|
|
17
|
+
logGroup: LogGroup;
|
|
18
|
+
logGroupFailure: LogGroup;
|
|
19
|
+
logGroupSuccess: LogGroup;
|
|
20
|
+
rule: Rule;
|
|
21
|
+
ruleFailure: Rule;
|
|
22
|
+
ruleSuccess: Rule;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @category cdk-utils.api-to-eventbridge-target
|
|
26
|
+
* @subcategory Types
|
|
27
|
+
*/
|
|
28
|
+
export interface ApiToEventBridgeTargetRestApiType {
|
|
29
|
+
accessLogGroup: LogGroup;
|
|
30
|
+
api: IRestApi;
|
|
31
|
+
authoriser?: IAuthorizer;
|
|
32
|
+
certificate: ICertificate;
|
|
33
|
+
domain: DomainName;
|
|
34
|
+
errorResponseModel: Model;
|
|
35
|
+
hostedZone: IHostedZone;
|
|
36
|
+
integration: Integration;
|
|
37
|
+
integrationErrorResponse: IntegrationResponse;
|
|
38
|
+
integrationRequestParameters: {
|
|
39
|
+
[p: string]: string;
|
|
40
|
+
};
|
|
41
|
+
integrationRequestTemplates: {
|
|
42
|
+
[p: string]: string;
|
|
43
|
+
};
|
|
44
|
+
integrationResponse: IntegrationResponse;
|
|
45
|
+
method: Method;
|
|
46
|
+
methodErrorResponse: MethodResponse;
|
|
47
|
+
methodResponse: MethodResponse;
|
|
48
|
+
resource: Resource;
|
|
49
|
+
responseModel: Model;
|
|
50
|
+
topic?: ITopic;
|
|
51
|
+
role?: Role;
|
|
52
|
+
policy?: PolicyDocument;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* @category cdk-utils.api-to-eventbridge-target
|
|
56
|
+
* @subcategory Properties
|
|
57
|
+
*/
|
|
58
|
+
export interface ApiToEventBridgeTargetRestApiProps {
|
|
59
|
+
certificate: AcmProps;
|
|
60
|
+
integrationResponse?: IntegrationResponse;
|
|
61
|
+
integrationErrorResponse?: IntegrationResponse;
|
|
62
|
+
methodResponse?: MethodResponse;
|
|
63
|
+
methodErrorResponse?: MethodResponse;
|
|
64
|
+
integrationOptions?: IntegrationOptions;
|
|
65
|
+
resource: string;
|
|
66
|
+
errorResponseModel?: ModelOptions;
|
|
67
|
+
responseModel?: ModelOptions;
|
|
68
|
+
restApi?: RestApiProps;
|
|
69
|
+
importedRestApiRef?: string;
|
|
70
|
+
importedRestApiRootResourceRef?: string;
|
|
71
|
+
useExisting: boolean;
|
|
72
|
+
withResource?: boolean;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* @category cdk-utils.api-to-eventbridge-target
|
|
76
|
+
* @subcategory Properties
|
|
77
|
+
*/
|
|
78
|
+
interface ApiToEventBridgeTargetLambdaProps {
|
|
79
|
+
handler?: string;
|
|
80
|
+
function: LambdaProps;
|
|
81
|
+
source?: AssetCode;
|
|
82
|
+
layerSource?: AssetCode;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* @category cdk-utils.api-to-eventbridge-target
|
|
86
|
+
* @subcategory Properties
|
|
87
|
+
*/
|
|
88
|
+
interface ApiToEventBridgeTargetEventProps {
|
|
89
|
+
eventBusName?: string;
|
|
90
|
+
logGroup?: LogProps;
|
|
91
|
+
logGroupSuccess?: LogProps;
|
|
92
|
+
logGroupFailure?: LogProps;
|
|
93
|
+
rule: EventRuleProps;
|
|
94
|
+
ruleSuccess: EventRuleProps;
|
|
95
|
+
ruleFailure: EventRuleProps;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* @category cdk-utils.api-to-eventbridge-target
|
|
99
|
+
* @subcategory Properties
|
|
100
|
+
*/
|
|
101
|
+
export interface ApiToEventBridgeTargetProps extends CommonStackProps {
|
|
102
|
+
apiRootPaths?: string[];
|
|
103
|
+
apiSubDomain: string;
|
|
104
|
+
api: ApiToEventBridgeTargetRestApiProps;
|
|
105
|
+
event: ApiToEventBridgeTargetEventProps;
|
|
106
|
+
lambda?: ApiToEventBridgeTargetLambdaProps;
|
|
107
|
+
logLevel: string;
|
|
108
|
+
nodeEnv: string;
|
|
109
|
+
timezone: string;
|
|
110
|
+
useExistingHostedZone: boolean;
|
|
111
|
+
}
|
|
112
|
+
export {};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as iam from 'aws-cdk-lib/aws-iam';
|
|
2
2
|
import * as lambda from 'aws-cdk-lib/aws-lambda';
|
|
3
3
|
import * as destinations from 'aws-cdk-lib/aws-lambda-destinations';
|
|
4
|
-
import
|
|
4
|
+
import { ApiDestinedLambdaEnvironment, ApiDestinedLambdaType } from './types';
|
|
5
5
|
/**
|
|
6
6
|
* @stability stable
|
|
7
7
|
* @category cdk-utils.api-to-eventbridge-target
|
|
8
8
|
* @subcategory member
|
|
9
9
|
* @classdesc Provides a construct to contain lambda resources for ApiToEventBridgeTargetWithSns
|
|
10
10
|
*/
|
|
11
|
-
export declare class ApiDestinedLambda implements
|
|
11
|
+
export declare class ApiDestinedLambda implements ApiDestinedLambdaType {
|
|
12
12
|
destinationFailure: destinations.EventBridgeDestination;
|
|
13
13
|
destinationSuccess: destinations.EventBridgeDestination;
|
|
14
|
-
environment:
|
|
14
|
+
environment: ApiDestinedLambdaEnvironment;
|
|
15
15
|
function: lambda.Function;
|
|
16
16
|
layers: lambda.LayerVersion[];
|
|
17
17
|
policy: iam.PolicyDocument;
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./api-destined-lambda"), exports);
|
|
18
18
|
__exportStar(require("./main"), exports);
|
|
19
|
+
__exportStar(require("./types"), exports);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';
|
|
2
2
|
import { Construct } from 'constructs';
|
|
3
3
|
import { CommonConstruct } from '../../common';
|
|
4
|
-
import
|
|
4
|
+
import { ApiToEventBridgeTargetEventType, ApiToEventBridgeTargetProps, ApiToEventBridgeTargetRestApiType } from '../api-to-eventbridge-target';
|
|
5
|
+
import { ApiDestinedLambdaType } from './types';
|
|
5
6
|
/**
|
|
6
7
|
* @deprecated Use ApiToEventBridgeTarget instead. This will be removed in a future release.
|
|
7
8
|
*
|
|
@@ -27,14 +28,14 @@ import * as types from '../../types';
|
|
|
27
28
|
* @mixin
|
|
28
29
|
*/
|
|
29
30
|
export declare class ApiToEventBridgeTargetWithSns extends CommonConstruct {
|
|
30
|
-
props:
|
|
31
|
+
props: ApiToEventBridgeTargetProps;
|
|
31
32
|
id: string;
|
|
32
33
|
applicationSecrets: secretsmanager.ISecret[];
|
|
33
|
-
apiDestinedLambda:
|
|
34
|
-
apiEvent:
|
|
35
|
-
apiDestinedRestApi:
|
|
34
|
+
apiDestinedLambda: ApiDestinedLambdaType;
|
|
35
|
+
apiEvent: ApiToEventBridgeTargetEventType;
|
|
36
|
+
apiDestinedRestApi: ApiToEventBridgeTargetRestApiType;
|
|
36
37
|
apiResource: string;
|
|
37
|
-
constructor(parent: Construct, id: string, props:
|
|
38
|
+
constructor(parent: Construct, id: string, props: ApiToEventBridgeTargetProps);
|
|
38
39
|
protected initResources(): void;
|
|
39
40
|
/**
|
|
40
41
|
* @summary Method to resolve secrets from SecretsManager
|
|
@@ -31,8 +31,8 @@ const eventstargets = __importStar(require("aws-cdk-lib/aws-events-targets"));
|
|
|
31
31
|
const iam = __importStar(require("aws-cdk-lib/aws-iam"));
|
|
32
32
|
const destinations = __importStar(require("aws-cdk-lib/aws-lambda-destinations"));
|
|
33
33
|
const common_1 = require("../../common");
|
|
34
|
-
const helper = __importStar(require("../../helper"));
|
|
35
34
|
const api_destined_lambda_1 = require("./api-destined-lambda");
|
|
35
|
+
const api_to_eventbridge_target_1 = require("../api-to-eventbridge-target");
|
|
36
36
|
/**
|
|
37
37
|
* @deprecated Use ApiToEventBridgeTarget instead. This will be removed in a future release.
|
|
38
38
|
*
|
|
@@ -74,8 +74,8 @@ class ApiToEventBridgeTargetWithSns extends common_1.CommonConstruct {
|
|
|
74
74
|
this.props = props;
|
|
75
75
|
this.id = id;
|
|
76
76
|
this.apiDestinedLambda = new api_destined_lambda_1.ApiDestinedLambda();
|
|
77
|
-
this.apiEvent = new
|
|
78
|
-
this.apiDestinedRestApi = new
|
|
77
|
+
this.apiEvent = new api_to_eventbridge_target_1.ApiToEventbridgeTargetEvent();
|
|
78
|
+
this.apiDestinedRestApi = new api_to_eventbridge_target_1.ApiToEventbridgeTargetRestApi();
|
|
79
79
|
this.apiResource = 'notify';
|
|
80
80
|
}
|
|
81
81
|
initResources() {
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { LambdaEnvironment } from '../../services';
|
|
2
|
+
import { EventBridgeDestination } from 'aws-cdk-lib/aws-lambda-destinations';
|
|
3
|
+
import { AssetCode, IFunction, LayerVersion } from 'aws-cdk-lib/aws-lambda';
|
|
4
|
+
import { PolicyDocument, Role } from 'aws-cdk-lib/aws-iam';
|
|
5
|
+
/**
|
|
6
|
+
* @category cdk-utils.api-to-eventbridge-target
|
|
7
|
+
* @subcategory Types
|
|
8
|
+
*/
|
|
9
|
+
export interface ApiDestinedLambdaEnvironment extends LambdaEnvironment {
|
|
10
|
+
SOURCE_ID: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* @category cdk-utils.api-to-eventbridge-target
|
|
14
|
+
* @subcategory Types
|
|
15
|
+
*/
|
|
16
|
+
export interface ApiDestinedLambdaType {
|
|
17
|
+
destinationFailure: EventBridgeDestination;
|
|
18
|
+
destinationSuccess: EventBridgeDestination;
|
|
19
|
+
environment: ApiDestinedLambdaEnvironment;
|
|
20
|
+
function: IFunction;
|
|
21
|
+
layers: LayerVersion[];
|
|
22
|
+
layerSource?: AssetCode;
|
|
23
|
+
policy: PolicyDocument;
|
|
24
|
+
role: Role;
|
|
25
|
+
source?: AssetCode;
|
|
26
|
+
}
|
|
@@ -4,14 +4,14 @@ import * as iam from 'aws-cdk-lib/aws-iam';
|
|
|
4
4
|
import * as lambda from 'aws-cdk-lib/aws-lambda';
|
|
5
5
|
import * as route53 from 'aws-cdk-lib/aws-route53';
|
|
6
6
|
import * as sns from 'aws-cdk-lib/aws-sns';
|
|
7
|
-
import
|
|
7
|
+
import { ApiToLambdaTargetRestApiType } from './types';
|
|
8
8
|
/**
|
|
9
9
|
* @stability stable
|
|
10
10
|
* @category cdk-utils.api-to-lambda-target
|
|
11
11
|
* @subcategory member
|
|
12
12
|
* @classdesc Provides a construct to contain api resources for ApiToLambdaTarget
|
|
13
13
|
*/
|
|
14
|
-
export declare class ApiToLambdaTargetRestApi implements
|
|
14
|
+
export declare class ApiToLambdaTargetRestApi implements ApiToLambdaTargetRestApiType {
|
|
15
15
|
api: apig.RestApi;
|
|
16
16
|
basePathMappings: apig.BasePathMapping[];
|
|
17
17
|
certificate: acm.ICertificate;
|
|
@@ -14,4 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./api"), exports);
|
|
17
18
|
__exportStar(require("./main"), exports);
|
|
19
|
+
__exportStar(require("./types"), exports);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';
|
|
2
2
|
import { Construct } from 'constructs';
|
|
3
3
|
import { CommonConstruct } from '../../common';
|
|
4
|
-
import
|
|
4
|
+
import { ApiToLambdaTargetProps, ApiToLambdaTargetRestApiType } from './types';
|
|
5
5
|
/**
|
|
6
6
|
* @mixin
|
|
7
7
|
*/
|
|
8
8
|
export declare class ApiToLambdaTarget extends CommonConstruct {
|
|
9
|
-
props:
|
|
9
|
+
props: ApiToLambdaTargetProps;
|
|
10
10
|
id: string;
|
|
11
11
|
applicationSecrets: secretsmanager.ISecret[];
|
|
12
|
-
apiToLambdaTargetRestApi:
|
|
12
|
+
apiToLambdaTargetRestApi: ApiToLambdaTargetRestApiType;
|
|
13
13
|
apiResource: string;
|
|
14
|
-
constructor(parent: Construct, id: string, props:
|
|
14
|
+
constructor(parent: Construct, id: string, props: ApiToLambdaTargetProps);
|
|
15
15
|
protected initResources(): void;
|
|
16
16
|
/**
|
|
17
17
|
* @summary Method to resolve secrets from SecretsManager
|
|
@@ -29,7 +29,7 @@ const apig = __importStar(require("aws-cdk-lib/aws-apigateway"));
|
|
|
29
29
|
const iam = __importStar(require("aws-cdk-lib/aws-iam"));
|
|
30
30
|
const lambda = __importStar(require("aws-cdk-lib/aws-lambda"));
|
|
31
31
|
const common_1 = require("../../common");
|
|
32
|
-
const
|
|
32
|
+
const api_1 = require("./api");
|
|
33
33
|
/**
|
|
34
34
|
* @mixin
|
|
35
35
|
*/
|
|
@@ -45,7 +45,7 @@ class ApiToLambdaTarget extends common_1.CommonConstruct {
|
|
|
45
45
|
super(parent, id, props);
|
|
46
46
|
this.props = props;
|
|
47
47
|
this.id = id;
|
|
48
|
-
this.apiToLambdaTargetRestApi = new
|
|
48
|
+
this.apiToLambdaTargetRestApi = new api_1.ApiToLambdaTargetRestApi();
|
|
49
49
|
}
|
|
50
50
|
initResources() {
|
|
51
51
|
/* application related resources */
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { CommonStackProps } from '../../common';
|
|
2
|
+
import { BasePathMapping, DomainName, IAuthorizer, Integration, IntegrationResponse, IRestApi, Method, MethodResponse, Model, Resource } from 'aws-cdk-lib/aws-apigateway';
|
|
3
|
+
import { AcmProps, LambdaRestApiProps } from '../../services';
|
|
4
|
+
import * as acm from 'aws-cdk-lib/aws-certificatemanager';
|
|
5
|
+
import * as route53 from 'aws-cdk-lib/aws-route53';
|
|
6
|
+
import { IFunction } from 'aws-cdk-lib/aws-lambda';
|
|
7
|
+
import { ITopic } from 'aws-cdk-lib/aws-sns';
|
|
8
|
+
import { PolicyDocument, Role } from 'aws-cdk-lib/aws-iam';
|
|
9
|
+
/**
|
|
10
|
+
* @category cdk-utils.api-to-lambda-target
|
|
11
|
+
* @subcategory Types
|
|
12
|
+
*/
|
|
13
|
+
export interface ApiToLambdaTargetRestApiType {
|
|
14
|
+
api: IRestApi;
|
|
15
|
+
authoriser?: IAuthorizer;
|
|
16
|
+
basePathMappings: BasePathMapping[];
|
|
17
|
+
certificate: acm.ICertificate;
|
|
18
|
+
domain: DomainName;
|
|
19
|
+
errorResponseModel: Model;
|
|
20
|
+
hostedZone: route53.IHostedZone;
|
|
21
|
+
integration: Integration;
|
|
22
|
+
integrationErrorResponse: IntegrationResponse;
|
|
23
|
+
integrationRequestParameters: {
|
|
24
|
+
[p: string]: string;
|
|
25
|
+
};
|
|
26
|
+
integrationRequestTemplates: {
|
|
27
|
+
[p: string]: string;
|
|
28
|
+
};
|
|
29
|
+
integrationResponse: IntegrationResponse;
|
|
30
|
+
lambda: IFunction;
|
|
31
|
+
method: Method;
|
|
32
|
+
methodErrorResponse: MethodResponse;
|
|
33
|
+
methodResponse: MethodResponse;
|
|
34
|
+
resource: Resource;
|
|
35
|
+
responseModel: Model;
|
|
36
|
+
topic?: ITopic;
|
|
37
|
+
role?: Role;
|
|
38
|
+
policy?: PolicyDocument;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* @category cdk-utils.api-to-lambda-target
|
|
42
|
+
* @subcategory Properties
|
|
43
|
+
*/
|
|
44
|
+
export interface ApiToLambdaTargetRestApiProps {
|
|
45
|
+
resource: string;
|
|
46
|
+
certificate: AcmProps;
|
|
47
|
+
restApi: LambdaRestApiProps;
|
|
48
|
+
importedRestApiRef?: string;
|
|
49
|
+
importedRestApiRootResourceRef?: string;
|
|
50
|
+
useExisting: boolean;
|
|
51
|
+
withResource?: boolean;
|
|
52
|
+
methodErrorResponse: MethodResponse;
|
|
53
|
+
methodResponse: MethodResponse;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @category cdk-utils.api-to-lambda-target
|
|
57
|
+
* @subcategory Properties
|
|
58
|
+
*/
|
|
59
|
+
export interface ApiToLambdaTargetProps extends CommonStackProps {
|
|
60
|
+
apiRootPaths?: string[];
|
|
61
|
+
apiSubDomain: string;
|
|
62
|
+
api: ApiToLambdaTargetRestApiProps;
|
|
63
|
+
lambdaFunctionName: string;
|
|
64
|
+
logLevel: string;
|
|
65
|
+
nodeEnv: string;
|
|
66
|
+
timezone: string;
|
|
67
|
+
useExistingHostedZone: boolean;
|
|
68
|
+
}
|
|
@@ -6,7 +6,7 @@ import * as route53 from 'aws-cdk-lib/aws-route53';
|
|
|
6
6
|
import * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';
|
|
7
7
|
import { Construct } from 'constructs';
|
|
8
8
|
import { CommonConstruct } from '../../common';
|
|
9
|
-
import { GraphQlApiLambdaEnvironment, GraphQlApiLambdaProps } from '
|
|
9
|
+
import { GraphQlApiLambdaEnvironment, GraphQlApiLambdaProps } from './types';
|
|
10
10
|
/**
|
|
11
11
|
* @deprecated Use RestApiLambda instead. This will be removed in a future release.
|
|
12
12
|
*
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { CommonStackProps } from '../../common';
|
|
2
|
+
import { AcmProps, LambdaEnvironment, LambdaProps } from '../../services';
|
|
3
|
+
import { LambdaRestApiProps } from 'aws-cdk-lib/aws-apigateway';
|
|
4
|
+
import { AssetCode } from 'aws-cdk-lib/aws-lambda';
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Use RestApiLambdaEnvironment instead. This will be removed in a future release.
|
|
7
|
+
* @category cdk-utils.graphql-api-lambda
|
|
8
|
+
* @subcategory Types
|
|
9
|
+
*/
|
|
10
|
+
export interface GraphQlApiLambdaEnvironment extends LambdaEnvironment {
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated Use RestApiLambdaProps instead. This will be removed in a future release.
|
|
14
|
+
* @category cdk-utils.graphql-api-lambda
|
|
15
|
+
* @subcategory Properties
|
|
16
|
+
*/
|
|
17
|
+
export interface GraphQlApiLambdaProps extends CommonStackProps {
|
|
18
|
+
apiRootPaths?: string[];
|
|
19
|
+
apiSubDomain: string;
|
|
20
|
+
graphQLApiCertificate: AcmProps;
|
|
21
|
+
graphqlRestApi: LambdaRestApiProps;
|
|
22
|
+
graphqlApiLambdaLayerSources?: AssetCode[];
|
|
23
|
+
graphQLApiHandler: string;
|
|
24
|
+
graphQLApiSource: AssetCode;
|
|
25
|
+
graphqlApi: LambdaProps;
|
|
26
|
+
useExistingHostedZone: boolean;
|
|
27
|
+
nodeEnv: string;
|
|
28
|
+
logLevel: string;
|
|
29
|
+
timezone: string;
|
|
30
|
+
}
|