@gradientedge/cdk-utils 8.89.0 → 8.91.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/src/lib/common/construct.d.ts +4 -4
- package/dist/src/lib/common/construct.js +1 -1
- package/dist/src/lib/common/index.d.ts +1 -0
- package/dist/src/lib/common/index.js +1 -0
- package/dist/src/lib/common/stack.d.ts +1 -1
- package/dist/src/lib/common/types.d.ts +22 -0
- package/dist/src/lib/common/types.js +2 -0
- package/dist/src/lib/{helper/api-to-eventbridge-target-rest-api.d.ts → construct/api-to-eventbridge-target/api.d.ts} +2 -2
- package/dist/src/lib/{helper/api-to-eventbridge-target-event.d.ts → construct/api-to-eventbridge-target/event.d.ts} +2 -2
- package/dist/src/lib/construct/api-to-eventbridge-target/index.d.ts +3 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/index.js +3 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts +5 -5
- package/dist/src/lib/construct/api-to-eventbridge-target/main.js +4 -3
- package/dist/src/lib/construct/api-to-eventbridge-target/types.d.ts +112 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/types.js +2 -0
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/api-destined-lambda.d.ts +3 -3
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/index.d.ts +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/index.js +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/main.d.ts +7 -6
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/main.js +3 -3
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/types.d.ts +26 -0
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/types.js +2 -0
- package/dist/src/lib/{helper/api-to-lambda-target-rest-api.d.ts → construct/api-to-lambda-target/api.d.ts} +2 -2
- package/dist/src/lib/construct/api-to-lambda-target/index.d.ts +2 -0
- package/dist/src/lib/construct/api-to-lambda-target/index.js +2 -0
- package/dist/src/lib/construct/api-to-lambda-target/main.d.ts +4 -4
- package/dist/src/lib/construct/api-to-lambda-target/main.js +2 -2
- package/dist/src/lib/construct/api-to-lambda-target/types.d.ts +68 -0
- package/dist/src/lib/construct/api-to-lambda-target/types.js +2 -0
- package/dist/src/lib/construct/graphql-api-lambda/index.d.ts +1 -0
- package/dist/src/lib/construct/graphql-api-lambda/index.js +1 -0
- package/dist/src/lib/construct/graphql-api-lambda/main.d.ts +1 -1
- package/dist/src/lib/construct/graphql-api-lambda/types.d.ts +30 -0
- package/dist/src/lib/construct/graphql-api-lambda/types.js +2 -0
- package/dist/src/lib/construct/graphql-api-lambda-with-cache/index.d.ts +1 -0
- package/dist/src/lib/construct/graphql-api-lambda-with-cache/index.js +1 -0
- package/dist/src/lib/construct/graphql-api-lambda-with-cache/main.d.ts +1 -1
- package/dist/src/lib/construct/graphql-api-lambda-with-cache/types.d.ts +15 -0
- package/dist/src/lib/construct/graphql-api-lambda-with-cache/types.js +2 -0
- package/dist/src/lib/construct/lambda-with-iam-access/types.d.ts +2 -1
- package/dist/src/lib/construct/rest-api-lambda/index.d.ts +1 -0
- package/dist/src/lib/construct/rest-api-lambda/index.js +1 -0
- package/dist/src/lib/construct/rest-api-lambda/main.d.ts +1 -1
- package/dist/src/lib/construct/rest-api-lambda/types.d.ts +27 -0
- package/dist/src/lib/construct/rest-api-lambda/types.js +2 -0
- package/dist/src/lib/construct/rest-api-lambda-with-cache/index.d.ts +1 -0
- package/dist/src/lib/construct/rest-api-lambda-with-cache/index.js +1 -0
- package/dist/src/lib/construct/rest-api-lambda-with-cache/main.d.ts +1 -1
- package/dist/src/lib/construct/rest-api-lambda-with-cache/types.d.ts +14 -0
- package/dist/src/lib/construct/rest-api-lambda-with-cache/types.js +2 -0
- package/dist/src/lib/construct/site-with-ecs-backend/index.d.ts +1 -0
- package/dist/src/lib/construct/site-with-ecs-backend/index.js +1 -0
- package/dist/src/lib/construct/site-with-ecs-backend/main.d.ts +1 -1
- package/dist/src/lib/construct/site-with-ecs-backend/types.d.ts +30 -0
- package/dist/src/lib/construct/site-with-ecs-backend/types.js +2 -0
- package/dist/src/lib/construct/static-asset-deployment/types.d.ts +2 -1
- package/dist/src/lib/construct/static-site/index.d.ts +1 -0
- package/dist/src/lib/construct/static-site/index.js +1 -0
- package/dist/src/lib/construct/static-site/main.d.ts +1 -1
- package/dist/src/lib/construct/static-site/types.d.ts +26 -0
- package/dist/src/lib/construct/static-site/types.js +2 -0
- package/dist/src/lib/index.d.ts +5 -0
- package/dist/src/lib/index.js +21 -0
- package/dist/src/lib/services/aws/api-gateway/index.d.ts +2 -0
- package/dist/src/lib/{helper → services/aws/api-gateway}/index.js +2 -3
- package/dist/src/lib/{manager/aws/api-manager.d.ts → services/aws/api-gateway/main.d.ts} +14 -14
- package/dist/src/lib/{manager/aws/api-manager.js → services/aws/api-gateway/main.js} +13 -10
- package/dist/src/lib/services/aws/api-gateway/types.d.ts +9 -0
- package/dist/src/lib/services/aws/api-gateway/types.js +2 -0
- package/dist/src/lib/services/aws/appconfig/constants.d.ts +18 -0
- package/dist/src/lib/services/aws/appconfig/constants.js +60 -0
- package/dist/src/lib/services/aws/appconfig/index.d.ts +3 -0
- package/dist/src/lib/services/aws/appconfig/index.js +19 -0
- package/dist/src/lib/{manager/aws/app-config-manager.d.ts → services/aws/appconfig/main.d.ts} +18 -18
- package/dist/src/lib/services/aws/appconfig/main.js +135 -0
- package/dist/src/lib/services/aws/appconfig/types.d.ts +13 -0
- package/dist/src/lib/services/aws/appconfig/types.js +2 -0
- package/dist/src/lib/services/aws/certificate-manager/index.d.ts +2 -0
- package/dist/src/lib/services/aws/certificate-manager/index.js +18 -0
- package/dist/src/lib/{manager/aws/acm-manager.d.ts → services/aws/certificate-manager/main.d.ts} +7 -7
- package/dist/src/lib/{manager/aws/acm-manager.js → services/aws/certificate-manager/main.js} +5 -5
- package/dist/src/lib/services/aws/certificate-manager/types.d.ts +13 -0
- package/dist/src/lib/services/aws/certificate-manager/types.js +2 -0
- package/dist/src/lib/services/aws/cloudfront/index.d.ts +2 -0
- package/dist/src/lib/services/aws/cloudfront/index.js +18 -0
- package/dist/src/lib/{manager/aws/cloudfront-manager.d.ts → services/aws/cloudfront/main.d.ts} +24 -23
- package/dist/src/lib/{manager/aws/cloudfront-manager.js → services/aws/cloudfront/main.js} +16 -16
- package/dist/src/lib/services/aws/cloudfront/types.d.ts +25 -0
- package/dist/src/lib/services/aws/cloudfront/types.js +2 -0
- package/dist/src/lib/services/aws/cloudtrail/index.d.ts +2 -0
- package/dist/src/lib/services/aws/cloudtrail/index.js +18 -0
- package/dist/src/lib/{manager/aws/cloudtrail-manager.d.ts → services/aws/cloudtrail/main.d.ts} +9 -9
- package/dist/src/lib/{manager/aws/cloudtrail-manager.js → services/aws/cloudtrail/main.js} +7 -7
- package/dist/src/lib/services/aws/cloudtrail/types.d.ts +7 -0
- package/dist/src/lib/services/aws/cloudtrail/types.js +2 -0
- package/dist/src/lib/services/aws/cloudwatch/index.d.ts +3 -0
- package/dist/src/lib/services/aws/cloudwatch/index.js +19 -0
- package/dist/src/lib/{manager/aws/log-manager.d.ts → services/aws/cloudwatch/logs.d.ts} +15 -15
- package/dist/src/lib/{manager/aws/log-manager.js → services/aws/cloudwatch/logs.js} +11 -11
- package/dist/src/lib/services/aws/cloudwatch/main.d.ts +211 -0
- package/dist/src/lib/{manager/aws/cloudwatch-manager.js → services/aws/cloudwatch/main.js} +48 -48
- package/dist/src/lib/services/aws/cloudwatch/types.d.ts +111 -0
- package/dist/src/lib/services/aws/cloudwatch/types.js +2 -0
- package/dist/src/lib/services/aws/codebuild/index.d.ts +1 -0
- package/dist/src/lib/services/aws/codebuild/index.js +17 -0
- package/dist/src/lib/{manager/aws/codebuild-manager.d.ts → services/aws/codebuild/main.d.ts} +7 -7
- package/dist/src/lib/{manager/aws/codebuild-manager.js → services/aws/codebuild/main.js} +4 -4
- package/dist/src/lib/services/aws/dynamodb/index.d.ts +2 -0
- package/dist/src/lib/services/aws/dynamodb/index.js +18 -0
- package/dist/src/lib/{manager/aws/dynamodb-manager.d.ts → services/aws/dynamodb/main.d.ts} +7 -7
- package/dist/src/lib/{manager/aws/dynamodb-manager.js → services/aws/dynamodb/main.js} +5 -5
- package/dist/src/lib/services/aws/dynamodb/types.d.ts +9 -0
- package/dist/src/lib/services/aws/dynamodb/types.js +2 -0
- package/dist/src/lib/services/aws/elastic-container-registry/index.d.ts +1 -0
- package/dist/src/lib/services/aws/elastic-container-registry/index.js +17 -0
- package/dist/src/lib/{manager/aws/ecr-manager.d.ts → services/aws/elastic-container-registry/main.d.ts} +7 -7
- package/dist/src/lib/{manager/aws/ecr-manager.js → services/aws/elastic-container-registry/main.js} +6 -6
- package/dist/src/lib/services/aws/elastic-container-service/index.d.ts +2 -0
- package/dist/src/lib/services/aws/elastic-container-service/index.js +18 -0
- package/dist/src/lib/{manager/aws/ecs-manager.d.ts → services/aws/elastic-container-service/main.d.ts} +15 -15
- package/dist/src/lib/{manager/aws/ecs-manager.js → services/aws/elastic-container-service/main.js} +11 -11
- package/dist/src/lib/services/aws/elastic-container-service/types.d.ts +46 -0
- package/dist/src/lib/services/aws/elastic-container-service/types.js +2 -0
- package/dist/src/lib/services/aws/elastic-file-system/index.d.ts +2 -0
- package/dist/src/lib/services/aws/elastic-file-system/index.js +18 -0
- package/dist/src/lib/{manager/aws/efs-manager.d.ts → services/aws/elastic-file-system/main.d.ts} +10 -10
- package/dist/src/lib/{manager/aws/efs-manager.js → services/aws/elastic-file-system/main.js} +8 -8
- package/dist/src/lib/services/aws/elastic-file-system/types.d.ts +19 -0
- package/dist/src/lib/services/aws/elastic-file-system/types.js +2 -0
- package/dist/src/lib/services/aws/elastic-kubernetes-service/index.d.ts +2 -0
- package/dist/src/lib/services/aws/elastic-kubernetes-service/index.js +18 -0
- package/dist/src/lib/{manager/aws/eks-manager.d.ts → services/aws/elastic-kubernetes-service/main.d.ts} +9 -9
- package/dist/src/lib/{manager/aws/eks-manager.js → services/aws/elastic-kubernetes-service/main.js} +7 -7
- package/dist/src/lib/services/aws/elastic-kubernetes-service/types.d.ts +9 -0
- package/dist/src/lib/services/aws/elastic-kubernetes-service/types.js +2 -0
- package/dist/src/lib/services/aws/elasticache/index.d.ts +2 -0
- package/dist/src/lib/services/aws/elasticache/index.js +18 -0
- package/dist/src/lib/services/aws/elasticache/main.d.ts +51 -0
- package/dist/src/lib/{manager/aws/elasticache-manager.js → services/aws/elasticache/main.js} +11 -12
- package/dist/src/lib/services/aws/elasticache/types.d.ts +13 -0
- package/dist/src/lib/services/aws/elasticache/types.js +2 -0
- package/dist/src/lib/services/aws/eventbridge/index.d.ts +3 -0
- package/dist/src/lib/services/aws/eventbridge/index.js +19 -0
- package/dist/src/lib/{manager/aws/event-manager.d.ts → services/aws/eventbridge/main.d.ts} +20 -20
- package/dist/src/lib/{manager/aws/event-manager.js → services/aws/eventbridge/main.js} +21 -15
- package/dist/src/lib/{manager/aws/event-target-manager.d.ts → services/aws/eventbridge/target.d.ts} +7 -7
- package/dist/src/lib/{manager/aws/event-target-manager.js → services/aws/eventbridge/target.js} +5 -5
- package/dist/src/lib/services/aws/eventbridge/types.d.ts +35 -0
- package/dist/src/lib/services/aws/eventbridge/types.js +2 -0
- package/dist/src/lib/services/aws/evidently/index.d.ts +2 -0
- package/dist/src/lib/services/aws/evidently/index.js +18 -0
- package/dist/src/lib/{manager/aws/evidently-manager.d.ts → services/aws/evidently/main.d.ts} +16 -16
- package/dist/src/lib/{manager/aws/evidently-manager.js → services/aws/evidently/main.js} +10 -10
- package/dist/src/lib/services/aws/evidently/types.d.ts +31 -0
- package/dist/src/lib/services/aws/evidently/types.js +2 -0
- package/dist/src/lib/services/aws/identity-access-management/index.d.ts +1 -0
- package/dist/src/lib/services/aws/identity-access-management/index.js +17 -0
- package/dist/src/lib/{manager/aws/iam-manager.d.ts → services/aws/identity-access-management/main.d.ts} +39 -40
- package/dist/src/lib/{manager/aws/iam-manager.js → services/aws/identity-access-management/main.js} +22 -23
- package/dist/src/lib/services/aws/index.d.ts +28 -0
- package/dist/src/lib/services/aws/index.js +44 -0
- package/dist/src/lib/services/aws/key-management-service/index.d.ts +2 -0
- package/dist/src/lib/services/aws/key-management-service/index.js +18 -0
- package/dist/src/lib/{manager/aws/kms-manager.d.ts → services/aws/key-management-service/main.d.ts} +7 -7
- package/dist/src/lib/{manager/aws/kms-manager.js → services/aws/key-management-service/main.js} +5 -5
- package/dist/src/lib/services/aws/key-management-service/types.d.ts +7 -0
- package/dist/src/lib/services/aws/key-management-service/types.js +2 -0
- package/dist/src/lib/services/aws/lambda/index.d.ts +2 -0
- package/dist/src/lib/services/aws/lambda/index.js +18 -0
- package/dist/src/lib/{manager/aws/lambda-manager.d.ts → services/aws/lambda/main.d.ts} +22 -21
- package/dist/src/lib/{manager/aws/lambda-manager.js → services/aws/lambda/main.js} +21 -21
- package/dist/src/lib/services/aws/lambda/types.d.ts +52 -0
- package/dist/src/lib/services/aws/lambda/types.js +2 -0
- package/dist/src/lib/services/aws/route53/index.d.ts +2 -0
- package/dist/src/lib/services/aws/route53/index.js +18 -0
- package/dist/src/lib/{manager/aws/route53-manager.d.ts → services/aws/route53/main.d.ts} +17 -17
- package/dist/src/lib/{manager/aws/route53-manager.js → services/aws/route53/main.js} +11 -11
- package/dist/src/lib/services/aws/route53/types.d.ts +8 -0
- package/dist/src/lib/services/aws/route53/types.js +2 -0
- package/dist/src/lib/services/aws/secrets-manager/index.d.ts +1 -0
- package/dist/src/lib/services/aws/secrets-manager/index.js +17 -0
- package/dist/src/lib/{manager/aws/secrets-manager.d.ts → services/aws/secrets-manager/main.d.ts} +8 -8
- package/dist/src/lib/{manager/aws/secrets-manager.js → services/aws/secrets-manager/main.js} +6 -6
- package/dist/src/lib/services/aws/simple-notification-service/index.d.ts +2 -0
- package/dist/src/lib/services/aws/simple-notification-service/index.js +18 -0
- package/dist/src/lib/{manager/aws/sns-manager.d.ts → services/aws/simple-notification-service/main.d.ts} +13 -13
- package/dist/src/lib/{manager/aws/sns-manager.js → services/aws/simple-notification-service/main.js} +10 -10
- package/dist/src/lib/services/aws/simple-notification-service/types.d.ts +7 -0
- package/dist/src/lib/services/aws/simple-notification-service/types.js +2 -0
- package/dist/src/lib/services/aws/simple-queue-service/index.d.ts +2 -0
- package/dist/src/lib/services/aws/simple-queue-service/index.js +18 -0
- package/dist/src/lib/services/aws/simple-queue-service/main.d.ts +50 -0
- package/dist/src/lib/{manager/aws/sqs-manager.js → services/aws/simple-queue-service/main.js} +11 -11
- package/dist/src/lib/services/aws/simple-queue-service/types.d.ts +17 -0
- package/dist/src/lib/services/aws/simple-queue-service/types.js +2 -0
- package/dist/src/lib/services/aws/simple-storage-service/index.d.ts +2 -0
- package/dist/src/lib/services/aws/simple-storage-service/index.js +18 -0
- package/dist/src/lib/{manager/aws/s3-manager.d.ts → services/aws/simple-storage-service/main.d.ts} +23 -23
- package/dist/src/lib/{manager/aws/s3-manager.js → services/aws/simple-storage-service/main.js} +15 -16
- package/dist/src/lib/services/aws/simple-storage-service/types.d.ts +31 -0
- package/dist/src/lib/services/aws/simple-storage-service/types.js +2 -0
- package/dist/src/lib/services/aws/step-function/index.d.ts +2 -0
- package/dist/src/lib/services/aws/step-function/index.js +18 -0
- package/dist/src/lib/services/aws/step-function/main.d.ts +157 -0
- package/dist/src/lib/{manager/aws/sfn-manager.js → services/aws/step-function/main.js} +35 -35
- package/dist/src/lib/services/aws/step-function/types.d.ts +120 -0
- package/dist/src/lib/services/aws/step-function/types.js +2 -0
- package/dist/src/lib/services/aws/systems-manager/index.d.ts +2 -0
- package/dist/src/lib/services/aws/systems-manager/index.js +18 -0
- package/dist/src/lib/{manager/aws/ssm-manager.d.ts → services/aws/systems-manager/main.d.ts} +13 -13
- package/dist/src/lib/{manager/aws/ssm-manager.js → services/aws/systems-manager/main.js} +8 -8
- package/dist/src/lib/services/aws/systems-manager/types.d.ts +8 -0
- package/dist/src/lib/services/aws/systems-manager/types.js +2 -0
- package/dist/src/lib/services/aws/virtual-private-cloud/index.d.ts +1 -0
- package/dist/src/lib/services/aws/virtual-private-cloud/index.js +17 -0
- package/dist/src/lib/{manager/aws/vpc-manager.d.ts → services/aws/virtual-private-cloud/main.d.ts} +11 -11
- package/dist/src/lib/{manager/aws/vpc-manager.js → services/aws/virtual-private-cloud/main.js} +8 -8
- package/dist/src/lib/services/aws/web-application-firewall/index.d.ts +2 -0
- package/dist/src/lib/services/aws/web-application-firewall/index.js +18 -0
- package/dist/src/lib/services/aws/web-application-firewall/main.d.ts +39 -0
- package/dist/src/lib/{manager/aws/waf-manager.js → services/aws/web-application-firewall/main.js} +9 -9
- package/dist/src/lib/services/aws/web-application-firewall/types.d.ts +13 -0
- package/dist/src/lib/services/aws/web-application-firewall/types.js +2 -0
- package/dist/src/lib/types/aws/index.d.ts +0 -921
- package/index.ts +1 -1
- package/package.json +5 -5
- package/src/lib/common/construct.ts +4 -4
- package/src/lib/common/index.ts +1 -0
- package/src/lib/common/stack.ts +1 -1
- package/src/lib/common/types.ts +23 -0
- package/src/lib/{helper/api-to-eventbridge-target-rest-api.ts → construct/api-to-eventbridge-target/api.ts} +2 -2
- package/src/lib/{helper/api-to-eventbridge-target-event.ts → construct/api-to-eventbridge-target/event.ts} +2 -2
- package/src/lib/construct/api-to-eventbridge-target/index.ts +3 -0
- package/src/lib/construct/api-to-eventbridge-target/main.ts +13 -8
- package/src/lib/construct/api-to-eventbridge-target/types.ts +126 -0
- package/src/lib/construct/api-to-eventbridge-target-with-sns/api-destined-lambda.ts +3 -3
- package/src/lib/construct/api-to-eventbridge-target-with-sns/index.ts +1 -0
- package/src/lib/construct/api-to-eventbridge-target-with-sns/main.ts +15 -9
- package/src/lib/construct/api-to-eventbridge-target-with-sns/types.ts +28 -0
- package/src/lib/{helper/api-to-lambda-target-rest-api.ts → construct/api-to-lambda-target/api.ts} +2 -2
- package/src/lib/construct/api-to-lambda-target/index.ts +2 -0
- package/src/lib/construct/api-to-lambda-target/main.ts +6 -6
- package/src/lib/construct/api-to-lambda-target/types.ts +78 -0
- package/src/lib/construct/graphql-api-lambda/index.ts +1 -0
- package/src/lib/construct/graphql-api-lambda/main.ts +1 -1
- package/src/lib/construct/graphql-api-lambda/types.ts +31 -0
- package/src/lib/construct/graphql-api-lambda-with-cache/index.ts +1 -0
- package/src/lib/construct/graphql-api-lambda-with-cache/main.ts +1 -1
- package/src/lib/construct/graphql-api-lambda-with-cache/types.ts +16 -0
- package/src/lib/construct/lambda-with-iam-access/types.ts +2 -1
- package/src/lib/construct/rest-api-lambda/index.ts +1 -0
- package/src/lib/construct/rest-api-lambda/main.ts +1 -1
- package/src/lib/construct/rest-api-lambda/types.ts +28 -0
- package/src/lib/construct/rest-api-lambda-with-cache/index.ts +1 -0
- package/src/lib/construct/rest-api-lambda-with-cache/main.ts +1 -1
- package/src/lib/construct/rest-api-lambda-with-cache/types.ts +15 -0
- package/src/lib/construct/site-with-ecs-backend/index.ts +1 -0
- package/src/lib/construct/site-with-ecs-backend/main.ts +1 -1
- package/src/lib/construct/site-with-ecs-backend/types.ts +42 -0
- package/src/lib/construct/static-asset-deployment/types.ts +2 -1
- package/src/lib/construct/static-site/index.ts +1 -0
- package/src/lib/construct/static-site/main.ts +1 -1
- package/src/lib/construct/static-site/types.ts +27 -0
- package/src/lib/index.ts +5 -0
- package/src/lib/services/aws/api-gateway/index.ts +2 -0
- package/src/lib/{manager/aws/api-manager.ts → services/aws/api-gateway/main.ts} +20 -17
- package/src/lib/services/aws/api-gateway/types.ts +10 -0
- package/src/lib/services/aws/appconfig/constants.ts +58 -0
- package/src/lib/services/aws/appconfig/index.ts +3 -0
- package/src/lib/services/aws/appconfig/main.ts +130 -0
- package/src/lib/services/aws/appconfig/types.ts +20 -0
- package/src/lib/services/aws/certificate-manager/index.ts +2 -0
- package/src/lib/{manager/aws/acm-manager.ts → services/aws/certificate-manager/main.ts} +9 -9
- package/src/lib/services/aws/certificate-manager/types.ts +14 -0
- package/src/lib/services/aws/cloudfront/index.ts +2 -0
- package/src/lib/{manager/aws/cloudfront-manager.ts → services/aws/cloudfront/main.ts} +29 -29
- package/src/lib/services/aws/cloudfront/types.ts +28 -0
- package/src/lib/services/aws/cloudtrail/index.ts +2 -0
- package/src/lib/{manager/aws/cloudtrail-manager.ts → services/aws/cloudtrail/main.ts} +11 -11
- package/src/lib/services/aws/cloudtrail/types.ts +7 -0
- package/src/lib/services/aws/cloudwatch/index.ts +3 -0
- package/src/lib/{manager/aws/log-manager.ts → services/aws/cloudwatch/logs.ts} +16 -21
- package/src/lib/{manager/aws/cloudwatch-manager.ts → services/aws/cloudwatch/main.ts} +86 -112
- package/src/lib/services/aws/cloudwatch/types.ts +121 -0
- package/src/lib/services/aws/codebuild/index.ts +1 -0
- package/src/lib/{manager/aws/codebuild-manager.ts → services/aws/codebuild/main.ts} +7 -7
- package/src/lib/services/aws/dynamodb/index.ts +2 -0
- package/src/lib/{manager/aws/dynamodb-manager.ts → services/aws/dynamodb/main.ts} +8 -8
- package/src/lib/services/aws/dynamodb/types.ts +10 -0
- package/src/lib/services/aws/elastic-container-registry/index.ts +1 -0
- package/src/lib/{manager/aws/ecr-manager.ts → services/aws/elastic-container-registry/main.ts} +8 -8
- package/src/lib/services/aws/elastic-container-service/index.ts +2 -0
- package/src/lib/{manager/aws/ecs-manager.ts → services/aws/elastic-container-service/main.ts} +18 -18
- package/src/lib/services/aws/elastic-container-service/types.ts +51 -0
- package/src/lib/services/aws/elastic-file-system/index.ts +2 -0
- package/src/lib/{manager/aws/efs-manager.ts → services/aws/elastic-file-system/main.ts} +13 -13
- package/src/lib/services/aws/elastic-file-system/types.ts +20 -0
- package/src/lib/services/aws/elastic-kubernetes-service/index.ts +2 -0
- package/src/lib/{manager/aws/eks-manager.ts → services/aws/elastic-kubernetes-service/main.ts} +11 -11
- package/src/lib/services/aws/elastic-kubernetes-service/types.ts +10 -0
- package/src/lib/services/aws/elasticache/index.ts +2 -0
- package/src/lib/{manager/aws/elasticache-manager.ts → services/aws/elasticache/main.ts} +18 -20
- package/src/lib/services/aws/elasticache/types.ts +13 -0
- package/src/lib/services/aws/eventbridge/index.ts +3 -0
- package/src/lib/{manager/aws/event-manager.ts → services/aws/eventbridge/main.ts} +32 -26
- package/src/lib/{manager/aws/event-target-manager.ts → services/aws/eventbridge/target.ts} +7 -7
- package/src/lib/services/aws/eventbridge/types.ts +38 -0
- package/src/lib/services/aws/evidently/index.ts +2 -0
- package/src/lib/{manager/aws/evidently-manager.ts → services/aws/evidently/main.ts} +23 -18
- package/src/lib/services/aws/evidently/types.ts +37 -0
- package/src/lib/services/aws/identity-access-management/index.ts +1 -0
- package/src/lib/{manager/aws/iam-manager.ts → services/aws/identity-access-management/main.ts} +40 -51
- package/src/lib/services/aws/index.ts +28 -0
- package/src/lib/services/aws/key-management-service/index.ts +2 -0
- package/src/lib/{manager/aws/kms-manager.ts → services/aws/key-management-service/main.ts} +8 -8
- package/src/lib/services/aws/key-management-service/types.ts +7 -0
- package/src/lib/services/aws/lambda/index.ts +2 -0
- package/src/lib/{manager/aws/lambda-manager.ts → services/aws/lambda/main.ts} +30 -30
- package/src/lib/services/aws/lambda/types.ts +57 -0
- package/src/lib/services/aws/route53/index.ts +2 -0
- package/src/lib/{manager/aws/route53-manager.ts → services/aws/route53/main.ts} +18 -18
- package/src/lib/services/aws/route53/types.ts +9 -0
- package/src/lib/services/aws/secrets-manager/index.ts +1 -0
- package/src/lib/{manager/aws/secrets-manager.ts → services/aws/secrets-manager/main.ts} +9 -14
- package/src/lib/services/aws/simple-notification-service/index.ts +2 -0
- package/src/lib/{manager/aws/sns-manager.ts → services/aws/simple-notification-service/main.ts} +16 -16
- package/src/lib/services/aws/simple-notification-service/types.ts +7 -0
- package/src/lib/services/aws/simple-queue-service/index.ts +2 -0
- package/src/lib/{manager/aws/sqs-manager.ts → services/aws/simple-queue-service/main.ts} +18 -17
- package/src/lib/services/aws/simple-queue-service/types.ts +18 -0
- package/src/lib/services/aws/simple-storage-service/index.ts +2 -0
- package/src/lib/{manager/aws/s3-manager.ts → services/aws/simple-storage-service/main.ts} +26 -27
- package/src/lib/services/aws/simple-storage-service/types.ts +34 -0
- package/src/lib/services/aws/step-function/index.ts +2 -0
- package/src/lib/{manager/aws/sfn-manager.ts → services/aws/step-function/main.ts} +76 -61
- package/src/lib/services/aws/step-function/types.ts +152 -0
- package/src/lib/services/aws/systems-manager/index.ts +2 -0
- package/src/lib/{manager/aws/ssm-manager.ts → services/aws/systems-manager/main.ts} +15 -19
- package/src/lib/services/aws/systems-manager/types.ts +8 -0
- package/src/lib/services/aws/virtual-private-cloud/index.ts +1 -0
- package/src/lib/{manager/aws/vpc-manager.ts → services/aws/virtual-private-cloud/main.ts} +12 -12
- package/src/lib/services/aws/web-application-firewall/index.ts +2 -0
- package/src/lib/{manager/aws/waf-manager.ts → services/aws/web-application-firewall/main.ts} +13 -13
- package/src/lib/services/aws/web-application-firewall/types.ts +13 -0
- package/src/lib/types/aws/index.ts +0 -984
- package/dist/src/lib/helper/index.d.ts +0 -3
- package/dist/src/lib/manager/aws/app-config-manager.js +0 -191
- package/dist/src/lib/manager/aws/cloudwatch-manager.d.ts +0 -211
- package/dist/src/lib/manager/aws/elasticache-manager.d.ts +0 -52
- package/dist/src/lib/manager/aws/index.d.ts +0 -30
- package/dist/src/lib/manager/aws/index.js +0 -46
- package/dist/src/lib/manager/aws/sfn-manager.d.ts +0 -157
- package/dist/src/lib/manager/aws/sqs-manager.d.ts +0 -49
- package/dist/src/lib/manager/aws/waf-manager.d.ts +0 -39
- package/src/lib/helper/index.ts +0 -3
- package/src/lib/manager/aws/app-config-manager.ts +0 -192
- package/src/lib/manager/aws/index.ts +0 -30
- /package/dist/src/lib/{helper/api-to-eventbridge-target-rest-api.js → construct/api-to-eventbridge-target/api.js} +0 -0
- /package/dist/src/lib/{helper/api-to-eventbridge-target-event.js → construct/api-to-eventbridge-target/event.js} +0 -0
- /package/dist/src/lib/{helper/api-to-lambda-target-rest-api.js → construct/api-to-lambda-target/api.js} +0 -0
- /package/dist/src/lib/{manager → services}/aws/constants.d.ts +0 -0
- /package/dist/src/lib/{manager → services}/aws/constants.js +0 -0
- /package/dist/src/lib/{manager → services}/index.d.ts +0 -0
- /package/dist/src/lib/{manager → services}/index.js +0 -0
- /package/src/lib/{manager → services}/aws/constants.ts +0 -0
- /package/src/lib/{manager → services}/index.ts +0 -0
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import * as cdk from 'aws-cdk-lib';
|
|
2
|
-
import * as apig from 'aws-cdk-lib/aws-apigateway';
|
|
3
|
-
import * as dynamodb from 'aws-cdk-lib/aws-dynamodb';
|
|
4
|
-
import * as iam from 'aws-cdk-lib/aws-iam';
|
|
5
|
-
import * as lambda from 'aws-cdk-lib/aws-lambda';
|
|
6
|
-
import * as logs from 'aws-cdk-lib/aws-logs';
|
|
7
|
-
import * as sqs from 'aws-cdk-lib/aws-sqs';
|
|
8
|
-
import * as sfn from 'aws-cdk-lib/aws-stepfunctions';
|
|
9
|
-
import * as tasks from 'aws-cdk-lib/aws-stepfunctions-tasks';
|
|
10
|
-
import * as common from '../../common';
|
|
11
|
-
import * as types from '../../types';
|
|
12
|
-
/**
|
|
13
|
-
* @stability stable
|
|
14
|
-
* @category cdk-utils.step-functions-manager
|
|
15
|
-
* @subcategory Construct
|
|
16
|
-
* @classdesc Provides operations on AWS Step Functions Service.
|
|
17
|
-
* - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
|
|
18
|
-
* - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
|
|
19
|
-
* @example
|
|
20
|
-
* import * as common from '@gradientedge/cdk-utils'
|
|
21
|
-
*
|
|
22
|
-
* class CustomConstruct extends common.common.CommonConstruct {
|
|
23
|
-
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
24
|
-
* super(parent, id, props)
|
|
25
|
-
* this.props = props
|
|
26
|
-
* this.sfnManager.createSuccessStep('MyStep', this, myStepProps)
|
|
27
|
-
* }
|
|
28
|
-
* }
|
|
29
|
-
*
|
|
30
|
-
* @see [CDK Step Functions Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions-readme.html}
|
|
31
|
-
*/
|
|
32
|
-
export declare class SfnManager {
|
|
33
|
-
/**
|
|
34
|
-
* @summary Method to create a success step
|
|
35
|
-
* @param {string} id scoped id of the resource
|
|
36
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
37
|
-
* @param {types.SfnSucceedProps} props
|
|
38
|
-
*/
|
|
39
|
-
createSuccessStep(id: string, scope: common.CommonConstruct, props: types.SfnSucceedProps): cdk.aws_stepfunctions.Succeed;
|
|
40
|
-
/**
|
|
41
|
-
* @summary Method to create a failure step
|
|
42
|
-
* @param {string} id scoped id of the resource
|
|
43
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
44
|
-
* @param {types.SfnFailProps} props
|
|
45
|
-
*/
|
|
46
|
-
createFailStep(id: string, scope: common.CommonConstruct, props: types.SfnFailProps): cdk.aws_stepfunctions.Fail;
|
|
47
|
-
/**
|
|
48
|
-
* @summary Method to create a pass step
|
|
49
|
-
* @param {string} id scoped id of the resource
|
|
50
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
51
|
-
* @param {types.SfnPassProps} props
|
|
52
|
-
*/
|
|
53
|
-
createPassStep(id: string, scope: common.CommonConstruct, props: types.SfnPassProps): cdk.aws_stepfunctions.Pass;
|
|
54
|
-
/**
|
|
55
|
-
* @summary Method to create a parallel step
|
|
56
|
-
* @param {string} id scoped id of the resource
|
|
57
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
58
|
-
* @param {types.SfnParallelProps} props
|
|
59
|
-
*/
|
|
60
|
-
createParallelStep(id: string, scope: common.CommonConstruct, props: types.SfnParallelProps): cdk.aws_stepfunctions.Parallel;
|
|
61
|
-
/**
|
|
62
|
-
* @summary Method to create a choice step
|
|
63
|
-
* @param {string} id scoped id of the resource
|
|
64
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
65
|
-
* @param {types.SfnChoiceProps} props
|
|
66
|
-
*/
|
|
67
|
-
createChoiceStep(id: string, scope: common.CommonConstruct, props: types.SfnChoiceProps): cdk.aws_stepfunctions.Choice;
|
|
68
|
-
/**
|
|
69
|
-
* @summary Method to create a wait step
|
|
70
|
-
* @param {string} id scoped id of the resource
|
|
71
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
72
|
-
* @param {types.SfnWaitProps} props
|
|
73
|
-
*/
|
|
74
|
-
createWaitStep(id: string, scope: common.CommonConstruct, props: types.SfnWaitProps): cdk.aws_stepfunctions.Wait;
|
|
75
|
-
/**
|
|
76
|
-
* @summary Method to create a DynamoDB get item step
|
|
77
|
-
* @param {string} id scoped id of the resource
|
|
78
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
79
|
-
* @param {types.SfnDynamoGetItemProps} props
|
|
80
|
-
* @param {dynamodb.ITable} table The table to get the item from
|
|
81
|
-
* @param tableKey The table key for query/scan
|
|
82
|
-
*/
|
|
83
|
-
createDynamoDbGetItemStep(id: string, scope: common.CommonConstruct, props: types.SfnDynamoGetItemProps, table: dynamodb.ITable, tableKey: {
|
|
84
|
-
[key: string]: tasks.DynamoAttributeValue;
|
|
85
|
-
}): cdk.aws_stepfunctions_tasks.DynamoGetItem;
|
|
86
|
-
/**
|
|
87
|
-
* @summary Method to create a DynamoDB put item step
|
|
88
|
-
* @param {string} id scoped id of the resource
|
|
89
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
90
|
-
* @param {types.SfnDynamoPutItemProps} props
|
|
91
|
-
* @param {dynamodb.ITable} table The table to put the item in
|
|
92
|
-
* @param tableItem The item to add to the table
|
|
93
|
-
*/
|
|
94
|
-
createDynamoDbPutItemStep(id: string, scope: common.CommonConstruct, props: types.SfnDynamoPutItemProps, table: dynamodb.ITable, tableItem: {
|
|
95
|
-
[key: string]: tasks.DynamoAttributeValue;
|
|
96
|
-
}): cdk.aws_stepfunctions_tasks.DynamoPutItem;
|
|
97
|
-
/**
|
|
98
|
-
* @summary Method to create a DynamoDB delete item step
|
|
99
|
-
* @param {string} id scoped id of the resource
|
|
100
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
101
|
-
* @param {types.SfnDynamoDeleteItemProps} props
|
|
102
|
-
* @param {dynamodb.ITable} table The table to put the item in
|
|
103
|
-
* @param tableKey The table key for query/scan
|
|
104
|
-
*/
|
|
105
|
-
createDynamoDbDeleteItemStep(id: string, scope: common.CommonConstruct, props: types.SfnDynamoDeleteItemProps, table: dynamodb.ITable, tableKey: {
|
|
106
|
-
[key: string]: tasks.DynamoAttributeValue;
|
|
107
|
-
}): cdk.aws_stepfunctions_tasks.DynamoDeleteItem;
|
|
108
|
-
/**
|
|
109
|
-
* @summary Method to send a message to SQS step
|
|
110
|
-
* @param {string} id scoped id of the resource
|
|
111
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
112
|
-
* @param {types.SfnSqsSendMessageProps} props
|
|
113
|
-
* @param {sqs.IQueue} queue The queue to send the message to
|
|
114
|
-
*/
|
|
115
|
-
createSendSqsMessageStep(id: string, scope: common.CommonConstruct, props: types.SfnSqsSendMessageProps, queue: sqs.IQueue): cdk.aws_stepfunctions_tasks.SqsSendMessage;
|
|
116
|
-
/**
|
|
117
|
-
* @summary Method to create a lambda invoke step
|
|
118
|
-
* @param {string} id scoped id of the resource
|
|
119
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
120
|
-
* @param {types.SfnLambdaInvokeProps} props
|
|
121
|
-
* @param {lambda.IFunction} lambdaFunction
|
|
122
|
-
*/
|
|
123
|
-
createLambdaStep(id: string, scope: common.CommonConstruct, props: types.SfnLambdaInvokeProps, lambdaFunction: lambda.IFunction): cdk.aws_stepfunctions_tasks.LambdaInvoke;
|
|
124
|
-
/**
|
|
125
|
-
* @summary Method to create a API Gateway invoke step
|
|
126
|
-
* @param {string} id scoped id of the resource
|
|
127
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
128
|
-
* @param {types.SfnLambdaInvokeProps} props
|
|
129
|
-
* @param {apig.IRestApi} api
|
|
130
|
-
*/
|
|
131
|
-
createApiStep(id: string, scope: common.CommonConstruct, props: types.SfnCallApiGatewayRestApiEndpointProps, api: apig.IRestApi): cdk.aws_stepfunctions_tasks.CallApiGatewayRestApiEndpoint;
|
|
132
|
-
/**
|
|
133
|
-
* @summary Method to create a step function execution step
|
|
134
|
-
* @param {string} id scoped id of the resource
|
|
135
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
136
|
-
* @param {types.SfnStartExecutionProps} props props for the step
|
|
137
|
-
* @param {sfn.IStateMachine} stateMachine the state machine to execute
|
|
138
|
-
*/
|
|
139
|
-
createSfnExecutionStep(id: string, scope: common.CommonConstruct, props: types.SfnStartExecutionProps, stateMachine: sfn.IStateMachine): cdk.aws_stepfunctions_tasks.StepFunctionsStartExecution;
|
|
140
|
-
/**
|
|
141
|
-
* @summary Method to create a step function map state
|
|
142
|
-
* @param {string} id scoped id of the resource
|
|
143
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
144
|
-
* @param {types.SfnMapProps} props props for the map state
|
|
145
|
-
*/
|
|
146
|
-
createMapState(id: string, scope: common.CommonConstruct, props: types.SfnMapProps): cdk.aws_stepfunctions.Map;
|
|
147
|
-
/**
|
|
148
|
-
* @summary Method to create a state machine
|
|
149
|
-
* @param {string} id scoped id of the resource
|
|
150
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
151
|
-
* @param {types.SfnStateMachineProps} props
|
|
152
|
-
* @param {sfn.IChainable} definition
|
|
153
|
-
* @param {logs.ILogGroup} logGroup
|
|
154
|
-
* @param {iam.IRole} role
|
|
155
|
-
*/
|
|
156
|
-
createStateMachine(id: string, scope: common.CommonConstruct, props: types.SfnStateMachineProps, definition: sfn.IChainable, logGroup: logs.ILogGroup, role?: iam.IRole): cdk.aws_stepfunctions.StateMachine;
|
|
157
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import * as cdk from 'aws-cdk-lib';
|
|
2
|
-
import * as sqs from 'aws-cdk-lib/aws-sqs';
|
|
3
|
-
import * as common from '../../common';
|
|
4
|
-
import * as types from '../../types';
|
|
5
|
-
/**
|
|
6
|
-
* @stability stable
|
|
7
|
-
* @category cdk-utils.sqs-manager
|
|
8
|
-
* @subcategory Construct
|
|
9
|
-
* @classdesc Provides operations on AWS Simple Queue Service.
|
|
10
|
-
* - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
|
|
11
|
-
* - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
|
|
12
|
-
* @example
|
|
13
|
-
* import * as common from '@gradientedge/cdk-utils'
|
|
14
|
-
*
|
|
15
|
-
* class CustomConstruct extends common.common.CommonConstruct {
|
|
16
|
-
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
17
|
-
* super(parent, id, props)
|
|
18
|
-
* this.props = props
|
|
19
|
-
* this.sqsManager.createQueue('MySqs', this, {...})
|
|
20
|
-
* }
|
|
21
|
-
* }
|
|
22
|
-
*
|
|
23
|
-
* @see [CDK Simple Queue Service Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sqs-readme.html}
|
|
24
|
-
*/
|
|
25
|
-
export declare class SqsManager {
|
|
26
|
-
/**
|
|
27
|
-
* @summary Method to create a lambda queue service
|
|
28
|
-
* @param {string} id scoped id of the resource
|
|
29
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
30
|
-
* @param {types.QueueProps} props
|
|
31
|
-
* @param {sqs.IQueue} deadLetterQueue
|
|
32
|
-
*/
|
|
33
|
-
createQueue(id: string, scope: common.CommonConstruct, props: types.QueueProps, deadLetterQueue?: sqs.IQueue): cdk.aws_sqs.Queue;
|
|
34
|
-
/**
|
|
35
|
-
* @summary Method to create a redrive queue for a lambda function
|
|
36
|
-
* @param {string} id scoped id of the resource
|
|
37
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
38
|
-
* @param {types.LambdaProps} props the lambda properties
|
|
39
|
-
*/
|
|
40
|
-
createRedriveQueueForLambda(id: string, scope: common.CommonConstruct, props: types.LambdaProps): cdk.aws_sqs.Queue;
|
|
41
|
-
/**
|
|
42
|
-
* @summary Method to create a dead letter queue for a lambda function
|
|
43
|
-
* @param {string} id scoped id of the resource
|
|
44
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
45
|
-
* @param {types.LambdaProps} props the lambda properties
|
|
46
|
-
* @param {sqs.IQueue} deadLetterQueue
|
|
47
|
-
*/
|
|
48
|
-
createDeadLetterQueueForLambda(id: string, scope: common.CommonConstruct, props: types.LambdaProps, deadLetterQueue: sqs.IQueue): cdk.aws_sqs.Queue;
|
|
49
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import * as wafv2 from 'aws-cdk-lib/aws-wafv2';
|
|
2
|
-
import * as common from '../../common';
|
|
3
|
-
import * as types from '../../types';
|
|
4
|
-
/**
|
|
5
|
-
* @stability stable
|
|
6
|
-
* @category cdk-utils.waf-manager
|
|
7
|
-
* @subcategory Construct
|
|
8
|
-
* @classdesc Provides operations on AWS WAF.
|
|
9
|
-
* - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
|
|
10
|
-
* - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
|
|
11
|
-
* @example
|
|
12
|
-
* import * as common from '@gradientedge/cdk-utils'
|
|
13
|
-
*
|
|
14
|
-
* class CustomConstruct extends common.common.CommonConstruct {
|
|
15
|
-
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
16
|
-
* super(parent, id, props)
|
|
17
|
-
* this.props = props
|
|
18
|
-
* this.wafManager.createWebAcl('MyWebAcl', this)
|
|
19
|
-
* }
|
|
20
|
-
* }
|
|
21
|
-
*
|
|
22
|
-
* @see [CDK WAF Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_waf-readme.html}
|
|
23
|
-
*/
|
|
24
|
-
export declare class WafManager {
|
|
25
|
-
/**
|
|
26
|
-
* @summary Method to create an ip set
|
|
27
|
-
* @param {string} id scoped id of the resource
|
|
28
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
29
|
-
* @param {types.WafIPSetProps} props
|
|
30
|
-
*/
|
|
31
|
-
createIpSet(id: string, scope: common.CommonConstruct, props: types.WafIPSetProps): wafv2.CfnIPSet;
|
|
32
|
-
/**
|
|
33
|
-
* @summary Method to create a web acl
|
|
34
|
-
* @param {string} id scoped id of the resource
|
|
35
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
36
|
-
* @param {types.WafWebACLProps} props
|
|
37
|
-
*/
|
|
38
|
-
createWebAcl(id: string, scope: common.CommonConstruct, props: types.WafWebACLProps): wafv2.CfnWebACL;
|
|
39
|
-
}
|
package/src/lib/helper/index.ts
DELETED
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
import * as cdk from 'aws-cdk-lib'
|
|
2
|
-
import * as appconfig from 'aws-cdk-lib/aws-appconfig'
|
|
3
|
-
import * as common from '../../common'
|
|
4
|
-
import * as types from '../../types'
|
|
5
|
-
import * as utils from '../../utils'
|
|
6
|
-
import { Architecture } from './constants'
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @stability stable
|
|
10
|
-
* @category cdk-utils.app-config-manager
|
|
11
|
-
* @subcategory Construct
|
|
12
|
-
* @returns { Map<string, string> } AppConfig extension ARN by region for x84
|
|
13
|
-
*/
|
|
14
|
-
const ArnsByRegionForX86_64: { [region: string]: string } = {
|
|
15
|
-
'us-east-1': 'arn:aws:lambda:us-east-1:027255383542:layer:AWS-AppConfig-Extension:110',
|
|
16
|
-
'us-east-2': 'arn:aws:lambda:us-east-2:728743619870:layer:AWS-AppConfig-Extension:79',
|
|
17
|
-
'us-west-1': 'arn:aws:lambda:us-west-1:958113053741:layer:AWS-AppConfig-Extension:121',
|
|
18
|
-
'us-west-2': 'arn:aws:lambda:us-west-2:359756378197:layer:AWS-AppConfig-Extension:143',
|
|
19
|
-
'ca-central-1': 'arn:aws:lambda:ca-central-1:039592058896:layer:AWS-AppConfig-Extension:79',
|
|
20
|
-
'eu-central-1': 'arn:aws:lambda:eu-central-1:066940009817:layer:AWS-AppConfig-Extension:91',
|
|
21
|
-
'eu-central-2': 'arn:aws:lambda:eu-central-2:758369105281:layer:AWS-AppConfig-Extension:29',
|
|
22
|
-
'eu-west-1': 'arn:aws:lambda:eu-west-1:434848589818:layer:AWS-AppConfig-Extension:108',
|
|
23
|
-
'eu-west-2': 'arn:aws:lambda:eu-west-2:282860088358:layer:AWS-AppConfig-Extension:79',
|
|
24
|
-
'eu-west-3': 'arn:aws:lambda:eu-west-3:493207061005:layer:AWS-AppConfig-Extension:80',
|
|
25
|
-
'eu-north-1': 'arn:aws:lambda:eu-north-1:646970417810:layer:AWS-AppConfig-Extension:139',
|
|
26
|
-
'eu-south-1': 'arn:aws:lambda:eu-south-1:203683718741:layer:AWS-AppConfig-Extension:71',
|
|
27
|
-
'eu-south-2': 'arn:aws:lambda:eu-south-2:586093569114:layer:AWS-AppConfig-Extension:26',
|
|
28
|
-
'cn-north-1': 'arn:aws-cn:lambda:cn-north-1:615057806174:layer:AWS-AppConfig-Extension:66',
|
|
29
|
-
'cn-northwest-1': 'arn:aws-cn:lambda:cn-northwest-1:615084187847:layer:AWS-AppConfig-Extension:66',
|
|
30
|
-
'ap-east-1': 'arn:aws:lambda:ap-east-1:630222743974:layer:AWS-AppConfig-Extension:71',
|
|
31
|
-
'ap-northeast-1': 'arn:aws:lambda:ap-northeast-1:980059726660:layer:AWS-AppConfig-Extension:82',
|
|
32
|
-
'ap-northeast-2': 'arn:aws:lambda:ap-northeast-2:826293736237:layer:AWS-AppConfig-Extension:91',
|
|
33
|
-
'ap-northeast-3': 'arn:aws:lambda:ap-northeast-3:706869817123:layer:AWS-AppConfig-Extension:84',
|
|
34
|
-
'ap-southeast-1': 'arn:aws:lambda:ap-southeast-1:421114256042:layer:AWS-AppConfig-Extension:89',
|
|
35
|
-
'ap-southeast-2': 'arn:aws:lambda:ap-southeast-2:080788657173:layer:AWS-AppConfig-Extension:91',
|
|
36
|
-
'ap-southeast-3': 'arn:aws:lambda:ap-southeast-3:418787028745:layer:AWS-AppConfig-Extension:60',
|
|
37
|
-
'ap-southeast-4': 'arn:aws:lambda:ap-southeast-4:307021474294:layer:AWS-AppConfig-Extension:2',
|
|
38
|
-
'ap-south-1': 'arn:aws:lambda:ap-south-1:554480029851:layer:AWS-AppConfig-Extension:92',
|
|
39
|
-
'ap-south-2': 'arn:aws:lambda:ap-south-2:489524808438:layer:AWS-AppConfig-Extension:29',
|
|
40
|
-
'sa-east-1': 'arn:aws:lambda:sa-east-1:000010852771:layer:AWS-AppConfig-Extension:110',
|
|
41
|
-
'af-south-1': 'arn:aws:lambda:af-south-1:574348263942:layer:AWS-AppConfig-Extension:71',
|
|
42
|
-
'me-central-1': 'arn:aws:lambda:me-central-1:662846165436:layer:AWS-AppConfig-Extension:31',
|
|
43
|
-
'me-south-1': 'arn:aws:lambda:me-south-1:559955524753:layer:AWS-AppConfig-Extension:71',
|
|
44
|
-
'us-gov-east-1': 'arn:aws-us-gov:lambda:us-gov-east-1:946561847325:layer:AWS-AppConfig-Extension:44',
|
|
45
|
-
'us-gov-west-1': 'arn:aws-us-gov:lambda:us-gov-west-1:946746059096:layer:AWS-AppConfig-Extension:44',
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* @stability stable
|
|
50
|
-
* @category cdk-utils.app-config-manager
|
|
51
|
-
* @subcategory Construct
|
|
52
|
-
* @returns { Map<string, string> } AppConfig extension ARN by region for x84
|
|
53
|
-
*/
|
|
54
|
-
const ArnsByRegionForArm: { [region: string]: string } = {
|
|
55
|
-
'us-east-1': 'arn:aws:lambda:us-east-1:027255383542:layer:AWS-AppConfig-Extension-Arm64:43',
|
|
56
|
-
'us-east-2': 'arn:aws:lambda:us-east-2:728743619870:layer:AWS-AppConfig-Extension-Arm64:31',
|
|
57
|
-
'us-west-2': 'arn:aws:lambda:us-west-2:359756378197:layer:AWS-AppConfig-Extension-Arm64:45',
|
|
58
|
-
'eu-central-1': 'arn:aws:lambda:eu-central-1:066940009817:layer:AWS-AppConfig-Extension-Arm64:34',
|
|
59
|
-
'eu-west-1': 'arn:aws:lambda:eu-west-1:434848589818:layer:AWS-AppConfig-Extension-Arm64:46',
|
|
60
|
-
'eu-west-2': 'arn:aws:lambda:eu-west-2:282860088358:layer:AWS-AppConfig-Extension-Arm64:31',
|
|
61
|
-
'ap-northeast-1': 'arn:aws:lambda:ap-northeast-1:980059726660:layer:AWS-AppConfig-Extension-Arm64:35',
|
|
62
|
-
'ap-southeast-1': 'arn:aws:lambda:ap-southeast-1:421114256042:layer:AWS-AppConfig-Extension-Arm64:41',
|
|
63
|
-
'ap-southeast-2': 'arn:aws:lambda:ap-southeast-2:080788657173:layer:AWS-AppConfig-Extension-Arm64:34',
|
|
64
|
-
'ap-south-1': 'arn:aws:lambda:ap-south-1:554480029851:layer:AWS-AppConfig-Extension-Arm64:34',
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* @category cdk-utils.app-config-manager
|
|
69
|
-
* @subcategory Construct
|
|
70
|
-
* @classdesc Provides operations on AWS AppConfig.
|
|
71
|
-
* - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
|
|
72
|
-
* - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
|
|
73
|
-
* @example
|
|
74
|
-
* import * as common from '@gradientedge/cdk-utils'
|
|
75
|
-
*
|
|
76
|
-
* class CustomConstruct extends common.common.CommonConstruct {
|
|
77
|
-
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
78
|
-
* super(parent, id, props)
|
|
79
|
-
* this.props = props
|
|
80
|
-
* this.appConfigManager.createApplication('MyApplication', this)
|
|
81
|
-
* }
|
|
82
|
-
* }
|
|
83
|
-
*
|
|
84
|
-
* @see [CDK AppConfig Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appconfig-readme.html}
|
|
85
|
-
*/
|
|
86
|
-
export class AppConfigManager {
|
|
87
|
-
/**
|
|
88
|
-
* Method to get static ARNs for AppConfig extensions
|
|
89
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
90
|
-
* @param {Architecture} type type of the architecture
|
|
91
|
-
*/
|
|
92
|
-
public getArnForAppConfigExtension(scope: common.CommonConstruct, type: Architecture) {
|
|
93
|
-
switch (type) {
|
|
94
|
-
case Architecture.ARM_64:
|
|
95
|
-
return ArnsByRegionForArm[scope.props.region]
|
|
96
|
-
case Architecture.X86_64:
|
|
97
|
-
return ArnsByRegionForX86_64[scope.props.region]
|
|
98
|
-
default:
|
|
99
|
-
throw `Invalid type ${type} specified`
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* @summary Method to create an AppConfig Application
|
|
105
|
-
* @param {string} id scoped id of the resource
|
|
106
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
107
|
-
* @param {types.AppConfigProps} props
|
|
108
|
-
* @returns {appconfig.CfnApplication}
|
|
109
|
-
*/
|
|
110
|
-
public createApplication(
|
|
111
|
-
id: string,
|
|
112
|
-
scope: common.CommonConstruct,
|
|
113
|
-
props: types.AppConfigProps
|
|
114
|
-
): appconfig.CfnApplication {
|
|
115
|
-
if (!props) throw `AppConfig props undefined for ${id}`
|
|
116
|
-
|
|
117
|
-
const application = new appconfig.CfnApplication(scope, `${id}`, {
|
|
118
|
-
name: `${props.application.name}-${scope.props.stage}`,
|
|
119
|
-
description: props.application.description,
|
|
120
|
-
tags: props.application.tags,
|
|
121
|
-
})
|
|
122
|
-
|
|
123
|
-
utils.createCfnOutput(`${id}-ApplicationId`, scope, cdk.Fn.ref(application.logicalId))
|
|
124
|
-
utils.createCfnOutput(`${id}-ApplicationName`, scope, application.name)
|
|
125
|
-
|
|
126
|
-
return application
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* @summary Method to create an AppConfig Environment for a given application
|
|
131
|
-
* @param {string} id scoped id of the resource
|
|
132
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
133
|
-
* @param {string} applicationId id of the application
|
|
134
|
-
* @param {types.AppConfigProps} props
|
|
135
|
-
* @returns {appconfig.CfnEnvironment}
|
|
136
|
-
*/
|
|
137
|
-
public createEnvironment(
|
|
138
|
-
id: string,
|
|
139
|
-
scope: common.CommonConstruct,
|
|
140
|
-
applicationId: string,
|
|
141
|
-
props: types.AppConfigProps
|
|
142
|
-
): appconfig.CfnEnvironment {
|
|
143
|
-
if (!props) throw `AppConfig props undefined for ${id}`
|
|
144
|
-
|
|
145
|
-
const environment = new appconfig.CfnEnvironment(scope, `${id}`, {
|
|
146
|
-
applicationId: applicationId,
|
|
147
|
-
name: props.environment.name ?? scope.props.stage,
|
|
148
|
-
description: props.environment.description,
|
|
149
|
-
monitors: props.environment.monitors,
|
|
150
|
-
tags: props.environment.tags,
|
|
151
|
-
})
|
|
152
|
-
|
|
153
|
-
utils.createCfnOutput(`${id}-configurationEnvironmentId`, scope, cdk.Fn.ref(environment.logicalId))
|
|
154
|
-
utils.createCfnOutput(`${id}-configurationEnvironmentName`, scope, environment.name)
|
|
155
|
-
|
|
156
|
-
return environment
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* @summary Method to create an AppConfig Configuration Profile for a given application
|
|
161
|
-
* - <p>⚠ The <b>locationUri</b> is defaulted to <i>hosted</i> if undefined</p>
|
|
162
|
-
* @param {string} id scoped id of the resource
|
|
163
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
164
|
-
* @param {string} applicationId id of the application
|
|
165
|
-
* @param {types.AppConfigProps} props
|
|
166
|
-
* @returns {appconfig.CfnConfigurationProfile}
|
|
167
|
-
*/
|
|
168
|
-
public createConfigurationProfile(
|
|
169
|
-
id: string,
|
|
170
|
-
scope: common.CommonConstruct,
|
|
171
|
-
applicationId: string,
|
|
172
|
-
props: types.AppConfigProps
|
|
173
|
-
): appconfig.CfnConfigurationProfile {
|
|
174
|
-
if (!props) throw `AppConfig props undefined for ${id}`
|
|
175
|
-
|
|
176
|
-
const profile = new appconfig.CfnConfigurationProfile(scope, `${id}`, {
|
|
177
|
-
applicationId: applicationId,
|
|
178
|
-
locationUri: props.configurationProfile.locationUri || 'hosted',
|
|
179
|
-
name: `${props.configurationProfile.name}-${scope.props.stage}`,
|
|
180
|
-
description: props.configurationProfile.description,
|
|
181
|
-
retrievalRoleArn: props.configurationProfile.retrievalRoleArn,
|
|
182
|
-
tags: props.configurationProfile.tags,
|
|
183
|
-
type: props.configurationProfile.type,
|
|
184
|
-
validators: props.configurationProfile.validators,
|
|
185
|
-
})
|
|
186
|
-
|
|
187
|
-
utils.createCfnOutput(`${id}-configurationProfileId`, scope, cdk.Fn.ref(profile.logicalId))
|
|
188
|
-
utils.createCfnOutput(`${id}-configurationProfileName`, scope, profile.name)
|
|
189
|
-
|
|
190
|
-
return profile
|
|
191
|
-
}
|
|
192
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export * from './acm-manager'
|
|
2
|
-
export * from './api-manager'
|
|
3
|
-
export * from './app-config-manager'
|
|
4
|
-
export * from './cloudfront-manager'
|
|
5
|
-
export * from './cloudtrail-manager'
|
|
6
|
-
export * from './cloudwatch-manager'
|
|
7
|
-
export * from './codebuild-manager'
|
|
8
|
-
export * from './constants'
|
|
9
|
-
export * from './dynamodb-manager'
|
|
10
|
-
export * from './ecr-manager'
|
|
11
|
-
export * from './ecs-manager'
|
|
12
|
-
export * from './efs-manager'
|
|
13
|
-
export * from './eks-manager'
|
|
14
|
-
export * from './elasticache-manager'
|
|
15
|
-
export * from './event-manager'
|
|
16
|
-
export * from './event-target-manager'
|
|
17
|
-
export * from './evidently-manager'
|
|
18
|
-
export * from './iam-manager'
|
|
19
|
-
export * from './kms-manager'
|
|
20
|
-
export * from './lambda-manager'
|
|
21
|
-
export * from './log-manager'
|
|
22
|
-
export * from './route53-manager'
|
|
23
|
-
export * from './s3-manager'
|
|
24
|
-
export * from './secrets-manager'
|
|
25
|
-
export * from './sfn-manager'
|
|
26
|
-
export * from './sns-manager'
|
|
27
|
-
export * from './sqs-manager'
|
|
28
|
-
export * from './ssm-manager'
|
|
29
|
-
export * from './vpc-manager'
|
|
30
|
-
export * from './waf-manager'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|