@gradientedge/cdk-utils 8.118.0 → 8.120.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/app/api-destined-function/package.json +1 -1
- package/dist/src/lib/common/construct.d.ts +32 -32
- package/dist/src/lib/common/construct.js +36 -59
- package/dist/src/lib/common/stack.d.ts +8 -7
- package/dist/src/lib/common/stack.js +17 -37
- package/dist/src/lib/common/types.d.ts +2 -2
- package/dist/src/lib/construct/api-to-eventbridge-target/api.d.ts +22 -22
- package/dist/src/lib/construct/api-to-eventbridge-target/event.d.ts +9 -9
- package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts +3 -3
- package/dist/src/lib/construct/api-to-eventbridge-target/main.js +37 -60
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/api-destined-lambda.d.ts +9 -9
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/main.d.ts +3 -3
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/main.js +40 -63
- package/dist/src/lib/construct/api-to-lambda-target/api.d.ts +23 -23
- package/dist/src/lib/construct/api-to-lambda-target/main.d.ts +2 -2
- package/dist/src/lib/construct/api-to-lambda-target/main.js +15 -38
- package/dist/src/lib/construct/application-configuration/main.d.ts +7 -7
- package/dist/src/lib/construct/application-configuration/main.js +17 -41
- package/dist/src/lib/construct/graphql-api-lambda/main.d.ts +17 -17
- package/dist/src/lib/construct/graphql-api-lambda/main.js +6 -29
- package/dist/src/lib/construct/graphql-api-lambda-with-cache/main.d.ts +5 -5
- package/dist/src/lib/construct/graphql-api-lambda-with-cache/main.js +7 -7
- package/dist/src/lib/construct/lambda-with-iam-access/main.d.ts +16 -16
- package/dist/src/lib/construct/lambda-with-iam-access/main.js +8 -31
- package/dist/src/lib/construct/lambda-with-iam-access/types.d.ts +4 -4
- package/dist/src/lib/construct/rest-api-lambda/main.d.ts +16 -16
- package/dist/src/lib/construct/rest-api-lambda/main.js +5 -28
- package/dist/src/lib/construct/rest-api-lambda-with-cache/main.d.ts +5 -5
- package/dist/src/lib/construct/rest-api-lambda-with-cache/main.js +9 -32
- package/dist/src/lib/construct/site-with-ecs-backend/main.d.ts +38 -39
- package/dist/src/lib/construct/site-with-ecs-backend/main.js +33 -54
- package/dist/src/lib/construct/static-asset-deployment/main.d.ts +4 -4
- package/dist/src/lib/construct/static-asset-deployment/main.js +3 -26
- package/dist/src/lib/construct/static-site/main.d.ts +15 -15
- package/dist/src/lib/construct/static-site/main.js +4 -27
- package/dist/src/lib/services/{aws/api-gateway → api-gateway}/main.d.ts +10 -10
- package/dist/src/lib/services/{aws/api-gateway → api-gateway}/main.js +21 -44
- package/dist/src/lib/services/api-gateway/types.d.ts +7 -0
- package/dist/src/lib/services/{aws/appconfig → appconfig}/main.d.ts +7 -7
- package/dist/src/lib/services/{aws/appconfig → appconfig}/main.js +14 -37
- package/dist/src/lib/services/{aws/certificate-manager → certificate-manager}/main.d.ts +5 -5
- package/dist/src/lib/services/{aws/certificate-manager → certificate-manager}/main.js +10 -33
- package/dist/src/lib/services/{aws/certificate-manager → certificate-manager}/types.d.ts +2 -2
- package/dist/src/lib/services/{aws/cloudfront → cloudfront}/main.d.ts +19 -19
- package/dist/src/lib/services/{aws/cloudfront → cloudfront}/main.js +47 -46
- package/dist/src/lib/services/{aws/cloudfront → cloudfront}/types.d.ts +3 -4
- package/dist/src/lib/services/{aws/cloudtrail → cloudtrail}/main.d.ts +6 -6
- package/dist/src/lib/services/{aws/cloudtrail → cloudtrail}/main.js +5 -28
- package/dist/src/lib/services/{aws/cloudwatch → cloudwatch}/logs.d.ts +1 -1
- package/dist/src/lib/services/{aws/cloudwatch → cloudwatch}/logs.js +1 -1
- package/dist/src/lib/services/{aws/cloudwatch → cloudwatch}/main.d.ts +1 -1
- package/dist/src/lib/services/{aws/cloudwatch → cloudwatch}/main.js +1 -1
- package/dist/src/lib/services/{aws/cloudwatch → cloudwatch}/types.d.ts +1 -1
- package/dist/src/lib/services/{aws/codebuild → codebuild}/main.d.ts +4 -4
- package/dist/src/lib/services/{aws/codebuild → codebuild}/main.js +7 -30
- package/dist/src/lib/services/{aws/dynamodb → dynamodb}/main.d.ts +4 -4
- package/dist/src/lib/services/{aws/dynamodb → dynamodb}/main.js +8 -31
- package/dist/src/lib/services/{aws/dynamodb → dynamodb}/types.d.ts +1 -1
- package/dist/src/lib/services/{aws/elastic-container-registry → elastic-container-registry}/main.d.ts +3 -3
- package/dist/src/lib/services/elastic-container-registry/main.js +37 -0
- package/dist/src/lib/services/{aws/elastic-container-service → elastic-container-service}/main.d.ts +11 -11
- package/dist/src/lib/services/{aws/elastic-container-service → elastic-container-service}/main.js +27 -50
- package/dist/src/lib/services/{aws/elastic-container-service → elastic-container-service}/types.d.ts +4 -4
- package/dist/src/lib/services/{aws/elastic-file-system → elastic-file-system}/main.d.ts +4 -4
- package/dist/src/lib/services/{aws/elastic-file-system → elastic-file-system}/main.js +12 -35
- package/dist/src/lib/services/{aws/elastic-kubernetes-service → elastic-kubernetes-service}/main.d.ts +5 -5
- package/dist/src/lib/services/{aws/elastic-kubernetes-service → elastic-kubernetes-service}/main.js +8 -31
- package/dist/src/lib/services/{aws/elasticache → elasticache}/main.d.ts +5 -5
- package/dist/src/lib/services/{aws/elasticache → elasticache}/main.js +10 -33
- package/dist/src/lib/services/{aws/eventbridge → eventbridge}/main.d.ts +14 -14
- package/dist/src/lib/services/{aws/eventbridge → eventbridge}/main.js +26 -49
- package/dist/src/lib/services/{aws/eventbridge → eventbridge}/target.d.ts +11 -11
- package/dist/src/lib/services/{aws/eventbridge → eventbridge}/target.js +6 -29
- package/dist/src/lib/services/{aws/eventbridge → eventbridge}/types.d.ts +1 -1
- package/dist/src/lib/services/{aws/evidently → evidently}/main.d.ts +8 -8
- package/dist/src/lib/services/{aws/evidently → evidently}/main.js +18 -41
- package/dist/src/lib/services/{aws/identity-access-management → identity-access-management}/main.d.ts +49 -50
- package/dist/src/lib/services/{aws/identity-access-management → identity-access-management}/main.js +110 -133
- package/dist/src/lib/services/index.d.ts +28 -1
- package/dist/src/lib/services/index.js +28 -1
- package/dist/src/lib/services/{aws/key-management-service → key-management-service}/main.d.ts +3 -3
- package/dist/src/lib/services/{aws/key-management-service → key-management-service}/main.js +5 -28
- package/dist/src/lib/services/{aws/lambda → lambda}/main.d.ts +12 -14
- package/dist/src/lib/services/{aws/lambda → lambda}/main.js +32 -59
- package/dist/src/lib/services/{aws/lambda → lambda}/types.d.ts +1 -1
- package/dist/src/lib/services/{aws/route53 → route53}/main.d.ts +10 -10
- package/dist/src/lib/services/{aws/route53 → route53}/main.js +21 -44
- package/dist/src/lib/services/{aws/secrets-manager → secrets-manager}/main.d.ts +6 -7
- package/dist/src/lib/services/{aws/secrets-manager → secrets-manager}/main.js +10 -33
- package/dist/src/lib/services/{aws/simple-notification-service → simple-notification-service}/main.d.ts +5 -5
- package/dist/src/lib/services/{aws/simple-notification-service → simple-notification-service}/main.js +11 -34
- package/dist/src/lib/services/{aws/simple-queue-service → simple-queue-service}/main.d.ts +7 -8
- package/dist/src/lib/services/{aws/simple-queue-service → simple-queue-service}/main.js +15 -38
- package/dist/src/lib/services/{aws/simple-queue-service → simple-queue-service}/types.d.ts +1 -1
- package/dist/src/lib/services/{aws/simple-storage-service → simple-storage-service}/main.d.ts +10 -11
- package/dist/src/lib/services/{aws/simple-storage-service → simple-storage-service}/main.js +31 -54
- package/dist/src/lib/services/{aws/simple-storage-service → simple-storage-service}/types.d.ts +1 -1
- package/dist/src/lib/services/{aws/step-function → step-function}/main.d.ts +32 -33
- package/dist/src/lib/services/{aws/step-function → step-function}/main.js +33 -57
- package/dist/src/lib/services/{aws/systems-manager → systems-manager}/main.d.ts +5 -5
- package/dist/src/lib/services/{aws/systems-manager → systems-manager}/main.js +10 -33
- package/dist/src/lib/services/{aws/virtual-private-cloud → virtual-private-cloud}/main.d.ts +6 -7
- package/dist/src/lib/services/virtual-private-cloud/main.js +70 -0
- package/dist/src/lib/services/{aws/web-application-firewall → web-application-firewall}/main.d.ts +4 -4
- package/dist/src/lib/services/{aws/web-application-firewall → web-application-firewall}/main.js +8 -31
- package/dist/src/lib/utils/aws/index.d.ts +6 -3
- package/dist/src/lib/utils/aws/index.js +9 -26
- package/package.json +15 -15
- package/src/lib/common/construct.ts +97 -67
- package/src/lib/common/stack.ts +12 -12
- package/src/lib/common/types.ts +2 -2
- package/src/lib/construct/api-to-eventbridge-target/api.ts +31 -22
- package/src/lib/construct/api-to-eventbridge-target/event.ts +9 -9
- package/src/lib/construct/api-to-eventbridge-target/main.ts +56 -41
- package/src/lib/construct/api-to-eventbridge-target-with-sns/api-destined-lambda.ts +9 -9
- package/src/lib/construct/api-to-eventbridge-target-with-sns/main.ts +62 -47
- package/src/lib/construct/api-to-lambda-target/api.ts +33 -23
- package/src/lib/construct/api-to-lambda-target/main.ts +24 -18
- package/src/lib/construct/application-configuration/main.ts +31 -24
- package/src/lib/construct/graphql-api-lambda/main.ts +22 -22
- package/src/lib/construct/graphql-api-lambda-with-cache/main.ts +13 -13
- package/src/lib/construct/lambda-with-iam-access/main.ts +25 -25
- package/src/lib/construct/lambda-with-iam-access/types.ts +4 -4
- package/src/lib/construct/rest-api-lambda/main.ts +21 -21
- package/src/lib/construct/rest-api-lambda-with-cache/main.ts +14 -14
- package/src/lib/construct/site-with-ecs-backend/main.ts +79 -60
- package/src/lib/construct/static-asset-deployment/main.ts +6 -6
- package/src/lib/construct/static-site/main.ts +23 -17
- package/src/lib/services/{aws/api-gateway → api-gateway}/main.ts +42 -36
- package/src/lib/services/api-gateway/types.ts +8 -0
- package/src/lib/services/{aws/appconfig → appconfig}/main.ts +19 -19
- package/src/lib/services/{aws/certificate-manager → certificate-manager}/main.ts +14 -14
- package/src/lib/services/{aws/certificate-manager → certificate-manager}/types.ts +2 -2
- package/src/lib/services/{aws/cloudfront → cloudfront}/main.ts +89 -75
- package/src/lib/services/{aws/cloudfront → cloudfront}/types.ts +7 -4
- package/src/lib/services/{aws/cloudtrail → cloudtrail}/main.ts +12 -12
- package/src/lib/services/{aws/cloudwatch → cloudwatch}/logs.ts +2 -2
- package/src/lib/services/{aws/cloudwatch → cloudwatch}/main.ts +2 -2
- package/src/lib/services/{aws/cloudwatch → cloudwatch}/types.ts +1 -1
- package/src/lib/services/{aws/codebuild → codebuild}/main.ts +8 -8
- package/src/lib/services/{aws/dynamodb → dynamodb}/main.ts +9 -9
- package/src/lib/services/{aws/dynamodb → dynamodb}/types.ts +1 -1
- package/src/lib/services/{aws/elastic-container-registry → elastic-container-registry}/main.ts +5 -5
- package/src/lib/services/{aws/elastic-container-service → elastic-container-service}/main.ts +49 -38
- package/src/lib/services/{aws/elastic-container-service → elastic-container-service}/types.ts +4 -4
- package/src/lib/services/{aws/elastic-file-system → elastic-file-system}/main.ts +17 -17
- package/src/lib/services/{aws/elastic-kubernetes-service → elastic-kubernetes-service}/main.ts +12 -12
- package/src/lib/services/{aws/elasticache → elasticache}/main.ts +11 -11
- package/src/lib/services/{aws/eventbridge → eventbridge}/main.ts +38 -38
- package/src/lib/services/{aws/eventbridge → eventbridge}/target.ts +15 -15
- package/src/lib/services/{aws/eventbridge → eventbridge}/types.ts +1 -1
- package/src/lib/services/{aws/evidently → evidently}/main.ts +19 -19
- package/src/lib/services/{aws/identity-access-management → identity-access-management}/main.ts +143 -135
- package/src/lib/services/index.ts +28 -1
- package/src/lib/services/{aws/key-management-service → key-management-service}/main.ts +6 -6
- package/src/lib/services/{aws/lambda → lambda}/main.ts +66 -60
- package/src/lib/services/{aws/lambda → lambda}/types.ts +1 -1
- package/src/lib/services/{aws/route53 → route53}/main.ts +32 -32
- package/src/lib/services/{aws/secrets-manager → secrets-manager}/main.ts +12 -16
- package/src/lib/services/{aws/simple-notification-service → simple-notification-service}/main.ts +14 -14
- package/src/lib/services/{aws/simple-queue-service → simple-queue-service}/main.ts +19 -19
- package/src/lib/services/{aws/simple-queue-service → simple-queue-service}/types.ts +1 -1
- package/src/lib/services/{aws/simple-storage-service → simple-storage-service}/main.ts +40 -40
- package/src/lib/services/{aws/simple-storage-service → simple-storage-service}/types.ts +1 -1
- package/src/lib/services/{aws/step-function → step-function}/main.ts +78 -66
- package/src/lib/services/{aws/systems-manager → systems-manager}/main.ts +18 -13
- package/src/lib/services/{aws/virtual-private-cloud → virtual-private-cloud}/main.ts +17 -17
- package/src/lib/services/{aws/web-application-firewall → web-application-firewall}/main.ts +9 -9
- package/src/lib/utils/aws/index.ts +8 -5
- package/dist/src/lib/services/aws/api-gateway/types.d.ts +0 -7
- package/dist/src/lib/services/aws/elastic-container-registry/main.js +0 -60
- package/dist/src/lib/services/aws/index.d.ts +0 -28
- package/dist/src/lib/services/aws/index.js +0 -44
- package/dist/src/lib/services/aws/virtual-private-cloud/main.js +0 -93
- package/src/lib/services/aws/api-gateway/types.ts +0 -8
- package/src/lib/services/aws/index.ts +0 -28
- /package/dist/src/lib/services/{aws/api-gateway → api-gateway}/index.d.ts +0 -0
- /package/dist/src/lib/services/{aws/api-gateway → api-gateway}/index.js +0 -0
- /package/dist/src/lib/services/{aws/api-gateway → api-gateway}/types.js +0 -0
- /package/dist/src/lib/services/{aws/appconfig → appconfig}/constants.d.ts +0 -0
- /package/dist/src/lib/services/{aws/appconfig → appconfig}/constants.js +0 -0
- /package/dist/src/lib/services/{aws/appconfig → appconfig}/index.d.ts +0 -0
- /package/dist/src/lib/services/{aws/appconfig → appconfig}/index.js +0 -0
- /package/dist/src/lib/services/{aws/appconfig → appconfig}/types.d.ts +0 -0
- /package/dist/src/lib/services/{aws/appconfig → appconfig}/types.js +0 -0
- /package/dist/src/lib/services/{aws/certificate-manager → certificate-manager}/index.d.ts +0 -0
- /package/dist/src/lib/services/{aws/certificate-manager → certificate-manager}/index.js +0 -0
- /package/dist/src/lib/services/{aws/certificate-manager → certificate-manager}/types.js +0 -0
- /package/dist/src/lib/services/{aws/cloudfront → cloudfront}/index.d.ts +0 -0
- /package/dist/src/lib/services/{aws/cloudfront → cloudfront}/index.js +0 -0
- /package/dist/src/lib/services/{aws/cloudfront → cloudfront}/types.js +0 -0
- /package/dist/src/lib/services/{aws/cloudtrail → cloudtrail}/index.d.ts +0 -0
- /package/dist/src/lib/services/{aws/cloudtrail → cloudtrail}/index.js +0 -0
- /package/dist/src/lib/services/{aws/cloudtrail → cloudtrail}/types.d.ts +0 -0
- /package/dist/src/lib/services/{aws/cloudtrail → cloudtrail}/types.js +0 -0
- /package/dist/src/lib/services/{aws/cloudwatch → cloudwatch}/index.d.ts +0 -0
- /package/dist/src/lib/services/{aws/cloudwatch → cloudwatch}/index.js +0 -0
- /package/dist/src/lib/services/{aws/cloudwatch → cloudwatch}/types.js +0 -0
- /package/dist/src/lib/services/{aws/codebuild → codebuild}/index.d.ts +0 -0
- /package/dist/src/lib/services/{aws/codebuild → codebuild}/index.js +0 -0
- /package/dist/src/lib/services/{aws/constants.d.ts → constants.d.ts} +0 -0
- /package/dist/src/lib/services/{aws/constants.js → constants.js} +0 -0
- /package/dist/src/lib/services/{aws/dynamodb → dynamodb}/index.d.ts +0 -0
- /package/dist/src/lib/services/{aws/dynamodb → dynamodb}/index.js +0 -0
- /package/dist/src/lib/services/{aws/dynamodb → dynamodb}/types.js +0 -0
- /package/dist/src/lib/services/{aws/elastic-container-registry → elastic-container-registry}/index.d.ts +0 -0
- /package/dist/src/lib/services/{aws/elastic-container-registry → elastic-container-registry}/index.js +0 -0
- /package/dist/src/lib/services/{aws/elastic-container-service → elastic-container-service}/index.d.ts +0 -0
- /package/dist/src/lib/services/{aws/elastic-container-service → elastic-container-service}/index.js +0 -0
- /package/dist/src/lib/services/{aws/elastic-container-service → elastic-container-service}/types.js +0 -0
- /package/dist/src/lib/services/{aws/elastic-file-system → elastic-file-system}/index.d.ts +0 -0
- /package/dist/src/lib/services/{aws/elastic-file-system → elastic-file-system}/index.js +0 -0
- /package/dist/src/lib/services/{aws/elastic-file-system → elastic-file-system}/types.d.ts +0 -0
- /package/dist/src/lib/services/{aws/elastic-file-system → elastic-file-system}/types.js +0 -0
- /package/dist/src/lib/services/{aws/elastic-kubernetes-service → elastic-kubernetes-service}/index.d.ts +0 -0
- /package/dist/src/lib/services/{aws/elastic-kubernetes-service → elastic-kubernetes-service}/index.js +0 -0
- /package/dist/src/lib/services/{aws/elastic-kubernetes-service → elastic-kubernetes-service}/types.d.ts +0 -0
- /package/dist/src/lib/services/{aws/elastic-kubernetes-service → elastic-kubernetes-service}/types.js +0 -0
- /package/dist/src/lib/services/{aws/elasticache → elasticache}/index.d.ts +0 -0
- /package/dist/src/lib/services/{aws/elasticache → elasticache}/index.js +0 -0
- /package/dist/src/lib/services/{aws/elasticache → elasticache}/types.d.ts +0 -0
- /package/dist/src/lib/services/{aws/elasticache → elasticache}/types.js +0 -0
- /package/dist/src/lib/services/{aws/eventbridge → eventbridge}/index.d.ts +0 -0
- /package/dist/src/lib/services/{aws/eventbridge → eventbridge}/index.js +0 -0
- /package/dist/src/lib/services/{aws/eventbridge → eventbridge}/types.js +0 -0
- /package/dist/src/lib/services/{aws/evidently → evidently}/index.d.ts +0 -0
- /package/dist/src/lib/services/{aws/evidently → evidently}/index.js +0 -0
- /package/dist/src/lib/services/{aws/evidently → evidently}/types.d.ts +0 -0
- /package/dist/src/lib/services/{aws/evidently → evidently}/types.js +0 -0
- /package/dist/src/lib/services/{aws/identity-access-management → identity-access-management}/index.d.ts +0 -0
- /package/dist/src/lib/services/{aws/identity-access-management → identity-access-management}/index.js +0 -0
- /package/dist/src/lib/services/{aws/key-management-service → key-management-service}/index.d.ts +0 -0
- /package/dist/src/lib/services/{aws/key-management-service → key-management-service}/index.js +0 -0
- /package/dist/src/lib/services/{aws/key-management-service → key-management-service}/types.d.ts +0 -0
- /package/dist/src/lib/services/{aws/key-management-service → key-management-service}/types.js +0 -0
- /package/dist/src/lib/services/{aws/lambda → lambda}/index.d.ts +0 -0
- /package/dist/src/lib/services/{aws/lambda → lambda}/index.js +0 -0
- /package/dist/src/lib/services/{aws/lambda → lambda}/types.js +0 -0
- /package/dist/src/lib/services/{aws/route53 → route53}/index.d.ts +0 -0
- /package/dist/src/lib/services/{aws/route53 → route53}/index.js +0 -0
- /package/dist/src/lib/services/{aws/route53 → route53}/types.d.ts +0 -0
- /package/dist/src/lib/services/{aws/route53 → route53}/types.js +0 -0
- /package/dist/src/lib/services/{aws/secrets-manager → secrets-manager}/index.d.ts +0 -0
- /package/dist/src/lib/services/{aws/secrets-manager → secrets-manager}/index.js +0 -0
- /package/dist/src/lib/services/{aws/simple-notification-service → simple-notification-service}/index.d.ts +0 -0
- /package/dist/src/lib/services/{aws/simple-notification-service → simple-notification-service}/index.js +0 -0
- /package/dist/src/lib/services/{aws/simple-notification-service → simple-notification-service}/types.d.ts +0 -0
- /package/dist/src/lib/services/{aws/simple-notification-service → simple-notification-service}/types.js +0 -0
- /package/dist/src/lib/services/{aws/simple-queue-service → simple-queue-service}/index.d.ts +0 -0
- /package/dist/src/lib/services/{aws/simple-queue-service → simple-queue-service}/index.js +0 -0
- /package/dist/src/lib/services/{aws/simple-queue-service → simple-queue-service}/types.js +0 -0
- /package/dist/src/lib/services/{aws/simple-storage-service → simple-storage-service}/index.d.ts +0 -0
- /package/dist/src/lib/services/{aws/simple-storage-service → simple-storage-service}/index.js +0 -0
- /package/dist/src/lib/services/{aws/simple-storage-service → simple-storage-service}/types.js +0 -0
- /package/dist/src/lib/services/{aws/step-function → step-function}/index.d.ts +0 -0
- /package/dist/src/lib/services/{aws/step-function → step-function}/index.js +0 -0
- /package/dist/src/lib/services/{aws/step-function → step-function}/types.d.ts +0 -0
- /package/dist/src/lib/services/{aws/step-function → step-function}/types.js +0 -0
- /package/dist/src/lib/services/{aws/systems-manager → systems-manager}/index.d.ts +0 -0
- /package/dist/src/lib/services/{aws/systems-manager → systems-manager}/index.js +0 -0
- /package/dist/src/lib/services/{aws/systems-manager → systems-manager}/types.d.ts +0 -0
- /package/dist/src/lib/services/{aws/systems-manager → systems-manager}/types.js +0 -0
- /package/dist/src/lib/services/{aws/virtual-private-cloud → virtual-private-cloud}/index.d.ts +0 -0
- /package/dist/src/lib/services/{aws/virtual-private-cloud → virtual-private-cloud}/index.js +0 -0
- /package/dist/src/lib/services/{aws/web-application-firewall → web-application-firewall}/index.d.ts +0 -0
- /package/dist/src/lib/services/{aws/web-application-firewall → web-application-firewall}/index.js +0 -0
- /package/dist/src/lib/services/{aws/web-application-firewall → web-application-firewall}/types.d.ts +0 -0
- /package/dist/src/lib/services/{aws/web-application-firewall → web-application-firewall}/types.js +0 -0
- /package/src/lib/services/{aws/api-gateway → api-gateway}/index.ts +0 -0
- /package/src/lib/services/{aws/appconfig → appconfig}/constants.ts +0 -0
- /package/src/lib/services/{aws/appconfig → appconfig}/index.ts +0 -0
- /package/src/lib/services/{aws/appconfig → appconfig}/types.ts +0 -0
- /package/src/lib/services/{aws/certificate-manager → certificate-manager}/index.ts +0 -0
- /package/src/lib/services/{aws/cloudfront → cloudfront}/index.ts +0 -0
- /package/src/lib/services/{aws/cloudtrail → cloudtrail}/index.ts +0 -0
- /package/src/lib/services/{aws/cloudtrail → cloudtrail}/types.ts +0 -0
- /package/src/lib/services/{aws/cloudwatch → cloudwatch}/index.ts +0 -0
- /package/src/lib/services/{aws/codebuild → codebuild}/index.ts +0 -0
- /package/src/lib/services/{aws/constants.ts → constants.ts} +0 -0
- /package/src/lib/services/{aws/dynamodb → dynamodb}/index.ts +0 -0
- /package/src/lib/services/{aws/elastic-container-registry → elastic-container-registry}/index.ts +0 -0
- /package/src/lib/services/{aws/elastic-container-service → elastic-container-service}/index.ts +0 -0
- /package/src/lib/services/{aws/elastic-file-system → elastic-file-system}/index.ts +0 -0
- /package/src/lib/services/{aws/elastic-file-system → elastic-file-system}/types.ts +0 -0
- /package/src/lib/services/{aws/elastic-kubernetes-service → elastic-kubernetes-service}/index.ts +0 -0
- /package/src/lib/services/{aws/elastic-kubernetes-service → elastic-kubernetes-service}/types.ts +0 -0
- /package/src/lib/services/{aws/elasticache → elasticache}/index.ts +0 -0
- /package/src/lib/services/{aws/elasticache → elasticache}/types.ts +0 -0
- /package/src/lib/services/{aws/eventbridge → eventbridge}/index.ts +0 -0
- /package/src/lib/services/{aws/evidently → evidently}/index.ts +0 -0
- /package/src/lib/services/{aws/evidently → evidently}/types.ts +0 -0
- /package/src/lib/services/{aws/identity-access-management → identity-access-management}/index.ts +0 -0
- /package/src/lib/services/{aws/key-management-service → key-management-service}/index.ts +0 -0
- /package/src/lib/services/{aws/key-management-service → key-management-service}/types.ts +0 -0
- /package/src/lib/services/{aws/lambda → lambda}/index.ts +0 -0
- /package/src/lib/services/{aws/route53 → route53}/index.ts +0 -0
- /package/src/lib/services/{aws/route53 → route53}/types.ts +0 -0
- /package/src/lib/services/{aws/secrets-manager → secrets-manager}/index.ts +0 -0
- /package/src/lib/services/{aws/simple-notification-service → simple-notification-service}/index.ts +0 -0
- /package/src/lib/services/{aws/simple-notification-service → simple-notification-service}/types.ts +0 -0
- /package/src/lib/services/{aws/simple-queue-service → simple-queue-service}/index.ts +0 -0
- /package/src/lib/services/{aws/simple-storage-service → simple-storage-service}/index.ts +0 -0
- /package/src/lib/services/{aws/step-function → step-function}/index.ts +0 -0
- /package/src/lib/services/{aws/step-function → step-function}/types.ts +0 -0
- /package/src/lib/services/{aws/systems-manager → systems-manager}/index.ts +0 -0
- /package/src/lib/services/{aws/systems-manager → systems-manager}/types.ts +0 -0
- /package/src/lib/services/{aws/virtual-private-cloud → virtual-private-cloud}/index.ts +0 -0
- /package/src/lib/services/{aws/web-application-firewall → web-application-firewall}/index.ts +0 -0
- /package/src/lib/services/{aws/web-application-firewall → web-application-firewall}/types.ts +0 -0
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { StringParameter, StringParameterProps } from 'aws-cdk-lib/aws-ssm'
|
|
2
|
+
import {
|
|
3
|
+
AwsCustomResource,
|
|
4
|
+
AwsCustomResourcePolicy,
|
|
5
|
+
AwsSdkCall,
|
|
6
|
+
PhysicalResourceId,
|
|
7
|
+
} from 'aws-cdk-lib/custom-resources'
|
|
8
|
+
import { CommonConstruct } from '../../common'
|
|
9
|
+
import { createCfnOutput } from '../../utils'
|
|
5
10
|
import { SSMParameterReaderProps } from './types'
|
|
6
11
|
|
|
7
12
|
/**
|
|
@@ -29,17 +34,17 @@ export class SsmManager {
|
|
|
29
34
|
* @param scope scope in which this resource is defined
|
|
30
35
|
* @param props parameter props
|
|
31
36
|
*/
|
|
32
|
-
public writeStringToParameters(id: string, scope: CommonConstruct, props:
|
|
37
|
+
public writeStringToParameters(id: string, scope: CommonConstruct, props: StringParameterProps) {
|
|
33
38
|
if (!props) throw `Parameter props undefined for ${id}`
|
|
34
39
|
|
|
35
|
-
const parameter = new
|
|
40
|
+
const parameter = new StringParameter(scope, `${id}`, {
|
|
36
41
|
description: `${props.description} - ${scope.props.stage} stage`,
|
|
37
42
|
parameterName: `${props.parameterName}-${scope.props.stage}`,
|
|
38
43
|
stringValue: props.stringValue,
|
|
39
44
|
})
|
|
40
45
|
|
|
41
|
-
|
|
42
|
-
|
|
46
|
+
createCfnOutput(`${id}-parameterArn`, scope, parameter.parameterArn)
|
|
47
|
+
createCfnOutput(`${id}-parameterName`, scope, parameter.parameterName)
|
|
43
48
|
|
|
44
49
|
return parameter
|
|
45
50
|
}
|
|
@@ -53,7 +58,7 @@ export class SsmManager {
|
|
|
53
58
|
public readStringParameter(id: string, scope: CommonConstruct, parameterName: string) {
|
|
54
59
|
if (!parameterName || parameterName == '') throw 'Invalid parameter name'
|
|
55
60
|
|
|
56
|
-
return
|
|
61
|
+
return StringParameter.valueFromLookup(scope, parameterName)
|
|
57
62
|
}
|
|
58
63
|
|
|
59
64
|
/**
|
|
@@ -77,23 +82,23 @@ export class SsmManager {
|
|
|
77
82
|
/**
|
|
78
83
|
* @classdesc Provides utilities to read same/cross region SSM parameters
|
|
79
84
|
*/
|
|
80
|
-
export class SSMParameterReader extends
|
|
85
|
+
export class SSMParameterReader extends AwsCustomResource {
|
|
81
86
|
constructor(scope: CommonConstruct, name: string, props: SSMParameterReaderProps) {
|
|
82
87
|
const { parameterName, region } = props
|
|
83
88
|
|
|
84
|
-
const ssmAwsSdkCall:
|
|
89
|
+
const ssmAwsSdkCall: AwsSdkCall = {
|
|
85
90
|
action: 'getParameter',
|
|
86
91
|
parameters: {
|
|
87
92
|
Name: `${parameterName}-${scope.props.stage}`,
|
|
88
93
|
},
|
|
89
|
-
physicalResourceId:
|
|
94
|
+
physicalResourceId: PhysicalResourceId.of(Date.now().toString()),
|
|
90
95
|
region,
|
|
91
96
|
service: 'SSM',
|
|
92
97
|
}
|
|
93
98
|
|
|
94
99
|
super(scope, name, {
|
|
95
100
|
onUpdate: ssmAwsSdkCall,
|
|
96
|
-
policy:
|
|
101
|
+
policy: AwsCustomResourcePolicy.fromSdkCalls({ resources: AwsCustomResourcePolicy.ANY_RESOURCE }),
|
|
97
102
|
})
|
|
98
103
|
}
|
|
99
104
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import { Tags } from 'aws-cdk-lib'
|
|
2
|
+
import { Vpc, VpcProps } from 'aws-cdk-lib/aws-ec2'
|
|
3
|
+
import { CommonConstruct } from '../../common'
|
|
4
|
+
import { createCfnOutput } from '../../utils'
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
*/
|
|
@@ -21,7 +21,7 @@ const CommonVpcIdentifier = 'CommonVpc'
|
|
|
21
21
|
* this.vpcManager.createVpc('MyVPC', this)
|
|
22
22
|
* }
|
|
23
23
|
* }
|
|
24
|
-
* @see [CDK VPC Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.@aws-cdk_aws-
|
|
24
|
+
* @see [CDK VPC Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.@aws-cdk_aws-Vpc.html}
|
|
25
25
|
*/
|
|
26
26
|
export class VpcManager {
|
|
27
27
|
/**
|
|
@@ -30,28 +30,28 @@ export class VpcManager {
|
|
|
30
30
|
* @param scope scope in which this resource is defined
|
|
31
31
|
* @param props
|
|
32
32
|
*/
|
|
33
|
-
public createVpc(id: string, scope: CommonConstruct, props:
|
|
33
|
+
public createVpc(id: string, scope: CommonConstruct, props: VpcProps) {
|
|
34
34
|
if (!props) throw `Vpc props undefined for ${id}`
|
|
35
|
-
const vpc = new
|
|
35
|
+
const vpc = new Vpc(scope, `${id}`, {
|
|
36
36
|
ipAddresses: props.ipAddresses,
|
|
37
37
|
maxAzs: props.maxAzs,
|
|
38
38
|
})
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
createCfnOutput(`${id}Id`, scope, vpc.vpcId)
|
|
41
|
+
createCfnOutput(`${id}PublicSubnetIds`, scope, vpc.publicSubnets.map(subnet => subnet.subnetId).toString())
|
|
42
|
+
createCfnOutput(`${id}PrivateSubnetIds`, scope, vpc.privateSubnets.map(subnet => subnet.subnetId).toString())
|
|
43
|
+
createCfnOutput(
|
|
44
44
|
`${id}PublicSubnetRouteTableIds`,
|
|
45
45
|
scope,
|
|
46
46
|
vpc.publicSubnets.map(subnet => subnet.routeTable.routeTableId).toString()
|
|
47
47
|
)
|
|
48
|
-
|
|
48
|
+
createCfnOutput(
|
|
49
49
|
`${id}PrivateSubnetRouteTableIds`,
|
|
50
50
|
scope,
|
|
51
51
|
vpc.privateSubnets.map(subnet => subnet.routeTable.routeTableId).toString()
|
|
52
52
|
)
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
createCfnOutput(`${id}AvailabilityZones`, scope, vpc.availabilityZones.toString())
|
|
54
|
+
createCfnOutput(`${id}DefaultSecurityGroup`, scope, vpc.vpcDefaultSecurityGroup.toString())
|
|
55
55
|
|
|
56
56
|
return vpc
|
|
57
57
|
}
|
|
@@ -62,9 +62,9 @@ export class VpcManager {
|
|
|
62
62
|
* @param props
|
|
63
63
|
* @param vpcIdentifier optional identifier for VPC
|
|
64
64
|
*/
|
|
65
|
-
public createCommonVpc(scope: CommonConstruct, props:
|
|
65
|
+
public createCommonVpc(scope: CommonConstruct, props: VpcProps, vpcIdentifier?: string) {
|
|
66
66
|
const vpc = this.createVpc(CommonVpcIdentifier, scope, props)
|
|
67
|
-
|
|
67
|
+
Tags.of(vpc).add('Name', vpcIdentifier ?? CommonVpcIdentifier)
|
|
68
68
|
|
|
69
69
|
return vpc
|
|
70
70
|
}
|
|
@@ -76,6 +76,6 @@ export class VpcManager {
|
|
|
76
76
|
* @param vpcIdentifier optional identifier for VPC
|
|
77
77
|
*/
|
|
78
78
|
public retrieveCommonVpc(id: string, scope: CommonConstruct, vpcIdentifier?: string) {
|
|
79
|
-
return
|
|
79
|
+
return Vpc.fromLookup(scope, `${id}`, { vpcName: vpcIdentifier ?? CommonVpcIdentifier })
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { CfnIPSet, CfnWebACL } from 'aws-cdk-lib/aws-wafv2'
|
|
2
|
+
import { CommonConstruct } from '../../common'
|
|
3
|
+
import { createCfnOutput } from '../../utils'
|
|
4
4
|
import { WafIPSetProps, WafWebACLProps } from './types'
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -29,7 +29,7 @@ export class WafManager {
|
|
|
29
29
|
public createIpSet(id: string, scope: CommonConstruct, props: WafIPSetProps) {
|
|
30
30
|
if (!props) throw `WAF Ip Set props undefined for ${id}`
|
|
31
31
|
|
|
32
|
-
const ipSet = new
|
|
32
|
+
const ipSet = new CfnIPSet(scope, `${id}`, {
|
|
33
33
|
addresses: props.addresses,
|
|
34
34
|
description: `IP Set for ${id} - ${scope.props.stage} stage`,
|
|
35
35
|
ipAddressVersion: props.ipAddressVersion,
|
|
@@ -37,8 +37,8 @@ export class WafManager {
|
|
|
37
37
|
scope: props.scope,
|
|
38
38
|
})
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
createCfnOutput(`${id}-ipSetId`, scope, ipSet.attrId)
|
|
41
|
+
createCfnOutput(`${id}-ipSetArn`, scope, ipSet.attrArn)
|
|
42
42
|
|
|
43
43
|
return ipSet
|
|
44
44
|
}
|
|
@@ -52,7 +52,7 @@ export class WafManager {
|
|
|
52
52
|
public createWebAcl(id: string, scope: CommonConstruct, props: WafWebACLProps) {
|
|
53
53
|
if (!props) throw `WAF WebACL props undefined for ${id}`
|
|
54
54
|
|
|
55
|
-
const webAcl = new
|
|
55
|
+
const webAcl = new CfnWebACL(scope, `${id}`, {
|
|
56
56
|
defaultAction: props.defaultAction,
|
|
57
57
|
description: `Web Acl for ${id} - ${scope.props.stage} stage`,
|
|
58
58
|
name: scope.isProductionStage() ? props.name : `${props.name}-${scope.props.stage}`,
|
|
@@ -62,8 +62,8 @@ export class WafManager {
|
|
|
62
62
|
visibilityConfig: props.visibilityConfig,
|
|
63
63
|
})
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
createCfnOutput(`${id}-webAclId`, scope, webAcl.attrId)
|
|
66
|
+
createCfnOutput(`${id}-webAclArn`, scope, webAcl.attrArn)
|
|
67
67
|
|
|
68
68
|
return webAcl
|
|
69
69
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as cdk from 'aws-cdk-lib'
|
|
2
|
-
import * as _ from 'lodash'
|
|
3
|
-
import { CommonConstruct } from '../../common'
|
|
4
1
|
import { fromEnv, fromIni } from '@aws-sdk/credential-providers'
|
|
5
2
|
import { AwsCredentialIdentityProvider } from '@aws-sdk/types'
|
|
3
|
+
import { CfnOutput } from 'aws-cdk-lib'
|
|
4
|
+
import _ from 'lodash'
|
|
5
|
+
import { CommonConstruct } from '../../common'
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @summary Helper method to add CloudFormation outputs from the construct
|
|
@@ -19,9 +19,9 @@ export function createCfnOutput(
|
|
|
19
19
|
value?: string,
|
|
20
20
|
description?: string,
|
|
21
21
|
overrideId = true
|
|
22
|
-
):
|
|
22
|
+
): CfnOutput {
|
|
23
23
|
const camelName = _.camelCase(id)
|
|
24
|
-
const output = new
|
|
24
|
+
const output = new CfnOutput(scope, id, {
|
|
25
25
|
description,
|
|
26
26
|
exportName: `${scope.props.stackName}-${camelName}`,
|
|
27
27
|
value: value ?? '',
|
|
@@ -32,6 +32,9 @@ export function createCfnOutput(
|
|
|
32
32
|
return output
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
35
38
|
export function determineCredentials(): AwsCredentialIdentityProvider {
|
|
36
39
|
if (process.env.AWS_PROFILE) return fromIni()
|
|
37
40
|
return fromEnv()
|
|
@@ -1,60 +0,0 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.EcrManager = void 0;
|
|
27
|
-
const ecr = __importStar(require("aws-cdk-lib/aws-ecr-assets"));
|
|
28
|
-
const utils = __importStar(require("../../../utils"));
|
|
29
|
-
/**
|
|
30
|
-
* @classdesc Provides operations on AWS Elastic Container Registry.
|
|
31
|
-
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
32
|
-
* - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
|
|
33
|
-
* @example
|
|
34
|
-
* import { CommonConstruct } from '@gradientedge/cdk-utils'
|
|
35
|
-
*
|
|
36
|
-
* class CustomConstruct extends CommonConstruct {
|
|
37
|
-
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
38
|
-
* super(parent, id, props)
|
|
39
|
-
* this.props = props
|
|
40
|
-
* this.ecrManager.createDockerImage('MyImage', this, dockerfilePath)
|
|
41
|
-
* }
|
|
42
|
-
* }
|
|
43
|
-
* @see [CDK ECR Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecr-readme.html}
|
|
44
|
-
*/
|
|
45
|
-
class EcrManager {
|
|
46
|
-
/**
|
|
47
|
-
* @summary Method to create a docker image in ecr
|
|
48
|
-
* @param id scoped id of the resource
|
|
49
|
-
* @param scope scope in which this resource is defined
|
|
50
|
-
* @param dockerfilePath
|
|
51
|
-
*/
|
|
52
|
-
createDockerImage(id, scope, dockerfilePath) {
|
|
53
|
-
const asset = new ecr.DockerImageAsset(scope, `${id}`, {
|
|
54
|
-
directory: dockerfilePath,
|
|
55
|
-
});
|
|
56
|
-
utils.createCfnOutput(`${id}-dockerImageArn`, scope, asset.imageUri);
|
|
57
|
-
return asset;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
exports.EcrManager = EcrManager;
|
|
@@ -1,28 +0,0 @@
|
|
|
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';
|
|
@@ -1,44 +0,0 @@
|
|
|
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);
|
|
@@ -1,93 +0,0 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.VpcManager = void 0;
|
|
27
|
-
const cdk = __importStar(require("aws-cdk-lib"));
|
|
28
|
-
const ec2 = __importStar(require("aws-cdk-lib/aws-ec2"));
|
|
29
|
-
const utils = __importStar(require("../../../utils"));
|
|
30
|
-
/**
|
|
31
|
-
*/
|
|
32
|
-
const CommonVpcIdentifier = 'CommonVpc';
|
|
33
|
-
/**
|
|
34
|
-
* @classdesc Provides operations on AWS VPC.
|
|
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
|
-
* @example
|
|
38
|
-
* import { CommonConstruct } from '@gradientedge/cdk-utils'
|
|
39
|
-
*
|
|
40
|
-
* class CustomConstruct extends CommonConstruct {
|
|
41
|
-
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
42
|
-
* super(parent, id, props)
|
|
43
|
-
* this.props = props
|
|
44
|
-
* this.vpcManager.createVpc('MyVPC', this)
|
|
45
|
-
* }
|
|
46
|
-
* }
|
|
47
|
-
* @see [CDK VPC Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.@aws-cdk_aws-ec2.Vpc.html}
|
|
48
|
-
*/
|
|
49
|
-
class VpcManager {
|
|
50
|
-
/**
|
|
51
|
-
* @summary Method to create a new vpc
|
|
52
|
-
* @param id scoped id of the resource
|
|
53
|
-
* @param scope scope in which this resource is defined
|
|
54
|
-
* @param props
|
|
55
|
-
*/
|
|
56
|
-
createVpc(id, scope, props) {
|
|
57
|
-
if (!props)
|
|
58
|
-
throw `Vpc props undefined for ${id}`;
|
|
59
|
-
const vpc = new ec2.Vpc(scope, `${id}`, {
|
|
60
|
-
ipAddresses: props.ipAddresses,
|
|
61
|
-
maxAzs: props.maxAzs,
|
|
62
|
-
});
|
|
63
|
-
utils.createCfnOutput(`${id}Id`, scope, vpc.vpcId);
|
|
64
|
-
utils.createCfnOutput(`${id}PublicSubnetIds`, scope, vpc.publicSubnets.map(subnet => subnet.subnetId).toString());
|
|
65
|
-
utils.createCfnOutput(`${id}PrivateSubnetIds`, scope, vpc.privateSubnets.map(subnet => subnet.subnetId).toString());
|
|
66
|
-
utils.createCfnOutput(`${id}PublicSubnetRouteTableIds`, scope, vpc.publicSubnets.map(subnet => subnet.routeTable.routeTableId).toString());
|
|
67
|
-
utils.createCfnOutput(`${id}PrivateSubnetRouteTableIds`, scope, vpc.privateSubnets.map(subnet => subnet.routeTable.routeTableId).toString());
|
|
68
|
-
utils.createCfnOutput(`${id}AvailabilityZones`, scope, vpc.availabilityZones.toString());
|
|
69
|
-
utils.createCfnOutput(`${id}DefaultSecurityGroup`, scope, vpc.vpcDefaultSecurityGroup.toString());
|
|
70
|
-
return vpc;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* @summary Method to create a common vpc
|
|
74
|
-
* @param scope scope in which this resource is defined
|
|
75
|
-
* @param props
|
|
76
|
-
* @param vpcIdentifier optional identifier for VPC
|
|
77
|
-
*/
|
|
78
|
-
createCommonVpc(scope, props, vpcIdentifier) {
|
|
79
|
-
const vpc = this.createVpc(CommonVpcIdentifier, scope, props);
|
|
80
|
-
cdk.Tags.of(vpc).add('Name', vpcIdentifier ?? CommonVpcIdentifier);
|
|
81
|
-
return vpc;
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* @summary Method to retrieve a common vpc
|
|
85
|
-
* @param id scoped id of the resource
|
|
86
|
-
* @param scope scope in which this resource is defined
|
|
87
|
-
* @param vpcIdentifier optional identifier for VPC
|
|
88
|
-
*/
|
|
89
|
-
retrieveCommonVpc(id, scope, vpcIdentifier) {
|
|
90
|
-
return ec2.Vpc.fromLookup(scope, `${id}`, { vpcName: vpcIdentifier ?? CommonVpcIdentifier });
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
exports.VpcManager = VpcManager;
|
|
@@ -1,28 +0,0 @@
|
|
|
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'
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/src/lib/services/{aws/elastic-container-service → elastic-container-service}/index.js
RENAMED
|
File without changes
|
/package/dist/src/lib/services/{aws/elastic-container-service → elastic-container-service}/types.js
RENAMED
|
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
|
|
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
|