@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
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import * as watch from 'aws-cdk-lib/aws-cloudwatch';
|
|
2
|
+
import * as logs from 'aws-cdk-lib/aws-logs';
|
|
3
|
+
import { TagProps } from '../../../types';
|
|
4
|
+
/**
|
|
5
|
+
* @category cdk-utils.cloudwatch-manager
|
|
6
|
+
* @subcategory Properties
|
|
7
|
+
*/
|
|
8
|
+
export interface AlarmProps extends watch.AlarmProps {
|
|
9
|
+
expression?: string;
|
|
10
|
+
metricProps?: MetricProps[];
|
|
11
|
+
periodInSecs?: number;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @category cdk-utils.cloudwatch-manager
|
|
15
|
+
* @subcategory Properties
|
|
16
|
+
*/
|
|
17
|
+
export interface DashboardProps extends watch.DashboardProps {
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @category cdk-utils.cloudwatch-manager
|
|
21
|
+
* @subcategory Properties
|
|
22
|
+
*/
|
|
23
|
+
export interface MetricProps extends watch.MetricProps {
|
|
24
|
+
stageSuffix: boolean;
|
|
25
|
+
periodInSecs?: number;
|
|
26
|
+
functionName?: string;
|
|
27
|
+
dbClusterIdentifier?: string;
|
|
28
|
+
distributionId?: string;
|
|
29
|
+
loadBalancer?: string;
|
|
30
|
+
serviceName?: string;
|
|
31
|
+
clusterName?: string;
|
|
32
|
+
apiName?: string;
|
|
33
|
+
cacheClusterId?: string;
|
|
34
|
+
stateMachineArn?: string;
|
|
35
|
+
eventBusName?: string;
|
|
36
|
+
ruleName?: string;
|
|
37
|
+
service?: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @category cdk-utils.cloudwatch-manager
|
|
41
|
+
* @subcategory Properties
|
|
42
|
+
*/
|
|
43
|
+
export interface TextWidgetProps extends watch.TextWidgetProps {
|
|
44
|
+
type: string;
|
|
45
|
+
positionX: number;
|
|
46
|
+
positionY: number;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* @category cdk-utils.cloudwatch-manager
|
|
50
|
+
* @subcategory Properties
|
|
51
|
+
*/
|
|
52
|
+
export interface NumericWidgetProps extends watch.SingleValueWidgetProps {
|
|
53
|
+
type: string;
|
|
54
|
+
positionX: number;
|
|
55
|
+
positionY: number;
|
|
56
|
+
metricProps: watch.MetricProps[];
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @category cdk-utils.cloudwatch-manager
|
|
60
|
+
* @subcategory Properties
|
|
61
|
+
*/
|
|
62
|
+
export interface GuageWidgetProps extends watch.GaugeWidgetProps {
|
|
63
|
+
type: string;
|
|
64
|
+
positionX: number;
|
|
65
|
+
positionY: number;
|
|
66
|
+
metricProps: watch.MetricProps[];
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* @category cdk-utils.cloudwatch-manager
|
|
70
|
+
* @subcategory Properties
|
|
71
|
+
*/
|
|
72
|
+
export interface GraphWidgetProps extends watch.GraphWidgetProps {
|
|
73
|
+
type: string;
|
|
74
|
+
positionX: number;
|
|
75
|
+
positionY: number;
|
|
76
|
+
metricProps: MetricProps[];
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* @category cdk-utils.cloudwatch-manager
|
|
80
|
+
* @subcategory Properties
|
|
81
|
+
*/
|
|
82
|
+
export interface AlarmStatusWidgetProps extends watch.AlarmStatusWidgetProps {
|
|
83
|
+
type: string;
|
|
84
|
+
positionX: number;
|
|
85
|
+
positionY: number;
|
|
86
|
+
alarmProps: watch.AlarmProps[];
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* @category cdk-utils.cloudwatch-manager
|
|
90
|
+
* @subcategory Properties
|
|
91
|
+
*/
|
|
92
|
+
export interface LogQueryWidgetProps extends watch.LogQueryWidgetProps {
|
|
93
|
+
type: string;
|
|
94
|
+
positionX: number;
|
|
95
|
+
positionY: number;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* @category cdk-utils.cloudwatch-manager
|
|
99
|
+
* @subcategory Properties
|
|
100
|
+
*/
|
|
101
|
+
export interface MetricFilterProps extends logs.MetricFilterProps {
|
|
102
|
+
periodInSecs: number;
|
|
103
|
+
options: watch.MetricOptions;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* @category cdk-utils.cloudwatch-manager
|
|
107
|
+
* @subcategory Properties
|
|
108
|
+
*/
|
|
109
|
+
export interface LogProps extends logs.LogGroupProps {
|
|
110
|
+
tags?: TagProps[];
|
|
111
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './main';
|
|
@@ -0,0 +1,17 @@
|
|
|
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);
|
package/dist/src/lib/{manager/aws/codebuild-manager.d.ts → services/aws/codebuild/main.d.ts}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as cdk from 'aws-cdk-lib';
|
|
2
|
-
import
|
|
2
|
+
import { CommonConstruct } from '../../../common';
|
|
3
3
|
/**
|
|
4
4
|
* @stability stable
|
|
5
5
|
* @category cdk-utils.codebuild-manager
|
|
6
6
|
* @subcategory Construct
|
|
7
7
|
* @classdesc Provides operations on AWS Code Build.
|
|
8
|
-
* - A new instance of this class is injected into {@link
|
|
9
|
-
* - If a custom construct extends {@link
|
|
8
|
+
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
9
|
+
* - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
|
|
10
10
|
* @example
|
|
11
|
-
* import {
|
|
11
|
+
* import { CommonConstruct } from '@gradientedge/cdk-utils'
|
|
12
12
|
*
|
|
13
|
-
* class CustomConstruct extends
|
|
13
|
+
* class CustomConstruct extends CommonConstruct {
|
|
14
14
|
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
15
15
|
* super(parent, id, props)
|
|
16
16
|
* this.props = props
|
|
@@ -27,7 +27,7 @@ export declare class CodeBuildManager {
|
|
|
27
27
|
* @param scope
|
|
28
28
|
* @param dockerfilePath
|
|
29
29
|
*/
|
|
30
|
-
createImageForCloudfrontInvalidation(id: string, scope:
|
|
30
|
+
createImageForCloudfrontInvalidation(id: string, scope: CommonConstruct, dockerfilePath: string): cdk.aws_ecr_assets.DockerImageAsset;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @param id
|
|
@@ -36,5 +36,5 @@ export declare class CodeBuildManager {
|
|
|
36
36
|
* @param distributionId
|
|
37
37
|
* @param paths
|
|
38
38
|
*/
|
|
39
|
-
createProjectForCloudfrontInvalidation(id: string, scope:
|
|
39
|
+
createProjectForCloudfrontInvalidation(id: string, scope: CommonConstruct, dockerFilepath: string, distributionId: string, paths?: string): cdk.aws_codebuild.Project;
|
|
40
40
|
}
|
|
@@ -31,12 +31,12 @@ const codebuild = __importStar(require("aws-cdk-lib/aws-codebuild"));
|
|
|
31
31
|
* @category cdk-utils.codebuild-manager
|
|
32
32
|
* @subcategory Construct
|
|
33
33
|
* @classdesc Provides operations on AWS Code Build.
|
|
34
|
-
* - A new instance of this class is injected into {@link
|
|
35
|
-
* - If a custom construct extends {@link
|
|
34
|
+
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
35
|
+
* - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
|
|
36
36
|
* @example
|
|
37
|
-
* import {
|
|
37
|
+
* import { CommonConstruct } from '@gradientedge/cdk-utils'
|
|
38
38
|
*
|
|
39
|
-
* class CustomConstruct extends
|
|
39
|
+
* class CustomConstruct extends CommonConstruct {
|
|
40
40
|
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
41
41
|
* super(parent, id, props)
|
|
42
42
|
* this.props = props
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Architecture = void 0;
|
|
4
|
+
var Architecture;
|
|
5
|
+
(function (Architecture) {
|
|
6
|
+
Architecture["ARM_64"] = "ARM_64";
|
|
7
|
+
Architecture["X86_64"] = "X86_64";
|
|
8
|
+
})(Architecture || (exports.Architecture = Architecture = {}));
|
|
@@ -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,13 +1,13 @@
|
|
|
1
1
|
import * as dynamodb from 'aws-cdk-lib/aws-dynamodb';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import { CommonConstruct } from '../../../common';
|
|
3
|
+
import { TableProps } from './types';
|
|
4
4
|
/**
|
|
5
5
|
* @stability stable
|
|
6
6
|
* @category cdk-utils.dynamodb-manager
|
|
7
7
|
* @subcategory Construct
|
|
8
8
|
* @classdesc Provides operations on AWS DynamoDB.
|
|
9
|
-
* - A new instance of this class is injected into {@link
|
|
10
|
-
* - If a custom construct extends {@link
|
|
9
|
+
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
10
|
+
* - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
|
|
11
11
|
* @example
|
|
12
12
|
* import { CommonConstruct } from '@gradientedge/cdk-utils'
|
|
13
13
|
*
|
|
@@ -25,8 +25,8 @@ export declare class DynamodbManager {
|
|
|
25
25
|
/**
|
|
26
26
|
* @summary Method to create a table
|
|
27
27
|
* @param {string} id scoped id of the resource
|
|
28
|
-
* @param {
|
|
29
|
-
* @param {
|
|
28
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
29
|
+
* @param {TableProps} props table props
|
|
30
30
|
*/
|
|
31
|
-
createTable(id: string, scope:
|
|
31
|
+
createTable(id: string, scope: CommonConstruct, props: TableProps): dynamodb.Table;
|
|
32
32
|
}
|
|
@@ -25,15 +25,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.DynamodbManager = void 0;
|
|
27
27
|
const dynamodb = __importStar(require("aws-cdk-lib/aws-dynamodb"));
|
|
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.dynamodb-manager
|
|
33
33
|
* @subcategory Construct
|
|
34
34
|
* @classdesc Provides operations on AWS DynamoDB.
|
|
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
38
|
* import { CommonConstruct } from '@gradientedge/cdk-utils'
|
|
39
39
|
*
|
|
@@ -51,8 +51,8 @@ class DynamodbManager {
|
|
|
51
51
|
/**
|
|
52
52
|
* @summary Method to create a table
|
|
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 {TableProps} props table props
|
|
56
56
|
*/
|
|
57
57
|
createTable(id, scope, props) {
|
|
58
58
|
if (!props)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './main';
|
|
@@ -0,0 +1,17 @@
|
|
|
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);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as ecr from 'aws-cdk-lib/aws-ecr-assets';
|
|
2
|
-
import
|
|
2
|
+
import { CommonConstruct } from '../../../common';
|
|
3
3
|
/**
|
|
4
4
|
* @stability stable
|
|
5
5
|
* @category cdk-utils.ecr-manager
|
|
6
6
|
* @subcategory Construct
|
|
7
7
|
* @classdesc Provides operations on AWS Elastic Container Registry.
|
|
8
|
-
* - A new instance of this class is injected into {@link
|
|
9
|
-
* - If a custom construct extends {@link
|
|
8
|
+
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
9
|
+
* - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
|
|
10
10
|
* @example
|
|
11
|
-
* import
|
|
11
|
+
* import { CommonConstruct } from '@gradientedge/cdk-utils'
|
|
12
12
|
*
|
|
13
|
-
* class CustomConstruct extends
|
|
13
|
+
* class CustomConstruct extends CommonConstruct {
|
|
14
14
|
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
15
15
|
* super(parent, id, props)
|
|
16
16
|
* this.props = props
|
|
@@ -24,8 +24,8 @@ export declare class EcrManager {
|
|
|
24
24
|
/**
|
|
25
25
|
* @summary Method to create a docker image in ecr
|
|
26
26
|
* @param {string} id scoped id of the resource
|
|
27
|
-
* @param {
|
|
27
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
28
28
|
* @param {string} dockerfilePath
|
|
29
29
|
*/
|
|
30
|
-
createDockerImage(id: string, scope:
|
|
30
|
+
createDockerImage(id: string, scope: CommonConstruct, dockerfilePath: string): ecr.DockerImageAsset;
|
|
31
31
|
}
|
package/dist/src/lib/{manager/aws/ecr-manager.js → services/aws/elastic-container-registry/main.js}
RENAMED
|
@@ -25,18 +25,18 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.EcrManager = void 0;
|
|
27
27
|
const ecr = __importStar(require("aws-cdk-lib/aws-ecr-assets"));
|
|
28
|
-
const utils = __importStar(require("
|
|
28
|
+
const utils = __importStar(require("../../../utils"));
|
|
29
29
|
/**
|
|
30
30
|
* @stability stable
|
|
31
31
|
* @category cdk-utils.ecr-manager
|
|
32
32
|
* @subcategory Construct
|
|
33
33
|
* @classdesc Provides operations on AWS Elastic Container Registry.
|
|
34
|
-
* - A new instance of this class is injected into {@link
|
|
35
|
-
* - If a custom construct extends {@link
|
|
34
|
+
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
35
|
+
* - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
|
|
36
36
|
* @example
|
|
37
|
-
* import
|
|
37
|
+
* import { CommonConstruct } from '@gradientedge/cdk-utils'
|
|
38
38
|
*
|
|
39
|
-
* class CustomConstruct extends
|
|
39
|
+
* class CustomConstruct extends CommonConstruct {
|
|
40
40
|
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
41
41
|
* super(parent, id, props)
|
|
42
42
|
* this.props = props
|
|
@@ -50,7 +50,7 @@ class EcrManager {
|
|
|
50
50
|
/**
|
|
51
51
|
* @summary Method to create a docker image in ecr
|
|
52
52
|
* @param {string} id scoped id of the resource
|
|
53
|
-
* @param {
|
|
53
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
54
54
|
* @param {string} dockerfilePath
|
|
55
55
|
*/
|
|
56
56
|
createDockerImage(id, scope, dockerfilePath) {
|
|
@@ -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);
|
|
@@ -3,19 +3,19 @@ import * as ec2 from 'aws-cdk-lib/aws-ec2';
|
|
|
3
3
|
import * as ecs from 'aws-cdk-lib/aws-ecs';
|
|
4
4
|
import * as iam from 'aws-cdk-lib/aws-iam';
|
|
5
5
|
import * as logs from 'aws-cdk-lib/aws-logs';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import { CommonConstruct } from '../../../common';
|
|
7
|
+
import { EcsApplicationLoadBalancedFargateServiceProps, EcsClusterProps, EcsTaskProps } from './types';
|
|
8
8
|
/**
|
|
9
9
|
* @stability stable
|
|
10
10
|
* @category cdk-utils.ecs-manager
|
|
11
11
|
* @subcategory Construct
|
|
12
12
|
* @classdesc Provides operations on AWS Elastic Container Service.
|
|
13
|
-
* - A new instance of this class is injected into {@link
|
|
14
|
-
* - If a custom construct extends {@link
|
|
13
|
+
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
14
|
+
* - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
|
|
15
15
|
* @example
|
|
16
|
-
* import
|
|
16
|
+
* import { CommonConstruct } from '@gradientedge/cdk-utils'
|
|
17
17
|
*
|
|
18
|
-
* class CustomConstruct extends
|
|
18
|
+
* class CustomConstruct extends CommonConstruct {
|
|
19
19
|
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
20
20
|
* super(parent, id, props)
|
|
21
21
|
* this.props = props
|
|
@@ -29,16 +29,16 @@ export declare class EcsManager {
|
|
|
29
29
|
/**
|
|
30
30
|
* @summary Method to create an ecs cluster
|
|
31
31
|
* @param {string} id scoped id of the resource
|
|
32
|
-
* @param {
|
|
33
|
-
* @param {
|
|
32
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
33
|
+
* @param {EcsClusterProps} props
|
|
34
34
|
* @param {ec2.IVpc} vpc
|
|
35
35
|
*/
|
|
36
|
-
createEcsCluster(id: string, scope:
|
|
36
|
+
createEcsCluster(id: string, scope: CommonConstruct, props: EcsClusterProps, vpc: ec2.IVpc): cdk.aws_ecs.Cluster;
|
|
37
37
|
/**
|
|
38
38
|
* @summary Method to create an ecs fargate task
|
|
39
39
|
* @param {string} id scoped id of the resource
|
|
40
|
-
* @param {
|
|
41
|
-
* @param {
|
|
40
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
41
|
+
* @param {EcsTaskProps} props
|
|
42
42
|
* @param {ecs.ICluster} cluster
|
|
43
43
|
* @param {iam.Role} role
|
|
44
44
|
* @param {logs.ILogGroup} logGroup
|
|
@@ -47,14 +47,14 @@ export declare class EcsManager {
|
|
|
47
47
|
* @param {Map<string, string>} secrets
|
|
48
48
|
* @param {string[]} command
|
|
49
49
|
*/
|
|
50
|
-
createEcsFargateTask(id: string, scope:
|
|
50
|
+
createEcsFargateTask(id: string, scope: CommonConstruct, props: EcsTaskProps, cluster: ecs.ICluster, role: iam.Role, logGroup: logs.ILogGroup, containerImage: ecs.ContainerImage, environment?: any, secrets?: any, command?: string[]): cdk.aws_ecs.TaskDefinition;
|
|
51
51
|
/**
|
|
52
52
|
* @summary Method to create an application loadbalanced ecs fargate task
|
|
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 {EcsApplicationLoadBalancedFargateServiceProps} props
|
|
56
56
|
* @param {ecs.ICluster} cluster
|
|
57
57
|
* @param {logs.ILogGroup} logGroup
|
|
58
58
|
*/
|
|
59
|
-
createLoadBalancedFargateService(id: string, scope:
|
|
59
|
+
createLoadBalancedFargateService(id: string, scope: CommonConstruct, props: EcsApplicationLoadBalancedFargateServiceProps, cluster: ecs.ICluster, logGroup: logs.ILogGroup): cdk.aws_ecs_patterns.ApplicationLoadBalancedFargateService;
|
|
60
60
|
}
|
package/dist/src/lib/{manager/aws/ecs-manager.js → services/aws/elastic-container-service/main.js}
RENAMED
|
@@ -27,18 +27,18 @@ exports.EcsManager = void 0;
|
|
|
27
27
|
const cdk = __importStar(require("aws-cdk-lib"));
|
|
28
28
|
const ecs = __importStar(require("aws-cdk-lib/aws-ecs"));
|
|
29
29
|
const ecsPatterns = __importStar(require("aws-cdk-lib/aws-ecs-patterns"));
|
|
30
|
-
const utils = __importStar(require("
|
|
30
|
+
const utils = __importStar(require("../../../utils"));
|
|
31
31
|
/**
|
|
32
32
|
* @stability stable
|
|
33
33
|
* @category cdk-utils.ecs-manager
|
|
34
34
|
* @subcategory Construct
|
|
35
35
|
* @classdesc Provides operations on AWS Elastic Container Service.
|
|
36
|
-
* - A new instance of this class is injected into {@link
|
|
37
|
-
* - If a custom construct extends {@link
|
|
36
|
+
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
37
|
+
* - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
|
|
38
38
|
* @example
|
|
39
|
-
* import
|
|
39
|
+
* import { CommonConstruct } from '@gradientedge/cdk-utils'
|
|
40
40
|
*
|
|
41
|
-
* class CustomConstruct extends
|
|
41
|
+
* class CustomConstruct extends CommonConstruct {
|
|
42
42
|
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
43
43
|
* super(parent, id, props)
|
|
44
44
|
* this.props = props
|
|
@@ -52,8 +52,8 @@ class EcsManager {
|
|
|
52
52
|
/**
|
|
53
53
|
* @summary Method to create an ecs cluster
|
|
54
54
|
* @param {string} id scoped id of the resource
|
|
55
|
-
* @param {
|
|
56
|
-
* @param {
|
|
55
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
56
|
+
* @param {EcsClusterProps} props
|
|
57
57
|
* @param {ec2.IVpc} vpc
|
|
58
58
|
*/
|
|
59
59
|
createEcsCluster(id, scope, props, vpc) {
|
|
@@ -80,8 +80,8 @@ class EcsManager {
|
|
|
80
80
|
/**
|
|
81
81
|
* @summary Method to create an ecs fargate task
|
|
82
82
|
* @param {string} id scoped id of the resource
|
|
83
|
-
* @param {
|
|
84
|
-
* @param {
|
|
83
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
84
|
+
* @param {EcsTaskProps} props
|
|
85
85
|
* @param {ecs.ICluster} cluster
|
|
86
86
|
* @param {iam.Role} role
|
|
87
87
|
* @param {logs.ILogGroup} logGroup
|
|
@@ -140,8 +140,8 @@ class EcsManager {
|
|
|
140
140
|
/**
|
|
141
141
|
* @summary Method to create an application loadbalanced ecs fargate task
|
|
142
142
|
* @param {string} id scoped id of the resource
|
|
143
|
-
* @param {
|
|
144
|
-
* @param {
|
|
143
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
144
|
+
* @param {EcsApplicationLoadBalancedFargateServiceProps} props
|
|
145
145
|
* @param {ecs.ICluster} cluster
|
|
146
146
|
* @param {logs.ILogGroup} logGroup
|
|
147
147
|
*/
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { TagProps } from '../../../types';
|
|
2
|
+
import { AwsLogDriverProps, ClusterProps, MountPoint, TaskDefinitionProps } from 'aws-cdk-lib/aws-ecs';
|
|
3
|
+
import { ScalingSchedule } from 'aws-cdk-lib/aws-applicationautoscaling';
|
|
4
|
+
import { ApplicationLoadBalancedFargateServiceProps } from 'aws-cdk-lib/aws-ecs-patterns';
|
|
5
|
+
import * as elb from 'aws-cdk-lib/aws-elasticloadbalancingv2';
|
|
6
|
+
/**
|
|
7
|
+
* @category cdk-utils.ecs-manager
|
|
8
|
+
* @subcategory Properties
|
|
9
|
+
*/
|
|
10
|
+
export interface EcsClusterProps extends ClusterProps {
|
|
11
|
+
tags?: TagProps[];
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @category cdk-utils.ecs-manager
|
|
15
|
+
* @subcategory Properties
|
|
16
|
+
*/
|
|
17
|
+
export interface EcsTaskProps extends TaskDefinitionProps {
|
|
18
|
+
logging?: AwsLogDriverProps;
|
|
19
|
+
tags?: TagProps[];
|
|
20
|
+
}
|
|
21
|
+
export interface EcsScalingProps {
|
|
22
|
+
minCapacity?: number;
|
|
23
|
+
maxCapacity?: number;
|
|
24
|
+
scaleOnCpuUtilization?: number;
|
|
25
|
+
scaleOnMemoryUtilization?: number;
|
|
26
|
+
scaleOnRequestsPerTarget?: number;
|
|
27
|
+
scaleOnSchedule?: ScalingSchedule;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* @category cdk-utils.site-with-ecs-backend
|
|
31
|
+
* @subcategory Properties
|
|
32
|
+
*/
|
|
33
|
+
export interface HealthCheck extends elb.HealthCheck {
|
|
34
|
+
intervalInSecs: number;
|
|
35
|
+
timeoutInSecs: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @category cdk-utils.ecs-manager
|
|
39
|
+
* @subcategory Properties
|
|
40
|
+
*/
|
|
41
|
+
export interface EcsApplicationLoadBalancedFargateServiceProps extends ApplicationLoadBalancedFargateServiceProps {
|
|
42
|
+
healthCheck?: HealthCheck;
|
|
43
|
+
logging?: AwsLogDriverProps;
|
|
44
|
+
mountPoints?: MountPoint[];
|
|
45
|
+
siteScaling?: EcsScalingProps;
|
|
46
|
+
}
|
|
@@ -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);
|