@gradientedge/cdk-utils 8.88.0 → 8.90.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 +28 -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/services/aws/appconfig/main.d.ts +58 -0
- package/dist/src/lib/{manager/aws/app-config-manager.js → services/aws/appconfig/main.js} +25 -43
- 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/constants.d.ts +4 -0
- package/dist/src/lib/services/aws/constants.js +8 -0
- 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 +1 -0
- package/dist/src/lib/services/aws/web-application-firewall/index.js +17 -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 +1 -1
- 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 +29 -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/{manager/aws/app-config-manager.ts → services/aws/appconfig/main.ts} +31 -54
- 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/constants.ts +4 -0
- 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 +1 -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.d.ts +0 -65
- 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 -29
- package/dist/src/lib/manager/aws/index.js +0 -45
- 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/index.ts +0 -29
- /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}/index.d.ts +0 -0
- /package/dist/src/lib/{manager → services}/index.js +0 -0
- /package/src/lib/{manager → services}/index.ts +0 -0
package/dist/src/lib/{manager/aws/efs-manager.d.ts → services/aws/elastic-file-system/main.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as common from '../../common';
|
|
2
|
-
import * as types from '../../types/aws';
|
|
3
1
|
import * as ec2 from 'aws-cdk-lib/aws-ec2';
|
|
4
2
|
import * as efs from 'aws-cdk-lib/aws-efs';
|
|
3
|
+
import { CommonConstruct } from '../../../common';
|
|
4
|
+
import { EfsAccessPointOptions, EfsFileSystemProps } from './types';
|
|
5
5
|
export declare const DEFAULT_CREATE_ACL: {
|
|
6
6
|
ownerUid: string;
|
|
7
7
|
ownerGid: string;
|
|
@@ -16,12 +16,12 @@ export declare const DEFAULT_POSIX_USER: {
|
|
|
16
16
|
* @category cdk-utils.efs-manager
|
|
17
17
|
* @subcategory Construct
|
|
18
18
|
* @classdesc Provides operations on AWS Elastic File System.
|
|
19
|
-
* - A new instance of this class is injected into {@link
|
|
20
|
-
* - If a custom construct extends {@link
|
|
19
|
+
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
20
|
+
* - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
|
|
21
21
|
* @example
|
|
22
|
-
* import
|
|
22
|
+
* import { CommonConstruct } from '@gradientedge/cdk-utils'
|
|
23
23
|
*
|
|
24
|
-
* class CustomConstruct extends
|
|
24
|
+
* class CustomConstruct extends CommonConstruct {
|
|
25
25
|
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
26
26
|
* super(parent, id, props)
|
|
27
27
|
* this.props = props
|
|
@@ -35,12 +35,12 @@ export declare class EfsManager {
|
|
|
35
35
|
/**
|
|
36
36
|
* @summary Method to create an efs file system
|
|
37
37
|
* @param {string} id scoped id of the resource
|
|
38
|
-
* @param {
|
|
39
|
-
* @param {
|
|
38
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
39
|
+
* @param {EfsFileSystemProps} props the file system props
|
|
40
40
|
* @param {ec2.IVpc} vpc the vpc to use for the file system
|
|
41
|
-
* @param {
|
|
41
|
+
* @param {EfsAccessPointOptions[]} accessPointOptions optional access point configuration options for the file system
|
|
42
42
|
* @param {ec2.ISecurityGroup} securityGroup optional security groups to configure for the file system
|
|
43
43
|
* @param {ec2.SubnetSelection} vpcSubnets optional subnets to configure for the file system
|
|
44
44
|
*/
|
|
45
|
-
createFileSystem(id: string, scope:
|
|
45
|
+
createFileSystem(id: string, scope: CommonConstruct, props: EfsFileSystemProps, vpc: ec2.IVpc, accessPointOptions?: EfsAccessPointOptions[], securityGroup?: ec2.ISecurityGroup, vpcSubnets?: ec2.SubnetSelection): efs.FileSystem;
|
|
46
46
|
}
|
package/dist/src/lib/{manager/aws/efs-manager.js → services/aws/elastic-file-system/main.js}
RENAMED
|
@@ -26,7 +26,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.EfsManager = exports.DEFAULT_POSIX_USER = exports.DEFAULT_CREATE_ACL = void 0;
|
|
27
27
|
const efs = __importStar(require("aws-cdk-lib/aws-efs"));
|
|
28
28
|
const cdk = __importStar(require("aws-cdk-lib"));
|
|
29
|
-
const utils = __importStar(require("
|
|
29
|
+
const utils = __importStar(require("../../../utils"));
|
|
30
30
|
exports.DEFAULT_CREATE_ACL = {
|
|
31
31
|
ownerUid: '1000',
|
|
32
32
|
ownerGid: '1000',
|
|
@@ -41,12 +41,12 @@ exports.DEFAULT_POSIX_USER = {
|
|
|
41
41
|
* @category cdk-utils.efs-manager
|
|
42
42
|
* @subcategory Construct
|
|
43
43
|
* @classdesc Provides operations on AWS Elastic File System.
|
|
44
|
-
* - A new instance of this class is injected into {@link
|
|
45
|
-
* - If a custom construct extends {@link
|
|
44
|
+
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
45
|
+
* - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
|
|
46
46
|
* @example
|
|
47
|
-
* import
|
|
47
|
+
* import { CommonConstruct } from '@gradientedge/cdk-utils'
|
|
48
48
|
*
|
|
49
|
-
* class CustomConstruct extends
|
|
49
|
+
* class CustomConstruct extends CommonConstruct {
|
|
50
50
|
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
51
51
|
* super(parent, id, props)
|
|
52
52
|
* this.props = props
|
|
@@ -60,10 +60,10 @@ class EfsManager {
|
|
|
60
60
|
/**
|
|
61
61
|
* @summary Method to create an efs file system
|
|
62
62
|
* @param {string} id scoped id of the resource
|
|
63
|
-
* @param {
|
|
64
|
-
* @param {
|
|
63
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
64
|
+
* @param {EfsFileSystemProps} props the file system props
|
|
65
65
|
* @param {ec2.IVpc} vpc the vpc to use for the file system
|
|
66
|
-
* @param {
|
|
66
|
+
* @param {EfsAccessPointOptions[]} accessPointOptions optional access point configuration options for the file system
|
|
67
67
|
* @param {ec2.ISecurityGroup} securityGroup optional security groups to configure for the file system
|
|
68
68
|
* @param {ec2.SubnetSelection} vpcSubnets optional subnets to configure for the file system
|
|
69
69
|
*/
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AccessPointOptions, FileSystemProps } from 'aws-cdk-lib/aws-efs';
|
|
2
|
+
import { AuthorizationConfig } from 'aws-cdk-lib/aws-ecs';
|
|
3
|
+
/**
|
|
4
|
+
* @category cdk-utils.efs-manager
|
|
5
|
+
* @subcategory Properties
|
|
6
|
+
*/
|
|
7
|
+
export interface EfsFileSystemProps extends FileSystemProps {
|
|
8
|
+
provisionNewOnDeployment?: boolean;
|
|
9
|
+
rootDirectory?: string;
|
|
10
|
+
transitEncryption?: string;
|
|
11
|
+
transitEncryptionPort?: number;
|
|
12
|
+
authorizationConfig?: AuthorizationConfig;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @category cdk-utils.efs-manager
|
|
16
|
+
* @subcategory Properties
|
|
17
|
+
*/
|
|
18
|
+
export interface EfsAccessPointOptions extends AccessPointOptions {
|
|
19
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
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,19 +1,19 @@
|
|
|
1
1
|
import * as ec2 from 'aws-cdk-lib/aws-ec2';
|
|
2
2
|
import * as ecr from 'aws-cdk-lib/aws-ecr-assets';
|
|
3
3
|
import * as eks from 'aws-cdk-lib/aws-eks';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import { CommonConstruct } from '../../../common';
|
|
5
|
+
import { EksClusterProps } from './types';
|
|
6
6
|
/**
|
|
7
7
|
* @stability stable
|
|
8
8
|
* @category cdk-utils.eks-manager
|
|
9
9
|
* @subcategory Construct
|
|
10
10
|
* @classdesc Provides operations on AWS Elastic Kubernetes Service.
|
|
11
|
-
* - A new instance of this class is injected into {@link
|
|
12
|
-
* - If a custom construct extends {@link
|
|
11
|
+
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
12
|
+
* - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
|
|
13
13
|
* @example
|
|
14
|
-
* import
|
|
14
|
+
* import { CommonConstruct } from '@gradientedge/cdk-utils'
|
|
15
15
|
*
|
|
16
|
-
* class CustomConstruct extends
|
|
16
|
+
* class CustomConstruct extends CommonConstruct {
|
|
17
17
|
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
18
18
|
* super(parent, id, props)
|
|
19
19
|
* this.props = props
|
|
@@ -27,10 +27,10 @@ export declare class EksManager {
|
|
|
27
27
|
/**
|
|
28
28
|
* @summary Method to create an eks deployment
|
|
29
29
|
* @param {string} id scoped id of the resource
|
|
30
|
-
* @param {
|
|
31
|
-
* @param {
|
|
30
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
31
|
+
* @param {EksClusterProps} props
|
|
32
32
|
* @param {ecr.DockerImageAsset} image
|
|
33
33
|
* @param {ec2.IVpc} vpc
|
|
34
34
|
*/
|
|
35
|
-
createEksDeployment(id: string, scope:
|
|
35
|
+
createEksDeployment(id: string, scope: CommonConstruct, props: EksClusterProps, image: ecr.DockerImageAsset, vpc: ec2.IVpc): eks.Cluster;
|
|
36
36
|
}
|
package/dist/src/lib/{manager/aws/eks-manager.js → services/aws/elastic-kubernetes-service/main.js}
RENAMED
|
@@ -26,18 +26,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.EksManager = void 0;
|
|
27
27
|
const ec2 = __importStar(require("aws-cdk-lib/aws-ec2"));
|
|
28
28
|
const eks = __importStar(require("aws-cdk-lib/aws-eks"));
|
|
29
|
-
const utils = __importStar(require("
|
|
29
|
+
const utils = __importStar(require("../../../utils"));
|
|
30
30
|
/**
|
|
31
31
|
* @stability stable
|
|
32
32
|
* @category cdk-utils.eks-manager
|
|
33
33
|
* @subcategory Construct
|
|
34
34
|
* @classdesc Provides operations on AWS Elastic Kubernetes Service.
|
|
35
|
-
* - A new instance of this class is injected into {@link
|
|
36
|
-
* - If a custom construct extends {@link
|
|
35
|
+
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
36
|
+
* - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
|
|
37
37
|
* @example
|
|
38
|
-
* import
|
|
38
|
+
* import { CommonConstruct } from '@gradientedge/cdk-utils'
|
|
39
39
|
*
|
|
40
|
-
* class CustomConstruct extends
|
|
40
|
+
* class CustomConstruct extends CommonConstruct {
|
|
41
41
|
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
42
42
|
* super(parent, id, props)
|
|
43
43
|
* this.props = props
|
|
@@ -51,8 +51,8 @@ class EksManager {
|
|
|
51
51
|
/**
|
|
52
52
|
* @summary Method to create an eks deployment
|
|
53
53
|
* @param {string} id scoped id of the resource
|
|
54
|
-
* @param {
|
|
55
|
-
* @param {
|
|
54
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
55
|
+
* @param {EksClusterProps} props
|
|
56
56
|
* @param {ecr.DockerImageAsset} image
|
|
57
57
|
* @param {ec2.IVpc} vpc
|
|
58
58
|
*/
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
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);
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as elasticache from 'aws-cdk-lib/aws-elasticache';
|
|
2
|
+
import { CommonConstruct } from '../../../common';
|
|
3
|
+
import { ElastiCacheProps, ReplicatedElastiCacheProps } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* @stability stable
|
|
6
|
+
* @category cdk-utils.elasticache-manager
|
|
7
|
+
* @subcategory Construct
|
|
8
|
+
* @summary Provides operations on AWS ElastiCache Service.
|
|
9
|
+
* - A new instance of scope class is injected into {@link CommonConstruct} constructor.
|
|
10
|
+
* - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
|
|
11
|
+
* @example
|
|
12
|
+
* import { CommonConstruct } from '@gradientedge/cdk-utils'
|
|
13
|
+
*
|
|
14
|
+
* class CustomConstruct extends CommonConstruct {
|
|
15
|
+
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
16
|
+
* super(parent, id, props)
|
|
17
|
+
* this.props = props
|
|
18
|
+
* this.elasticacheManager.createElastiCache('MyElastiCache', scope, props)
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
*
|
|
22
|
+
* @see [CDK ElastiCache Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_elasticache-readme.html}
|
|
23
|
+
*/
|
|
24
|
+
export declare class ElastiCacheManager {
|
|
25
|
+
/**
|
|
26
|
+
* @summary Method to create an elasticache resource
|
|
27
|
+
* @param {string} id scoped id of the resource
|
|
28
|
+
* @param {CommonConstruct} scope scope in which scope resource is defined
|
|
29
|
+
* @param {string[]} subnetIds
|
|
30
|
+
*/
|
|
31
|
+
createElastiCacheSubnetGroup(id: string, scope: CommonConstruct, subnetIds: string[]): elasticache.CfnSubnetGroup;
|
|
32
|
+
/**
|
|
33
|
+
* @summary Method to create an elasticache resource
|
|
34
|
+
* @param {string} id scoped id of the resource
|
|
35
|
+
* @param {CommonConstruct} scope scope in which scope resource is defined
|
|
36
|
+
* @param {ElastiCacheProps} props
|
|
37
|
+
* @param {string[]} subnetIds
|
|
38
|
+
* @param {string[]} securityGroupIds
|
|
39
|
+
* @param {string[]} logDeliveryConfigurations
|
|
40
|
+
*/
|
|
41
|
+
createElastiCache(id: string, scope: CommonConstruct, props: ElastiCacheProps, subnetIds: string[], securityGroupIds: string[], logDeliveryConfigurations?: any): elasticache.CfnCacheCluster;
|
|
42
|
+
/**
|
|
43
|
+
* @summary Method to create an replicated elasticache resource
|
|
44
|
+
* @param {string} id scoped id of the resource
|
|
45
|
+
* @param {CommonConstruct} scope scope in which scope resource is defined
|
|
46
|
+
* @param {ReplicatedElastiCacheProps} props
|
|
47
|
+
* @param {string[]} subnetIds
|
|
48
|
+
* @param {string[]} securityGroupIds
|
|
49
|
+
*/
|
|
50
|
+
createReplicatedElastiCache(id: string, scope: CommonConstruct, props: ReplicatedElastiCacheProps, subnetIds: string[], securityGroupIds: string[]): elasticache.CfnReplicationGroup;
|
|
51
|
+
}
|
package/dist/src/lib/{manager/aws/elasticache-manager.js → services/aws/elasticache/main.js}
RENAMED
|
@@ -25,19 +25,19 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.ElastiCacheManager = void 0;
|
|
27
27
|
const elasticache = __importStar(require("aws-cdk-lib/aws-elasticache"));
|
|
28
|
-
const utils = __importStar(require("
|
|
28
|
+
const utils = __importStar(require("../../../utils"));
|
|
29
29
|
const cdk = __importStar(require("aws-cdk-lib"));
|
|
30
30
|
/**
|
|
31
31
|
* @stability stable
|
|
32
32
|
* @category cdk-utils.elasticache-manager
|
|
33
33
|
* @subcategory Construct
|
|
34
34
|
* @summary Provides operations on AWS ElastiCache Service.
|
|
35
|
-
* - A new instance of scope class is injected into {@link
|
|
36
|
-
* - If a custom construct extends {@link
|
|
35
|
+
* - A new instance of scope class is injected into {@link CommonConstruct} constructor.
|
|
36
|
+
* - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
|
|
37
37
|
* @example
|
|
38
|
-
* import
|
|
38
|
+
* import { CommonConstruct } from '@gradientedge/cdk-utils'
|
|
39
39
|
*
|
|
40
|
-
* class CustomConstruct extends
|
|
40
|
+
* class CustomConstruct extends CommonConstruct {
|
|
41
41
|
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
42
42
|
* super(parent, id, props)
|
|
43
43
|
* this.props = props
|
|
@@ -51,7 +51,7 @@ class ElastiCacheManager {
|
|
|
51
51
|
/**
|
|
52
52
|
* @summary Method to create an elasticache resource
|
|
53
53
|
* @param {string} id scoped id of the resource
|
|
54
|
-
* @param {
|
|
54
|
+
* @param {CommonConstruct} scope scope in which scope resource is defined
|
|
55
55
|
* @param {string[]} subnetIds
|
|
56
56
|
*/
|
|
57
57
|
createElastiCacheSubnetGroup(id, scope, subnetIds) {
|
|
@@ -64,8 +64,8 @@ class ElastiCacheManager {
|
|
|
64
64
|
/**
|
|
65
65
|
* @summary Method to create an elasticache resource
|
|
66
66
|
* @param {string} id scoped id of the resource
|
|
67
|
-
* @param {
|
|
68
|
-
* @param {
|
|
67
|
+
* @param {CommonConstruct} scope scope in which scope resource is defined
|
|
68
|
+
* @param {ElastiCacheProps} props
|
|
69
69
|
* @param {string[]} subnetIds
|
|
70
70
|
* @param {string[]} securityGroupIds
|
|
71
71
|
* @param {string[]} logDeliveryConfigurations
|
|
@@ -109,13 +109,12 @@ class ElastiCacheManager {
|
|
|
109
109
|
/**
|
|
110
110
|
* @summary Method to create an replicated elasticache resource
|
|
111
111
|
* @param {string} id scoped id of the resource
|
|
112
|
-
* @param {
|
|
113
|
-
* @param {
|
|
112
|
+
* @param {CommonConstruct} scope scope in which scope resource is defined
|
|
113
|
+
* @param {ReplicatedElastiCacheProps} props
|
|
114
114
|
* @param {string[]} subnetIds
|
|
115
115
|
* @param {string[]} securityGroupIds
|
|
116
|
-
* @param {string[]} logDeliveryConfigurations
|
|
117
116
|
*/
|
|
118
|
-
createReplicatedElastiCache(id, scope, props, subnetIds, securityGroupIds
|
|
117
|
+
createReplicatedElastiCache(id, scope, props, subnetIds, securityGroupIds) {
|
|
119
118
|
if (!props)
|
|
120
119
|
throw `ElastiCache props undefined for ${id}`;
|
|
121
120
|
const subnetGroup = this.createElastiCacheSubnetGroup(`${id}-subnetGroup`, scope, subnetIds);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CfnCacheClusterProps, CfnReplicationGroupProps } from 'aws-cdk-lib/aws-elasticache';
|
|
2
|
+
/**
|
|
3
|
+
* @category cdk-utils.elasticache-manager
|
|
4
|
+
* @category Compute
|
|
5
|
+
*/
|
|
6
|
+
export interface ElastiCacheProps extends CfnCacheClusterProps {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @category cdk-utils.elasticache-manager
|
|
10
|
+
* @category Compute
|
|
11
|
+
*/
|
|
12
|
+
export interface ReplicatedElastiCacheProps extends CfnReplicationGroupProps {
|
|
13
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
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("./target"), exports);
|
|
19
|
+
__exportStar(require("./types"), exports);
|
|
@@ -2,22 +2,22 @@ import * as ecs from 'aws-cdk-lib/aws-ecs';
|
|
|
2
2
|
import * as events from 'aws-cdk-lib/aws-events';
|
|
3
3
|
import * as iam from 'aws-cdk-lib/aws-iam';
|
|
4
4
|
import * as lambda from 'aws-cdk-lib/aws-lambda';
|
|
5
|
-
import * as common from '../../common';
|
|
6
|
-
import * as types from '../../types';
|
|
7
5
|
import * as cdk from 'aws-cdk-lib';
|
|
8
6
|
import * as sqs from 'aws-cdk-lib/aws-sqs';
|
|
9
7
|
import * as sfn from 'aws-cdk-lib/aws-stepfunctions';
|
|
8
|
+
import { CommonConstruct } from '../../../common';
|
|
9
|
+
import { EventBusProps, EventRuleProps, RuleProps, SqsToSfnPipeProps } from './types';
|
|
10
10
|
/**
|
|
11
11
|
* @stability stable
|
|
12
12
|
* @category cdk-utils.event-manager
|
|
13
13
|
* @subcategory Construct
|
|
14
14
|
* @classdesc Provides operations on AWS EventBridge.
|
|
15
|
-
* - A new instance of this class is injected into {@link
|
|
16
|
-
* - If a custom construct extends {@link
|
|
15
|
+
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
16
|
+
* - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
|
|
17
17
|
* @example
|
|
18
|
-
* import
|
|
18
|
+
* import { CommonConstruct } from '@gradientedge/cdk-utils'
|
|
19
19
|
*
|
|
20
|
-
* class CustomConstruct extends
|
|
20
|
+
* class CustomConstruct extends CommonConstruct {
|
|
21
21
|
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
22
22
|
* super(parent, id, props)
|
|
23
23
|
* this.props = props
|
|
@@ -31,49 +31,49 @@ export declare class EventManager {
|
|
|
31
31
|
/**
|
|
32
32
|
* Method to create an event bus
|
|
33
33
|
* @param {string} id scoped id of the resource
|
|
34
|
-
* @param {
|
|
35
|
-
* @param {
|
|
34
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
35
|
+
* @param {EventBusProps} props event bus properties
|
|
36
36
|
*/
|
|
37
|
-
createEventBus(id: string, scope:
|
|
37
|
+
createEventBus(id: string, scope: CommonConstruct, props: EventBusProps): events.EventBus;
|
|
38
38
|
/**
|
|
39
39
|
* Method to create an event rule
|
|
40
40
|
* @param {string} id scoped id of the resource
|
|
41
|
-
* @param {
|
|
42
|
-
* @param {
|
|
41
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
42
|
+
* @param {EventRuleProps} props event rule properties
|
|
43
43
|
* @param {events.IEventBus?} eventBus optional custom event bus
|
|
44
44
|
* @param {events.IRuleTarget[]?} targets optional event targets
|
|
45
45
|
*/
|
|
46
|
-
createRule(id: string, scope:
|
|
46
|
+
createRule(id: string, scope: CommonConstruct, props: EventRuleProps, eventBus?: events.IEventBus, targets?: events.IRuleTarget[]): events.Rule;
|
|
47
47
|
/**
|
|
48
48
|
* @summary Method to create an eventbridge rule with lambda target
|
|
49
49
|
* @param {string} id scoped id of the resource
|
|
50
|
-
* @param {
|
|
51
|
-
* @param {
|
|
50
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
51
|
+
* @param {RuleProps} props
|
|
52
52
|
* @param {lambda.Function} lambdaFunction
|
|
53
53
|
* @param {string} eventBusName
|
|
54
54
|
* @param {any} eventPattern
|
|
55
55
|
* @param {string} scheduleExpression
|
|
56
56
|
*/
|
|
57
|
-
createLambdaRule(id: string, scope:
|
|
57
|
+
createLambdaRule(id: string, scope: CommonConstruct, props: RuleProps, lambdaFunction: lambda.Function, eventBusName?: string, eventPattern?: any, scheduleExpression?: string): events.CfnRule;
|
|
58
58
|
/**
|
|
59
59
|
* @summary Method to create an eventbridge rule with fargate task target
|
|
60
60
|
* @param {string} id scoped id of the resource
|
|
61
|
-
* @param {
|
|
62
|
-
* @param {
|
|
61
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
62
|
+
* @param {EventRuleProps} props
|
|
63
63
|
* @param {ecs.ICluster} cluster
|
|
64
64
|
* @param {ecs.ITaskDefinition} task
|
|
65
65
|
* @param {string[]} subnetIds
|
|
66
66
|
* @param {iam.Role | iam.CfnRole} role
|
|
67
67
|
* @param {any} eventPattern
|
|
68
68
|
*/
|
|
69
|
-
createFargateTaskRule(id: string, scope:
|
|
69
|
+
createFargateTaskRule(id: string, scope: CommonConstruct, props: RuleProps, cluster: ecs.ICluster, task: ecs.ITaskDefinition, subnetIds: string[], role: iam.Role | iam.CfnRole, eventPattern?: any): events.CfnRule;
|
|
70
70
|
/**
|
|
71
71
|
* @summary Method to create an eventbridge pipe with sqs queue as source and step function as target
|
|
72
72
|
* @param {string} id scoped id of the resource
|
|
73
|
-
* @param {
|
|
73
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
74
74
|
* @param props the props for the pipe
|
|
75
75
|
* @param sourceQueue the source sqs queue
|
|
76
76
|
* @param targetStepFunction the target step function
|
|
77
77
|
*/
|
|
78
|
-
createSqsToSfnCfnPipe(id: string, scope:
|
|
78
|
+
createSqsToSfnCfnPipe(id: string, scope: CommonConstruct, props: SqsToSfnPipeProps, sourceQueue: sqs.IQueue, targetStepFunction: sfn.IStateMachine): cdk.aws_pipes.CfnPipe;
|
|
79
79
|
}
|
|
@@ -27,7 +27,7 @@ exports.EventManager = void 0;
|
|
|
27
27
|
const events = __importStar(require("aws-cdk-lib/aws-events"));
|
|
28
28
|
const iam = __importStar(require("aws-cdk-lib/aws-iam"));
|
|
29
29
|
const lambda = __importStar(require("aws-cdk-lib/aws-lambda"));
|
|
30
|
-
const utils = __importStar(require("
|
|
30
|
+
const utils = __importStar(require("../../../utils"));
|
|
31
31
|
const cdk = __importStar(require("aws-cdk-lib"));
|
|
32
32
|
const pipes = __importStar(require("aws-cdk-lib/aws-pipes"));
|
|
33
33
|
/**
|
|
@@ -35,12 +35,12 @@ const pipes = __importStar(require("aws-cdk-lib/aws-pipes"));
|
|
|
35
35
|
* @category cdk-utils.event-manager
|
|
36
36
|
* @subcategory Construct
|
|
37
37
|
* @classdesc Provides operations on AWS EventBridge.
|
|
38
|
-
* - A new instance of this class is injected into {@link
|
|
39
|
-
* - If a custom construct extends {@link
|
|
38
|
+
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
39
|
+
* - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
|
|
40
40
|
* @example
|
|
41
|
-
* import
|
|
41
|
+
* import { CommonConstruct } from '@gradientedge/cdk-utils'
|
|
42
42
|
*
|
|
43
|
-
* class CustomConstruct extends
|
|
43
|
+
* class CustomConstruct extends CommonConstruct {
|
|
44
44
|
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
45
45
|
* super(parent, id, props)
|
|
46
46
|
* this.props = props
|
|
@@ -54,8 +54,8 @@ class EventManager {
|
|
|
54
54
|
/**
|
|
55
55
|
* Method to create an event bus
|
|
56
56
|
* @param {string} id scoped id of the resource
|
|
57
|
-
* @param {
|
|
58
|
-
* @param {
|
|
57
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
58
|
+
* @param {EventBusProps} props event bus properties
|
|
59
59
|
*/
|
|
60
60
|
createEventBus(id, scope, props) {
|
|
61
61
|
if (!props)
|
|
@@ -70,8 +70,8 @@ class EventManager {
|
|
|
70
70
|
/**
|
|
71
71
|
* Method to create an event rule
|
|
72
72
|
* @param {string} id scoped id of the resource
|
|
73
|
-
* @param {
|
|
74
|
-
* @param {
|
|
73
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
74
|
+
* @param {EventRuleProps} props event rule properties
|
|
75
75
|
* @param {events.IEventBus?} eventBus optional custom event bus
|
|
76
76
|
* @param {events.IRuleTarget[]?} targets optional event targets
|
|
77
77
|
*/
|
|
@@ -103,8 +103,8 @@ class EventManager {
|
|
|
103
103
|
/**
|
|
104
104
|
* @summary Method to create an eventbridge rule with lambda target
|
|
105
105
|
* @param {string} id scoped id of the resource
|
|
106
|
-
* @param {
|
|
107
|
-
* @param {
|
|
106
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
107
|
+
* @param {RuleProps} props
|
|
108
108
|
* @param {lambda.Function} lambdaFunction
|
|
109
109
|
* @param {string} eventBusName
|
|
110
110
|
* @param {any} eventPattern
|
|
@@ -120,7 +120,13 @@ class EventManager {
|
|
|
120
120
|
scheduleExpression: scheduleExpression,
|
|
121
121
|
name: `${props.name}-${scope.props.stage}`,
|
|
122
122
|
state: props.state,
|
|
123
|
-
targets: [
|
|
123
|
+
targets: [
|
|
124
|
+
{
|
|
125
|
+
arn: lambdaFunction.functionArn,
|
|
126
|
+
id: `${id}-${scope.props.stage}`,
|
|
127
|
+
input: props.input ?? undefined,
|
|
128
|
+
},
|
|
129
|
+
],
|
|
124
130
|
});
|
|
125
131
|
new lambda.CfnPermission(scope, `${id}LambdaPermission`, {
|
|
126
132
|
action: 'lambda:InvokeFunction',
|
|
@@ -135,8 +141,8 @@ class EventManager {
|
|
|
135
141
|
/**
|
|
136
142
|
* @summary Method to create an eventbridge rule with fargate task target
|
|
137
143
|
* @param {string} id scoped id of the resource
|
|
138
|
-
* @param {
|
|
139
|
-
* @param {
|
|
144
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
145
|
+
* @param {EventRuleProps} props
|
|
140
146
|
* @param {ecs.ICluster} cluster
|
|
141
147
|
* @param {ecs.ITaskDefinition} task
|
|
142
148
|
* @param {string[]} subnetIds
|
|
@@ -174,7 +180,7 @@ class EventManager {
|
|
|
174
180
|
/**
|
|
175
181
|
* @summary Method to create an eventbridge pipe with sqs queue as source and step function as target
|
|
176
182
|
* @param {string} id scoped id of the resource
|
|
177
|
-
* @param {
|
|
183
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
178
184
|
* @param props the props for the pipe
|
|
179
185
|
* @param sourceQueue the source sqs queue
|
|
180
186
|
* @param targetStepFunction the target step function
|
package/dist/src/lib/{manager/aws/event-target-manager.d.ts → services/aws/eventbridge/target.d.ts}
RENAMED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import * as events from 'aws-cdk-lib/aws-events';
|
|
2
2
|
import * as targets from 'aws-cdk-lib/aws-events-targets';
|
|
3
3
|
import * as logs from 'aws-cdk-lib/aws-logs';
|
|
4
|
-
import
|
|
4
|
+
import { CommonConstruct } from '../../../common';
|
|
5
5
|
/**
|
|
6
6
|
* @stability stable
|
|
7
7
|
* @category cdk-utils.event-taeget-manager
|
|
8
8
|
* @subcategory Construct
|
|
9
9
|
* @classdesc Provides operations on AWS EventBridge Targets.
|
|
10
|
-
* - A new instance of this class is injected into {@link
|
|
11
|
-
* - If a custom construct extends {@link
|
|
10
|
+
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
11
|
+
* - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
|
|
12
12
|
* @example
|
|
13
|
-
* import
|
|
13
|
+
* import { CommonConstruct } from '@gradientedge/cdk-utils'
|
|
14
14
|
*
|
|
15
|
-
* class CustomConstruct extends
|
|
15
|
+
* class CustomConstruct extends CommonConstruct {
|
|
16
16
|
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
17
17
|
* super(parent, id, props)
|
|
18
18
|
* this.props = props
|
|
@@ -27,11 +27,11 @@ export declare class EventTargetManager {
|
|
|
27
27
|
* @summary Method to create a cloud watch log group target without a policy.
|
|
28
28
|
* - This method is created as a workaround for cdk issue - https://github.com/aws/aws-cdk/issues/17002
|
|
29
29
|
* @param {string} id scoped id of the resource
|
|
30
|
-
* @param {
|
|
30
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
31
31
|
* @param {logs.ILogGroup} logGroup the log group
|
|
32
32
|
* @param {LogGroupNoPolicyProps} props the log group target properties
|
|
33
33
|
*/
|
|
34
|
-
createCloudWatchLogGroupNoPolicy(id: string, scope:
|
|
34
|
+
createCloudWatchLogGroupNoPolicy(id: string, scope: CommonConstruct, logGroup: logs.ILogGroup, props?: LogGroupNoPolicyProps): CloudWatchLogGroupNoPolicy;
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
37
|
* Customize the CloudWatch LogGroup Event Target
|