@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,35 +1,12 @@
|
|
|
1
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
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
3
|
exports.EventManager = void 0;
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const
|
|
4
|
+
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
5
|
+
const aws_events_1 = require("aws-cdk-lib/aws-events");
|
|
6
|
+
const aws_iam_1 = require("aws-cdk-lib/aws-iam");
|
|
7
|
+
const aws_lambda_1 = require("aws-cdk-lib/aws-lambda");
|
|
8
|
+
const aws_pipes_1 = require("aws-cdk-lib/aws-pipes");
|
|
9
|
+
const utils_1 = require("../../utils");
|
|
33
10
|
/**
|
|
34
11
|
* @classdesc Provides operations on AWS EventBridge.
|
|
35
12
|
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
@@ -38,7 +15,7 @@ const pipes = __importStar(require("aws-cdk-lib/aws-pipes"));
|
|
|
38
15
|
* import { CommonConstruct } from '@gradientedge/cdk-utils'
|
|
39
16
|
*
|
|
40
17
|
* class CustomConstruct extends CommonConstruct {
|
|
41
|
-
* constructor(parent:
|
|
18
|
+
* constructor(parent: Construct, id: string, props: common.CommonStackProps) {
|
|
42
19
|
* super(parent, id, props)
|
|
43
20
|
* this.props = props
|
|
44
21
|
* this.eventManager.createLambdaRule('MyLambdaRule', this, lambdaFunction)
|
|
@@ -56,11 +33,11 @@ class EventManager {
|
|
|
56
33
|
createEventBus(id, scope, props) {
|
|
57
34
|
if (!props)
|
|
58
35
|
throw `EventBus props undefined for ${id}`;
|
|
59
|
-
const eventBus = new
|
|
36
|
+
const eventBus = new aws_events_1.EventBus(scope, `${id}`, {
|
|
60
37
|
eventBusName: `${props.eventBusName}-${scope.props.stage}`,
|
|
61
38
|
});
|
|
62
|
-
|
|
63
|
-
|
|
39
|
+
(0, utils_1.createCfnOutput)(`${id}-eventBusName`, scope, `${props.eventBusName}-${scope.props.stage}`);
|
|
40
|
+
(0, utils_1.createCfnOutput)(`${id}-eventBusArn`, scope, eventBus.eventBusArn);
|
|
64
41
|
return eventBus;
|
|
65
42
|
}
|
|
66
43
|
/**
|
|
@@ -74,7 +51,7 @@ class EventManager {
|
|
|
74
51
|
createRule(id, scope, props, eventBus, targets) {
|
|
75
52
|
if (!props)
|
|
76
53
|
throw `EventRule props undefined for ${id}`;
|
|
77
|
-
const rule = new
|
|
54
|
+
const rule = new aws_events_1.Rule(scope, `${id}`, {
|
|
78
55
|
description: props.description,
|
|
79
56
|
enabled: props.enabled,
|
|
80
57
|
eventBus: eventBus,
|
|
@@ -89,11 +66,11 @@ class EventManager {
|
|
|
89
66
|
}
|
|
90
67
|
if (props.tags && props.tags.length > 0) {
|
|
91
68
|
props.tags.forEach(tag => {
|
|
92
|
-
|
|
69
|
+
aws_cdk_lib_1.Tags.of(rule).add(tag.key, tag.value);
|
|
93
70
|
});
|
|
94
71
|
}
|
|
95
|
-
|
|
96
|
-
|
|
72
|
+
(0, utils_1.createCfnOutput)(`${id}-ruleArn`, scope, rule.ruleArn);
|
|
73
|
+
(0, utils_1.createCfnOutput)(`${id}-ruleName`, scope, rule.ruleName);
|
|
97
74
|
return rule;
|
|
98
75
|
}
|
|
99
76
|
/**
|
|
@@ -109,7 +86,7 @@ class EventManager {
|
|
|
109
86
|
createLambdaRule(id, scope, props, lambdaFunction, eventBusName, eventPattern, scheduleExpression) {
|
|
110
87
|
if (!props)
|
|
111
88
|
throw `EventRule props undefined for ${id}`;
|
|
112
|
-
const eventRule = new
|
|
89
|
+
const eventRule = new aws_events_1.CfnRule(scope, `${id}`, {
|
|
113
90
|
description: 'Rule to send notification to lambda function target',
|
|
114
91
|
eventBusName: eventBusName,
|
|
115
92
|
eventPattern: eventPattern,
|
|
@@ -124,14 +101,14 @@ class EventManager {
|
|
|
124
101
|
},
|
|
125
102
|
],
|
|
126
103
|
});
|
|
127
|
-
new
|
|
104
|
+
new aws_lambda_1.CfnPermission(scope, `${id}LambdaPermission`, {
|
|
128
105
|
action: 'lambda:InvokeFunction',
|
|
129
106
|
functionName: lambdaFunction.functionName,
|
|
130
|
-
principal: '
|
|
107
|
+
principal: 'amazonaws.com',
|
|
131
108
|
sourceArn: eventRule.attrArn,
|
|
132
109
|
});
|
|
133
|
-
|
|
134
|
-
|
|
110
|
+
(0, utils_1.createCfnOutput)(`${id}-ruleArn`, scope, eventRule.attrArn);
|
|
111
|
+
(0, utils_1.createCfnOutput)(`${id}-ruleName`, scope, eventRule.name);
|
|
135
112
|
return eventRule;
|
|
136
113
|
}
|
|
137
114
|
/**
|
|
@@ -148,7 +125,7 @@ class EventManager {
|
|
|
148
125
|
createFargateTaskRule(id, scope, props, cluster, task, subnetIds, role, eventPattern) {
|
|
149
126
|
if (!props)
|
|
150
127
|
throw `EventRule props undefined for ${id}`;
|
|
151
|
-
const eventRule = new
|
|
128
|
+
const eventRule = new aws_events_1.CfnRule(scope, `${id}`, {
|
|
152
129
|
description: 'Rule to send notification on new objects in data bucket to ecs task target',
|
|
153
130
|
eventPattern: eventPattern,
|
|
154
131
|
name: `${props.name}-${scope.props.stage}`,
|
|
@@ -165,12 +142,12 @@ class EventManager {
|
|
|
165
142
|
taskDefinitionArn: task.taskDefinitionArn,
|
|
166
143
|
},
|
|
167
144
|
id: `${id}-${scope.props.stage}`,
|
|
168
|
-
roleArn: role instanceof
|
|
145
|
+
roleArn: role instanceof aws_iam_1.Role ? role.roleArn : role.attrArn,
|
|
169
146
|
},
|
|
170
147
|
],
|
|
171
148
|
});
|
|
172
|
-
|
|
173
|
-
|
|
149
|
+
(0, utils_1.createCfnOutput)(`${id}-ruleArn`, scope, eventRule.attrArn);
|
|
150
|
+
(0, utils_1.createCfnOutput)(`${id}-ruleName`, scope, eventRule.name);
|
|
174
151
|
return eventRule;
|
|
175
152
|
}
|
|
176
153
|
/**
|
|
@@ -183,7 +160,7 @@ class EventManager {
|
|
|
183
160
|
*/
|
|
184
161
|
createSqsToSfnCfnPipe(id, scope, props, sourceQueue, targetStepFunction) {
|
|
185
162
|
const pipeRole = scope.iamManager.createRoleForSqsToSfnPipe(`${id}-role`, scope, sourceQueue.queueArn, targetStepFunction.stateMachineArn);
|
|
186
|
-
const pipe = new
|
|
163
|
+
const pipe = new aws_pipes_1.CfnPipe(scope, `${id}`, {
|
|
187
164
|
...props,
|
|
188
165
|
description: props.description,
|
|
189
166
|
enrichment: props.enrichment,
|
|
@@ -214,8 +191,8 @@ class EventManager {
|
|
|
214
191
|
},
|
|
215
192
|
},
|
|
216
193
|
});
|
|
217
|
-
|
|
218
|
-
|
|
194
|
+
(0, utils_1.createCfnOutput)(`${id}-pipeArn`, scope, pipe.attrArn);
|
|
195
|
+
(0, utils_1.createCfnOutput)(`${id}-pipeName`, scope, pipe.name);
|
|
219
196
|
return pipe;
|
|
220
197
|
}
|
|
221
198
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { CommonConstruct } from '
|
|
1
|
+
import { IRule, IRuleTarget, RuleTargetConfig, RuleTargetInput } from 'aws-cdk-lib/aws-events';
|
|
2
|
+
import { TargetBaseProps } from 'aws-cdk-lib/aws-events-targets';
|
|
3
|
+
import { ILogGroup } from 'aws-cdk-lib/aws-logs';
|
|
4
|
+
import { CommonConstruct } from '../../common';
|
|
5
5
|
/**
|
|
6
|
-
* @classdesc Provides operations on AWS EventBridge Targets
|
|
6
|
+
* @classdesc Provides operations on AWS EventBridge Targets
|
|
7
7
|
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
8
8
|
* - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
|
|
9
9
|
* @example
|
|
@@ -27,31 +27,31 @@ export declare class EventTargetManager {
|
|
|
27
27
|
* @param logGroup the log group
|
|
28
28
|
* @param props the log group target properties
|
|
29
29
|
*/
|
|
30
|
-
createCloudWatchLogGroupNoPolicy(id: string, scope: CommonConstruct, logGroup:
|
|
30
|
+
createCloudWatchLogGroupNoPolicy(id: string, scope: CommonConstruct, logGroup: ILogGroup, props?: LogGroupNoPolicyProps): CloudWatchLogGroupNoPolicy;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* Customize the CloudWatch LogGroup Event Target
|
|
34
34
|
*/
|
|
35
|
-
export interface LogGroupNoPolicyProps extends
|
|
35
|
+
export interface LogGroupNoPolicyProps extends TargetBaseProps {
|
|
36
36
|
/**
|
|
37
37
|
* The event to send to the CloudWatch LogGroup
|
|
38
38
|
*
|
|
39
39
|
* This will be the event logged into the CloudWatch LogGroup
|
|
40
40
|
* @default - the entire EventBridge event
|
|
41
41
|
*/
|
|
42
|
-
readonly event?:
|
|
42
|
+
readonly event?: RuleTargetInput;
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
45
|
* Use an AWS CloudWatch LogGroup as an event rule target, but don't apply a policy.
|
|
46
46
|
*/
|
|
47
|
-
export declare class CloudWatchLogGroupNoPolicy implements
|
|
47
|
+
export declare class CloudWatchLogGroupNoPolicy implements IRuleTarget {
|
|
48
48
|
private readonly logGroup;
|
|
49
49
|
private readonly props;
|
|
50
|
-
constructor(logGroup:
|
|
50
|
+
constructor(logGroup: ILogGroup, props?: LogGroupNoPolicyProps);
|
|
51
51
|
/**
|
|
52
52
|
* Returns a RuleTarget that can be used to log an event into a CloudWatch LogGroup
|
|
53
53
|
* @param _rule
|
|
54
54
|
* @param _id
|
|
55
55
|
*/
|
|
56
|
-
bind(_rule:
|
|
56
|
+
bind(_rule: IRule, _id?: string): RuleTargetConfig;
|
|
57
57
|
}
|
|
@@ -1,33 +1,10 @@
|
|
|
1
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
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
3
|
exports.CloudWatchLogGroupNoPolicy = exports.EventTargetManager = void 0;
|
|
27
|
-
const
|
|
28
|
-
const
|
|
4
|
+
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
5
|
+
const aws_events_targets_1 = require("aws-cdk-lib/aws-events-targets");
|
|
29
6
|
/**
|
|
30
|
-
* @classdesc Provides operations on AWS EventBridge Targets
|
|
7
|
+
* @classdesc Provides operations on AWS EventBridge Targets
|
|
31
8
|
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
32
9
|
* - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
|
|
33
10
|
* @example
|
|
@@ -72,11 +49,11 @@ class CloudWatchLogGroupNoPolicy {
|
|
|
72
49
|
* @param _id
|
|
73
50
|
*/
|
|
74
51
|
bind(_rule, _id) {
|
|
75
|
-
const logGroupStack =
|
|
52
|
+
const logGroupStack = aws_cdk_lib_1.Stack.of(this.logGroup);
|
|
76
53
|
return {
|
|
77
|
-
...
|
|
54
|
+
...(0, aws_events_targets_1.bindBaseTargetConfig)(this.props),
|
|
78
55
|
arn: logGroupStack.formatArn({
|
|
79
|
-
arnFormat:
|
|
56
|
+
arnFormat: aws_cdk_lib_1.ArnFormat.COLON_RESOURCE_NAME,
|
|
80
57
|
resource: 'log-group',
|
|
81
58
|
resourceName: this.logGroup.logGroupName,
|
|
82
59
|
service: 'logs',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { CommonConstruct } from '
|
|
1
|
+
import { CfnExperiment, CfnFeature, CfnLaunch, CfnProject, CfnSegment } from 'aws-cdk-lib/aws-evidently';
|
|
2
|
+
import { CommonConstruct } from '../../common';
|
|
3
3
|
import { EvidentlyExperimentProps, EvidentlyFeatureProps, EvidentlyLaunchProps, EvidentlyProjectProps, EvidentlySegmentProps } from './types';
|
|
4
4
|
/**
|
|
5
|
-
* @classdesc Provides operations on AWS Evidently
|
|
5
|
+
* @classdesc Provides operations on AWS Evidently
|
|
6
6
|
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
7
7
|
* - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
|
|
8
8
|
* @example
|
|
@@ -24,33 +24,33 @@ export declare class EvidentlyManager {
|
|
|
24
24
|
* @param scope scope in which this resource is defined
|
|
25
25
|
* @param props the project properties
|
|
26
26
|
*/
|
|
27
|
-
createProject(id: string, scope: CommonConstruct, props: EvidentlyProjectProps):
|
|
27
|
+
createProject(id: string, scope: CommonConstruct, props: EvidentlyProjectProps): CfnProject;
|
|
28
28
|
/**
|
|
29
29
|
* @summary Method to create a feature
|
|
30
30
|
* @param id scoped id of the resource
|
|
31
31
|
* @param scope scope in which this resource is defined
|
|
32
32
|
* @param props the feature properties
|
|
33
33
|
*/
|
|
34
|
-
createFeature(id: string, scope: CommonConstruct, props: EvidentlyFeatureProps):
|
|
34
|
+
createFeature(id: string, scope: CommonConstruct, props: EvidentlyFeatureProps): CfnFeature;
|
|
35
35
|
/**
|
|
36
36
|
* @summary Method to create a launch
|
|
37
37
|
* @param id scoped id of the resource
|
|
38
38
|
* @param scope scope in which this resource is defined
|
|
39
39
|
* @param props the launch properties
|
|
40
40
|
*/
|
|
41
|
-
createLaunch(id: string, scope: CommonConstruct, props: EvidentlyLaunchProps):
|
|
41
|
+
createLaunch(id: string, scope: CommonConstruct, props: EvidentlyLaunchProps): CfnLaunch;
|
|
42
42
|
/**
|
|
43
43
|
* @summary Method to create an experiment
|
|
44
44
|
* @param id scoped id of the resource
|
|
45
45
|
* @param scope scope in which this resource is defined
|
|
46
46
|
* @param props the experiment properties
|
|
47
47
|
*/
|
|
48
|
-
createExperiment(id: string, scope: CommonConstruct, props: EvidentlyExperimentProps):
|
|
48
|
+
createExperiment(id: string, scope: CommonConstruct, props: EvidentlyExperimentProps): CfnExperiment;
|
|
49
49
|
/**
|
|
50
50
|
* @summary Method to create a segment
|
|
51
51
|
* @param id scoped id of the resource
|
|
52
52
|
* @param scope scope in which this resource is defined
|
|
53
53
|
* @param props the segment properties
|
|
54
54
|
*/
|
|
55
|
-
createSegment(id: string, scope: CommonConstruct, props: EvidentlySegmentProps):
|
|
55
|
+
createSegment(id: string, scope: CommonConstruct, props: EvidentlySegmentProps): CfnSegment;
|
|
56
56
|
}
|
|
@@ -1,33 +1,10 @@
|
|
|
1
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
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
3
|
exports.EvidentlyManager = void 0;
|
|
27
|
-
const
|
|
28
|
-
const
|
|
4
|
+
const aws_evidently_1 = require("aws-cdk-lib/aws-evidently");
|
|
5
|
+
const utils_1 = require("../../utils");
|
|
29
6
|
/**
|
|
30
|
-
* @classdesc Provides operations on AWS Evidently
|
|
7
|
+
* @classdesc Provides operations on AWS Evidently
|
|
31
8
|
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
32
9
|
* - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
|
|
33
10
|
* @example
|
|
@@ -50,13 +27,13 @@ class EvidentlyManager {
|
|
|
50
27
|
* @param props the project properties
|
|
51
28
|
*/
|
|
52
29
|
createProject(id, scope, props) {
|
|
53
|
-
const project = new
|
|
30
|
+
const project = new aws_evidently_1.CfnProject(scope, `${id}`, {
|
|
54
31
|
...props,
|
|
55
32
|
description: `${props.description} ${scope.props.stage}`,
|
|
56
33
|
name: `${props.name}-${scope.props.stage}`,
|
|
57
34
|
});
|
|
58
|
-
|
|
59
|
-
|
|
35
|
+
(0, utils_1.createCfnOutput)(`${id}-projectArn`, scope, project.attrArn);
|
|
36
|
+
(0, utils_1.createCfnOutput)(`${id}-projectName`, scope, project.name);
|
|
60
37
|
return project;
|
|
61
38
|
}
|
|
62
39
|
/**
|
|
@@ -66,9 +43,9 @@ class EvidentlyManager {
|
|
|
66
43
|
* @param props the feature properties
|
|
67
44
|
*/
|
|
68
45
|
createFeature(id, scope, props) {
|
|
69
|
-
const feature = new
|
|
70
|
-
|
|
71
|
-
|
|
46
|
+
const feature = new aws_evidently_1.CfnFeature(scope, `${id}`, props);
|
|
47
|
+
(0, utils_1.createCfnOutput)(`${id}-featureArn`, scope, feature.attrArn);
|
|
48
|
+
(0, utils_1.createCfnOutput)(`${id}-featureName`, scope, feature.name);
|
|
72
49
|
return feature;
|
|
73
50
|
}
|
|
74
51
|
/**
|
|
@@ -78,13 +55,13 @@ class EvidentlyManager {
|
|
|
78
55
|
* @param props the launch properties
|
|
79
56
|
*/
|
|
80
57
|
createLaunch(id, scope, props) {
|
|
81
|
-
const launch = new
|
|
58
|
+
const launch = new aws_evidently_1.CfnLaunch(scope, `${id}`, {
|
|
82
59
|
...props,
|
|
83
60
|
description: `${props.description} ${scope.props.stage}`,
|
|
84
61
|
name: `${props.name}-${scope.props.stage}`,
|
|
85
62
|
});
|
|
86
|
-
|
|
87
|
-
|
|
63
|
+
(0, utils_1.createCfnOutput)(`${id}-launchArn`, scope, launch.attrArn);
|
|
64
|
+
(0, utils_1.createCfnOutput)(`${id}-launchName`, scope, launch.name);
|
|
88
65
|
return launch;
|
|
89
66
|
}
|
|
90
67
|
/**
|
|
@@ -94,13 +71,13 @@ class EvidentlyManager {
|
|
|
94
71
|
* @param props the experiment properties
|
|
95
72
|
*/
|
|
96
73
|
createExperiment(id, scope, props) {
|
|
97
|
-
const experiment = new
|
|
74
|
+
const experiment = new aws_evidently_1.CfnExperiment(scope, `${id}`, {
|
|
98
75
|
...props,
|
|
99
76
|
description: `${props.description} ${scope.props.stage}`,
|
|
100
77
|
name: `${props.name}-${scope.props.stage}`,
|
|
101
78
|
});
|
|
102
|
-
|
|
103
|
-
|
|
79
|
+
(0, utils_1.createCfnOutput)(`${id}-experimentArn`, scope, experiment.attrArn);
|
|
80
|
+
(0, utils_1.createCfnOutput)(`${id}-experimentName`, scope, experiment.name);
|
|
104
81
|
return experiment;
|
|
105
82
|
}
|
|
106
83
|
/**
|
|
@@ -110,13 +87,13 @@ class EvidentlyManager {
|
|
|
110
87
|
* @param props the segment properties
|
|
111
88
|
*/
|
|
112
89
|
createSegment(id, scope, props) {
|
|
113
|
-
const segment = new
|
|
90
|
+
const segment = new aws_evidently_1.CfnSegment(scope, `${id}`, {
|
|
114
91
|
...props,
|
|
115
92
|
description: `${props.description} ${scope.props.stage}`,
|
|
116
93
|
name: `${props.name}-${scope.props.stage}`,
|
|
117
94
|
});
|
|
118
|
-
|
|
119
|
-
|
|
95
|
+
(0, utils_1.createCfnOutput)(`${id}-segmentArn`, scope, segment.attrArn);
|
|
96
|
+
(0, utils_1.createCfnOutput)(`${id}-segmentName`, scope, segment.name);
|
|
120
97
|
return segment;
|
|
121
98
|
}
|
|
122
99
|
}
|