@takumi-stack/core 1.0.0 → 1.0.1
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/common/coordinator.d.ts +18 -0
- package/.dist/common/index.d.ts +6 -0
- package/.dist/common/modifier.d.ts +4 -0
- package/.dist/common/naming/get-deploy-config.d.ts +5 -0
- package/.dist/common/naming/get-domain.d.ts +8 -0
- package/.dist/common/naming/get-function-entry.d.ts +3 -0
- package/.dist/common/naming/get-logical-name.d.ts +2 -0
- package/.dist/common/naming/get-resource-name.d.ts +26 -0
- package/.dist/common/naming/get-service-name.d.ts +9 -0
- package/.dist/common/naming/index.d.ts +8 -0
- package/.dist/common/naming/string-parser.d.ts +4 -0
- package/.dist/common/service.d.ts +21 -0
- package/.dist/common/synth/account-mapping.d.ts +2 -0
- package/.dist/common/synth/assume-role.d.ts +17 -0
- package/.dist/common/synth/get-global-props.d.ts +4 -0
- package/.dist/common/synth/get-service-props.d.ts +3 -0
- package/.dist/common/synth/index.d.ts +8 -0
- package/.dist/common/synth/pre-script.d.ts +21 -0
- package/.dist/common/synth/props-types.d.ts +41 -0
- package/.dist/common/synth/synth-error.d.ts +7 -0
- package/.dist/index.d.ts +4 -0
- package/.dist/package.json +43 -0
- package/.dist/prefab/analytics/events/handlers/ingestion-transform/handler.d.ts +3 -0
- package/.dist/prefab/analytics/events/index.d.ts +28 -0
- package/.dist/prefab/analytics/events/index.d.ts.map +1 -0
- package/.dist/prefab/analytics/events/index.js +163 -0
- package/.dist/prefab/analytics/events/index.js.map +1 -0
- package/.dist/prefab/analytics/index.d.ts +2 -0
- package/.dist/prefab/auth/cognito-pool/index.d.ts +57 -0
- package/.dist/prefab/auth/cognito-pool/index.d.ts.map +1 -0
- package/.dist/prefab/auth/cognito-pool/index.js.map +1 -0
- package/.dist/prefab/auth/index.d.ts +2 -0
- package/.dist/prefab/cdn/cdn-api/index.d.ts +34 -0
- package/.dist/prefab/cdn/cdn-api/index.d.ts.map +1 -0
- package/.dist/prefab/cdn/cdn-api/index.js +153 -0
- package/.dist/prefab/cdn/cdn-api/index.js.map +1 -0
- package/.dist/prefab/cdn/cdn-asset/index.d.ts +24 -0
- package/.dist/prefab/cdn/cdn-asset/index.d.ts.map +1 -0
- package/.dist/prefab/cdn/cdn-asset/index.js +96 -0
- package/.dist/prefab/cdn/cdn-asset/index.js.map +1 -0
- package/.dist/prefab/cdn/cdn-spa/index.d.ts +24 -0
- package/.dist/prefab/cdn/cdn-spa/index.d.ts.map +1 -0
- package/.dist/prefab/cdn/cdn-spa/index.js +138 -0
- package/.dist/prefab/cdn/cdn-spa/index.js.map +1 -0
- package/.dist/prefab/cdn/cdn-ssr/index.d.ts +33 -0
- package/.dist/prefab/cdn/cdn-ssr/index.d.ts.map +1 -0
- package/.dist/prefab/cdn/cdn-ssr/index.js +271 -0
- package/.dist/prefab/cdn/cdn-ssr/index.js.map +1 -0
- package/.dist/prefab/cdn/index.d.ts +5 -0
- package/.dist/prefab/compute/fargate/cluster.d.ts +13 -0
- package/.dist/prefab/compute/fargate/cluster.d.ts.map +1 -0
- package/.dist/prefab/compute/fargate/cluster.js.map +1 -0
- package/.dist/prefab/compute/fargate/index.d.ts +3 -0
- package/.dist/prefab/compute/fargate/service.d.ts +45 -0
- package/.dist/prefab/compute/fargate/service.d.ts.map +1 -0
- package/.dist/prefab/compute/fargate/service.js.map +1 -0
- package/.dist/prefab/compute/function/api-function/api-aggregate.d.ts +31 -0
- package/.dist/prefab/compute/function/api-function/api-aggregate.d.ts.map +1 -0
- package/.dist/prefab/compute/function/api-function/api-aggregate.js +53 -0
- package/.dist/prefab/compute/function/api-function/api-aggregate.js.map +1 -0
- package/.dist/prefab/compute/function/api-function/api-function.d.ts +22 -0
- package/.dist/prefab/compute/function/api-function/api-function.d.ts.map +1 -0
- package/.dist/prefab/compute/function/api-function/api-function.js +44 -0
- package/.dist/prefab/compute/function/api-function/api-function.js.map +1 -0
- package/.dist/prefab/compute/function/api-function/index.d.ts +3 -0
- package/.dist/prefab/compute/function/base-function/index.d.ts +33 -0
- package/.dist/prefab/compute/function/base-function/index.d.ts.map +1 -0
- package/.dist/prefab/compute/function/base-function/index.js +70 -0
- package/.dist/prefab/compute/function/base-function/index.js.map +1 -0
- package/.dist/prefab/compute/function/cognito-function/cognito-aggregate.d.ts +15 -0
- package/.dist/prefab/compute/function/cognito-function/cognito-aggregate.d.ts.map +1 -0
- package/.dist/prefab/compute/function/cognito-function/cognito-aggregate.js.map +1 -0
- package/.dist/prefab/compute/function/cognito-function/cognito-function.d.ts +17 -0
- package/.dist/prefab/compute/function/cognito-function/cognito-function.d.ts.map +1 -0
- package/.dist/prefab/compute/function/cognito-function/cognito-function.js.map +1 -0
- package/.dist/prefab/compute/function/cognito-function/index.d.ts +3 -0
- package/.dist/prefab/compute/function/cron-function/cron-aggregate.d.ts +14 -0
- package/.dist/prefab/compute/function/cron-function/cron-aggregate.d.ts.map +1 -0
- package/.dist/prefab/compute/function/cron-function/cron-aggregate.js.map +1 -0
- package/.dist/prefab/compute/function/cron-function/cron-function.d.ts +15 -0
- package/.dist/prefab/compute/function/cron-function/cron-function.d.ts.map +1 -0
- package/.dist/prefab/compute/function/cron-function/cron-function.js +24 -0
- package/.dist/prefab/compute/function/cron-function/cron-function.js.map +1 -0
- package/.dist/prefab/compute/function/cron-function/index.d.ts +3 -0
- package/.dist/prefab/compute/function/event-function/EventAggregateParams.d.ts +9 -0
- package/.dist/prefab/compute/function/event-function/EventAggregateParams.d.ts.map +1 -0
- package/.dist/prefab/compute/function/event-function/EventAggregateParams.js +3 -0
- package/.dist/prefab/compute/function/event-function/EventAggregateParams.js.map +1 -0
- package/.dist/prefab/compute/function/event-function/event-aggregate.d.ts +16 -0
- package/.dist/prefab/compute/function/event-function/event-aggregate.d.ts.map +1 -0
- package/.dist/prefab/compute/function/event-function/event-aggregate.js.map +1 -0
- package/.dist/prefab/compute/function/event-function/event-function.d.ts +14 -0
- package/.dist/prefab/compute/function/event-function/event-function.d.ts.map +1 -0
- package/.dist/prefab/compute/function/event-function/event-function.js.map +1 -0
- package/.dist/prefab/compute/function/event-function/index.d.ts +3 -0
- package/.dist/prefab/compute/function/index.d.ts +8 -0
- package/.dist/prefab/compute/function/queue-function/index.d.ts +22 -0
- package/.dist/prefab/compute/function/queue-function/index.d.ts.map +1 -0
- package/.dist/prefab/compute/function/queue-function/index.js +46 -0
- package/.dist/prefab/compute/function/queue-function/index.js.map +1 -0
- package/.dist/prefab/compute/function/topic-function/index.d.ts +20 -0
- package/.dist/prefab/compute/function/topic-function/index.d.ts.map +1 -0
- package/.dist/prefab/compute/function/topic-function/index.js +23 -0
- package/.dist/prefab/compute/function/topic-function/index.js.map +1 -0
- package/.dist/prefab/compute/index.d.ts +3 -0
- package/.dist/prefab/database/dynamo/index.d.ts +13 -0
- package/.dist/prefab/database/dynamo/index.d.ts.map +1 -0
- package/.dist/prefab/database/dynamo/index.js.map +1 -0
- package/.dist/prefab/database/index.d.ts +4 -0
- package/.dist/prefab/database/rds/handlers/start-cluster/handler.d.ts +2 -0
- package/.dist/prefab/database/rds/handlers/stop-cluster/handler.d.ts +2 -0
- package/.dist/prefab/database/rds/index.d.ts +51 -0
- package/.dist/prefab/database/rds/index.d.ts.map +1 -0
- package/.dist/prefab/database/rds/index.js +223 -0
- package/.dist/prefab/database/rds/index.js.map +1 -0
- package/.dist/prefab/database/timestream/index.d.ts +3 -0
- package/.dist/prefab/database/timestream/timestream-database.d.ts +11 -0
- package/.dist/prefab/database/timestream/timestream-database.d.ts.map +1 -0
- package/.dist/prefab/database/timestream/timestream-database.js.map +1 -0
- package/.dist/prefab/database/timestream/timestream-table.d.ts +21 -0
- package/.dist/prefab/database/timestream/timestream-table.d.ts.map +1 -0
- package/.dist/prefab/database/timestream/timestream-table.js.map +1 -0
- package/.dist/prefab/gateway/alb-public/index.d.ts +41 -0
- package/.dist/prefab/gateway/alb-public/index.d.ts.map +1 -0
- package/.dist/prefab/gateway/alb-public/index.js.map +1 -0
- package/.dist/prefab/gateway/api-gateway/api-http.d.ts +27 -0
- package/.dist/prefab/gateway/api-gateway/api-http.d.ts.map +1 -0
- package/.dist/prefab/gateway/api-gateway/api-http.js.map +1 -0
- package/.dist/prefab/gateway/api-gateway/api-rest.d.ts +23 -0
- package/.dist/prefab/gateway/api-gateway/api-rest.d.ts.map +1 -0
- package/.dist/prefab/gateway/api-gateway/api-rest.js.map +1 -0
- package/.dist/prefab/gateway/api-gateway/index.d.ts +3 -0
- package/.dist/prefab/gateway/app-sync/index.d.ts +31 -0
- package/.dist/prefab/gateway/app-sync/index.d.ts.map +1 -0
- package/.dist/prefab/gateway/app-sync/index.js.map +1 -0
- package/.dist/prefab/gateway/app-sync/resolver-aggregate.d.ts +33 -0
- package/.dist/prefab/gateway/app-sync/resolver-aggregate.d.ts.map +1 -0
- package/.dist/prefab/gateway/app-sync/resolver-aggregate.js.map +1 -0
- package/.dist/prefab/gateway/app-sync/types.d.ts +29 -0
- package/.dist/prefab/gateway/app-sync/types.d.ts.map +1 -0
- package/.dist/prefab/gateway/index.d.ts +4 -0
- package/.dist/prefab/index.d.ts +11 -0
- package/.dist/prefab/integration/event-bus/index.d.ts +18 -0
- package/.dist/prefab/integration/event-bus/index.d.ts.map +1 -0
- package/.dist/prefab/integration/event-bus/index.js.map +1 -0
- package/.dist/prefab/integration/index.d.ts +4 -0
- package/.dist/prefab/integration/queue/index.d.ts +29 -0
- package/.dist/prefab/integration/queue/index.d.ts.map +1 -0
- package/.dist/prefab/integration/queue/index.js.map +1 -0
- package/.dist/prefab/integration/topic/index.d.ts +19 -0
- package/.dist/prefab/integration/topic/index.d.ts.map +1 -0
- package/.dist/prefab/integration/topic/index.js.map +1 -0
- package/.dist/prefab/networking/dns-domain-ref/index.d.ts +14 -0
- package/.dist/prefab/networking/dns-domain-ref/index.d.ts.map +1 -0
- package/.dist/prefab/networking/dns-domain-ref/index.js.map +1 -0
- package/.dist/prefab/networking/dns-subdomain-certificate/index.d.ts +11 -0
- package/.dist/prefab/networking/dns-subdomain-certificate/index.d.ts.map +1 -0
- package/.dist/prefab/networking/dns-subdomain-certificate/index.js.map +1 -0
- package/.dist/prefab/networking/dns-subdomain-hosted-zone/index.d.ts +10 -0
- package/.dist/prefab/networking/dns-subdomain-hosted-zone/index.d.ts.map +1 -0
- package/.dist/prefab/networking/dns-subdomain-hosted-zone/index.js.map +1 -0
- package/.dist/prefab/networking/index.d.ts +6 -0
- package/.dist/prefab/networking/vpc/index.d.ts +18 -0
- package/.dist/prefab/networking/vpc/index.d.ts.map +1 -0
- package/.dist/prefab/networking/vpc/index.js.map +1 -0
- package/.dist/prefab/networking/waf/index.d.ts +12 -0
- package/.dist/prefab/networking/waf/index.d.ts.map +1 -0
- package/.dist/prefab/networking/waf/index.js.map +1 -0
- package/.dist/prefab/storage/bucket/asset-bucket.d.ts +10 -0
- package/.dist/prefab/storage/bucket/asset-bucket.d.ts.map +1 -0
- package/.dist/prefab/storage/bucket/index.d.ts +3 -0
- package/.dist/prefab/storage/bucket/private-bucket.d.ts +32 -0
- package/.dist/prefab/storage/bucket/private-bucket.d.ts.map +1 -0
- package/.dist/prefab/storage/bucket/private-bucket.js.map +1 -0
- package/.dist/prefab/storage/index.d.ts +2 -0
- package/.dist/prefab/utils/config/frontend-env-builder.d.ts +12 -0
- package/.dist/prefab/utils/config/frontend-env-builder.d.ts.map +1 -0
- package/.dist/prefab/utils/config/frontend-env-builder.js.map +1 -0
- package/.dist/prefab/utils/config/index.d.ts +4 -0
- package/.dist/prefab/utils/config/parameter-secret.d.ts +19 -0
- package/.dist/prefab/utils/config/parameter-secret.d.ts.map +1 -0
- package/.dist/prefab/utils/config/parameter-secret.js.map +1 -0
- package/.dist/prefab/utils/config/runtime-secret.d.ts.map +1 -0
- package/.dist/prefab/utils/config/runtime-secret.js.map +1 -0
- package/.dist/prefab/utils/deploy-pipeline/catalog/integrations/index.d.ts +2 -0
- package/.dist/prefab/utils/deploy-pipeline/entities/index.d.ts +29 -0
- package/.dist/prefab/utils/deploy-pipeline/index.d.ts +13 -0
- package/.dist/prefab/utils/deploy-pipeline/index.d.ts.map +1 -0
- package/.dist/prefab/utils/deploy-pipeline/index.js.map +1 -0
- package/.dist/prefab/utils/deploy-pipeline/platform/get-pipeline-detail.d.ts +6 -0
- package/.dist/prefab/utils/deploy-pipeline/platform/get-slack-payload.d.ts +3 -0
- package/.dist/prefab/utils/duration.d.ts +2 -0
- package/.dist/prefab/utils/index.d.ts +5 -0
- package/.dist/prefab/utils/ses/index.d.ts +20 -0
- package/.dist/prefab/utils/ses/index.d.ts.map +1 -0
- package/.dist/prefab/utils/ses/index.js.map +1 -0
- package/.dist/script/config-command/bootstrap.d.ts +3 -0
- package/.dist/script/config-command/bootstrap.js +65 -0
- package/.dist/script/config-command/bootstrap.js.map +1 -0
- package/.dist/script/config-command/deploy-spa.d.ts +3 -0
- package/.dist/script/config-command/deploy-spa.d.ts.map +1 -0
- package/.dist/script/config-command/deploy-spa.js +82 -0
- package/.dist/script/config-command/deploy-spa.js.map +1 -0
- package/.dist/script/config-command/deploy.d.ts +3 -0
- package/.dist/script/config-command/deploy.js +26 -0
- package/.dist/script/config-command/deploy.js.map +1 -0
- package/.dist/script/config-command/destroy.d.ts +3 -0
- package/.dist/script/config-command/destroy.js +26 -0
- package/.dist/script/config-command/destroy.js.map +1 -0
- package/.dist/script/config-command/env-ssr.d.ts +3 -0
- package/.dist/script/config-command/env-ssr.js +49 -0
- package/.dist/script/config-command/env-ssr.js.map +1 -0
- package/.dist/script/config-command/invalidation-ssr.d.ts +3 -0
- package/.dist/script/config-command/invalidation-ssr.js +53 -0
- package/.dist/script/config-command/invalidation-ssr.js.map +1 -0
- package/.dist/script/config-command/rds-migration.d.ts +5 -0
- package/.dist/script/config-command/rds-migration.js.map +1 -0
- package/.dist/script/config-command/rds-sync.d.ts +3 -0
- package/.dist/script/config-command/rds-sync.js.map +1 -0
- package/.dist/script/config-command/ssm-connect.d.ts +3 -0
- package/.dist/script/config-command/ssm-connect.js.map +1 -0
- package/.dist/script/config-command/start-spa.d.ts +3 -0
- package/.dist/script/config-command/start-spa.js +53 -0
- package/.dist/script/config-command/start-spa.js.map +1 -0
- package/.dist/script/config-command/start-ssr.d.ts +3 -0
- package/.dist/script/config-command/start-ssr.js +53 -0
- package/.dist/script/config-command/start-ssr.js.map +1 -0
- package/.dist/script/config-command/synth.d.ts +3 -0
- package/.dist/script/config-command/synth.js +26 -0
- package/.dist/script/config-command/synth.js.map +1 -0
- package/.dist/script/index.d.ts +7 -0
- package/.dist/script/index.d.ts.map +1 -0
- package/.dist/script/output-command/create-user.d.ts +9 -0
- package/.dist/script/output-command/create-user.d.ts.map +1 -0
- package/.dist/script/output-command/create-user.js.map +1 -0
- package/.dist/script/output-command/gen-postman-env.d.ts +9 -0
- package/.dist/script/output-command/gen-postman-env.d.ts.map +1 -0
- package/.dist/script/output-command/gen-postman-env.js +55 -0
- package/.dist/script/output-command/gen-postman-env.js.map +1 -0
- package/.dist/tsconfig.tsbuildinfo +1 -0
- package/.prettierignore +10 -0
- package/.prettierrc.json +12 -0
- package/.turbo/turbo-build.log +5 -0
- package/.turbo/turbo-release.log +7 -0
- package/CHANGELOG.md +8 -0
- package/common/coordinator.ts +103 -0
- package/common/index.ts +5 -0
- package/common/modifier.ts +11 -0
- package/common/naming/get-deploy-config.ts +5 -0
- package/common/naming/get-domain.ts +14 -0
- package/common/naming/get-function-entry.ts +11 -0
- package/common/naming/get-logical-name.ts +3 -0
- package/common/naming/get-resource-name.ts +77 -0
- package/common/naming/get-service-name.ts +13 -0
- package/common/naming/index.ts +7 -0
- package/common/naming/string-parser.ts +17 -0
- package/common/service.ts +48 -0
- package/common/synth/account-mapping.ts +16 -0
- package/common/synth/assume-role.ts +39 -0
- package/common/synth/get-global-props.ts +46 -0
- package/common/synth/get-service-props.ts +16 -0
- package/common/synth/index.ts +7 -0
- package/common/synth/pre-script.ts +103 -0
- package/common/synth/props-types.ts +79 -0
- package/common/synth/synth-error.ts +13 -0
- package/index.ts +3 -0
- package/package.json +4 -5
- package/prefab/analytics/events/handlers/ingestion-transform/handler.ts +35 -0
- package/prefab/analytics/events/index.ts +192 -0
- package/prefab/analytics/index.ts +1 -0
- package/prefab/auth/cognito-pool/index.ts +263 -0
- package/prefab/auth/index.ts +1 -0
- package/prefab/cdn/cdn-api/index.ts +169 -0
- package/prefab/cdn/cdn-asset/index.ts +89 -0
- package/prefab/cdn/cdn-spa/index.ts +136 -0
- package/prefab/cdn/cdn-ssr/index.ts +288 -0
- package/prefab/cdn/index.ts +4 -0
- package/prefab/compute/fargate/cluster.ts +24 -0
- package/prefab/compute/fargate/index.ts +2 -0
- package/prefab/compute/fargate/service.ts +130 -0
- package/prefab/compute/function/api-function/api-aggregate.ts +73 -0
- package/prefab/compute/function/api-function/api-function.ts +63 -0
- package/prefab/compute/function/api-function/index.ts +2 -0
- package/prefab/compute/function/base-function/index.ts +102 -0
- package/prefab/compute/function/cognito-function/cognito-aggregate.ts +29 -0
- package/prefab/compute/function/cognito-function/cognito-function.ts +36 -0
- package/prefab/compute/function/cognito-function/index.ts +2 -0
- package/prefab/compute/function/cron-function/cron-aggregate.ts +28 -0
- package/prefab/compute/function/cron-function/cron-function.ts +32 -0
- package/prefab/compute/function/cron-function/index.ts +2 -0
- package/prefab/compute/function/event-function/EventAggregateParams.ts +9 -0
- package/prefab/compute/function/event-function/event-aggregate.ts +33 -0
- package/prefab/compute/function/event-function/event-function.ts +42 -0
- package/prefab/compute/function/event-function/index.ts +2 -0
- package/prefab/compute/function/index.ts +7 -0
- package/prefab/compute/function/queue-function/index.ts +67 -0
- package/prefab/compute/function/topic-function/index.ts +36 -0
- package/prefab/compute/index.ts +2 -0
- package/prefab/database/dynamo/index.ts +113 -0
- package/prefab/database/index.ts +3 -0
- package/prefab/database/rds/handlers/start-cluster/handler.ts +7 -0
- package/prefab/database/rds/handlers/stop-cluster/handler.ts +7 -0
- package/prefab/database/rds/index.ts +248 -0
- package/prefab/database/timestream/index.ts +2 -0
- package/prefab/database/timestream/timestream-database.ts +24 -0
- package/prefab/database/timestream/timestream-table.ts +76 -0
- package/prefab/gateway/alb-public/index.ts +124 -0
- package/prefab/gateway/api-gateway/api-http.ts +71 -0
- package/prefab/gateway/api-gateway/api-rest.ts +93 -0
- package/prefab/gateway/api-gateway/index.ts +2 -0
- package/prefab/gateway/app-sync/index.ts +117 -0
- package/prefab/gateway/app-sync/resolver-aggregate.ts +138 -0
- package/prefab/gateway/app-sync/types.ts +29 -0
- package/prefab/gateway/index.ts +3 -0
- package/prefab/index.ts +10 -0
- package/prefab/integration/event-bus/index.ts +52 -0
- package/prefab/integration/index.ts +3 -0
- package/prefab/integration/queue/index.ts +94 -0
- package/prefab/integration/topic/index.ts +57 -0
- package/prefab/networking/dns-domain-ref/index.ts +32 -0
- package/prefab/networking/dns-subdomain-certificate/index.ts +30 -0
- package/prefab/networking/dns-subdomain-hosted-zone/index.ts +30 -0
- package/prefab/networking/index.ts +5 -0
- package/prefab/networking/vpc/index.ts +39 -0
- package/prefab/networking/waf/index.ts +49 -0
- package/prefab/storage/bucket/asset-bucket.ts +24 -0
- package/prefab/storage/bucket/index.ts +2 -0
- package/prefab/storage/bucket/private-bucket.ts +74 -0
- package/prefab/storage/index.ts +1 -0
- package/prefab/utils/config/frontend-env-builder.ts +30 -0
- package/prefab/utils/config/index.ts +3 -0
- package/prefab/utils/config/parameter-secret.ts +52 -0
- package/prefab/utils/config/runtime-secret.ts +48 -0
- package/prefab/utils/deploy-pipeline/catalog/integrations/index.ts +1 -0
- package/prefab/utils/deploy-pipeline/catalog/integrations/slack.ts +23 -0
- package/prefab/utils/deploy-pipeline/entities/index.ts +23 -0
- package/prefab/utils/deploy-pipeline/handlers/send-to-slack/handler.ts +32 -0
- package/prefab/utils/deploy-pipeline/index.ts +172 -0
- package/prefab/utils/deploy-pipeline/platform/get-pipeline-detail.ts +31 -0
- package/prefab/utils/deploy-pipeline/platform/get-slack-payload.ts +38 -0
- package/prefab/utils/deploy-pipeline/platform/send-to-slack.ts +16 -0
- package/prefab/utils/duration.ts +1 -0
- package/prefab/utils/index.ts +4 -0
- package/prefab/utils/ses/index.ts +134 -0
- package/readme.md +78 -0
- package/script/config-command/bootstrap.ts +108 -0
- package/script/config-command/deploy-spa.ts +126 -0
- package/script/config-command/deploy.ts +50 -0
- package/script/config-command/destroy.ts +49 -0
- package/script/config-command/env-ssr.ts +85 -0
- package/script/config-command/invalidation-ssr.ts +88 -0
- package/script/config-command/rds-migration.ts +177 -0
- package/script/config-command/rds-sync.ts +108 -0
- package/script/config-command/ssm-connect.ts +129 -0
- package/script/config-command/start-spa.ts +93 -0
- package/script/config-command/start-ssr.ts +91 -0
- package/script/config-command/synth.ts +50 -0
- package/script/index.ts +86 -0
- package/script/output-command/create-user.ts +89 -0
- package/script/output-command/gen-postman-env.ts +75 -0
- package/tsconfig.json +26 -0
- package/common/coordinator.d.ts +0 -28
- package/common/index.d.ts +0 -6
- package/common/modifier.d.ts +0 -5
- package/common/naming/get-deploy-config.d.ts +0 -9
- package/common/naming/get-domain.d.ts +0 -9
- package/common/naming/get-function-entry.d.ts +0 -4
- package/common/naming/get-logical-name.d.ts +0 -2
- package/common/naming/get-resource-name.d.ts +0 -47
- package/common/naming/get-service-name.d.ts +0 -10
- package/common/naming/index.d.ts +0 -8
- package/common/naming/string-parser.d.ts +0 -4
- package/common/service.d.ts +0 -29
- package/common/synth/account-mapping.d.ts +0 -2
- package/common/synth/assume-role.d.ts +0 -18
- package/common/synth/get-global-props.d.ts +0 -16
- package/common/synth/get-service-props.d.ts +0 -11
- package/common/synth/index.d.ts +0 -8
- package/common/synth/pre-script.d.ts +0 -32
- package/common/synth/props-types.d.ts +0 -60
- package/common/synth/synth-error.d.ts +0 -8
- package/index.d.ts +0 -4
- package/prefab/analytics/events/handlers/ingestion-transform/handler.d.ts +0 -4
- package/prefab/analytics/events/index.d.ts +0 -31
- package/prefab/analytics/events/index.d.ts.map +0 -1
- package/prefab/analytics/events/index.js +0 -163
- package/prefab/analytics/events/index.js.map +0 -1
- package/prefab/analytics/index.d.ts +0 -2
- package/prefab/auth/cognito-pool/index.d.ts +0 -65
- package/prefab/auth/cognito-pool/index.d.ts.map +0 -1
- package/prefab/auth/cognito-pool/index.js.map +0 -1
- package/prefab/auth/index.d.ts +0 -2
- package/prefab/cdn/cdn-api/index.d.ts +0 -38
- package/prefab/cdn/cdn-api/index.d.ts.map +0 -1
- package/prefab/cdn/cdn-api/index.js +0 -153
- package/prefab/cdn/cdn-api/index.js.map +0 -1
- package/prefab/cdn/cdn-asset/index.d.ts +0 -27
- package/prefab/cdn/cdn-asset/index.d.ts.map +0 -1
- package/prefab/cdn/cdn-asset/index.js +0 -96
- package/prefab/cdn/cdn-asset/index.js.map +0 -1
- package/prefab/cdn/cdn-spa/index.d.ts +0 -27
- package/prefab/cdn/cdn-spa/index.d.ts.map +0 -1
- package/prefab/cdn/cdn-spa/index.js +0 -138
- package/prefab/cdn/cdn-spa/index.js.map +0 -1
- package/prefab/cdn/cdn-ssr/index.d.ts +0 -36
- package/prefab/cdn/cdn-ssr/index.d.ts.map +0 -1
- package/prefab/cdn/cdn-ssr/index.js +0 -271
- package/prefab/cdn/cdn-ssr/index.js.map +0 -1
- package/prefab/cdn/index.d.ts +0 -5
- package/prefab/compute/fargate/cluster.d.ts +0 -16
- package/prefab/compute/fargate/cluster.d.ts.map +0 -1
- package/prefab/compute/fargate/cluster.js.map +0 -1
- package/prefab/compute/fargate/index.d.ts +0 -3
- package/prefab/compute/fargate/service.d.ts +0 -49
- package/prefab/compute/fargate/service.d.ts.map +0 -1
- package/prefab/compute/fargate/service.js.map +0 -1
- package/prefab/compute/function/api-function/api-aggregate.d.ts +0 -32
- package/prefab/compute/function/api-function/api-aggregate.d.ts.map +0 -1
- package/prefab/compute/function/api-function/api-aggregate.js +0 -54
- package/prefab/compute/function/api-function/api-aggregate.js.map +0 -1
- package/prefab/compute/function/api-function/api-function.d.ts +0 -22
- package/prefab/compute/function/api-function/api-function.d.ts.map +0 -1
- package/prefab/compute/function/api-function/api-function.js +0 -45
- package/prefab/compute/function/api-function/api-function.js.map +0 -1
- package/prefab/compute/function/api-function/index.d.ts +0 -3
- package/prefab/compute/function/base-function/index.d.ts +0 -33
- package/prefab/compute/function/base-function/index.d.ts.map +0 -1
- package/prefab/compute/function/base-function/index.js +0 -70
- package/prefab/compute/function/base-function/index.js.map +0 -1
- package/prefab/compute/function/cognito-function/cognito-aggregate.d.ts +0 -18
- package/prefab/compute/function/cognito-function/cognito-aggregate.d.ts.map +0 -1
- package/prefab/compute/function/cognito-function/cognito-aggregate.js.map +0 -1
- package/prefab/compute/function/cognito-function/cognito-function.d.ts +0 -19
- package/prefab/compute/function/cognito-function/cognito-function.d.ts.map +0 -1
- package/prefab/compute/function/cognito-function/cognito-function.js.map +0 -1
- package/prefab/compute/function/cognito-function/index.d.ts +0 -3
- package/prefab/compute/function/cron-function/cron-aggregate.d.ts +0 -17
- package/prefab/compute/function/cron-function/cron-aggregate.d.ts.map +0 -1
- package/prefab/compute/function/cron-function/cron-aggregate.js.map +0 -1
- package/prefab/compute/function/cron-function/cron-function.d.ts +0 -17
- package/prefab/compute/function/cron-function/cron-function.d.ts.map +0 -1
- package/prefab/compute/function/cron-function/cron-function.js +0 -24
- package/prefab/compute/function/cron-function/cron-function.js.map +0 -1
- package/prefab/compute/function/cron-function/index.d.ts +0 -3
- package/prefab/compute/function/event-function/event-aggregate.d.ts +0 -20
- package/prefab/compute/function/event-function/event-aggregate.d.ts.map +0 -1
- package/prefab/compute/function/event-function/event-aggregate.js.map +0 -1
- package/prefab/compute/function/event-function/event-function.d.ts +0 -14
- package/prefab/compute/function/event-function/event-function.d.ts.map +0 -1
- package/prefab/compute/function/event-function/event-function.js.map +0 -1
- package/prefab/compute/function/event-function/index.d.ts +0 -3
- package/prefab/compute/function/index.d.ts +0 -8
- package/prefab/compute/function/queue-function/index.d.ts +0 -25
- package/prefab/compute/function/queue-function/index.d.ts.map +0 -1
- package/prefab/compute/function/queue-function/index.js +0 -46
- package/prefab/compute/function/queue-function/index.js.map +0 -1
- package/prefab/compute/function/topic-function/index.d.ts +0 -23
- package/prefab/compute/function/topic-function/index.d.ts.map +0 -1
- package/prefab/compute/function/topic-function/index.js +0 -23
- package/prefab/compute/function/topic-function/index.js.map +0 -1
- package/prefab/compute/index.d.ts +0 -3
- package/prefab/database/dynamo/index.d.ts +0 -14
- package/prefab/database/dynamo/index.d.ts.map +0 -1
- package/prefab/database/dynamo/index.js.map +0 -1
- package/prefab/database/index.d.ts +0 -4
- package/prefab/database/rds/handlers/start-cluster/handler.d.ts +0 -2
- package/prefab/database/rds/handlers/stop-cluster/handler.d.ts +0 -2
- package/prefab/database/rds/index.d.ts +0 -54
- package/prefab/database/rds/index.d.ts.map +0 -1
- package/prefab/database/rds/index.js +0 -223
- package/prefab/database/rds/index.js.map +0 -1
- package/prefab/database/timestream/index.d.ts +0 -3
- package/prefab/database/timestream/timestream-database.d.ts +0 -13
- package/prefab/database/timestream/timestream-database.d.ts.map +0 -1
- package/prefab/database/timestream/timestream-database.js.map +0 -1
- package/prefab/database/timestream/timestream-table.d.ts +0 -23
- package/prefab/database/timestream/timestream-table.d.ts.map +0 -1
- package/prefab/database/timestream/timestream-table.js.map +0 -1
- package/prefab/gateway/alb-public/index.d.ts +0 -44
- package/prefab/gateway/alb-public/index.d.ts.map +0 -1
- package/prefab/gateway/alb-public/index.js.map +0 -1
- package/prefab/gateway/api-gateway/api-http.d.ts +0 -27
- package/prefab/gateway/api-gateway/api-http.d.ts.map +0 -1
- package/prefab/gateway/api-gateway/api-http.js.map +0 -1
- package/prefab/gateway/api-gateway/api-rest.d.ts +0 -26
- package/prefab/gateway/api-gateway/api-rest.d.ts.map +0 -1
- package/prefab/gateway/api-gateway/api-rest.js.map +0 -1
- package/prefab/gateway/api-gateway/index.d.ts +0 -3
- package/prefab/gateway/app-sync/index.d.ts +0 -36
- package/prefab/gateway/app-sync/index.d.ts.map +0 -1
- package/prefab/gateway/app-sync/index.js.map +0 -1
- package/prefab/gateway/app-sync/resolver-aggregate.d.ts +0 -33
- package/prefab/gateway/app-sync/resolver-aggregate.d.ts.map +0 -1
- package/prefab/gateway/app-sync/resolver-aggregate.js.map +0 -1
- package/prefab/gateway/app-sync/types.d.ts +0 -29
- package/prefab/gateway/app-sync/types.d.ts.map +0 -1
- package/prefab/gateway/index.d.ts +0 -4
- package/prefab/index.d.ts +0 -11
- package/prefab/integration/event-bus/index.d.ts +0 -20
- package/prefab/integration/event-bus/index.d.ts.map +0 -1
- package/prefab/integration/event-bus/index.js.map +0 -1
- package/prefab/integration/index.d.ts +0 -4
- package/prefab/integration/queue/index.d.ts +0 -29
- package/prefab/integration/queue/index.d.ts.map +0 -1
- package/prefab/integration/queue/index.js.map +0 -1
- package/prefab/integration/topic/index.d.ts +0 -21
- package/prefab/integration/topic/index.d.ts.map +0 -1
- package/prefab/integration/topic/index.js.map +0 -1
- package/prefab/networking/dns-domain-ref/index.d.ts +0 -16
- package/prefab/networking/dns-domain-ref/index.d.ts.map +0 -1
- package/prefab/networking/dns-domain-ref/index.js.map +0 -1
- package/prefab/networking/dns-subdomain-certificate/index.d.ts +0 -13
- package/prefab/networking/dns-subdomain-certificate/index.d.ts.map +0 -1
- package/prefab/networking/dns-subdomain-certificate/index.js.map +0 -1
- package/prefab/networking/dns-subdomain-hosted-zone/index.d.ts +0 -12
- package/prefab/networking/dns-subdomain-hosted-zone/index.d.ts.map +0 -1
- package/prefab/networking/dns-subdomain-hosted-zone/index.js.map +0 -1
- package/prefab/networking/index.d.ts +0 -6
- package/prefab/networking/vpc/index.d.ts +0 -20
- package/prefab/networking/vpc/index.d.ts.map +0 -1
- package/prefab/networking/vpc/index.js.map +0 -1
- package/prefab/networking/waf/index.d.ts +0 -14
- package/prefab/networking/waf/index.d.ts.map +0 -1
- package/prefab/networking/waf/index.js.map +0 -1
- package/prefab/storage/bucket/asset-bucket.d.ts +0 -12
- package/prefab/storage/bucket/asset-bucket.d.ts.map +0 -1
- package/prefab/storage/bucket/index.d.ts +0 -3
- package/prefab/storage/bucket/private-bucket.d.ts +0 -26
- package/prefab/storage/bucket/private-bucket.d.ts.map +0 -1
- package/prefab/storage/bucket/private-bucket.js.map +0 -1
- package/prefab/storage/index.d.ts +0 -2
- package/prefab/utils/config/frontend-env-builder.d.ts +0 -14
- package/prefab/utils/config/frontend-env-builder.d.ts.map +0 -1
- package/prefab/utils/config/frontend-env-builder.js.map +0 -1
- package/prefab/utils/config/index.d.ts +0 -4
- package/prefab/utils/config/parameter-secret.d.ts +0 -21
- package/prefab/utils/config/parameter-secret.d.ts.map +0 -1
- package/prefab/utils/config/parameter-secret.js.map +0 -1
- package/prefab/utils/config/runtime-secret.d.ts.map +0 -1
- package/prefab/utils/config/runtime-secret.js.map +0 -1
- package/prefab/utils/deploy-pipeline/catalog/integrations/index.d.ts +0 -2
- package/prefab/utils/deploy-pipeline/entities/index.d.ts +0 -29
- package/prefab/utils/deploy-pipeline/index.d.ts +0 -15
- package/prefab/utils/deploy-pipeline/index.d.ts.map +0 -1
- package/prefab/utils/deploy-pipeline/index.js.map +0 -1
- package/prefab/utils/deploy-pipeline/platform/get-pipeline-detail.d.ts +0 -6
- package/prefab/utils/deploy-pipeline/platform/get-slack-payload.d.ts +0 -4
- package/prefab/utils/duration.d.ts +0 -2
- package/prefab/utils/index.d.ts +0 -5
- package/prefab/utils/ses/index.d.ts +0 -22
- package/prefab/utils/ses/index.d.ts.map +0 -1
- package/prefab/utils/ses/index.js.map +0 -1
- package/script/config-command/bootstrap.d.ts +0 -4
- package/script/config-command/bootstrap.js +0 -66
- package/script/config-command/bootstrap.js.map +0 -1
- package/script/config-command/deploy-spa.d.ts +0 -4
- package/script/config-command/deploy-spa.d.ts.map +0 -1
- package/script/config-command/deploy-spa.js +0 -84
- package/script/config-command/deploy-spa.js.map +0 -1
- package/script/config-command/deploy.d.ts +0 -4
- package/script/config-command/deploy.js +0 -26
- package/script/config-command/deploy.js.map +0 -1
- package/script/config-command/destroy.d.ts +0 -4
- package/script/config-command/destroy.js +0 -26
- package/script/config-command/destroy.js.map +0 -1
- package/script/config-command/env-ssr.d.ts +0 -4
- package/script/config-command/env-ssr.js +0 -51
- package/script/config-command/env-ssr.js.map +0 -1
- package/script/config-command/invalidation-ssr.d.ts +0 -4
- package/script/config-command/invalidation-ssr.js +0 -55
- package/script/config-command/invalidation-ssr.js.map +0 -1
- package/script/config-command/rds-migration.d.ts +0 -7
- package/script/config-command/rds-migration.js.map +0 -1
- package/script/config-command/rds-sync.d.ts +0 -4
- package/script/config-command/rds-sync.js.map +0 -1
- package/script/config-command/ssm-connect.d.ts +0 -4
- package/script/config-command/ssm-connect.js.map +0 -1
- package/script/config-command/start-spa.d.ts +0 -4
- package/script/config-command/start-spa.js +0 -55
- package/script/config-command/start-spa.js.map +0 -1
- package/script/config-command/start-ssr.d.ts +0 -4
- package/script/config-command/start-ssr.js +0 -55
- package/script/config-command/start-ssr.js.map +0 -1
- package/script/config-command/synth.d.ts +0 -4
- package/script/config-command/synth.js +0 -26
- package/script/config-command/synth.js.map +0 -1
- package/script/index.d.ts +0 -25
- package/script/index.d.ts.map +0 -1
- package/script/output-command/create-user.d.ts +0 -9
- package/script/output-command/create-user.d.ts.map +0 -1
- package/script/output-command/create-user.js.map +0 -1
- package/script/output-command/gen-postman-env.d.ts +0 -28
- package/script/output-command/gen-postman-env.d.ts.map +0 -1
- package/script/output-command/gen-postman-env.js +0 -56
- package/script/output-command/gen-postman-env.js.map +0 -1
- package/tsconfig.tsbuildinfo +0 -1
- /package/{common → .dist/common}/coordinator.d.ts.map +0 -0
- /package/{common → .dist/common}/coordinator.js +0 -0
- /package/{common → .dist/common}/coordinator.js.map +0 -0
- /package/{common → .dist/common}/index.d.ts.map +0 -0
- /package/{common → .dist/common}/index.js +0 -0
- /package/{common → .dist/common}/index.js.map +0 -0
- /package/{common → .dist/common}/modifier.d.ts.map +0 -0
- /package/{common → .dist/common}/modifier.js +0 -0
- /package/{common → .dist/common}/modifier.js.map +0 -0
- /package/{common → .dist/common}/naming/get-deploy-config.d.ts.map +0 -0
- /package/{common → .dist/common}/naming/get-deploy-config.js +0 -0
- /package/{common → .dist/common}/naming/get-deploy-config.js.map +0 -0
- /package/{common → .dist/common}/naming/get-domain.d.ts.map +0 -0
- /package/{common → .dist/common}/naming/get-domain.js +0 -0
- /package/{common → .dist/common}/naming/get-domain.js.map +0 -0
- /package/{common → .dist/common}/naming/get-function-entry.d.ts.map +0 -0
- /package/{common → .dist/common}/naming/get-function-entry.js +0 -0
- /package/{common → .dist/common}/naming/get-function-entry.js.map +0 -0
- /package/{common → .dist/common}/naming/get-logical-name.d.ts.map +0 -0
- /package/{common → .dist/common}/naming/get-logical-name.js +0 -0
- /package/{common → .dist/common}/naming/get-logical-name.js.map +0 -0
- /package/{common → .dist/common}/naming/get-resource-name.d.ts.map +0 -0
- /package/{common → .dist/common}/naming/get-resource-name.js +0 -0
- /package/{common → .dist/common}/naming/get-resource-name.js.map +0 -0
- /package/{common → .dist/common}/naming/get-service-name.d.ts.map +0 -0
- /package/{common → .dist/common}/naming/get-service-name.js +0 -0
- /package/{common → .dist/common}/naming/get-service-name.js.map +0 -0
- /package/{common → .dist/common}/naming/index.d.ts.map +0 -0
- /package/{common → .dist/common}/naming/index.js +0 -0
- /package/{common → .dist/common}/naming/index.js.map +0 -0
- /package/{common → .dist/common}/naming/string-parser.d.ts.map +0 -0
- /package/{common → .dist/common}/naming/string-parser.js +0 -0
- /package/{common → .dist/common}/naming/string-parser.js.map +0 -0
- /package/{common → .dist/common}/service.d.ts.map +0 -0
- /package/{common → .dist/common}/service.js +0 -0
- /package/{common → .dist/common}/service.js.map +0 -0
- /package/{common → .dist/common}/synth/account-mapping.d.ts.map +0 -0
- /package/{common → .dist/common}/synth/account-mapping.js +0 -0
- /package/{common → .dist/common}/synth/account-mapping.js.map +0 -0
- /package/{common → .dist/common}/synth/assume-role.d.ts.map +0 -0
- /package/{common → .dist/common}/synth/assume-role.js +0 -0
- /package/{common → .dist/common}/synth/assume-role.js.map +0 -0
- /package/{common → .dist/common}/synth/get-global-props.d.ts.map +0 -0
- /package/{common → .dist/common}/synth/get-global-props.js +0 -0
- /package/{common → .dist/common}/synth/get-global-props.js.map +0 -0
- /package/{common → .dist/common}/synth/get-service-props.d.ts.map +0 -0
- /package/{common → .dist/common}/synth/get-service-props.js +0 -0
- /package/{common → .dist/common}/synth/get-service-props.js.map +0 -0
- /package/{common → .dist/common}/synth/index.d.ts.map +0 -0
- /package/{common → .dist/common}/synth/index.js +0 -0
- /package/{common → .dist/common}/synth/index.js.map +0 -0
- /package/{common → .dist/common}/synth/pre-script.d.ts.map +0 -0
- /package/{common → .dist/common}/synth/pre-script.js +0 -0
- /package/{common → .dist/common}/synth/pre-script.js.map +0 -0
- /package/{common → .dist/common}/synth/props-types.d.ts.map +0 -0
- /package/{common → .dist/common}/synth/props-types.js +0 -0
- /package/{common → .dist/common}/synth/props-types.js.map +0 -0
- /package/{common → .dist/common}/synth/synth-error.d.ts.map +0 -0
- /package/{common → .dist/common}/synth/synth-error.js +0 -0
- /package/{common → .dist/common}/synth/synth-error.js.map +0 -0
- /package/{index.d.ts.map → .dist/index.d.ts.map} +0 -0
- /package/{index.js → .dist/index.js} +0 -0
- /package/{index.js.map → .dist/index.js.map} +0 -0
- /package/{prefab → .dist/prefab}/analytics/events/handlers/ingestion-transform/handler.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/analytics/events/handlers/ingestion-transform/handler.js +0 -0
- /package/{prefab → .dist/prefab}/analytics/events/handlers/ingestion-transform/handler.js.map +0 -0
- /package/{prefab → .dist/prefab}/analytics/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/analytics/index.js +0 -0
- /package/{prefab → .dist/prefab}/analytics/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/auth/cognito-pool/index.js +0 -0
- /package/{prefab → .dist/prefab}/auth/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/auth/index.js +0 -0
- /package/{prefab → .dist/prefab}/auth/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/cdn/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/cdn/index.js +0 -0
- /package/{prefab → .dist/prefab}/cdn/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/compute/fargate/cluster.js +0 -0
- /package/{prefab → .dist/prefab}/compute/fargate/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/compute/fargate/index.js +0 -0
- /package/{prefab → .dist/prefab}/compute/fargate/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/compute/fargate/service.js +0 -0
- /package/{prefab → .dist/prefab}/compute/function/api-function/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/compute/function/api-function/index.js +0 -0
- /package/{prefab → .dist/prefab}/compute/function/api-function/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/compute/function/cognito-function/cognito-aggregate.js +0 -0
- /package/{prefab → .dist/prefab}/compute/function/cognito-function/cognito-function.js +0 -0
- /package/{prefab → .dist/prefab}/compute/function/cognito-function/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/compute/function/cognito-function/index.js +0 -0
- /package/{prefab → .dist/prefab}/compute/function/cognito-function/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/compute/function/cron-function/cron-aggregate.js +0 -0
- /package/{prefab → .dist/prefab}/compute/function/cron-function/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/compute/function/cron-function/index.js +0 -0
- /package/{prefab → .dist/prefab}/compute/function/cron-function/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/compute/function/event-function/event-aggregate.js +0 -0
- /package/{prefab → .dist/prefab}/compute/function/event-function/event-function.js +0 -0
- /package/{prefab → .dist/prefab}/compute/function/event-function/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/compute/function/event-function/index.js +0 -0
- /package/{prefab → .dist/prefab}/compute/function/event-function/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/compute/function/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/compute/function/index.js +0 -0
- /package/{prefab → .dist/prefab}/compute/function/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/compute/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/compute/index.js +0 -0
- /package/{prefab → .dist/prefab}/compute/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/database/dynamo/index.js +0 -0
- /package/{prefab → .dist/prefab}/database/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/database/index.js +0 -0
- /package/{prefab → .dist/prefab}/database/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/database/rds/handlers/start-cluster/handler.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/database/rds/handlers/start-cluster/handler.js +0 -0
- /package/{prefab → .dist/prefab}/database/rds/handlers/start-cluster/handler.js.map +0 -0
- /package/{prefab → .dist/prefab}/database/rds/handlers/stop-cluster/handler.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/database/rds/handlers/stop-cluster/handler.js +0 -0
- /package/{prefab → .dist/prefab}/database/rds/handlers/stop-cluster/handler.js.map +0 -0
- /package/{prefab → .dist/prefab}/database/timestream/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/database/timestream/index.js +0 -0
- /package/{prefab → .dist/prefab}/database/timestream/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/database/timestream/timestream-database.js +0 -0
- /package/{prefab → .dist/prefab}/database/timestream/timestream-table.js +0 -0
- /package/{prefab → .dist/prefab}/gateway/alb-public/index.js +0 -0
- /package/{prefab → .dist/prefab}/gateway/api-gateway/api-http.js +0 -0
- /package/{prefab → .dist/prefab}/gateway/api-gateway/api-rest.js +0 -0
- /package/{prefab → .dist/prefab}/gateway/api-gateway/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/gateway/api-gateway/index.js +0 -0
- /package/{prefab → .dist/prefab}/gateway/api-gateway/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/gateway/app-sync/index.js +0 -0
- /package/{prefab → .dist/prefab}/gateway/app-sync/resolver-aggregate.js +0 -0
- /package/{prefab → .dist/prefab}/gateway/app-sync/types.js +0 -0
- /package/{prefab → .dist/prefab}/gateway/app-sync/types.js.map +0 -0
- /package/{prefab → .dist/prefab}/gateway/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/gateway/index.js +0 -0
- /package/{prefab → .dist/prefab}/gateway/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/index.js +0 -0
- /package/{prefab → .dist/prefab}/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/integration/event-bus/index.js +0 -0
- /package/{prefab → .dist/prefab}/integration/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/integration/index.js +0 -0
- /package/{prefab → .dist/prefab}/integration/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/integration/queue/index.js +0 -0
- /package/{prefab → .dist/prefab}/integration/topic/index.js +0 -0
- /package/{prefab → .dist/prefab}/networking/dns-domain-ref/index.js +0 -0
- /package/{prefab → .dist/prefab}/networking/dns-subdomain-certificate/index.js +0 -0
- /package/{prefab → .dist/prefab}/networking/dns-subdomain-hosted-zone/index.js +0 -0
- /package/{prefab → .dist/prefab}/networking/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/networking/index.js +0 -0
- /package/{prefab → .dist/prefab}/networking/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/networking/vpc/index.js +0 -0
- /package/{prefab → .dist/prefab}/networking/waf/index.js +0 -0
- /package/{prefab → .dist/prefab}/storage/bucket/asset-bucket.js +0 -0
- /package/{prefab → .dist/prefab}/storage/bucket/asset-bucket.js.map +0 -0
- /package/{prefab → .dist/prefab}/storage/bucket/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/storage/bucket/index.js +0 -0
- /package/{prefab → .dist/prefab}/storage/bucket/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/storage/bucket/private-bucket.js +0 -0
- /package/{prefab → .dist/prefab}/storage/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/storage/index.js +0 -0
- /package/{prefab → .dist/prefab}/storage/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/utils/config/frontend-env-builder.js +0 -0
- /package/{prefab → .dist/prefab}/utils/config/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/utils/config/index.js +0 -0
- /package/{prefab → .dist/prefab}/utils/config/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/utils/config/parameter-secret.js +0 -0
- /package/{prefab → .dist/prefab}/utils/config/runtime-secret.d.ts +0 -0
- /package/{prefab → .dist/prefab}/utils/config/runtime-secret.js +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/catalog/integrations/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/catalog/integrations/index.js +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/catalog/integrations/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/catalog/integrations/slack.d.ts +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/catalog/integrations/slack.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/catalog/integrations/slack.js +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/catalog/integrations/slack.js.map +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/entities/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/entities/index.js +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/entities/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/handlers/send-to-slack/handler.d.ts +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/handlers/send-to-slack/handler.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/handlers/send-to-slack/handler.js +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/handlers/send-to-slack/handler.js.map +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/index.js +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/platform/get-pipeline-detail.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/platform/get-pipeline-detail.js +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/platform/get-pipeline-detail.js.map +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/platform/get-slack-payload.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/platform/get-slack-payload.js +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/platform/get-slack-payload.js.map +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/platform/send-to-slack.d.ts +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/platform/send-to-slack.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/platform/send-to-slack.js +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/platform/send-to-slack.js.map +0 -0
- /package/{prefab → .dist/prefab}/utils/duration.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/utils/duration.js +0 -0
- /package/{prefab → .dist/prefab}/utils/duration.js.map +0 -0
- /package/{prefab → .dist/prefab}/utils/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/utils/index.js +0 -0
- /package/{prefab → .dist/prefab}/utils/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/utils/ses/index.js +0 -0
- /package/{script → .dist/script}/config-command/bootstrap.d.ts.map +0 -0
- /package/{script → .dist/script}/config-command/deploy.d.ts.map +0 -0
- /package/{script → .dist/script}/config-command/destroy.d.ts.map +0 -0
- /package/{script → .dist/script}/config-command/env-ssr.d.ts.map +0 -0
- /package/{script → .dist/script}/config-command/invalidation-ssr.d.ts.map +0 -0
- /package/{script → .dist/script}/config-command/rds-migration.d.ts.map +0 -0
- /package/{script → .dist/script}/config-command/rds-migration.js +0 -0
- /package/{script → .dist/script}/config-command/rds-sync.d.ts.map +0 -0
- /package/{script → .dist/script}/config-command/rds-sync.js +0 -0
- /package/{script → .dist/script}/config-command/ssm-connect.d.ts.map +0 -0
- /package/{script → .dist/script}/config-command/ssm-connect.js +0 -0
- /package/{script → .dist/script}/config-command/start-spa.d.ts.map +0 -0
- /package/{script → .dist/script}/config-command/start-ssr.d.ts.map +0 -0
- /package/{script → .dist/script}/config-command/synth.d.ts.map +0 -0
- /package/{script → .dist/script}/index.js +0 -0
- /package/{script → .dist/script}/index.js.map +0 -0
- /package/{script → .dist/script}/output-command/create-user.js +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { App } from 'aws-cdk-lib';
|
|
2
|
+
import { Construct } from 'constructs';
|
|
3
|
+
import * as propsTypes from './synth/props-types';
|
|
4
|
+
import { ServiceStack } from './service';
|
|
5
|
+
export declare class Coordinator<GlobalConstConfig extends propsTypes.BaseGlobalConstConfig = propsTypes.BaseGlobalConstConfig, AllowedEnvName extends propsTypes.BaseEnvName = propsTypes.BaseEnvName, GlobalEnv extends propsTypes.BaseGlobalEnv = propsTypes.BaseGlobalEnv, GlobalDeployTarget extends propsTypes.BaseGlobalDeployTarget = propsTypes.BaseGlobalDeployTarget> extends App {
|
|
6
|
+
scope: Construct;
|
|
7
|
+
globalProps: propsTypes.BaseGlobalProps<GlobalConstConfig, GlobalEnv, GlobalDeployTarget>;
|
|
8
|
+
private serviceList;
|
|
9
|
+
private services;
|
|
10
|
+
constructor(globalConstConfig: GlobalConstConfig, globalEnvConfig: propsTypes.BaseGlobalEnvConfig<AllowedEnvName, GlobalEnv>, globalDeployTargetConfig: propsTypes.BaseGlobalDeployTargetConfig<AllowedEnvName, propsTypes.BaseDeployTargetName>);
|
|
11
|
+
addService(service: ServiceStack): void;
|
|
12
|
+
build(): void;
|
|
13
|
+
private orderDependencies;
|
|
14
|
+
}
|
|
15
|
+
export declare function DepCheck(): (target: any, propertyKey: any) => void;
|
|
16
|
+
export declare class ServiceDependencies {
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=coordinator.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BaseGlobalProps, BaseDeployTargetName, DeployConfig } from '../synth/props-types';
|
|
2
|
+
export declare const getDeployConfig: (deployTarget: BaseGlobalProps, deployTargetName?: BaseDeployTargetName) => {
|
|
3
|
+
env: DeployConfig;
|
|
4
|
+
};
|
|
5
|
+
//# sourceMappingURL=get-deploy-config.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseServiceProps } from '../synth/props-types';
|
|
2
|
+
type GetDomainParams = {
|
|
3
|
+
envDomainName?: BaseServiceProps['envDomainName'];
|
|
4
|
+
ephemeralEnvName?: BaseServiceProps['ephemeralEnvName'];
|
|
5
|
+
};
|
|
6
|
+
export declare const getDomain: (subdomain: string, { envDomainName, ephemeralEnvName }: GetDomainParams, includeProtocol?: boolean) => string;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=get-domain.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BaseServiceProps } from '../synth/props-types';
|
|
2
|
+
type GetResourceNameParams = {
|
|
3
|
+
projectName: BaseServiceProps['projectName'];
|
|
4
|
+
envName: BaseServiceProps['envName'];
|
|
5
|
+
ephemeralEnvName?: BaseServiceProps['ephemeralEnvName'];
|
|
6
|
+
serviceName: BaseServiceProps['serviceName'];
|
|
7
|
+
isSingleProjectAccount?: BaseServiceProps['isSingleProjectAccount'];
|
|
8
|
+
};
|
|
9
|
+
type GetShortResourceNameParams = {
|
|
10
|
+
projectShortName: BaseServiceProps['projectShortName'];
|
|
11
|
+
envName: BaseServiceProps['envName'];
|
|
12
|
+
ephemeralEnvName?: BaseServiceProps['ephemeralEnvName'];
|
|
13
|
+
serviceName: BaseServiceProps['serviceName'];
|
|
14
|
+
isSingleProjectAccount?: BaseServiceProps['isSingleProjectAccount'];
|
|
15
|
+
};
|
|
16
|
+
export declare const getResourceName: (resourceName: string, { isSingleProjectAccount, projectName, envName, ephemeralEnvName, serviceName }: GetResourceNameParams) => string;
|
|
17
|
+
export declare const getShortResourceName: (resourceName: string, { isSingleProjectAccount, projectShortName, envName, ephemeralEnvName, serviceName }: GetShortResourceNameParams) => string;
|
|
18
|
+
export declare const getDatabaseName: (resourceName: string, { isSingleProjectAccount, projectName, envName, ephemeralEnvName, serviceName }: GetResourceNameParams) => string;
|
|
19
|
+
export declare const getCloudFrontName: (resourceType: string, resourceName: string, { projectName, envName, ephemeralEnvName, serviceName }: GetResourceNameParams) => string;
|
|
20
|
+
export declare const getBucketName: (bucketName: string, { envDomainName, ephemeralEnvName, serviceName, }: {
|
|
21
|
+
envDomainName: BaseServiceProps["envDomainName"];
|
|
22
|
+
ephemeralEnvName?: BaseServiceProps["ephemeralEnvName"];
|
|
23
|
+
serviceName: BaseServiceProps["serviceName"];
|
|
24
|
+
}) => string;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=get-resource-name.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseGlobalProps } from '../synth/props-types';
|
|
2
|
+
type GetServiceNameParams = {
|
|
3
|
+
projectName: BaseGlobalProps['projectName'];
|
|
4
|
+
envName: BaseGlobalProps['envName'];
|
|
5
|
+
ephemeralEnvName?: BaseGlobalProps['ephemeralEnvName'];
|
|
6
|
+
};
|
|
7
|
+
export declare const getServiceName: (simpleServiceName: string, { projectName, envName, ephemeralEnvName }: GetServiceNameParams) => string;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=get-service-name.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './get-deploy-config';
|
|
2
|
+
export * from './get-domain';
|
|
3
|
+
export * from './get-function-entry';
|
|
4
|
+
export * from './get-logical-name';
|
|
5
|
+
export * from './get-resource-name';
|
|
6
|
+
export * from './get-service-name';
|
|
7
|
+
export * from './string-parser';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Stack } from 'aws-cdk-lib';
|
|
2
|
+
import { Coordinator, ServiceDependencies } from './coordinator';
|
|
3
|
+
import { BaseDeployTargetName, BaseServiceProps } from './synth/props-types';
|
|
4
|
+
type ServiceClass<MyCoord extends Coordinator = Coordinator> = {
|
|
5
|
+
props: MyCoord['globalProps'];
|
|
6
|
+
name: string;
|
|
7
|
+
build(args: any): void;
|
|
8
|
+
};
|
|
9
|
+
type ServiceOptions<DeployTargetName extends BaseDeployTargetName = BaseDeployTargetName> = {
|
|
10
|
+
deployTargetName?: DeployTargetName;
|
|
11
|
+
stackName?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare abstract class ServiceStack<MyCoord extends Coordinator = Coordinator, DeployTargetName extends BaseDeployTargetName = BaseDeployTargetName> extends Stack implements ServiceClass<MyCoord> {
|
|
14
|
+
readonly props: BaseServiceProps<MyCoord['globalProps']>;
|
|
15
|
+
readonly name: string;
|
|
16
|
+
depsNames: string[];
|
|
17
|
+
constructor(coordinator: MyCoord, name: string, dep: typeof ServiceDependencies, serviceOptions?: ServiceOptions<DeployTargetName>);
|
|
18
|
+
abstract build(deps: any): void;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=service.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseGlobalProps, BaseRegionName, DeployConfig } from './props-types';
|
|
2
|
+
export type AssumeRoleResponse = {
|
|
3
|
+
region: BaseRegionName;
|
|
4
|
+
credentials: {
|
|
5
|
+
accessKeyId: string;
|
|
6
|
+
secretAccessKey: string;
|
|
7
|
+
sessionToken: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
type AssumeRoleParams = {
|
|
11
|
+
region: BaseGlobalProps['regionName'];
|
|
12
|
+
account: DeployConfig['account'];
|
|
13
|
+
};
|
|
14
|
+
export declare const assumeRole: ({ account, region }: AssumeRoleParams, roleName: string) => Promise<AssumeRoleResponse>;
|
|
15
|
+
export declare const assumeRoleArn: (arn: string, region?: string) => Promise<AssumeRoleResponse>;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=assume-role.d.ts.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Construct } from 'constructs';
|
|
2
|
+
import * as propsTypes from './props-types';
|
|
3
|
+
export declare const getGlobalProps: <GlobalConstConfig extends propsTypes.BaseGlobalConstConfig, AllowedEnvName extends propsTypes.BaseEnvName, GlobalEnv extends propsTypes.BaseGlobalEnv, GlobalDeployTarget extends propsTypes.BaseGlobalDeployTarget>(app: Construct, globalConstConfig: GlobalConstConfig, globalEnvConfig: propsTypes.BaseGlobalEnvConfig<AllowedEnvName, GlobalEnv>, globalDeployTargetConfig: propsTypes.BaseGlobalDeployTargetConfig<AllowedEnvName, propsTypes.BaseDeployTargetName>) => propsTypes.BaseGlobalProps<GlobalConstConfig, GlobalEnv, GlobalDeployTarget>;
|
|
4
|
+
//# sourceMappingURL=get-global-props.d.ts.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { BaseGlobalProps, BaseServiceProps, BaseServiceDependencies } from './props-types';
|
|
2
|
+
export declare const getServiceProps: <GlobalProps extends BaseGlobalProps = BaseGlobalProps, ServiceDependencies extends BaseServiceDependencies = {}>(serviceName: string, globalProps: GlobalProps, serviceDependencies?: ServiceDependencies) => BaseServiceProps<GlobalProps, ServiceDependencies>;
|
|
3
|
+
//# sourceMappingURL=get-service-props.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './account-mapping';
|
|
2
|
+
export * from './assume-role';
|
|
3
|
+
export * from './get-global-props';
|
|
4
|
+
export * from './get-service-props';
|
|
5
|
+
export * from './pre-script';
|
|
6
|
+
export * from './props-types';
|
|
7
|
+
export * from './synth-error';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as propsTypes from './props-types';
|
|
2
|
+
export declare const preScript: <GlobalConst, AllowedEnv extends propsTypes.BaseEnvName = string, GlobalEnv extends propsTypes.BaseGlobalEnv = {
|
|
3
|
+
roleName: string;
|
|
4
|
+
deployBranch: string;
|
|
5
|
+
hostedZoneName: string;
|
|
6
|
+
envDomainName: string;
|
|
7
|
+
emailSender: string;
|
|
8
|
+
}, DeployTargetName extends propsTypes.BaseDeployTargetName = string>(globalConstConfig: propsTypes.BaseGlobalConstConfig<GlobalConst>, globalEnvConfig: propsTypes.BaseGlobalEnvConfig<AllowedEnv, GlobalEnv>, globalDeployTargetConfig: propsTypes.BaseGlobalDeployTargetConfig<AllowedEnv, DeployTargetName>, args: string[]) => Promise<{
|
|
9
|
+
isSingleProjectAccount?: boolean;
|
|
10
|
+
servicesNamesInput: string[];
|
|
11
|
+
envNameInput: string;
|
|
12
|
+
ephemeralEnvName: string | undefined;
|
|
13
|
+
envName: AllowedEnv;
|
|
14
|
+
roleName: string;
|
|
15
|
+
outputFile: string;
|
|
16
|
+
servicesNames: string;
|
|
17
|
+
bootstrappingServices: string;
|
|
18
|
+
accountMap: string;
|
|
19
|
+
landingZones: string[];
|
|
20
|
+
}>;
|
|
21
|
+
//# sourceMappingURL=pre-script.d.ts.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export type BaseRegionName = 'us-east-1' | string;
|
|
2
|
+
export type BaseEnvName = 'dev' | 'test' | 'staging' | 'prod' | string;
|
|
3
|
+
export type BaseDeployTargetName = 'services' | string;
|
|
4
|
+
export interface DeployConfig {
|
|
5
|
+
region: BaseRegionName;
|
|
6
|
+
account: string;
|
|
7
|
+
}
|
|
8
|
+
export type BaseGlobalConstConfig<ExtendedConst = {}> = {
|
|
9
|
+
projectName: string;
|
|
10
|
+
projectShortName: string;
|
|
11
|
+
repositoryName: string;
|
|
12
|
+
landingZones: string[];
|
|
13
|
+
pipelineNotificationSlackChannel?: string;
|
|
14
|
+
isDemoProject?: boolean;
|
|
15
|
+
bootstrappingServices?: string[];
|
|
16
|
+
isSingleProjectAccount?: boolean;
|
|
17
|
+
} & ExtendedConst;
|
|
18
|
+
export type BaseGlobalEnv<ExtendedEnv = {}> = {
|
|
19
|
+
roleName: string;
|
|
20
|
+
deployBranch: string;
|
|
21
|
+
hostedZoneName: string;
|
|
22
|
+
envDomainName: string;
|
|
23
|
+
emailSender: string;
|
|
24
|
+
} & ExtendedEnv;
|
|
25
|
+
export type BaseGlobalEnvConfig<AllowedEnv extends BaseEnvName = BaseEnvName, GlobalEnv extends BaseGlobalEnv = BaseGlobalEnv> = Record<AllowedEnv, GlobalEnv>;
|
|
26
|
+
export type BaseGlobalDeployTarget<DeployTargetName extends BaseDeployTargetName = BaseDeployTargetName> = Record<DeployTargetName, DeployConfig>;
|
|
27
|
+
export type BaseGlobalDeployTargetConfig<AllowedEnv extends BaseEnvName = BaseEnvName, DeployTargetName extends BaseDeployTargetName = BaseDeployTargetName, GlobalDeployTarget extends BaseGlobalDeployTarget<DeployTargetName> = BaseGlobalDeployTarget<DeployTargetName>> = Record<AllowedEnv, GlobalDeployTarget>;
|
|
28
|
+
export type BaseServiceDependencies<ServiceDependencies = {}> = {} & ServiceDependencies;
|
|
29
|
+
export type BaseServiceConstConfig<ExtendedConst = {}> = {} & ExtendedConst;
|
|
30
|
+
export type BaseServiceEnv<ExtendedEnv = {}> = {} & ExtendedEnv;
|
|
31
|
+
export type BaseServiceEnvConfig<AllowedEnv extends BaseEnvName = BaseEnvName, ServiceEnv extends BaseServiceEnv = BaseServiceEnv> = Record<AllowedEnv, ServiceEnv>;
|
|
32
|
+
export type BaseGlobalProps<GlobalConstConfig extends BaseGlobalConstConfig = BaseGlobalConstConfig, GlobalEnv extends BaseGlobalEnv = BaseGlobalEnv, GlobalDeployTarget extends BaseGlobalDeployTarget = BaseGlobalDeployTarget> = {
|
|
33
|
+
envName: BaseEnvName;
|
|
34
|
+
regionName: BaseRegionName;
|
|
35
|
+
ephemeralEnvName?: string;
|
|
36
|
+
deployTarget: GlobalDeployTarget;
|
|
37
|
+
} & GlobalConstConfig & GlobalEnv;
|
|
38
|
+
export type BaseServiceProps<GlobalProps extends BaseGlobalProps = BaseGlobalProps, ServiceDependencies extends BaseServiceDependencies = BaseServiceDependencies> = {
|
|
39
|
+
serviceName: string;
|
|
40
|
+
} & GlobalProps & ServiceDependencies;
|
|
41
|
+
//# sourceMappingURL=props-types.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseServiceProps } from './props-types';
|
|
2
|
+
export declare class SynthError extends Error {
|
|
3
|
+
message: string;
|
|
4
|
+
props?: BaseServiceProps | undefined;
|
|
5
|
+
constructor(message: string, props?: BaseServiceProps | undefined);
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=synth-error.d.ts.map
|
package/.dist/index.d.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@takumi-stack/core",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"author": "sinapsis.co",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"main": "./index.js",
|
|
7
|
+
"types": "./index.d.ts",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "tsc",
|
|
10
|
+
"prepublishOnly": "cp package.json .dist/package.json",
|
|
11
|
+
"lint": "eslint . --max-warnings 0"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@aws-appsync/utils": "^1.9.0",
|
|
15
|
+
"@aws-sdk/client-cloudfront": "^3.632.0",
|
|
16
|
+
"@aws-sdk/client-codepipeline": "^3.632.0",
|
|
17
|
+
"@aws-sdk/client-cognito-identity-provider": "^3.632.0",
|
|
18
|
+
"@aws-sdk/client-dynamodb": "^3.632.0",
|
|
19
|
+
"@aws-sdk/client-rds": "^3.632.0",
|
|
20
|
+
"@aws-sdk/client-secrets-manager": "^3.632.0",
|
|
21
|
+
"@aws-sdk/client-ssm": "^3.632.0",
|
|
22
|
+
"@aws-sdk/client-sts": "^3.632.0",
|
|
23
|
+
"@aws-sdk/lib-dynamodb": "^3.632.0",
|
|
24
|
+
"@takumi-stack/sdk": "workspace:*",
|
|
25
|
+
"@types/node": "^22.3.0",
|
|
26
|
+
"aws-cdk-lib": "^2.152.0",
|
|
27
|
+
"aws-lambda": "^1.0.7",
|
|
28
|
+
"constructs": "^10.3.0",
|
|
29
|
+
"dotenv": "^16.4.5",
|
|
30
|
+
"esbuild": "^0.17.19",
|
|
31
|
+
"graphql": "^15.9.0",
|
|
32
|
+
"open-next": "^2.3.9",
|
|
33
|
+
"reflect-metadata": "^0.1.14",
|
|
34
|
+
"type-graphql": "^1.1.1",
|
|
35
|
+
"typeorm": "^0.3.20"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
|
39
|
+
"@types/aws-lambda": "^8.10.143",
|
|
40
|
+
"@types/html-minifier-terser": "^6.1.0",
|
|
41
|
+
"cdk": "^2.152.0"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { CfnWorkGroup } from 'aws-cdk-lib/aws-athena';
|
|
2
|
+
import { CfnCrawler, CfnCrawlerProps, CfnDatabase } from 'aws-cdk-lib/aws-glue';
|
|
3
|
+
import { Bucket } from 'aws-cdk-lib/aws-s3';
|
|
4
|
+
import { Construct } from 'constructs';
|
|
5
|
+
import { ServiceStack } from '../../../common';
|
|
6
|
+
import { EventBusPrefab } from '../../integration';
|
|
7
|
+
export type EventsAnalyticsParams = {
|
|
8
|
+
eventBus: EventBusPrefab;
|
|
9
|
+
eventSource?: string;
|
|
10
|
+
paramsCrawlerProps?: Partial<CfnCrawlerProps>;
|
|
11
|
+
lifecycleDurations?: {
|
|
12
|
+
infrequentDays: number;
|
|
13
|
+
glacierDays: number;
|
|
14
|
+
};
|
|
15
|
+
bufferingHints?: {
|
|
16
|
+
intervalInSeconds: number;
|
|
17
|
+
sizeInMBs: number;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare class EventsAnalyticsPrefab extends Construct {
|
|
21
|
+
readonly datalakeBucket: Bucket;
|
|
22
|
+
readonly database: CfnDatabase;
|
|
23
|
+
readonly crawler: CfnCrawler;
|
|
24
|
+
readonly athenaOutputBucket: Bucket;
|
|
25
|
+
readonly workGroup: CfnWorkGroup;
|
|
26
|
+
constructor(service: ServiceStack, params: EventsAnalyticsParams);
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../prefab/analytics/events/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAGtD,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGhF,OAAO,EAAqB,MAAM,EAAkC,MAAM,oBAAoB,CAAC;AAC/F,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,YAAY,EAAoF,MAAM,iBAAiB,CAAC;AAEjI,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,cAAc,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IAC9C,kBAAkB,CAAC,EAAE;QACnB,cAAc,EAAE,MAAM,CAAC;QACvB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,cAAc,CAAC,EAAE;QACf,iBAAiB,EAAE,MAAM,CAAC;QAC1B,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;CACH,CAAC;AAEF,qBAAa,qBAAsB,SAAQ,SAAS;IAClD,SAAgB,cAAc,EAAE,MAAM,CAAC;IACvC,SAAgB,QAAQ,EAAE,WAAW,CAAC;IACtC,SAAgB,OAAO,EAAE,UAAU,CAAC;IACpC,SAAgB,kBAAkB,EAAE,MAAM,CAAC;IAC3C,SAAgB,SAAS,EAAE,YAAY,CAAC;gBAE5B,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,qBAAqB;CA4JjE"}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EventsAnalyticsPrefab = void 0;
|
|
4
|
+
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
5
|
+
const aws_athena_1 = require("aws-cdk-lib/aws-athena");
|
|
6
|
+
const aws_events_1 = require("aws-cdk-lib/aws-events");
|
|
7
|
+
const aws_events_targets_1 = require("aws-cdk-lib/aws-events-targets");
|
|
8
|
+
const aws_glue_1 = require("aws-cdk-lib/aws-glue");
|
|
9
|
+
const aws_iam_1 = require("aws-cdk-lib/aws-iam");
|
|
10
|
+
const aws_kinesisfirehose_1 = require("aws-cdk-lib/aws-kinesisfirehose");
|
|
11
|
+
const aws_s3_1 = require("aws-cdk-lib/aws-s3");
|
|
12
|
+
const constructs_1 = require("constructs");
|
|
13
|
+
const common_1 = require("../../../common");
|
|
14
|
+
const compute_1 = require("../../compute");
|
|
15
|
+
class EventsAnalyticsPrefab extends constructs_1.Construct {
|
|
16
|
+
datalakeBucket;
|
|
17
|
+
database;
|
|
18
|
+
crawler;
|
|
19
|
+
athenaOutputBucket;
|
|
20
|
+
workGroup;
|
|
21
|
+
constructor(service, params) {
|
|
22
|
+
super(service, (0, common_1.getLogicalName)(EventsAnalyticsPrefab.name));
|
|
23
|
+
this.datalakeBucket = new aws_s3_1.Bucket(service, 'DataLakeBucket', {
|
|
24
|
+
bucketName: (0, common_1.getBucketName)('datalake', service.props),
|
|
25
|
+
versioned: false,
|
|
26
|
+
publicReadAccess: false,
|
|
27
|
+
blockPublicAccess: aws_s3_1.BlockPublicAccess.BLOCK_ALL,
|
|
28
|
+
encryption: aws_s3_1.BucketEncryption.KMS_MANAGED,
|
|
29
|
+
removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY,
|
|
30
|
+
...(service.props.envName !== 'prod' ? { autoDeleteObjects: true } : {}),
|
|
31
|
+
lifecycleRules: [
|
|
32
|
+
{
|
|
33
|
+
transitions: [
|
|
34
|
+
{
|
|
35
|
+
storageClass: aws_s3_1.StorageClass.INFREQUENT_ACCESS,
|
|
36
|
+
transitionAfter: aws_cdk_lib_1.Duration.days(params.lifecycleDurations?.infrequentDays || 90),
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
storageClass: aws_s3_1.StorageClass.GLACIER,
|
|
40
|
+
transitionAfter: aws_cdk_lib_1.Duration.days(params.lifecycleDurations?.glacierDays || 360),
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
});
|
|
46
|
+
if (service.props.envName === 'prod') {
|
|
47
|
+
this.datalakeBucket.applyRemovalPolicy(aws_cdk_lib_1.RemovalPolicy.RETAIN);
|
|
48
|
+
}
|
|
49
|
+
const role = new aws_iam_1.Role(service, (0, common_1.getLogicalName)('DataLakeDeliveryStringRole'), {
|
|
50
|
+
assumedBy: new aws_iam_1.ServicePrincipal('firehose.amazonaws.com'),
|
|
51
|
+
});
|
|
52
|
+
const lambdaFunction = new compute_1.BaseFunction(service, {
|
|
53
|
+
name: 'ingestion-transform',
|
|
54
|
+
baseFunctionFolder: __dirname,
|
|
55
|
+
...(service.props.isDemoProject ? {} : { compiled: true }),
|
|
56
|
+
}).lambdaFunction;
|
|
57
|
+
const deliveryStream = new aws_kinesisfirehose_1.CfnDeliveryStream(service, 'DataLakeDeliveryStream', {
|
|
58
|
+
deliveryStreamType: 'DirectPut',
|
|
59
|
+
extendedS3DestinationConfiguration: {
|
|
60
|
+
bucketArn: this.datalakeBucket.bucketArn,
|
|
61
|
+
roleArn: role.roleArn,
|
|
62
|
+
compressionFormat: 'UNCOMPRESSED',
|
|
63
|
+
prefix: 'year=!{timestamp:yyyy}/month=!{timestamp:MM}/day=!{timestamp:dd}/hour=!{timestamp:HH}/',
|
|
64
|
+
errorOutputPrefix: 'error/!{firehose:random-string}/!{firehose:error-output-type}/!{timestamp:yyyy/MM/dd}/',
|
|
65
|
+
bufferingHints: {
|
|
66
|
+
intervalInSeconds: params.bufferingHints?.intervalInSeconds || 300,
|
|
67
|
+
sizeInMBs: params.bufferingHints?.sizeInMBs || 5,
|
|
68
|
+
},
|
|
69
|
+
processingConfiguration: {
|
|
70
|
+
enabled: true,
|
|
71
|
+
processors: [
|
|
72
|
+
{
|
|
73
|
+
type: 'Lambda',
|
|
74
|
+
parameters: [{ parameterName: 'LambdaArn', parameterValue: lambdaFunction.functionArn }],
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
});
|
|
80
|
+
new aws_events_1.Rule(service, 'EventProcessorRule', {
|
|
81
|
+
...(params.eventBus ? { eventBus: params.eventBus.bus } : {}),
|
|
82
|
+
eventPattern: { source: [params.eventSource || 'app'] },
|
|
83
|
+
targets: [new aws_events_targets_1.KinesisFirehoseStream(deliveryStream)],
|
|
84
|
+
});
|
|
85
|
+
this.datalakeBucket.grantReadWrite(role);
|
|
86
|
+
lambdaFunction.grantInvoke(role);
|
|
87
|
+
this.database = new aws_glue_1.CfnDatabase(service, 'Database', {
|
|
88
|
+
catalogId: (0, common_1.getDeployConfig)(service.props).env.account,
|
|
89
|
+
databaseInput: { name: (0, common_1.getDatabaseName)('datalake', service.props) },
|
|
90
|
+
});
|
|
91
|
+
const crawlerRole = new aws_iam_1.Role(service, 'CrawlerRole', { assumedBy: new aws_iam_1.ServicePrincipal('glue.amazonaws.com') });
|
|
92
|
+
crawlerRole.addToPrincipalPolicy(new aws_iam_1.PolicyStatement({
|
|
93
|
+
effect: aws_iam_1.Effect.ALLOW,
|
|
94
|
+
actions: [
|
|
95
|
+
'glue:*',
|
|
96
|
+
's3:GetBucketLocation',
|
|
97
|
+
's3:ListBucket',
|
|
98
|
+
's3:ListAllMyBuckets',
|
|
99
|
+
'iam:ListRolePolicies',
|
|
100
|
+
'iam:GetRole',
|
|
101
|
+
'iam:GetRolePolicy',
|
|
102
|
+
'cloudwatch:PutMetricData',
|
|
103
|
+
'logs:PutLogEvents',
|
|
104
|
+
'logs:CreateLogGroup',
|
|
105
|
+
'logs:CreateLogStream',
|
|
106
|
+
],
|
|
107
|
+
resources: ['*'],
|
|
108
|
+
}));
|
|
109
|
+
this.datalakeBucket.grantReadWrite(crawlerRole);
|
|
110
|
+
this.crawler = new aws_glue_1.CfnCrawler(this, 'DatalakeTableCrawler', {
|
|
111
|
+
name: (0, common_1.getResourceName)('crawler', service.props),
|
|
112
|
+
databaseName: this.database.ref.toString(),
|
|
113
|
+
role: crawlerRole.roleArn,
|
|
114
|
+
targets: { s3Targets: [{ path: this.datalakeBucket.bucketName }] },
|
|
115
|
+
configuration: JSON.stringify({
|
|
116
|
+
Version: 1.0,
|
|
117
|
+
Grouping: { TableGroupingPolicy: 'CombineCompatibleSchemas' },
|
|
118
|
+
CrawlerOutput: {
|
|
119
|
+
Tables: { AddOrUpdateBehavior: 'MergeNewColumns' },
|
|
120
|
+
Partitions: { AddOrUpdateBehavior: 'InheritFromTable' },
|
|
121
|
+
},
|
|
122
|
+
}),
|
|
123
|
+
schemaChangePolicy: {
|
|
124
|
+
deleteBehavior: 'DELETE_FROM_DATABASE',
|
|
125
|
+
updateBehavior: 'UPDATE_IN_DATABASE',
|
|
126
|
+
},
|
|
127
|
+
...params.paramsCrawlerProps,
|
|
128
|
+
});
|
|
129
|
+
new aws_cdk_lib_1.CfnOutput(service, 'CrawlerName', {
|
|
130
|
+
exportName: (0, common_1.getResourceName)('CrawlerName', service.props),
|
|
131
|
+
value: this.crawler.name,
|
|
132
|
+
});
|
|
133
|
+
new aws_cdk_lib_1.CfnOutput(service, 'DatabaseName', {
|
|
134
|
+
exportName: (0, common_1.getResourceName)('DatabaseName', service.props),
|
|
135
|
+
value: this.database.ref.toString(),
|
|
136
|
+
});
|
|
137
|
+
new aws_cdk_lib_1.CfnOutput(service, 'TableName', {
|
|
138
|
+
exportName: (0, common_1.getResourceName)('TableName', service.props),
|
|
139
|
+
value: (0, common_1.getDatabaseName)('datalake', service.props),
|
|
140
|
+
});
|
|
141
|
+
this.athenaOutputBucket = new aws_s3_1.Bucket(service, 'QueryOutputsBucket', {
|
|
142
|
+
bucketName: (0, common_1.getBucketName)('query-outputs', service.props),
|
|
143
|
+
versioned: false,
|
|
144
|
+
publicReadAccess: false,
|
|
145
|
+
blockPublicAccess: aws_s3_1.BlockPublicAccess.BLOCK_ALL,
|
|
146
|
+
encryption: aws_s3_1.BucketEncryption.KMS_MANAGED,
|
|
147
|
+
removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY,
|
|
148
|
+
autoDeleteObjects: true,
|
|
149
|
+
});
|
|
150
|
+
this.workGroup = new aws_athena_1.CfnWorkGroup(service, 'DataLakeWorkGroup', {
|
|
151
|
+
name: (0, common_1.getResourceName)('datalake', service.props),
|
|
152
|
+
recursiveDeleteOption: true,
|
|
153
|
+
workGroupConfiguration: {
|
|
154
|
+
resultConfiguration: {
|
|
155
|
+
outputLocation: this.athenaOutputBucket.s3UrlForObject(),
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
});
|
|
159
|
+
this.workGroup.applyRemovalPolicy(aws_cdk_lib_1.RemovalPolicy.DESTROY);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
exports.EventsAnalyticsPrefab = EventsAnalyticsPrefab;
|
|
163
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../prefab/analytics/events/index.ts"],"names":[],"mappings":";;;AAAA,6CAAiE;AACjE,uDAAsD;AACtD,uDAA8C;AAC9C,uEAAuE;AACvE,mDAAgF;AAChF,iDAAsF;AACtF,yEAAoE;AACpE,+CAA+F;A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C,WAAW,EAAE,OAAO,CAAC,KAAK,CAAC;YACvD,KAAK,EAAE,IAAA,wBAAe,EAAC,UAAU,EAAE,OAAO,CAAC,KAAK,CAAC;SAClD,CAAC,CAAC;QAEH,IAAI,CAAC,kBAAkB,GAAG,IAAI,eAAM,CAAC,OAAO,EAAE,oBAAoB,EAAE;YAClE,UAAU,EAAE,IAAA,sBAAa,EAAC,eAAe,EAAE,OAAO,CAAC,KAAK,CAAC;YACzD,SAAS,EAAE,KAAK;YAChB,gBAAgB,EAAE,KAAK;YACvB,iBAAiB,EAAE,0BAAiB,CAAC,SAAS;YAC9C,UAAU,EAAE,yBAAgB,CAAC,WAAW;YACxC,aAAa,EAAE,2BAAa,CAAC,OAAO;YACpC,iBAAiB,EAAE,IAAI;SACxB,CAAC,CAAC;QAEH,IAAI,CAAC,SAAS,GAAG,IAAI,yBAAY,CAAC,OAAO,EAAE,mBAAmB,EAAE;YAC9D,IAAI,EAAE,IAAA,wBAAe,EAAC,UAAU,EAAE,OAAO,CAAC,KAAK,CAAC;YAChD,qBAAqB,EAAE,IAAI;YAC3B,sBAAsB,EAAE;gBACtB,mBAAmB,EAAE;oBACnB,cAAc,EAAE,IAAI,CAAC,kBAAkB,CAAC,cAAc,EAAE;iBACzD;aACF;SACF,CAAC,CAAC;QACH,IAAI,CAAC,SAAS,CAAC,kBAAkB,CAAC,2BAAa,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;CACF;AAnKD,sDAmKC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as awsCognito from 'aws-cdk-lib/aws-cognito';
|
|
2
|
+
import { Key } from 'aws-cdk-lib/aws-kms';
|
|
3
|
+
import { Construct } from 'constructs';
|
|
4
|
+
import { Modifier, ServiceStack } from '../../../common';
|
|
5
|
+
export type AuthPoolParams = {
|
|
6
|
+
userPool?: Partial<awsCognito.UserPoolProps>;
|
|
7
|
+
userPoolClient?: Partial<awsCognito.UserPoolClientProps>;
|
|
8
|
+
userPoolDomain?: Partial<awsCognito.UserPoolDomainProps>;
|
|
9
|
+
emailConfiguration?: awsCognito.UserPoolSESOptions;
|
|
10
|
+
callbackUrl?: string;
|
|
11
|
+
enableCustomSender?: boolean;
|
|
12
|
+
socialLogin?: {
|
|
13
|
+
google?: Omit<awsCognito.UserPoolIdentityProviderGoogleProps, 'userPool'>;
|
|
14
|
+
facebook?: awsCognito.UserPoolIdentityProviderFacebookProps;
|
|
15
|
+
apple?: awsCognito.UserPoolIdentityProviderAppleProps;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export declare class CognitoAuthPoolPrefab extends Construct {
|
|
19
|
+
readonly userPool: awsCognito.UserPool;
|
|
20
|
+
readonly userPoolClient: awsCognito.UserPoolClient;
|
|
21
|
+
readonly userPoolDomain: awsCognito.UserPoolDomain;
|
|
22
|
+
readonly frontendRefs: Record<string, string>;
|
|
23
|
+
readonly kmsKey: Key | undefined;
|
|
24
|
+
readonly props: import("../../../common").BaseServiceProps<import("../../../common").BaseGlobalProps<{
|
|
25
|
+
projectName: string;
|
|
26
|
+
projectShortName: string;
|
|
27
|
+
repositoryName: string;
|
|
28
|
+
landingZones: string[];
|
|
29
|
+
pipelineNotificationSlackChannel?: string;
|
|
30
|
+
isDemoProject?: boolean;
|
|
31
|
+
bootstrappingServices?: string[];
|
|
32
|
+
isSingleProjectAccount?: boolean;
|
|
33
|
+
}, {
|
|
34
|
+
roleName: string;
|
|
35
|
+
deployBranch: string;
|
|
36
|
+
hostedZoneName: string;
|
|
37
|
+
envDomainName: string;
|
|
38
|
+
emailSender: string;
|
|
39
|
+
}, import("../../../common").BaseGlobalDeployTarget<string>>>;
|
|
40
|
+
/**
|
|
41
|
+
* Creates a Cognito UserPool
|
|
42
|
+
*
|
|
43
|
+
* @param service - The instance of StackService where the prefab will be deployed
|
|
44
|
+
* @param params - Prefab params
|
|
45
|
+
* @returns CognitoAuthPoolPrefab instance
|
|
46
|
+
*/
|
|
47
|
+
constructor(service: ServiceStack, params: AuthPoolParams);
|
|
48
|
+
useMod(mods: ((userPool: awsCognito.UserPool) => any)[]): Modifier;
|
|
49
|
+
customSmsSenderMod(): Modifier;
|
|
50
|
+
static modifier: {
|
|
51
|
+
updateUserAtt: () => Modifier;
|
|
52
|
+
deleteUser: () => Modifier;
|
|
53
|
+
preSignUp: () => Modifier;
|
|
54
|
+
authUser: () => Modifier;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../prefab/auth/cognito-pool/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAGtD,OAAO,EAAE,GAAG,EAAW,MAAM,qBAAqB,CAAC;AAGnD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,QAAQ,EAAE,YAAY,EAA0E,MAAM,iBAAiB,CAAC;AAEjI,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IAC7C,cAAc,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC;IACzD,cAAc,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC;IACzD,kBAAkB,CAAC,EAAE,UAAU,CAAC,kBAAkB,CAAC;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,WAAW,CAAC,EAAE;QACZ,MAAM,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,mCAAmC,EAAE,UAAU,CAAC,CAAC;QAC1E,QAAQ,CAAC,EAAE,UAAU,CAAC,qCAAqC,CAAC;QAC5D,KAAK,CAAC,EAAE,UAAU,CAAC,kCAAkC,CAAC;KACvD,CAAC;CACH,CAAC;AAEF,qBAAa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