@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/iam-manager.js → services/aws/identity-access-management/main.js}
RENAMED
|
@@ -26,18 +26,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.IamManager = void 0;
|
|
27
27
|
const cdk = __importStar(require("aws-cdk-lib"));
|
|
28
28
|
const iam = __importStar(require("aws-cdk-lib/aws-iam"));
|
|
29
|
-
const utils = __importStar(require("
|
|
29
|
+
const utils = __importStar(require("../../../utils"));
|
|
30
30
|
/**
|
|
31
31
|
* @stability stable
|
|
32
32
|
* @category cdk-utils.iam-manager
|
|
33
33
|
* @subcategory Construct
|
|
34
34
|
* @classdesc Provides operations on AWS IAM.
|
|
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
|
|
@@ -50,7 +50,7 @@ const utils = __importStar(require("../../utils"));
|
|
|
50
50
|
class IamManager {
|
|
51
51
|
/**
|
|
52
52
|
* @summary Method to create iam statement to read secrets
|
|
53
|
-
* @param {
|
|
53
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
54
54
|
* @param {string[]} resourceArns list of ARNs to allow access to
|
|
55
55
|
*/
|
|
56
56
|
statementForReadSecrets(scope, resourceArns) {
|
|
@@ -165,7 +165,7 @@ class IamManager {
|
|
|
165
165
|
}
|
|
166
166
|
/**
|
|
167
167
|
* @summary Method to create iam statement to list s3 buckets
|
|
168
|
-
* @param {
|
|
168
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
169
169
|
* @param {s3.IBucket} bucket
|
|
170
170
|
*/
|
|
171
171
|
statementForListBucket(scope, bucket) {
|
|
@@ -188,7 +188,7 @@ class IamManager {
|
|
|
188
188
|
}
|
|
189
189
|
/**
|
|
190
190
|
* @summary Method to create iam statement to get s3 objects in buckets
|
|
191
|
-
* @param {
|
|
191
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
192
192
|
* @param {s3.IBucket} bucket
|
|
193
193
|
* @param {string[]} resourceArns list of ARNs to allow access to
|
|
194
194
|
*/
|
|
@@ -201,7 +201,7 @@ class IamManager {
|
|
|
201
201
|
}
|
|
202
202
|
/**
|
|
203
203
|
* @summary Method to create iam statement to delete s3 objects in buckets
|
|
204
|
-
* @param {
|
|
204
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
205
205
|
* @param {s3.IBucket} bucket
|
|
206
206
|
* @param {string[]} resourceArns list of ARNs to allow access to
|
|
207
207
|
*/
|
|
@@ -214,7 +214,7 @@ class IamManager {
|
|
|
214
214
|
}
|
|
215
215
|
/**
|
|
216
216
|
* @summary Method to create iam statement to write s3 objects in buckets
|
|
217
|
-
* @param {
|
|
217
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
218
218
|
* @param {s3.IBucket} bucket
|
|
219
219
|
* @param {string[]} resourceArns list of ARNs to allow access to
|
|
220
220
|
*/
|
|
@@ -249,7 +249,6 @@ class IamManager {
|
|
|
249
249
|
}
|
|
250
250
|
/**
|
|
251
251
|
* @summary Method to create iam statement to access efs
|
|
252
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
253
252
|
* @param {string[]} resourceArns list of ARNs to allow access to
|
|
254
253
|
*/
|
|
255
254
|
statementForWriteEfs(resourceArns) {
|
|
@@ -285,7 +284,7 @@ class IamManager {
|
|
|
285
284
|
/**
|
|
286
285
|
* @summary Method to create iam role to invalidate cloudfront cache
|
|
287
286
|
* @param {string} id scoped id of the resource
|
|
288
|
-
* @param {
|
|
287
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
289
288
|
*/
|
|
290
289
|
roleForCloudfrontInvalidation(id, scope) {
|
|
291
290
|
return new iam.Role(scope, `${id}-install-deps-project-role`, {
|
|
@@ -297,7 +296,7 @@ class IamManager {
|
|
|
297
296
|
}
|
|
298
297
|
/**
|
|
299
298
|
* @summary Method to create iam statement to assume iam role
|
|
300
|
-
* @param {
|
|
299
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
301
300
|
* @param {iam.ServicePrincipal[]} servicePrincipals
|
|
302
301
|
*/
|
|
303
302
|
statementForAssumeRole(scope, servicePrincipals) {
|
|
@@ -321,7 +320,7 @@ class IamManager {
|
|
|
321
320
|
}
|
|
322
321
|
/**
|
|
323
322
|
* @summary Method to create iam statement to run ecs task
|
|
324
|
-
* @param {
|
|
323
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
325
324
|
* @param {ecs.ICluster} cluster
|
|
326
325
|
* @param {ecs.ITaskDefinition} task
|
|
327
326
|
*/
|
|
@@ -335,7 +334,7 @@ class IamManager {
|
|
|
335
334
|
}
|
|
336
335
|
/**
|
|
337
336
|
* @summary Method to create iam statement to create log stream
|
|
338
|
-
* @param {
|
|
337
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
339
338
|
* @param {logs.CfnLogGroup} logGroup
|
|
340
339
|
*/
|
|
341
340
|
statementForCreateLogStream(scope, logGroup) {
|
|
@@ -361,7 +360,7 @@ class IamManager {
|
|
|
361
360
|
}
|
|
362
361
|
/**
|
|
363
362
|
* @summary Method to create iam statement to write log events
|
|
364
|
-
* @param {
|
|
363
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
365
364
|
* @param {logs.CfnLogGroup} logGroup
|
|
366
365
|
*/
|
|
367
366
|
statementForPutLogEvent(scope, logGroup) {
|
|
@@ -419,7 +418,7 @@ class IamManager {
|
|
|
419
418
|
/**
|
|
420
419
|
* @summary Method to create iam statement for cloud trail
|
|
421
420
|
* @param {string} id scoped id of the resource
|
|
422
|
-
* @param {
|
|
421
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
423
422
|
* @param {logs.CfnLogGroup} logGroup
|
|
424
423
|
*/
|
|
425
424
|
createRoleForCloudTrail(id, scope, logGroup) {
|
|
@@ -445,7 +444,7 @@ class IamManager {
|
|
|
445
444
|
/**
|
|
446
445
|
* @summary Method to create iam statement for ecs event
|
|
447
446
|
* @param {string} id scoped id of the resource
|
|
448
|
-
* @param {
|
|
447
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
449
448
|
* @param {ecs.ICluster} cluster
|
|
450
449
|
* @param {ecs.ITaskDefinition} task
|
|
451
450
|
*/
|
|
@@ -466,7 +465,7 @@ class IamManager {
|
|
|
466
465
|
/**
|
|
467
466
|
* @summary Method to create iam statement for ecs execution
|
|
468
467
|
* @param {string} id scoped id of the resource
|
|
469
|
-
* @param {
|
|
468
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
470
469
|
* @param {iam.PolicyDocument} policy
|
|
471
470
|
*/
|
|
472
471
|
createRoleForEcsExecution(id, scope, policy) {
|
|
@@ -486,7 +485,7 @@ class IamManager {
|
|
|
486
485
|
/**
|
|
487
486
|
* @summary Method to create iam statement for lambda execution
|
|
488
487
|
* @param {string} id scoped id of the resource
|
|
489
|
-
* @param {
|
|
488
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
490
489
|
* @param {iam.PolicyDocument} policy
|
|
491
490
|
* @param {iam.ServicePrincipal} servicePrinicpal
|
|
492
491
|
*/
|
|
@@ -507,7 +506,7 @@ class IamManager {
|
|
|
507
506
|
/**
|
|
508
507
|
* @summary Method to create iam statement for step function execution
|
|
509
508
|
* @param {string} id scoped id of the resource
|
|
510
|
-
* @param {
|
|
509
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
511
510
|
* @param {iam.PolicyDocument} policy
|
|
512
511
|
* @param {iam.ServicePrincipal} servicePrinicpal
|
|
513
512
|
*/
|
|
@@ -528,7 +527,7 @@ class IamManager {
|
|
|
528
527
|
/**
|
|
529
528
|
* @summary Method to create iam statement for sqs to step function pipe
|
|
530
529
|
* @param {string} id scoped id of the resource
|
|
531
|
-
* @param {
|
|
530
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
532
531
|
* @param {string} queueArn the arn of the sqs queue
|
|
533
532
|
* @param {string} stepFunctionArn the arn of the step function
|
|
534
533
|
*/
|
|
@@ -547,7 +546,7 @@ class IamManager {
|
|
|
547
546
|
/**
|
|
548
547
|
* @summary Method to create iam policy for sqs
|
|
549
548
|
* @param {string} id scoped id of the resource
|
|
550
|
-
* @param {
|
|
549
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
551
550
|
* @param sqsQueue
|
|
552
551
|
* @param eventBridgeRule
|
|
553
552
|
* @param servicePrincipals
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export * from './api-gateway';
|
|
2
|
+
export * from './appconfig';
|
|
3
|
+
export * from './certificate-manager';
|
|
4
|
+
export * from './cloudfront';
|
|
5
|
+
export * from './cloudtrail';
|
|
6
|
+
export * from './cloudwatch';
|
|
7
|
+
export * from './codebuild';
|
|
8
|
+
export * from './constants';
|
|
9
|
+
export * from './dynamodb';
|
|
10
|
+
export * from './elastic-container-registry';
|
|
11
|
+
export * from './elastic-container-service';
|
|
12
|
+
export * from './elastic-file-system';
|
|
13
|
+
export * from './elastic-kubernetes-service';
|
|
14
|
+
export * from './elasticache';
|
|
15
|
+
export * from './eventbridge';
|
|
16
|
+
export * from './evidently';
|
|
17
|
+
export * from './identity-access-management';
|
|
18
|
+
export * from './key-management-service';
|
|
19
|
+
export * from './lambda';
|
|
20
|
+
export * from './route53';
|
|
21
|
+
export * from './secrets-manager';
|
|
22
|
+
export * from './simple-notification-service';
|
|
23
|
+
export * from './simple-queue-service';
|
|
24
|
+
export * from './simple-storage-service';
|
|
25
|
+
export * from './step-function';
|
|
26
|
+
export * from './systems-manager';
|
|
27
|
+
export * from './virtual-private-cloud';
|
|
28
|
+
export * from './web-application-firewall';
|
|
@@ -0,0 +1,44 @@
|
|
|
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("./api-gateway"), exports);
|
|
18
|
+
__exportStar(require("./appconfig"), exports);
|
|
19
|
+
__exportStar(require("./certificate-manager"), exports);
|
|
20
|
+
__exportStar(require("./cloudfront"), exports);
|
|
21
|
+
__exportStar(require("./cloudtrail"), exports);
|
|
22
|
+
__exportStar(require("./cloudwatch"), exports);
|
|
23
|
+
__exportStar(require("./codebuild"), exports);
|
|
24
|
+
__exportStar(require("./constants"), exports);
|
|
25
|
+
__exportStar(require("./dynamodb"), exports);
|
|
26
|
+
__exportStar(require("./elastic-container-registry"), exports);
|
|
27
|
+
__exportStar(require("./elastic-container-service"), exports);
|
|
28
|
+
__exportStar(require("./elastic-file-system"), exports);
|
|
29
|
+
__exportStar(require("./elastic-kubernetes-service"), exports);
|
|
30
|
+
__exportStar(require("./elasticache"), exports);
|
|
31
|
+
__exportStar(require("./eventbridge"), exports);
|
|
32
|
+
__exportStar(require("./evidently"), exports);
|
|
33
|
+
__exportStar(require("./identity-access-management"), exports);
|
|
34
|
+
__exportStar(require("./key-management-service"), exports);
|
|
35
|
+
__exportStar(require("./lambda"), exports);
|
|
36
|
+
__exportStar(require("./route53"), exports);
|
|
37
|
+
__exportStar(require("./secrets-manager"), exports);
|
|
38
|
+
__exportStar(require("./simple-notification-service"), exports);
|
|
39
|
+
__exportStar(require("./simple-queue-service"), exports);
|
|
40
|
+
__exportStar(require("./simple-storage-service"), exports);
|
|
41
|
+
__exportStar(require("./step-function"), exports);
|
|
42
|
+
__exportStar(require("./systems-manager"), exports);
|
|
43
|
+
__exportStar(require("./virtual-private-cloud"), exports);
|
|
44
|
+
__exportStar(require("./web-application-firewall"), exports);
|
|
@@ -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);
|
package/dist/src/lib/{manager/aws/kms-manager.d.ts → services/aws/key-management-service/main.d.ts}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as kms from 'aws-cdk-lib/aws-kms';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import { CommonConstruct } from '../../../common';
|
|
3
|
+
import { KmsKeyProps } from './types';
|
|
4
4
|
/**
|
|
5
5
|
* @stability stable
|
|
6
6
|
* @category cdk-utils.kms-manager
|
|
7
7
|
* @subcategory Construct
|
|
8
8
|
* @classdesc Provides operations on AWS KMS.
|
|
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 KmsManager {
|
|
|
25
25
|
/**
|
|
26
26
|
* @summary Method to create a KMS key
|
|
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 {KmsKeyProps} props KMS key props
|
|
30
30
|
*/
|
|
31
|
-
createKey(id: string, scope:
|
|
31
|
+
createKey(id: string, scope: CommonConstruct, props: KmsKeyProps): kms.Key;
|
|
32
32
|
}
|
package/dist/src/lib/{manager/aws/kms-manager.js → services/aws/key-management-service/main.js}
RENAMED
|
@@ -25,14 +25,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.KmsManager = void 0;
|
|
27
27
|
const kms = __importStar(require("aws-cdk-lib/aws-kms"));
|
|
28
|
-
const utils = __importStar(require("
|
|
28
|
+
const utils = __importStar(require("../../../utils"));
|
|
29
29
|
/**
|
|
30
30
|
* @stability stable
|
|
31
31
|
* @category cdk-utils.kms-manager
|
|
32
32
|
* @subcategory Construct
|
|
33
33
|
* @classdesc Provides operations on AWS KMS.
|
|
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
37
|
* import { CommonConstruct } from '@gradientedge/cdk-utils'
|
|
38
38
|
*
|
|
@@ -50,8 +50,8 @@ class KmsManager {
|
|
|
50
50
|
/**
|
|
51
51
|
* @summary Method to create a KMS key
|
|
52
52
|
* @param {string} id scoped id of the resource
|
|
53
|
-
* @param {
|
|
54
|
-
* @param {
|
|
53
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
54
|
+
* @param {KmsKeyProps} props KMS key props
|
|
55
55
|
*/
|
|
56
56
|
createKey(id, scope, props) {
|
|
57
57
|
if (!props)
|
|
@@ -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,20 @@ import * as ec2 from 'aws-cdk-lib/aws-ec2';
|
|
|
3
3
|
import * as efs from 'aws-cdk-lib/aws-efs';
|
|
4
4
|
import * as iam from 'aws-cdk-lib/aws-iam';
|
|
5
5
|
import * as lambda from 'aws-cdk-lib/aws-lambda';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import { IVersion } from 'aws-cdk-lib/aws-lambda';
|
|
7
|
+
import { CommonConstruct } from '../../../common';
|
|
8
|
+
import { LambdaAliasProps, LambdaEdgeProps, LambdaProps } from './types';
|
|
8
9
|
/**
|
|
9
10
|
* @stability stable
|
|
10
11
|
* @category cdk-utils.lambda-manager
|
|
11
12
|
* @subcategory Construct
|
|
12
13
|
* @classdesc Provides operations on AWS Lambda.
|
|
13
|
-
* - A new instance of this class is injected into {@link
|
|
14
|
-
* - If a custom construct extends {@link
|
|
14
|
+
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
15
|
+
* - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
|
|
15
16
|
* @example
|
|
16
|
-
* import
|
|
17
|
+
* import { CommonConstruct } from '@gradientedge/cdk-utils'
|
|
17
18
|
*
|
|
18
|
-
* class CustomConstruct extends
|
|
19
|
+
* class CustomConstruct extends CommonConstruct {
|
|
19
20
|
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
20
21
|
* super(parent, id, props)
|
|
21
22
|
* this.props = props
|
|
@@ -29,15 +30,15 @@ export declare class LambdaManager {
|
|
|
29
30
|
/**
|
|
30
31
|
* @summary Method to create a lambda layer (nodejs)
|
|
31
32
|
* @param {string} id scoped id of the resource
|
|
32
|
-
* @param {
|
|
33
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
33
34
|
* @param {lambda.AssetCode} code
|
|
34
35
|
*/
|
|
35
|
-
createLambdaLayer(id: string, scope:
|
|
36
|
+
createLambdaLayer(id: string, scope: CommonConstruct, code: lambda.AssetCode): cdk.aws_lambda.LayerVersion;
|
|
36
37
|
/**
|
|
37
38
|
* @summary Method to create a lambda function (nodejs)
|
|
38
39
|
* @param {string} id scoped id of the resource
|
|
39
|
-
* @param {
|
|
40
|
-
* @param {
|
|
40
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
41
|
+
* @param {LambdaProps} props
|
|
41
42
|
* @param {iam.Role | iam.CfnRole} role
|
|
42
43
|
* @param {lambda.ILayerVersion[]} layers
|
|
43
44
|
* @param {lambda.AssetCode} code
|
|
@@ -49,13 +50,13 @@ export declare class LambdaManager {
|
|
|
49
50
|
* @param {string?} mountPath
|
|
50
51
|
* @param {ec2.SubnetSelection?} vpcSubnets
|
|
51
52
|
*/
|
|
52
|
-
createLambdaFunction(id: string, scope:
|
|
53
|
+
createLambdaFunction(id: string, scope: CommonConstruct, props: LambdaProps, role: iam.Role | iam.CfnRole, layers: lambda.ILayerVersion[], code: lambda.AssetCode, handler?: string, environment?: any, vpc?: ec2.IVpc, securityGroups?: ec2.ISecurityGroup[], accessPoint?: efs.IAccessPoint, mountPath?: string, vpcSubnets?: ec2.SubnetSelection): cdk.aws_lambda.Function;
|
|
53
54
|
/**
|
|
54
55
|
* @summary Method to provision a Lambda@Edge function
|
|
55
56
|
*
|
|
56
57
|
* @param {string} id scoped id of the resource
|
|
57
|
-
* @param {
|
|
58
|
-
* @param {
|
|
58
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
59
|
+
* @param {LambdaEdgeProps} props lambda@edge properties
|
|
59
60
|
* @param {lambda.ILayerVersion[]} layers
|
|
60
61
|
* @param {lambda.AssetCode} code
|
|
61
62
|
* @param {iam.Role} role
|
|
@@ -65,12 +66,12 @@ export declare class LambdaManager {
|
|
|
65
66
|
* @param {efs.IAccessPoint?} accessPoint
|
|
66
67
|
* @param {string?} mountPath
|
|
67
68
|
*/
|
|
68
|
-
createEdgeFunction(id: string, scope:
|
|
69
|
+
createEdgeFunction(id: string, scope: CommonConstruct, props: LambdaEdgeProps, layers: lambda.ILayerVersion[], code: lambda.AssetCode, role: iam.Role, environment?: any, vpc?: ec2.IVpc, securityGroups?: ec2.ISecurityGroup[], accessPoint?: efs.IAccessPoint, mountPath?: string): cdk.aws_cloudfront.experimental.EdgeFunction;
|
|
69
70
|
/**
|
|
70
71
|
* @summary Method to create a lambda function (nodejs) with docker image
|
|
71
72
|
* @param {string} id scoped id of the resource
|
|
72
|
-
* @param {
|
|
73
|
-
* @param {
|
|
73
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
74
|
+
* @param {LambdaProps} props
|
|
74
75
|
* @param {iam.Role | iam.CfnRole} role
|
|
75
76
|
* @param {lambda.DockerImageCode} code
|
|
76
77
|
* @param {Map<string, string>?} environment
|
|
@@ -80,13 +81,13 @@ export declare class LambdaManager {
|
|
|
80
81
|
* @param {string?} mountPath
|
|
81
82
|
* @param {ec2.SubnetSelection?} vpcSubnets
|
|
82
83
|
*/
|
|
83
|
-
createLambdaDockerFunction(id: string, scope:
|
|
84
|
+
createLambdaDockerFunction(id: string, scope: CommonConstruct, props: LambdaProps, role: iam.Role | iam.CfnRole, code: lambda.DockerImageCode, environment?: any, vpc?: ec2.IVpc, securityGroups?: ec2.ISecurityGroup[], accessPoint?: efs.IAccessPoint, mountPath?: string, vpcSubnets?: ec2.SubnetSelection): cdk.aws_lambda.DockerImageFunction;
|
|
84
85
|
/**
|
|
85
86
|
* @summary Method to create a lambda function Alias
|
|
86
87
|
* @param {string} id scoped id of the resource
|
|
87
|
-
* @param {
|
|
88
|
-
* @param {
|
|
89
|
-
* @param {
|
|
88
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
89
|
+
* @param {LambdaAliasProps} props
|
|
90
|
+
* @param {IVersion} lambdaVersion
|
|
90
91
|
*/
|
|
91
|
-
createLambdaFunctionAlias(id: string, scope:
|
|
92
|
+
createLambdaFunctionAlias(id: string, scope: CommonConstruct, props: LambdaAliasProps, lambdaVersion: IVersion): cdk.aws_lambda.Alias;
|
|
92
93
|
}
|
|
@@ -28,21 +28,21 @@ const cdk = __importStar(require("aws-cdk-lib"));
|
|
|
28
28
|
const iam = __importStar(require("aws-cdk-lib/aws-iam"));
|
|
29
29
|
const lambda = __importStar(require("aws-cdk-lib/aws-lambda"));
|
|
30
30
|
const eventSources = __importStar(require("aws-cdk-lib/aws-lambda-event-sources"));
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const
|
|
31
|
+
const utils = __importStar(require("../../../utils"));
|
|
32
|
+
const common_1 = require("../../../common");
|
|
33
|
+
const cloudfront_1 = require("../cloudfront");
|
|
34
|
+
const systems_manager_1 = require("../systems-manager");
|
|
35
35
|
/**
|
|
36
36
|
* @stability stable
|
|
37
37
|
* @category cdk-utils.lambda-manager
|
|
38
38
|
* @subcategory Construct
|
|
39
39
|
* @classdesc Provides operations on AWS Lambda.
|
|
40
|
-
* - A new instance of this class is injected into {@link
|
|
41
|
-
* - If a custom construct extends {@link
|
|
40
|
+
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
41
|
+
* - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
|
|
42
42
|
* @example
|
|
43
|
-
* import
|
|
43
|
+
* import { CommonConstruct } from '@gradientedge/cdk-utils'
|
|
44
44
|
*
|
|
45
|
-
* class CustomConstruct extends
|
|
45
|
+
* class CustomConstruct extends CommonConstruct {
|
|
46
46
|
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
47
47
|
* super(parent, id, props)
|
|
48
48
|
* this.props = props
|
|
@@ -56,7 +56,7 @@ class LambdaManager {
|
|
|
56
56
|
/**
|
|
57
57
|
* @summary Method to create a lambda layer (nodejs)
|
|
58
58
|
* @param {string} id scoped id of the resource
|
|
59
|
-
* @param {
|
|
59
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
60
60
|
* @param {lambda.AssetCode} code
|
|
61
61
|
*/
|
|
62
62
|
createLambdaLayer(id, scope, code) {
|
|
@@ -72,8 +72,8 @@ class LambdaManager {
|
|
|
72
72
|
/**
|
|
73
73
|
* @summary Method to create a lambda function (nodejs)
|
|
74
74
|
* @param {string} id scoped id of the resource
|
|
75
|
-
* @param {
|
|
76
|
-
* @param {
|
|
75
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
76
|
+
* @param {LambdaProps} props
|
|
77
77
|
* @param {iam.Role | iam.CfnRole} role
|
|
78
78
|
* @param {lambda.ILayerVersion[]} layers
|
|
79
79
|
* @param {lambda.AssetCode} code
|
|
@@ -109,7 +109,7 @@ class LambdaManager {
|
|
|
109
109
|
STAGE: scope.props.stage,
|
|
110
110
|
LAST_MODIFIED_TS: props.excludeLastModifiedTimestamp
|
|
111
111
|
? ''
|
|
112
|
-
: scope.ssmManager.readStringParameter(`${id}-sm-ts`, scope, `${
|
|
112
|
+
: scope.ssmManager.readStringParameter(`${id}-sm-ts`, scope, `${systems_manager_1.SsmManager.SECRETS_MODIFIED_TIMESTAMP_PARAM}-${scope.props.stage}`),
|
|
113
113
|
...environment,
|
|
114
114
|
},
|
|
115
115
|
filesystem: accessPoint
|
|
@@ -160,8 +160,8 @@ class LambdaManager {
|
|
|
160
160
|
* @summary Method to provision a Lambda@Edge function
|
|
161
161
|
*
|
|
162
162
|
* @param {string} id scoped id of the resource
|
|
163
|
-
* @param {
|
|
164
|
-
* @param {
|
|
163
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
164
|
+
* @param {LambdaEdgeProps} props lambda@edge properties
|
|
165
165
|
* @param {lambda.ILayerVersion[]} layers
|
|
166
166
|
* @param {lambda.AssetCode} code
|
|
167
167
|
* @param {iam.Role} role
|
|
@@ -172,13 +172,13 @@ class LambdaManager {
|
|
|
172
172
|
* @param {string?} mountPath
|
|
173
173
|
*/
|
|
174
174
|
createEdgeFunction(id, scope, props, layers, code, role, environment, vpc, securityGroups, accessPoint, mountPath) {
|
|
175
|
-
return new
|
|
175
|
+
return new cloudfront_1.CloudFrontManager().createEdgeFunction(id, scope, props, layers, code, role, environment, vpc, securityGroups, accessPoint, mountPath);
|
|
176
176
|
}
|
|
177
177
|
/**
|
|
178
178
|
* @summary Method to create a lambda function (nodejs) with docker image
|
|
179
179
|
* @param {string} id scoped id of the resource
|
|
180
|
-
* @param {
|
|
181
|
-
* @param {
|
|
180
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
181
|
+
* @param {LambdaProps} props
|
|
182
182
|
* @param {iam.Role | iam.CfnRole} role
|
|
183
183
|
* @param {lambda.DockerImageCode} code
|
|
184
184
|
* @param {Map<string, string>?} environment
|
|
@@ -211,7 +211,7 @@ class LambdaManager {
|
|
|
211
211
|
STAGE: scope.props.stage,
|
|
212
212
|
LAST_MODIFIED_TS: props.excludeLastModifiedTimestamp
|
|
213
213
|
? ''
|
|
214
|
-
: scope.ssmManager.readStringParameter(`${id}-sm-ts`, scope, `${
|
|
214
|
+
: scope.ssmManager.readStringParameter(`${id}-sm-ts`, scope, `${systems_manager_1.SsmManager.SECRETS_MODIFIED_TIMESTAMP_PARAM}-${scope.props.stage}`),
|
|
215
215
|
...environment,
|
|
216
216
|
},
|
|
217
217
|
filesystem: accessPoint
|
|
@@ -241,9 +241,9 @@ class LambdaManager {
|
|
|
241
241
|
/**
|
|
242
242
|
* @summary Method to create a lambda function Alias
|
|
243
243
|
* @param {string} id scoped id of the resource
|
|
244
|
-
* @param {
|
|
245
|
-
* @param {
|
|
246
|
-
* @param {
|
|
244
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
245
|
+
* @param {LambdaAliasProps} props
|
|
246
|
+
* @param {IVersion} lambdaVersion
|
|
247
247
|
*/
|
|
248
248
|
createLambdaFunctionAlias(id, scope, props, lambdaVersion) {
|
|
249
249
|
if (!props)
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { AliasProps, FunctionProps } from 'aws-cdk-lib/aws-lambda';
|
|
2
|
+
import { TagProps } from '../../../types';
|
|
3
|
+
import { EdgeFunctionProps } from 'aws-cdk-lib/aws-cloudfront/lib/experimental';
|
|
4
|
+
import { QueueProps } from '../simple-queue-service';
|
|
5
|
+
/**
|
|
6
|
+
* @category cdk-utils.lambda-manager
|
|
7
|
+
* @subcategory Properties
|
|
8
|
+
*/
|
|
9
|
+
export interface ProvisionedConcurrencyProps {
|
|
10
|
+
minCapacity: number;
|
|
11
|
+
maxCapacity: number;
|
|
12
|
+
utilizationTarget: number;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @category cdk-utils.lambda-manager
|
|
16
|
+
* @subcategory Properties
|
|
17
|
+
*/
|
|
18
|
+
export interface LambdaProps extends FunctionProps {
|
|
19
|
+
dlq?: QueueProps;
|
|
20
|
+
redriveq?: QueueProps;
|
|
21
|
+
timeoutInSecs?: number;
|
|
22
|
+
excludeLastModifiedTimestamp?: boolean;
|
|
23
|
+
tags?: TagProps[];
|
|
24
|
+
lambdaAliases?: LambdaAliasProps[];
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @category cdk-utils.lambda-manager
|
|
28
|
+
* @subcategory Properties
|
|
29
|
+
*/
|
|
30
|
+
export interface LambdaAliasProps extends AliasProps {
|
|
31
|
+
id?: string;
|
|
32
|
+
provisionedConcurrency?: ProvisionedConcurrencyProps;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @category cdk-utils.lambda-manager
|
|
36
|
+
* @subcategory Properties
|
|
37
|
+
*/
|
|
38
|
+
export interface LambdaEdgeProps extends EdgeFunctionProps {
|
|
39
|
+
timeoutInSecs?: number;
|
|
40
|
+
tags?: TagProps[];
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @category cdk-utils.lambda-manager
|
|
44
|
+
* @subcategory Types
|
|
45
|
+
*/
|
|
46
|
+
export interface LambdaEnvironment {
|
|
47
|
+
NODE_ENV: string;
|
|
48
|
+
LOG_LEVEL: string;
|
|
49
|
+
REGION?: string;
|
|
50
|
+
STAGE?: string;
|
|
51
|
+
TZ: string;
|
|
52
|
+
}
|