@gradientedge/cdk-utils 8.88.0 → 8.90.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/src/lib/common/construct.d.ts +4 -4
- package/dist/src/lib/common/construct.js +1 -1
- package/dist/src/lib/common/index.d.ts +1 -0
- package/dist/src/lib/common/index.js +1 -0
- package/dist/src/lib/common/stack.d.ts +1 -1
- package/dist/src/lib/common/types.d.ts +22 -0
- package/dist/src/lib/common/types.js +2 -0
- package/dist/src/lib/{helper/api-to-eventbridge-target-rest-api.d.ts → construct/api-to-eventbridge-target/api.d.ts} +2 -2
- package/dist/src/lib/{helper/api-to-eventbridge-target-event.d.ts → construct/api-to-eventbridge-target/event.d.ts} +2 -2
- package/dist/src/lib/construct/api-to-eventbridge-target/index.d.ts +3 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/index.js +3 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts +5 -5
- package/dist/src/lib/construct/api-to-eventbridge-target/main.js +4 -3
- package/dist/src/lib/construct/api-to-eventbridge-target/types.d.ts +112 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/types.js +2 -0
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/api-destined-lambda.d.ts +3 -3
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/index.d.ts +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/index.js +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/main.d.ts +7 -6
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/main.js +3 -3
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/types.d.ts +26 -0
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/types.js +2 -0
- package/dist/src/lib/{helper/api-to-lambda-target-rest-api.d.ts → construct/api-to-lambda-target/api.d.ts} +2 -2
- package/dist/src/lib/construct/api-to-lambda-target/index.d.ts +2 -0
- package/dist/src/lib/construct/api-to-lambda-target/index.js +2 -0
- package/dist/src/lib/construct/api-to-lambda-target/main.d.ts +4 -4
- package/dist/src/lib/construct/api-to-lambda-target/main.js +2 -2
- package/dist/src/lib/construct/api-to-lambda-target/types.d.ts +68 -0
- package/dist/src/lib/construct/api-to-lambda-target/types.js +2 -0
- package/dist/src/lib/construct/graphql-api-lambda/index.d.ts +1 -0
- package/dist/src/lib/construct/graphql-api-lambda/index.js +1 -0
- package/dist/src/lib/construct/graphql-api-lambda/main.d.ts +1 -1
- package/dist/src/lib/construct/graphql-api-lambda/types.d.ts +30 -0
- package/dist/src/lib/construct/graphql-api-lambda/types.js +2 -0
- package/dist/src/lib/construct/graphql-api-lambda-with-cache/index.d.ts +1 -0
- package/dist/src/lib/construct/graphql-api-lambda-with-cache/index.js +1 -0
- package/dist/src/lib/construct/graphql-api-lambda-with-cache/main.d.ts +1 -1
- package/dist/src/lib/construct/graphql-api-lambda-with-cache/types.d.ts +15 -0
- package/dist/src/lib/construct/graphql-api-lambda-with-cache/types.js +2 -0
- package/dist/src/lib/construct/lambda-with-iam-access/types.d.ts +2 -1
- package/dist/src/lib/construct/rest-api-lambda/index.d.ts +1 -0
- package/dist/src/lib/construct/rest-api-lambda/index.js +1 -0
- package/dist/src/lib/construct/rest-api-lambda/main.d.ts +1 -1
- package/dist/src/lib/construct/rest-api-lambda/types.d.ts +28 -0
- package/dist/src/lib/construct/rest-api-lambda/types.js +2 -0
- package/dist/src/lib/construct/rest-api-lambda-with-cache/index.d.ts +1 -0
- package/dist/src/lib/construct/rest-api-lambda-with-cache/index.js +1 -0
- package/dist/src/lib/construct/rest-api-lambda-with-cache/main.d.ts +1 -1
- package/dist/src/lib/construct/rest-api-lambda-with-cache/types.d.ts +14 -0
- package/dist/src/lib/construct/rest-api-lambda-with-cache/types.js +2 -0
- package/dist/src/lib/construct/site-with-ecs-backend/index.d.ts +1 -0
- package/dist/src/lib/construct/site-with-ecs-backend/index.js +1 -0
- package/dist/src/lib/construct/site-with-ecs-backend/main.d.ts +1 -1
- package/dist/src/lib/construct/site-with-ecs-backend/types.d.ts +30 -0
- package/dist/src/lib/construct/site-with-ecs-backend/types.js +2 -0
- package/dist/src/lib/construct/static-asset-deployment/types.d.ts +2 -1
- package/dist/src/lib/construct/static-site/index.d.ts +1 -0
- package/dist/src/lib/construct/static-site/index.js +1 -0
- package/dist/src/lib/construct/static-site/main.d.ts +1 -1
- package/dist/src/lib/construct/static-site/types.d.ts +26 -0
- package/dist/src/lib/construct/static-site/types.js +2 -0
- package/dist/src/lib/index.d.ts +5 -0
- package/dist/src/lib/index.js +21 -0
- package/dist/src/lib/services/aws/api-gateway/index.d.ts +2 -0
- package/dist/src/lib/{helper → services/aws/api-gateway}/index.js +2 -3
- package/dist/src/lib/{manager/aws/api-manager.d.ts → services/aws/api-gateway/main.d.ts} +14 -14
- package/dist/src/lib/{manager/aws/api-manager.js → services/aws/api-gateway/main.js} +13 -10
- package/dist/src/lib/services/aws/api-gateway/types.d.ts +9 -0
- package/dist/src/lib/services/aws/api-gateway/types.js +2 -0
- package/dist/src/lib/services/aws/appconfig/constants.d.ts +18 -0
- package/dist/src/lib/services/aws/appconfig/constants.js +60 -0
- package/dist/src/lib/services/aws/appconfig/index.d.ts +3 -0
- package/dist/src/lib/services/aws/appconfig/index.js +19 -0
- package/dist/src/lib/services/aws/appconfig/main.d.ts +58 -0
- package/dist/src/lib/{manager/aws/app-config-manager.js → services/aws/appconfig/main.js} +25 -43
- package/dist/src/lib/services/aws/appconfig/types.d.ts +13 -0
- package/dist/src/lib/services/aws/appconfig/types.js +2 -0
- package/dist/src/lib/services/aws/certificate-manager/index.d.ts +2 -0
- package/dist/src/lib/services/aws/certificate-manager/index.js +18 -0
- package/dist/src/lib/{manager/aws/acm-manager.d.ts → services/aws/certificate-manager/main.d.ts} +7 -7
- package/dist/src/lib/{manager/aws/acm-manager.js → services/aws/certificate-manager/main.js} +5 -5
- package/dist/src/lib/services/aws/certificate-manager/types.d.ts +13 -0
- package/dist/src/lib/services/aws/certificate-manager/types.js +2 -0
- package/dist/src/lib/services/aws/cloudfront/index.d.ts +2 -0
- package/dist/src/lib/services/aws/cloudfront/index.js +18 -0
- package/dist/src/lib/{manager/aws/cloudfront-manager.d.ts → services/aws/cloudfront/main.d.ts} +24 -23
- package/dist/src/lib/{manager/aws/cloudfront-manager.js → services/aws/cloudfront/main.js} +16 -16
- package/dist/src/lib/services/aws/cloudfront/types.d.ts +25 -0
- package/dist/src/lib/services/aws/cloudfront/types.js +2 -0
- package/dist/src/lib/services/aws/cloudtrail/index.d.ts +2 -0
- package/dist/src/lib/services/aws/cloudtrail/index.js +18 -0
- package/dist/src/lib/{manager/aws/cloudtrail-manager.d.ts → services/aws/cloudtrail/main.d.ts} +9 -9
- package/dist/src/lib/{manager/aws/cloudtrail-manager.js → services/aws/cloudtrail/main.js} +7 -7
- package/dist/src/lib/services/aws/cloudtrail/types.d.ts +7 -0
- package/dist/src/lib/services/aws/cloudtrail/types.js +2 -0
- package/dist/src/lib/services/aws/cloudwatch/index.d.ts +3 -0
- package/dist/src/lib/services/aws/cloudwatch/index.js +19 -0
- package/dist/src/lib/{manager/aws/log-manager.d.ts → services/aws/cloudwatch/logs.d.ts} +15 -15
- package/dist/src/lib/{manager/aws/log-manager.js → services/aws/cloudwatch/logs.js} +11 -11
- package/dist/src/lib/services/aws/cloudwatch/main.d.ts +211 -0
- package/dist/src/lib/{manager/aws/cloudwatch-manager.js → services/aws/cloudwatch/main.js} +48 -48
- package/dist/src/lib/services/aws/cloudwatch/types.d.ts +111 -0
- package/dist/src/lib/services/aws/cloudwatch/types.js +2 -0
- package/dist/src/lib/services/aws/codebuild/index.d.ts +1 -0
- package/dist/src/lib/services/aws/codebuild/index.js +17 -0
- package/dist/src/lib/{manager/aws/codebuild-manager.d.ts → services/aws/codebuild/main.d.ts} +7 -7
- package/dist/src/lib/{manager/aws/codebuild-manager.js → services/aws/codebuild/main.js} +4 -4
- package/dist/src/lib/services/aws/constants.d.ts +4 -0
- package/dist/src/lib/services/aws/constants.js +8 -0
- package/dist/src/lib/services/aws/dynamodb/index.d.ts +2 -0
- package/dist/src/lib/services/aws/dynamodb/index.js +18 -0
- package/dist/src/lib/{manager/aws/dynamodb-manager.d.ts → services/aws/dynamodb/main.d.ts} +7 -7
- package/dist/src/lib/{manager/aws/dynamodb-manager.js → services/aws/dynamodb/main.js} +5 -5
- package/dist/src/lib/services/aws/dynamodb/types.d.ts +9 -0
- package/dist/src/lib/services/aws/dynamodb/types.js +2 -0
- package/dist/src/lib/services/aws/elastic-container-registry/index.d.ts +1 -0
- package/dist/src/lib/services/aws/elastic-container-registry/index.js +17 -0
- package/dist/src/lib/{manager/aws/ecr-manager.d.ts → services/aws/elastic-container-registry/main.d.ts} +7 -7
- package/dist/src/lib/{manager/aws/ecr-manager.js → services/aws/elastic-container-registry/main.js} +6 -6
- package/dist/src/lib/services/aws/elastic-container-service/index.d.ts +2 -0
- package/dist/src/lib/services/aws/elastic-container-service/index.js +18 -0
- package/dist/src/lib/{manager/aws/ecs-manager.d.ts → services/aws/elastic-container-service/main.d.ts} +15 -15
- package/dist/src/lib/{manager/aws/ecs-manager.js → services/aws/elastic-container-service/main.js} +11 -11
- package/dist/src/lib/services/aws/elastic-container-service/types.d.ts +46 -0
- package/dist/src/lib/services/aws/elastic-container-service/types.js +2 -0
- package/dist/src/lib/services/aws/elastic-file-system/index.d.ts +2 -0
- package/dist/src/lib/services/aws/elastic-file-system/index.js +18 -0
- package/dist/src/lib/{manager/aws/efs-manager.d.ts → services/aws/elastic-file-system/main.d.ts} +10 -10
- package/dist/src/lib/{manager/aws/efs-manager.js → services/aws/elastic-file-system/main.js} +8 -8
- package/dist/src/lib/services/aws/elastic-file-system/types.d.ts +19 -0
- package/dist/src/lib/services/aws/elastic-file-system/types.js +2 -0
- package/dist/src/lib/services/aws/elastic-kubernetes-service/index.d.ts +2 -0
- package/dist/src/lib/services/aws/elastic-kubernetes-service/index.js +18 -0
- package/dist/src/lib/{manager/aws/eks-manager.d.ts → services/aws/elastic-kubernetes-service/main.d.ts} +9 -9
- package/dist/src/lib/{manager/aws/eks-manager.js → services/aws/elastic-kubernetes-service/main.js} +7 -7
- package/dist/src/lib/services/aws/elastic-kubernetes-service/types.d.ts +9 -0
- package/dist/src/lib/services/aws/elastic-kubernetes-service/types.js +2 -0
- package/dist/src/lib/services/aws/elasticache/index.d.ts +2 -0
- package/dist/src/lib/services/aws/elasticache/index.js +18 -0
- package/dist/src/lib/services/aws/elasticache/main.d.ts +51 -0
- package/dist/src/lib/{manager/aws/elasticache-manager.js → services/aws/elasticache/main.js} +11 -12
- package/dist/src/lib/services/aws/elasticache/types.d.ts +13 -0
- package/dist/src/lib/services/aws/elasticache/types.js +2 -0
- package/dist/src/lib/services/aws/eventbridge/index.d.ts +3 -0
- package/dist/src/lib/services/aws/eventbridge/index.js +19 -0
- package/dist/src/lib/{manager/aws/event-manager.d.ts → services/aws/eventbridge/main.d.ts} +20 -20
- package/dist/src/lib/{manager/aws/event-manager.js → services/aws/eventbridge/main.js} +21 -15
- package/dist/src/lib/{manager/aws/event-target-manager.d.ts → services/aws/eventbridge/target.d.ts} +7 -7
- package/dist/src/lib/{manager/aws/event-target-manager.js → services/aws/eventbridge/target.js} +5 -5
- package/dist/src/lib/services/aws/eventbridge/types.d.ts +35 -0
- package/dist/src/lib/services/aws/eventbridge/types.js +2 -0
- package/dist/src/lib/services/aws/evidently/index.d.ts +2 -0
- package/dist/src/lib/services/aws/evidently/index.js +18 -0
- package/dist/src/lib/{manager/aws/evidently-manager.d.ts → services/aws/evidently/main.d.ts} +16 -16
- package/dist/src/lib/{manager/aws/evidently-manager.js → services/aws/evidently/main.js} +10 -10
- package/dist/src/lib/services/aws/evidently/types.d.ts +31 -0
- package/dist/src/lib/services/aws/evidently/types.js +2 -0
- package/dist/src/lib/services/aws/identity-access-management/index.d.ts +1 -0
- package/dist/src/lib/services/aws/identity-access-management/index.js +17 -0
- package/dist/src/lib/{manager/aws/iam-manager.d.ts → services/aws/identity-access-management/main.d.ts} +39 -40
- package/dist/src/lib/{manager/aws/iam-manager.js → services/aws/identity-access-management/main.js} +22 -23
- package/dist/src/lib/services/aws/index.d.ts +28 -0
- package/dist/src/lib/services/aws/index.js +44 -0
- package/dist/src/lib/services/aws/key-management-service/index.d.ts +2 -0
- package/dist/src/lib/services/aws/key-management-service/index.js +18 -0
- package/dist/src/lib/{manager/aws/kms-manager.d.ts → services/aws/key-management-service/main.d.ts} +7 -7
- package/dist/src/lib/{manager/aws/kms-manager.js → services/aws/key-management-service/main.js} +5 -5
- package/dist/src/lib/services/aws/key-management-service/types.d.ts +7 -0
- package/dist/src/lib/services/aws/key-management-service/types.js +2 -0
- package/dist/src/lib/services/aws/lambda/index.d.ts +2 -0
- package/dist/src/lib/services/aws/lambda/index.js +18 -0
- package/dist/src/lib/{manager/aws/lambda-manager.d.ts → services/aws/lambda/main.d.ts} +22 -21
- package/dist/src/lib/{manager/aws/lambda-manager.js → services/aws/lambda/main.js} +21 -21
- package/dist/src/lib/services/aws/lambda/types.d.ts +52 -0
- package/dist/src/lib/services/aws/lambda/types.js +2 -0
- package/dist/src/lib/services/aws/route53/index.d.ts +2 -0
- package/dist/src/lib/services/aws/route53/index.js +18 -0
- package/dist/src/lib/{manager/aws/route53-manager.d.ts → services/aws/route53/main.d.ts} +17 -17
- package/dist/src/lib/{manager/aws/route53-manager.js → services/aws/route53/main.js} +11 -11
- package/dist/src/lib/services/aws/route53/types.d.ts +8 -0
- package/dist/src/lib/services/aws/route53/types.js +2 -0
- package/dist/src/lib/services/aws/secrets-manager/index.d.ts +1 -0
- package/dist/src/lib/services/aws/secrets-manager/index.js +17 -0
- package/dist/src/lib/{manager/aws/secrets-manager.d.ts → services/aws/secrets-manager/main.d.ts} +8 -8
- package/dist/src/lib/{manager/aws/secrets-manager.js → services/aws/secrets-manager/main.js} +6 -6
- package/dist/src/lib/services/aws/simple-notification-service/index.d.ts +2 -0
- package/dist/src/lib/services/aws/simple-notification-service/index.js +18 -0
- package/dist/src/lib/{manager/aws/sns-manager.d.ts → services/aws/simple-notification-service/main.d.ts} +13 -13
- package/dist/src/lib/{manager/aws/sns-manager.js → services/aws/simple-notification-service/main.js} +10 -10
- package/dist/src/lib/services/aws/simple-notification-service/types.d.ts +7 -0
- package/dist/src/lib/services/aws/simple-notification-service/types.js +2 -0
- package/dist/src/lib/services/aws/simple-queue-service/index.d.ts +2 -0
- package/dist/src/lib/services/aws/simple-queue-service/index.js +18 -0
- package/dist/src/lib/services/aws/simple-queue-service/main.d.ts +50 -0
- package/dist/src/lib/{manager/aws/sqs-manager.js → services/aws/simple-queue-service/main.js} +11 -11
- package/dist/src/lib/services/aws/simple-queue-service/types.d.ts +17 -0
- package/dist/src/lib/services/aws/simple-queue-service/types.js +2 -0
- package/dist/src/lib/services/aws/simple-storage-service/index.d.ts +2 -0
- package/dist/src/lib/services/aws/simple-storage-service/index.js +18 -0
- package/dist/src/lib/{manager/aws/s3-manager.d.ts → services/aws/simple-storage-service/main.d.ts} +23 -23
- package/dist/src/lib/{manager/aws/s3-manager.js → services/aws/simple-storage-service/main.js} +15 -16
- package/dist/src/lib/services/aws/simple-storage-service/types.d.ts +31 -0
- package/dist/src/lib/services/aws/simple-storage-service/types.js +2 -0
- package/dist/src/lib/services/aws/step-function/index.d.ts +2 -0
- package/dist/src/lib/services/aws/step-function/index.js +18 -0
- package/dist/src/lib/services/aws/step-function/main.d.ts +157 -0
- package/dist/src/lib/{manager/aws/sfn-manager.js → services/aws/step-function/main.js} +35 -35
- package/dist/src/lib/services/aws/step-function/types.d.ts +120 -0
- package/dist/src/lib/services/aws/step-function/types.js +2 -0
- package/dist/src/lib/services/aws/systems-manager/index.d.ts +2 -0
- package/dist/src/lib/services/aws/systems-manager/index.js +18 -0
- package/dist/src/lib/{manager/aws/ssm-manager.d.ts → services/aws/systems-manager/main.d.ts} +13 -13
- package/dist/src/lib/{manager/aws/ssm-manager.js → services/aws/systems-manager/main.js} +8 -8
- package/dist/src/lib/services/aws/systems-manager/types.d.ts +8 -0
- package/dist/src/lib/services/aws/systems-manager/types.js +2 -0
- package/dist/src/lib/services/aws/virtual-private-cloud/index.d.ts +1 -0
- package/dist/src/lib/services/aws/virtual-private-cloud/index.js +17 -0
- package/dist/src/lib/{manager/aws/vpc-manager.d.ts → services/aws/virtual-private-cloud/main.d.ts} +11 -11
- package/dist/src/lib/{manager/aws/vpc-manager.js → services/aws/virtual-private-cloud/main.js} +8 -8
- package/dist/src/lib/services/aws/web-application-firewall/index.d.ts +1 -0
- package/dist/src/lib/services/aws/web-application-firewall/index.js +17 -0
- package/dist/src/lib/services/aws/web-application-firewall/main.d.ts +39 -0
- package/dist/src/lib/{manager/aws/waf-manager.js → services/aws/web-application-firewall/main.js} +9 -9
- package/dist/src/lib/services/aws/web-application-firewall/types.d.ts +13 -0
- package/dist/src/lib/services/aws/web-application-firewall/types.js +2 -0
- package/dist/src/lib/types/aws/index.d.ts +0 -921
- package/index.ts +1 -1
- package/package.json +1 -1
- package/src/lib/common/construct.ts +4 -4
- package/src/lib/common/index.ts +1 -0
- package/src/lib/common/stack.ts +1 -1
- package/src/lib/common/types.ts +23 -0
- package/src/lib/{helper/api-to-eventbridge-target-rest-api.ts → construct/api-to-eventbridge-target/api.ts} +2 -2
- package/src/lib/{helper/api-to-eventbridge-target-event.ts → construct/api-to-eventbridge-target/event.ts} +2 -2
- package/src/lib/construct/api-to-eventbridge-target/index.ts +3 -0
- package/src/lib/construct/api-to-eventbridge-target/main.ts +13 -8
- package/src/lib/construct/api-to-eventbridge-target/types.ts +126 -0
- package/src/lib/construct/api-to-eventbridge-target-with-sns/api-destined-lambda.ts +3 -3
- package/src/lib/construct/api-to-eventbridge-target-with-sns/index.ts +1 -0
- package/src/lib/construct/api-to-eventbridge-target-with-sns/main.ts +15 -9
- package/src/lib/construct/api-to-eventbridge-target-with-sns/types.ts +28 -0
- package/src/lib/{helper/api-to-lambda-target-rest-api.ts → construct/api-to-lambda-target/api.ts} +2 -2
- package/src/lib/construct/api-to-lambda-target/index.ts +2 -0
- package/src/lib/construct/api-to-lambda-target/main.ts +6 -6
- package/src/lib/construct/api-to-lambda-target/types.ts +78 -0
- package/src/lib/construct/graphql-api-lambda/index.ts +1 -0
- package/src/lib/construct/graphql-api-lambda/main.ts +1 -1
- package/src/lib/construct/graphql-api-lambda/types.ts +31 -0
- package/src/lib/construct/graphql-api-lambda-with-cache/index.ts +1 -0
- package/src/lib/construct/graphql-api-lambda-with-cache/main.ts +1 -1
- package/src/lib/construct/graphql-api-lambda-with-cache/types.ts +16 -0
- package/src/lib/construct/lambda-with-iam-access/types.ts +2 -1
- package/src/lib/construct/rest-api-lambda/index.ts +1 -0
- package/src/lib/construct/rest-api-lambda/main.ts +1 -1
- package/src/lib/construct/rest-api-lambda/types.ts +29 -0
- package/src/lib/construct/rest-api-lambda-with-cache/index.ts +1 -0
- package/src/lib/construct/rest-api-lambda-with-cache/main.ts +1 -1
- package/src/lib/construct/rest-api-lambda-with-cache/types.ts +15 -0
- package/src/lib/construct/site-with-ecs-backend/index.ts +1 -0
- package/src/lib/construct/site-with-ecs-backend/main.ts +1 -1
- package/src/lib/construct/site-with-ecs-backend/types.ts +42 -0
- package/src/lib/construct/static-asset-deployment/types.ts +2 -1
- package/src/lib/construct/static-site/index.ts +1 -0
- package/src/lib/construct/static-site/main.ts +1 -1
- package/src/lib/construct/static-site/types.ts +27 -0
- package/src/lib/index.ts +5 -0
- package/src/lib/services/aws/api-gateway/index.ts +2 -0
- package/src/lib/{manager/aws/api-manager.ts → services/aws/api-gateway/main.ts} +20 -17
- package/src/lib/services/aws/api-gateway/types.ts +10 -0
- package/src/lib/services/aws/appconfig/constants.ts +58 -0
- package/src/lib/services/aws/appconfig/index.ts +3 -0
- package/src/lib/{manager/aws/app-config-manager.ts → services/aws/appconfig/main.ts} +31 -54
- package/src/lib/services/aws/appconfig/types.ts +20 -0
- package/src/lib/services/aws/certificate-manager/index.ts +2 -0
- package/src/lib/{manager/aws/acm-manager.ts → services/aws/certificate-manager/main.ts} +9 -9
- package/src/lib/services/aws/certificate-manager/types.ts +14 -0
- package/src/lib/services/aws/cloudfront/index.ts +2 -0
- package/src/lib/{manager/aws/cloudfront-manager.ts → services/aws/cloudfront/main.ts} +29 -29
- package/src/lib/services/aws/cloudfront/types.ts +28 -0
- package/src/lib/services/aws/cloudtrail/index.ts +2 -0
- package/src/lib/{manager/aws/cloudtrail-manager.ts → services/aws/cloudtrail/main.ts} +11 -11
- package/src/lib/services/aws/cloudtrail/types.ts +7 -0
- package/src/lib/services/aws/cloudwatch/index.ts +3 -0
- package/src/lib/{manager/aws/log-manager.ts → services/aws/cloudwatch/logs.ts} +16 -21
- package/src/lib/{manager/aws/cloudwatch-manager.ts → services/aws/cloudwatch/main.ts} +86 -112
- package/src/lib/services/aws/cloudwatch/types.ts +121 -0
- package/src/lib/services/aws/codebuild/index.ts +1 -0
- package/src/lib/{manager/aws/codebuild-manager.ts → services/aws/codebuild/main.ts} +7 -7
- package/src/lib/services/aws/constants.ts +4 -0
- package/src/lib/services/aws/dynamodb/index.ts +2 -0
- package/src/lib/{manager/aws/dynamodb-manager.ts → services/aws/dynamodb/main.ts} +8 -8
- package/src/lib/services/aws/dynamodb/types.ts +10 -0
- package/src/lib/services/aws/elastic-container-registry/index.ts +1 -0
- package/src/lib/{manager/aws/ecr-manager.ts → services/aws/elastic-container-registry/main.ts} +8 -8
- package/src/lib/services/aws/elastic-container-service/index.ts +2 -0
- package/src/lib/{manager/aws/ecs-manager.ts → services/aws/elastic-container-service/main.ts} +18 -18
- package/src/lib/services/aws/elastic-container-service/types.ts +51 -0
- package/src/lib/services/aws/elastic-file-system/index.ts +2 -0
- package/src/lib/{manager/aws/efs-manager.ts → services/aws/elastic-file-system/main.ts} +13 -13
- package/src/lib/services/aws/elastic-file-system/types.ts +20 -0
- package/src/lib/services/aws/elastic-kubernetes-service/index.ts +2 -0
- package/src/lib/{manager/aws/eks-manager.ts → services/aws/elastic-kubernetes-service/main.ts} +11 -11
- package/src/lib/services/aws/elastic-kubernetes-service/types.ts +10 -0
- package/src/lib/services/aws/elasticache/index.ts +2 -0
- package/src/lib/{manager/aws/elasticache-manager.ts → services/aws/elasticache/main.ts} +18 -20
- package/src/lib/services/aws/elasticache/types.ts +13 -0
- package/src/lib/services/aws/eventbridge/index.ts +3 -0
- package/src/lib/{manager/aws/event-manager.ts → services/aws/eventbridge/main.ts} +32 -26
- package/src/lib/{manager/aws/event-target-manager.ts → services/aws/eventbridge/target.ts} +7 -7
- package/src/lib/services/aws/eventbridge/types.ts +38 -0
- package/src/lib/services/aws/evidently/index.ts +2 -0
- package/src/lib/{manager/aws/evidently-manager.ts → services/aws/evidently/main.ts} +23 -18
- package/src/lib/services/aws/evidently/types.ts +37 -0
- package/src/lib/services/aws/identity-access-management/index.ts +1 -0
- package/src/lib/{manager/aws/iam-manager.ts → services/aws/identity-access-management/main.ts} +40 -51
- package/src/lib/services/aws/index.ts +28 -0
- package/src/lib/services/aws/key-management-service/index.ts +2 -0
- package/src/lib/{manager/aws/kms-manager.ts → services/aws/key-management-service/main.ts} +8 -8
- package/src/lib/services/aws/key-management-service/types.ts +7 -0
- package/src/lib/services/aws/lambda/index.ts +2 -0
- package/src/lib/{manager/aws/lambda-manager.ts → services/aws/lambda/main.ts} +30 -30
- package/src/lib/services/aws/lambda/types.ts +57 -0
- package/src/lib/services/aws/route53/index.ts +2 -0
- package/src/lib/{manager/aws/route53-manager.ts → services/aws/route53/main.ts} +18 -18
- package/src/lib/services/aws/route53/types.ts +9 -0
- package/src/lib/services/aws/secrets-manager/index.ts +1 -0
- package/src/lib/{manager/aws/secrets-manager.ts → services/aws/secrets-manager/main.ts} +9 -14
- package/src/lib/services/aws/simple-notification-service/index.ts +2 -0
- package/src/lib/{manager/aws/sns-manager.ts → services/aws/simple-notification-service/main.ts} +16 -16
- package/src/lib/services/aws/simple-notification-service/types.ts +7 -0
- package/src/lib/services/aws/simple-queue-service/index.ts +2 -0
- package/src/lib/{manager/aws/sqs-manager.ts → services/aws/simple-queue-service/main.ts} +18 -17
- package/src/lib/services/aws/simple-queue-service/types.ts +18 -0
- package/src/lib/services/aws/simple-storage-service/index.ts +2 -0
- package/src/lib/{manager/aws/s3-manager.ts → services/aws/simple-storage-service/main.ts} +26 -27
- package/src/lib/services/aws/simple-storage-service/types.ts +34 -0
- package/src/lib/services/aws/step-function/index.ts +2 -0
- package/src/lib/{manager/aws/sfn-manager.ts → services/aws/step-function/main.ts} +76 -61
- package/src/lib/services/aws/step-function/types.ts +152 -0
- package/src/lib/services/aws/systems-manager/index.ts +2 -0
- package/src/lib/{manager/aws/ssm-manager.ts → services/aws/systems-manager/main.ts} +15 -19
- package/src/lib/services/aws/systems-manager/types.ts +8 -0
- package/src/lib/services/aws/virtual-private-cloud/index.ts +1 -0
- package/src/lib/{manager/aws/vpc-manager.ts → services/aws/virtual-private-cloud/main.ts} +12 -12
- package/src/lib/services/aws/web-application-firewall/index.ts +1 -0
- package/src/lib/{manager/aws/waf-manager.ts → services/aws/web-application-firewall/main.ts} +13 -13
- package/src/lib/services/aws/web-application-firewall/types.ts +13 -0
- package/src/lib/types/aws/index.ts +0 -984
- package/dist/src/lib/helper/index.d.ts +0 -3
- package/dist/src/lib/manager/aws/app-config-manager.d.ts +0 -65
- package/dist/src/lib/manager/aws/cloudwatch-manager.d.ts +0 -211
- package/dist/src/lib/manager/aws/elasticache-manager.d.ts +0 -52
- package/dist/src/lib/manager/aws/index.d.ts +0 -29
- package/dist/src/lib/manager/aws/index.js +0 -45
- package/dist/src/lib/manager/aws/sfn-manager.d.ts +0 -157
- package/dist/src/lib/manager/aws/sqs-manager.d.ts +0 -49
- package/dist/src/lib/manager/aws/waf-manager.d.ts +0 -39
- package/src/lib/helper/index.ts +0 -3
- package/src/lib/manager/aws/index.ts +0 -29
- /package/dist/src/lib/{helper/api-to-eventbridge-target-rest-api.js → construct/api-to-eventbridge-target/api.js} +0 -0
- /package/dist/src/lib/{helper/api-to-eventbridge-target-event.js → construct/api-to-eventbridge-target/event.js} +0 -0
- /package/dist/src/lib/{helper/api-to-lambda-target-rest-api.js → construct/api-to-lambda-target/api.js} +0 -0
- /package/dist/src/lib/{manager → services}/index.d.ts +0 -0
- /package/dist/src/lib/{manager → services}/index.js +0 -0
- /package/src/lib/{manager → services}/index.ts +0 -0
package/dist/src/lib/{manager/aws/event-target-manager.js → services/aws/eventbridge/target.js}
RENAMED
|
@@ -31,12 +31,12 @@ const targets = __importStar(require("aws-cdk-lib/aws-events-targets"));
|
|
|
31
31
|
* @category cdk-utils.event-taeget-manager
|
|
32
32
|
* @subcategory Construct
|
|
33
33
|
* @classdesc Provides operations on AWS EventBridge Targets.
|
|
34
|
-
* - A new instance of this class is injected into {@link
|
|
35
|
-
* - If a custom construct extends {@link
|
|
34
|
+
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
35
|
+
* - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
|
|
36
36
|
* @example
|
|
37
|
-
* import
|
|
37
|
+
* import { CommonConstruct } from '@gradientedge/cdk-utils'
|
|
38
38
|
*
|
|
39
|
-
* class CustomConstruct extends
|
|
39
|
+
* class CustomConstruct extends CommonConstruct {
|
|
40
40
|
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
41
41
|
* super(parent, id, props)
|
|
42
42
|
* this.props = props
|
|
@@ -51,7 +51,7 @@ class EventTargetManager {
|
|
|
51
51
|
* @summary Method to create a cloud watch log group target without a policy.
|
|
52
52
|
* - This method is created as a workaround for cdk issue - https://github.com/aws/aws-cdk/issues/17002
|
|
53
53
|
* @param {string} id scoped id of the resource
|
|
54
|
-
* @param {
|
|
54
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
55
55
|
* @param {logs.ILogGroup} logGroup the log group
|
|
56
56
|
* @param {LogGroupNoPolicyProps} props the log group target properties
|
|
57
57
|
*/
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { CfnPipeProps } from 'aws-cdk-lib/aws-pipes';
|
|
2
|
+
import { CfnRuleProps, EventBusProps as EBProps, RuleProps as EBRuleProps } from 'aws-cdk-lib/aws-events';
|
|
3
|
+
import { TagProps } from '../../../types';
|
|
4
|
+
/**
|
|
5
|
+
}
|
|
6
|
+
* @category cdk-utils.event-manager
|
|
7
|
+
* @subcategory Properties
|
|
8
|
+
*/
|
|
9
|
+
export interface SqsToSfnPipeProps extends CfnPipeProps {
|
|
10
|
+
pipeFilterPattern?: any;
|
|
11
|
+
sqsBatchSize?: number;
|
|
12
|
+
sqsMaximumBatchingWindowInSeconds?: number;
|
|
13
|
+
sfnInvocationType?: string;
|
|
14
|
+
sfnInputTemplate?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @category cdk-utils.event-manager
|
|
18
|
+
* @subcategory Properties
|
|
19
|
+
*/
|
|
20
|
+
export interface EventRuleProps extends EBRuleProps {
|
|
21
|
+
tags?: TagProps[];
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @category cdk-utils.event-manager
|
|
25
|
+
* @subcategory Properties
|
|
26
|
+
*/
|
|
27
|
+
export interface RuleProps extends CfnRuleProps {
|
|
28
|
+
input?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @category cdk-utils.event-manager
|
|
32
|
+
* @subcategory Properties
|
|
33
|
+
*/
|
|
34
|
+
export interface EventBusProps extends EBProps {
|
|
35
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./main"), exports);
|
|
18
|
+
__exportStar(require("./types"), exports);
|
package/dist/src/lib/{manager/aws/evidently-manager.d.ts → services/aws/evidently/main.d.ts}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as evidently from 'aws-cdk-lib/aws-evidently';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import { CommonConstruct } from '../../../common';
|
|
3
|
+
import { EvidentlyExperimentProps, EvidentlyFeatureProps, EvidentlyLaunchProps, EvidentlyProjectProps, EvidentlySegmentProps } from './types';
|
|
4
4
|
/**
|
|
5
5
|
* @stability stable
|
|
6
6
|
* @category cdk-utils.evidently-manager
|
|
7
7
|
* @subcategory Construct
|
|
8
8
|
* @classdesc Provides operations on AWS Evidently.
|
|
9
|
-
* - A new instance of this class is injected into {@link
|
|
10
|
-
* - If a custom construct extends {@link
|
|
9
|
+
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
10
|
+
* - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
|
|
11
11
|
* @example
|
|
12
|
-
* import
|
|
12
|
+
* import { CommonConstruct } from '@gradientedge/cdk-utils'
|
|
13
13
|
*
|
|
14
|
-
* class CustomConstruct extends
|
|
14
|
+
* class CustomConstruct extends CommonConstruct {
|
|
15
15
|
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
16
16
|
* super(parent, id, props)
|
|
17
17
|
* this.props = props
|
|
@@ -25,36 +25,36 @@ export declare class EvidentlyManager {
|
|
|
25
25
|
/**
|
|
26
26
|
* @summary Method to create a project
|
|
27
27
|
* @param {string} id scoped id of the resource
|
|
28
|
-
* @param {
|
|
28
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
29
29
|
* @param {EvidentlyProjectProps} props the project properties
|
|
30
30
|
*/
|
|
31
|
-
createProject(id: string, scope:
|
|
31
|
+
createProject(id: string, scope: CommonConstruct, props: EvidentlyProjectProps): evidently.CfnProject;
|
|
32
32
|
/**
|
|
33
33
|
* @summary Method to create a feature
|
|
34
34
|
* @param {string} id scoped id of the resource
|
|
35
|
-
* @param {
|
|
35
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
36
36
|
* @param {EvidentlyFeatureProps} props the feature properties
|
|
37
37
|
*/
|
|
38
|
-
createFeature(id: string, scope:
|
|
38
|
+
createFeature(id: string, scope: CommonConstruct, props: EvidentlyFeatureProps): evidently.CfnFeature;
|
|
39
39
|
/**
|
|
40
40
|
* @summary Method to create a launch
|
|
41
41
|
* @param {string} id scoped id of the resource
|
|
42
|
-
* @param {
|
|
42
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
43
43
|
* @param {EvidentlyLaunchProps} props the launch properties
|
|
44
44
|
*/
|
|
45
|
-
createLaunch(id: string, scope:
|
|
45
|
+
createLaunch(id: string, scope: CommonConstruct, props: EvidentlyLaunchProps): evidently.CfnLaunch;
|
|
46
46
|
/**
|
|
47
47
|
* @summary Method to create an experiment
|
|
48
48
|
* @param {string} id scoped id of the resource
|
|
49
|
-
* @param {
|
|
49
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
50
50
|
* @param {EvidentlyExperimentProps} props the experiment properties
|
|
51
51
|
*/
|
|
52
|
-
createExperiment(id: string, scope:
|
|
52
|
+
createExperiment(id: string, scope: CommonConstruct, props: EvidentlyExperimentProps): evidently.CfnExperiment;
|
|
53
53
|
/**
|
|
54
54
|
* @summary Method to create a segment
|
|
55
55
|
* @param {string} id scoped id of the resource
|
|
56
|
-
* @param {
|
|
56
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
57
57
|
* @param {EvidentlySegmentProps} props the segment properties
|
|
58
58
|
*/
|
|
59
|
-
createSegment(id: string, scope:
|
|
59
|
+
createSegment(id: string, scope: CommonConstruct, props: EvidentlySegmentProps): evidently.CfnSegment;
|
|
60
60
|
}
|
|
@@ -25,18 +25,18 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.EvidentlyManager = void 0;
|
|
27
27
|
const evidently = __importStar(require("aws-cdk-lib/aws-evidently"));
|
|
28
|
-
const utils = __importStar(require("
|
|
28
|
+
const utils = __importStar(require("../../../utils"));
|
|
29
29
|
/**
|
|
30
30
|
* @stability stable
|
|
31
31
|
* @category cdk-utils.evidently-manager
|
|
32
32
|
* @subcategory Construct
|
|
33
33
|
* @classdesc Provides operations on AWS Evidently.
|
|
34
|
-
* - A new instance of this class is injected into {@link
|
|
35
|
-
* - If a custom construct extends {@link
|
|
34
|
+
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
35
|
+
* - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
|
|
36
36
|
* @example
|
|
37
|
-
* import
|
|
37
|
+
* import { CommonConstruct } from '@gradientedge/cdk-utils'
|
|
38
38
|
*
|
|
39
|
-
* class CustomConstruct extends
|
|
39
|
+
* class CustomConstruct extends CommonConstruct {
|
|
40
40
|
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
41
41
|
* super(parent, id, props)
|
|
42
42
|
* this.props = props
|
|
@@ -50,7 +50,7 @@ class EvidentlyManager {
|
|
|
50
50
|
/**
|
|
51
51
|
* @summary Method to create a project
|
|
52
52
|
* @param {string} id scoped id of the resource
|
|
53
|
-
* @param {
|
|
53
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
54
54
|
* @param {EvidentlyProjectProps} props the project properties
|
|
55
55
|
*/
|
|
56
56
|
createProject(id, scope, props) {
|
|
@@ -66,7 +66,7 @@ class EvidentlyManager {
|
|
|
66
66
|
/**
|
|
67
67
|
* @summary Method to create a feature
|
|
68
68
|
* @param {string} id scoped id of the resource
|
|
69
|
-
* @param {
|
|
69
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
70
70
|
* @param {EvidentlyFeatureProps} props the feature properties
|
|
71
71
|
*/
|
|
72
72
|
createFeature(id, scope, props) {
|
|
@@ -78,7 +78,7 @@ class EvidentlyManager {
|
|
|
78
78
|
/**
|
|
79
79
|
* @summary Method to create a launch
|
|
80
80
|
* @param {string} id scoped id of the resource
|
|
81
|
-
* @param {
|
|
81
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
82
82
|
* @param {EvidentlyLaunchProps} props the launch properties
|
|
83
83
|
*/
|
|
84
84
|
createLaunch(id, scope, props) {
|
|
@@ -94,7 +94,7 @@ class EvidentlyManager {
|
|
|
94
94
|
/**
|
|
95
95
|
* @summary Method to create an experiment
|
|
96
96
|
* @param {string} id scoped id of the resource
|
|
97
|
-
* @param {
|
|
97
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
98
98
|
* @param {EvidentlyExperimentProps} props the experiment properties
|
|
99
99
|
*/
|
|
100
100
|
createExperiment(id, scope, props) {
|
|
@@ -110,7 +110,7 @@ class EvidentlyManager {
|
|
|
110
110
|
/**
|
|
111
111
|
* @summary Method to create a segment
|
|
112
112
|
* @param {string} id scoped id of the resource
|
|
113
|
-
* @param {
|
|
113
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
114
114
|
* @param {EvidentlySegmentProps} props the segment properties
|
|
115
115
|
*/
|
|
116
116
|
createSegment(id, scope, props) {
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { CfnExperimentProps, CfnFeatureProps, CfnLaunchProps, CfnProjectProps, CfnSegmentProps } from 'aws-cdk-lib/aws-evidently';
|
|
2
|
+
/**
|
|
3
|
+
* @category cdk-utils.evidently-manager
|
|
4
|
+
* @subcategory Properties
|
|
5
|
+
*/
|
|
6
|
+
export interface EvidentlyProjectProps extends CfnProjectProps {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @category cdk-utils.evidently-manager
|
|
10
|
+
* @subcategory Properties
|
|
11
|
+
*/
|
|
12
|
+
export interface EvidentlyFeatureProps extends CfnFeatureProps {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @category cdk-utils.evidently-manager
|
|
16
|
+
* @subcategory Properties
|
|
17
|
+
*/
|
|
18
|
+
export interface EvidentlyLaunchProps extends CfnLaunchProps {
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @category cdk-utils.evidently-manager
|
|
22
|
+
* @subcategory Properties
|
|
23
|
+
*/
|
|
24
|
+
export interface EvidentlyExperimentProps extends CfnExperimentProps {
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @category cdk-utils.evidently-manager
|
|
28
|
+
* @subcategory Properties
|
|
29
|
+
*/
|
|
30
|
+
export interface EvidentlySegmentProps extends CfnSegmentProps {
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './main';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./main"), exports);
|
|
@@ -5,18 +5,18 @@ import * as iam from 'aws-cdk-lib/aws-iam';
|
|
|
5
5
|
import * as logs from 'aws-cdk-lib/aws-logs';
|
|
6
6
|
import * as s3 from 'aws-cdk-lib/aws-s3';
|
|
7
7
|
import * as sqs from 'aws-cdk-lib/aws-sqs';
|
|
8
|
-
import
|
|
8
|
+
import { CommonConstruct } from '../../../common';
|
|
9
9
|
/**
|
|
10
10
|
* @stability stable
|
|
11
11
|
* @category cdk-utils.iam-manager
|
|
12
12
|
* @subcategory Construct
|
|
13
13
|
* @classdesc Provides operations on AWS IAM.
|
|
14
|
-
* - A new instance of this class is injected into {@link
|
|
15
|
-
* - If a custom construct extends {@link
|
|
14
|
+
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
15
|
+
* - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
|
|
16
16
|
* @example
|
|
17
|
-
* import
|
|
17
|
+
* import { CommonConstruct } from '@gradientedge/cdk-utils'
|
|
18
18
|
*
|
|
19
|
-
* class CustomConstruct extends
|
|
19
|
+
* class CustomConstruct extends CommonConstruct {
|
|
20
20
|
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
21
21
|
* super(parent, id, props)
|
|
22
22
|
* this.props = props
|
|
@@ -29,10 +29,10 @@ import * as common from '../../common';
|
|
|
29
29
|
export declare class IamManager {
|
|
30
30
|
/**
|
|
31
31
|
* @summary Method to create iam statement to read secrets
|
|
32
|
-
* @param {
|
|
32
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
33
33
|
* @param {string[]} resourceArns list of ARNs to allow access to
|
|
34
34
|
*/
|
|
35
|
-
statementForReadSecrets(scope:
|
|
35
|
+
statementForReadSecrets(scope: CommonConstruct, resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
|
|
36
36
|
/**
|
|
37
37
|
* @summary Method to create iam statement to put events
|
|
38
38
|
* @param {string[]} resourceArns list of ARNs to allow access to
|
|
@@ -75,10 +75,10 @@ export declare class IamManager {
|
|
|
75
75
|
statementForDecryptKms(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
|
|
76
76
|
/**
|
|
77
77
|
* @summary Method to create iam statement to list s3 buckets
|
|
78
|
-
* @param {
|
|
78
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
79
79
|
* @param {s3.IBucket} bucket
|
|
80
80
|
*/
|
|
81
|
-
statementForListBucket(scope:
|
|
81
|
+
statementForListBucket(scope: CommonConstruct, bucket: s3.IBucket): cdk.aws_iam.PolicyStatement;
|
|
82
82
|
/**
|
|
83
83
|
* @summary Method to create iam statement to list all s3 buckets
|
|
84
84
|
* @param {string[]} resourceArns list of ARNs to allow access to
|
|
@@ -86,25 +86,25 @@ export declare class IamManager {
|
|
|
86
86
|
statementForListAllMyBuckets(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
|
|
87
87
|
/**
|
|
88
88
|
* @summary Method to create iam statement to get s3 objects in buckets
|
|
89
|
-
* @param {
|
|
89
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
90
90
|
* @param {s3.IBucket} bucket
|
|
91
91
|
* @param {string[]} resourceArns list of ARNs to allow access to
|
|
92
92
|
*/
|
|
93
|
-
statementForGetAnyS3Objects(scope:
|
|
93
|
+
statementForGetAnyS3Objects(scope: CommonConstruct, bucket: s3.IBucket, resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
|
|
94
94
|
/**
|
|
95
95
|
* @summary Method to create iam statement to delete s3 objects in buckets
|
|
96
|
-
* @param {
|
|
96
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
97
97
|
* @param {s3.IBucket} bucket
|
|
98
98
|
* @param {string[]} resourceArns list of ARNs to allow access to
|
|
99
99
|
*/
|
|
100
|
-
statementForDeleteAnyS3Objects(scope:
|
|
100
|
+
statementForDeleteAnyS3Objects(scope: CommonConstruct, bucket: s3.IBucket, resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
|
|
101
101
|
/**
|
|
102
102
|
* @summary Method to create iam statement to write s3 objects in buckets
|
|
103
|
-
* @param {
|
|
103
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
104
104
|
* @param {s3.IBucket} bucket
|
|
105
105
|
* @param {string[]} resourceArns list of ARNs to allow access to
|
|
106
106
|
*/
|
|
107
|
-
statementForPutAnyS3Objects(scope:
|
|
107
|
+
statementForPutAnyS3Objects(scope: CommonConstruct, bucket: s3.IBucket, resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
|
|
108
108
|
/**
|
|
109
109
|
* @summary Method to create iam statement to pass iam role
|
|
110
110
|
* @param {string[]} resourceArns list of ARNs to allow access to
|
|
@@ -117,7 +117,6 @@ export declare class IamManager {
|
|
|
117
117
|
statementForCloudfrontInvalidation(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
|
|
118
118
|
/**
|
|
119
119
|
* @summary Method to create iam statement to access efs
|
|
120
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
121
120
|
* @param {string[]} resourceArns list of ARNs to allow access to
|
|
122
121
|
*/
|
|
123
122
|
statementForWriteEfs(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
|
|
@@ -129,15 +128,15 @@ export declare class IamManager {
|
|
|
129
128
|
/**
|
|
130
129
|
* @summary Method to create iam role to invalidate cloudfront cache
|
|
131
130
|
* @param {string} id scoped id of the resource
|
|
132
|
-
* @param {
|
|
131
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
133
132
|
*/
|
|
134
|
-
roleForCloudfrontInvalidation(id: string, scope:
|
|
133
|
+
roleForCloudfrontInvalidation(id: string, scope: CommonConstruct): cdk.aws_iam.Role;
|
|
135
134
|
/**
|
|
136
135
|
* @summary Method to create iam statement to assume iam role
|
|
137
|
-
* @param {
|
|
136
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
138
137
|
* @param {iam.ServicePrincipal[]} servicePrincipals
|
|
139
138
|
*/
|
|
140
|
-
statementForAssumeRole(scope:
|
|
139
|
+
statementForAssumeRole(scope: CommonConstruct, servicePrincipals: iam.ServicePrincipal[]): cdk.aws_iam.PolicyStatement;
|
|
141
140
|
/**
|
|
142
141
|
* @summary Method to create iam statement to pass ecs role
|
|
143
142
|
* @param {string[]} resourceArns list of ARNs to allow access to
|
|
@@ -145,17 +144,17 @@ export declare class IamManager {
|
|
|
145
144
|
statementForEcsPassRole(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
|
|
146
145
|
/**
|
|
147
146
|
* @summary Method to create iam statement to run ecs task
|
|
148
|
-
* @param {
|
|
147
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
149
148
|
* @param {ecs.ICluster} cluster
|
|
150
149
|
* @param {ecs.ITaskDefinition} task
|
|
151
150
|
*/
|
|
152
|
-
statementForRunEcsTask(scope:
|
|
151
|
+
statementForRunEcsTask(scope: CommonConstruct, cluster: ecs.ICluster, task: ecs.ITaskDefinition): cdk.aws_iam.PolicyStatement;
|
|
153
152
|
/**
|
|
154
153
|
* @summary Method to create iam statement to create log stream
|
|
155
|
-
* @param {
|
|
154
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
156
155
|
* @param {logs.CfnLogGroup} logGroup
|
|
157
156
|
*/
|
|
158
|
-
statementForCreateLogStream(scope:
|
|
157
|
+
statementForCreateLogStream(scope: CommonConstruct, logGroup: logs.CfnLogGroup): cdk.aws_iam.PolicyStatement;
|
|
159
158
|
/**
|
|
160
159
|
* @summary Method to create iam statement to create any log stream
|
|
161
160
|
* @param {string[]} resourceArns list of ARNs to allow access to
|
|
@@ -163,10 +162,10 @@ export declare class IamManager {
|
|
|
163
162
|
statementForCreateAnyLogStream(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
|
|
164
163
|
/**
|
|
165
164
|
* @summary Method to create iam statement to write log events
|
|
166
|
-
* @param {
|
|
165
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
167
166
|
* @param {logs.CfnLogGroup} logGroup
|
|
168
167
|
*/
|
|
169
|
-
statementForPutLogEvent(scope:
|
|
168
|
+
statementForPutLogEvent(scope: CommonConstruct, logGroup: logs.CfnLogGroup): cdk.aws_iam.PolicyStatement;
|
|
170
169
|
/**
|
|
171
170
|
* @summary Method to create iam statement to write any log events
|
|
172
171
|
* @param {string[]} resourceArns list of ARNs to allow access to
|
|
@@ -185,56 +184,56 @@ export declare class IamManager {
|
|
|
185
184
|
/**
|
|
186
185
|
* @summary Method to create iam statement for cloud trail
|
|
187
186
|
* @param {string} id scoped id of the resource
|
|
188
|
-
* @param {
|
|
187
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
189
188
|
* @param {logs.CfnLogGroup} logGroup
|
|
190
189
|
*/
|
|
191
|
-
createRoleForCloudTrail(id: string, scope:
|
|
190
|
+
createRoleForCloudTrail(id: string, scope: CommonConstruct, logGroup: logs.CfnLogGroup): cdk.aws_iam.CfnRole;
|
|
192
191
|
/**
|
|
193
192
|
* @summary Method to create iam statement for ecs event
|
|
194
193
|
* @param {string} id scoped id of the resource
|
|
195
|
-
* @param {
|
|
194
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
196
195
|
* @param {ecs.ICluster} cluster
|
|
197
196
|
* @param {ecs.ITaskDefinition} task
|
|
198
197
|
*/
|
|
199
|
-
createRoleForEcsEvent(id: string, scope:
|
|
198
|
+
createRoleForEcsEvent(id: string, scope: CommonConstruct, cluster: ecs.ICluster, task: ecs.ITaskDefinition): cdk.aws_iam.Role;
|
|
200
199
|
/**
|
|
201
200
|
* @summary Method to create iam statement for ecs execution
|
|
202
201
|
* @param {string} id scoped id of the resource
|
|
203
|
-
* @param {
|
|
202
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
204
203
|
* @param {iam.PolicyDocument} policy
|
|
205
204
|
*/
|
|
206
|
-
createRoleForEcsExecution(id: string, scope:
|
|
205
|
+
createRoleForEcsExecution(id: string, scope: CommonConstruct, policy: iam.PolicyDocument): cdk.aws_iam.Role;
|
|
207
206
|
/**
|
|
208
207
|
* @summary Method to create iam statement for lambda execution
|
|
209
208
|
* @param {string} id scoped id of the resource
|
|
210
|
-
* @param {
|
|
209
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
211
210
|
* @param {iam.PolicyDocument} policy
|
|
212
211
|
* @param {iam.ServicePrincipal} servicePrinicpal
|
|
213
212
|
*/
|
|
214
|
-
createRoleForLambda(id: string, scope:
|
|
213
|
+
createRoleForLambda(id: string, scope: CommonConstruct, policy: iam.PolicyDocument, servicePrinicpal?: iam.ServicePrincipal): cdk.aws_iam.Role;
|
|
215
214
|
/**
|
|
216
215
|
* @summary Method to create iam statement for step function execution
|
|
217
216
|
* @param {string} id scoped id of the resource
|
|
218
|
-
* @param {
|
|
217
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
219
218
|
* @param {iam.PolicyDocument} policy
|
|
220
219
|
* @param {iam.ServicePrincipal} servicePrinicpal
|
|
221
220
|
*/
|
|
222
|
-
createRoleForStepFunction(id: string, scope:
|
|
221
|
+
createRoleForStepFunction(id: string, scope: CommonConstruct, policy: iam.PolicyDocument, servicePrinicpal?: iam.ServicePrincipal): cdk.aws_iam.Role;
|
|
223
222
|
/**
|
|
224
223
|
* @summary Method to create iam statement for sqs to step function pipe
|
|
225
224
|
* @param {string} id scoped id of the resource
|
|
226
|
-
* @param {
|
|
225
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
227
226
|
* @param {string} queueArn the arn of the sqs queue
|
|
228
227
|
* @param {string} stepFunctionArn the arn of the step function
|
|
229
228
|
*/
|
|
230
|
-
createRoleForSqsToSfnPipe(id: string, scope:
|
|
229
|
+
createRoleForSqsToSfnPipe(id: string, scope: CommonConstruct, queueArn: string, stepFunctionArn: string): cdk.aws_iam.Role;
|
|
231
230
|
/**
|
|
232
231
|
* @summary Method to create iam policy for sqs
|
|
233
232
|
* @param {string} id scoped id of the resource
|
|
234
|
-
* @param {
|
|
233
|
+
* @param {CommonConstruct} scope scope in which this resource is defined
|
|
235
234
|
* @param sqsQueue
|
|
236
235
|
* @param eventBridgeRule
|
|
237
236
|
* @param servicePrincipals
|
|
238
237
|
*/
|
|
239
|
-
createPolicyForSqsEvent(id: string, scope:
|
|
238
|
+
createPolicyForSqsEvent(id: string, scope: CommonConstruct, sqsQueue: sqs.Queue, eventBridgeRule: events.IRule, servicePrincipals?: iam.ServicePrincipal[]): cdk.aws_iam.PolicyDocument;
|
|
240
239
|
}
|