@takumi-stack/core 1.0.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/common/coordinator.d.ts +28 -0
- package/common/coordinator.d.ts.map +1 -0
- package/common/coordinator.js +94 -0
- package/common/coordinator.js.map +1 -0
- package/common/index.d.ts +6 -0
- package/common/index.d.ts.map +1 -0
- package/common/index.js +22 -0
- package/common/index.js.map +1 -0
- package/common/modifier.d.ts +5 -0
- package/common/modifier.d.ts.map +1 -0
- package/common/modifier.js +12 -0
- package/common/modifier.js.map +1 -0
- package/common/naming/get-deploy-config.d.ts +9 -0
- package/common/naming/get-deploy-config.d.ts.map +1 -0
- package/common/naming/get-deploy-config.js +8 -0
- package/common/naming/get-deploy-config.js.map +1 -0
- package/common/naming/get-domain.d.ts +9 -0
- package/common/naming/get-domain.d.ts.map +1 -0
- package/common/naming/get-domain.js +13 -0
- package/common/naming/get-domain.js.map +1 -0
- package/common/naming/get-function-entry.d.ts +4 -0
- package/common/naming/get-function-entry.d.ts.map +1 -0
- package/common/naming/get-function-entry.js +14 -0
- package/common/naming/get-function-entry.js.map +1 -0
- package/common/naming/get-logical-name.d.ts +2 -0
- package/common/naming/get-logical-name.d.ts.map +1 -0
- package/common/naming/get-logical-name.js +8 -0
- package/common/naming/get-logical-name.js.map +1 -0
- package/common/naming/get-resource-name.d.ts +47 -0
- package/common/naming/get-resource-name.d.ts.map +1 -0
- package/common/naming/get-resource-name.js +38 -0
- package/common/naming/get-resource-name.js.map +1 -0
- package/common/naming/get-service-name.d.ts +10 -0
- package/common/naming/get-service-name.d.ts.map +1 -0
- package/common/naming/get-service-name.js +10 -0
- package/common/naming/get-service-name.js.map +1 -0
- package/common/naming/index.d.ts +8 -0
- package/common/naming/index.d.ts.map +1 -0
- package/common/naming/index.js +24 -0
- package/common/naming/index.js.map +1 -0
- package/common/naming/string-parser.d.ts +4 -0
- package/common/naming/string-parser.d.ts.map +1 -0
- package/common/naming/string-parser.js +22 -0
- package/common/naming/string-parser.js.map +1 -0
- package/common/service.d.ts +29 -0
- package/common/service.d.ts.map +1 -0
- package/common/service.js +28 -0
- package/common/service.js.map +1 -0
- package/common/synth/account-mapping.d.ts +2 -0
- package/common/synth/account-mapping.d.ts.map +1 -0
- package/common/synth/account-mapping.js +18 -0
- package/common/synth/account-mapping.js.map +1 -0
- package/common/synth/assume-role.d.ts +18 -0
- package/common/synth/assume-role.d.ts.map +1 -0
- package/common/synth/assume-role.js +25 -0
- package/common/synth/assume-role.js.map +1 -0
- package/common/synth/get-global-props.d.ts +16 -0
- package/common/synth/get-global-props.d.ts.map +1 -0
- package/common/synth/get-global-props.js +34 -0
- package/common/synth/get-global-props.js.map +1 -0
- package/common/synth/get-service-props.d.ts +11 -0
- package/common/synth/get-service-props.d.ts.map +1 -0
- package/common/synth/get-service-props.js +12 -0
- package/common/synth/get-service-props.js.map +1 -0
- package/common/synth/index.d.ts +8 -0
- package/common/synth/index.d.ts.map +1 -0
- package/common/synth/index.js +24 -0
- package/common/synth/index.js.map +1 -0
- package/common/synth/pre-script.d.ts +32 -0
- package/common/synth/pre-script.d.ts.map +1 -0
- package/common/synth/pre-script.js +74 -0
- package/common/synth/pre-script.js.map +1 -0
- package/common/synth/props-types.d.ts +60 -0
- package/common/synth/props-types.d.ts.map +1 -0
- package/common/synth/props-types.js +3 -0
- package/common/synth/props-types.js.map +1 -0
- package/common/synth/synth-error.d.ts +8 -0
- package/common/synth/synth-error.d.ts.map +1 -0
- package/common/synth/synth-error.js +17 -0
- package/common/synth/synth-error.js.map +1 -0
- package/index.d.ts +4 -0
- package/index.d.ts.map +1 -0
- package/index.js +20 -0
- package/index.js.map +1 -0
- package/package.json +43 -0
- package/prefab/analytics/events/handlers/ingestion-transform/handler.d.ts +4 -0
- package/prefab/analytics/events/handlers/ingestion-transform/handler.d.ts.map +1 -0
- package/prefab/analytics/events/handlers/ingestion-transform/handler.js +34 -0
- package/prefab/analytics/events/handlers/ingestion-transform/handler.js.map +1 -0
- package/prefab/analytics/events/index.d.ts +31 -0
- package/prefab/analytics/events/index.d.ts.map +1 -0
- package/prefab/analytics/events/index.js +163 -0
- package/prefab/analytics/events/index.js.map +1 -0
- package/prefab/analytics/index.d.ts +2 -0
- package/prefab/analytics/index.d.ts.map +1 -0
- package/prefab/analytics/index.js +18 -0
- package/prefab/analytics/index.js.map +1 -0
- package/prefab/auth/cognito-pool/index.d.ts +65 -0
- package/prefab/auth/cognito-pool/index.d.ts.map +1 -0
- package/prefab/auth/cognito-pool/index.js +240 -0
- package/prefab/auth/cognito-pool/index.js.map +1 -0
- package/prefab/auth/index.d.ts +2 -0
- package/prefab/auth/index.d.ts.map +1 -0
- package/prefab/auth/index.js +18 -0
- package/prefab/auth/index.js.map +1 -0
- package/prefab/cdn/cdn-api/index.d.ts +38 -0
- package/prefab/cdn/cdn-api/index.d.ts.map +1 -0
- package/prefab/cdn/cdn-api/index.js +153 -0
- package/prefab/cdn/cdn-api/index.js.map +1 -0
- package/prefab/cdn/cdn-asset/index.d.ts +27 -0
- package/prefab/cdn/cdn-asset/index.d.ts.map +1 -0
- package/prefab/cdn/cdn-asset/index.js +96 -0
- package/prefab/cdn/cdn-asset/index.js.map +1 -0
- package/prefab/cdn/cdn-spa/index.d.ts +27 -0
- package/prefab/cdn/cdn-spa/index.d.ts.map +1 -0
- package/prefab/cdn/cdn-spa/index.js +138 -0
- package/prefab/cdn/cdn-spa/index.js.map +1 -0
- package/prefab/cdn/cdn-ssr/index.d.ts +36 -0
- package/prefab/cdn/cdn-ssr/index.d.ts.map +1 -0
- package/prefab/cdn/cdn-ssr/index.js +271 -0
- package/prefab/cdn/cdn-ssr/index.js.map +1 -0
- package/prefab/cdn/index.d.ts +5 -0
- package/prefab/cdn/index.d.ts.map +1 -0
- package/prefab/cdn/index.js +21 -0
- package/prefab/cdn/index.js.map +1 -0
- package/prefab/compute/fargate/cluster.d.ts +16 -0
- package/prefab/compute/fargate/cluster.d.ts.map +1 -0
- package/prefab/compute/fargate/cluster.js +42 -0
- package/prefab/compute/fargate/cluster.js.map +1 -0
- package/prefab/compute/fargate/index.d.ts +3 -0
- package/prefab/compute/fargate/index.d.ts.map +1 -0
- package/prefab/compute/fargate/index.js +19 -0
- package/prefab/compute/fargate/index.js.map +1 -0
- package/prefab/compute/fargate/service.d.ts +49 -0
- package/prefab/compute/fargate/service.d.ts.map +1 -0
- package/prefab/compute/fargate/service.js +109 -0
- package/prefab/compute/fargate/service.js.map +1 -0
- package/prefab/compute/function/api-function/api-aggregate.d.ts +32 -0
- package/prefab/compute/function/api-function/api-aggregate.d.ts.map +1 -0
- package/prefab/compute/function/api-function/api-aggregate.js +54 -0
- package/prefab/compute/function/api-function/api-aggregate.js.map +1 -0
- package/prefab/compute/function/api-function/api-function.d.ts +22 -0
- package/prefab/compute/function/api-function/api-function.d.ts.map +1 -0
- package/prefab/compute/function/api-function/api-function.js +45 -0
- package/prefab/compute/function/api-function/api-function.js.map +1 -0
- package/prefab/compute/function/api-function/index.d.ts +3 -0
- package/prefab/compute/function/api-function/index.d.ts.map +1 -0
- package/prefab/compute/function/api-function/index.js +19 -0
- package/prefab/compute/function/api-function/index.js.map +1 -0
- package/prefab/compute/function/base-function/index.d.ts +33 -0
- package/prefab/compute/function/base-function/index.d.ts.map +1 -0
- package/prefab/compute/function/base-function/index.js +70 -0
- package/prefab/compute/function/base-function/index.js.map +1 -0
- package/prefab/compute/function/cognito-function/cognito-aggregate.d.ts +18 -0
- package/prefab/compute/function/cognito-function/cognito-aggregate.d.ts.map +1 -0
- package/prefab/compute/function/cognito-function/cognito-aggregate.js +22 -0
- package/prefab/compute/function/cognito-function/cognito-aggregate.js.map +1 -0
- package/prefab/compute/function/cognito-function/cognito-function.d.ts +19 -0
- package/prefab/compute/function/cognito-function/cognito-function.d.ts.map +1 -0
- package/prefab/compute/function/cognito-function/cognito-function.js +24 -0
- package/prefab/compute/function/cognito-function/cognito-function.js.map +1 -0
- package/prefab/compute/function/cognito-function/index.d.ts +3 -0
- package/prefab/compute/function/cognito-function/index.d.ts.map +1 -0
- package/prefab/compute/function/cognito-function/index.js +19 -0
- package/prefab/compute/function/cognito-function/index.js.map +1 -0
- package/prefab/compute/function/cron-function/cron-aggregate.d.ts +17 -0
- package/prefab/compute/function/cron-function/cron-aggregate.d.ts.map +1 -0
- package/prefab/compute/function/cron-function/cron-aggregate.js +22 -0
- package/prefab/compute/function/cron-function/cron-aggregate.js.map +1 -0
- package/prefab/compute/function/cron-function/cron-function.d.ts +17 -0
- package/prefab/compute/function/cron-function/cron-function.d.ts.map +1 -0
- package/prefab/compute/function/cron-function/cron-function.js +24 -0
- package/prefab/compute/function/cron-function/cron-function.js.map +1 -0
- package/prefab/compute/function/cron-function/index.d.ts +3 -0
- package/prefab/compute/function/cron-function/index.d.ts.map +1 -0
- package/prefab/compute/function/cron-function/index.js +19 -0
- package/prefab/compute/function/cron-function/index.js.map +1 -0
- package/prefab/compute/function/event-function/event-aggregate.d.ts +20 -0
- package/prefab/compute/function/event-function/event-aggregate.d.ts.map +1 -0
- package/prefab/compute/function/event-function/event-aggregate.js +25 -0
- package/prefab/compute/function/event-function/event-aggregate.js.map +1 -0
- package/prefab/compute/function/event-function/event-function.d.ts +14 -0
- package/prefab/compute/function/event-function/event-function.d.ts.map +1 -0
- package/prefab/compute/function/event-function/event-function.js +33 -0
- package/prefab/compute/function/event-function/event-function.js.map +1 -0
- package/prefab/compute/function/event-function/index.d.ts +3 -0
- package/prefab/compute/function/event-function/index.d.ts.map +1 -0
- package/prefab/compute/function/event-function/index.js +19 -0
- package/prefab/compute/function/event-function/index.js.map +1 -0
- package/prefab/compute/function/index.d.ts +8 -0
- package/prefab/compute/function/index.d.ts.map +1 -0
- package/prefab/compute/function/index.js +24 -0
- package/prefab/compute/function/index.js.map +1 -0
- package/prefab/compute/function/queue-function/index.d.ts +25 -0
- package/prefab/compute/function/queue-function/index.d.ts.map +1 -0
- package/prefab/compute/function/queue-function/index.js +46 -0
- package/prefab/compute/function/queue-function/index.js.map +1 -0
- package/prefab/compute/function/topic-function/index.d.ts +23 -0
- package/prefab/compute/function/topic-function/index.d.ts.map +1 -0
- package/prefab/compute/function/topic-function/index.js +23 -0
- package/prefab/compute/function/topic-function/index.js.map +1 -0
- package/prefab/compute/index.d.ts +3 -0
- package/prefab/compute/index.d.ts.map +1 -0
- package/prefab/compute/index.js +19 -0
- package/prefab/compute/index.js.map +1 -0
- package/prefab/database/dynamo/index.d.ts +14 -0
- package/prefab/database/dynamo/index.d.ts.map +1 -0
- package/prefab/database/dynamo/index.js +106 -0
- package/prefab/database/dynamo/index.js.map +1 -0
- package/prefab/database/index.d.ts +4 -0
- package/prefab/database/index.d.ts.map +1 -0
- package/prefab/database/index.js +20 -0
- package/prefab/database/index.js.map +1 -0
- package/prefab/database/rds/handlers/start-cluster/handler.d.ts +2 -0
- package/prefab/database/rds/handlers/start-cluster/handler.d.ts.map +1 -0
- package/prefab/database/rds/handlers/start-cluster/handler.js +10 -0
- package/prefab/database/rds/handlers/start-cluster/handler.js.map +1 -0
- package/prefab/database/rds/handlers/stop-cluster/handler.d.ts +2 -0
- package/prefab/database/rds/handlers/stop-cluster/handler.d.ts.map +1 -0
- package/prefab/database/rds/handlers/stop-cluster/handler.js +10 -0
- package/prefab/database/rds/handlers/stop-cluster/handler.js.map +1 -0
- package/prefab/database/rds/index.d.ts +54 -0
- package/prefab/database/rds/index.d.ts.map +1 -0
- package/prefab/database/rds/index.js +223 -0
- package/prefab/database/rds/index.js.map +1 -0
- package/prefab/database/timestream/index.d.ts +3 -0
- package/prefab/database/timestream/index.d.ts.map +1 -0
- package/prefab/database/timestream/index.js +19 -0
- package/prefab/database/timestream/index.js.map +1 -0
- package/prefab/database/timestream/timestream-database.d.ts +13 -0
- package/prefab/database/timestream/timestream-database.d.ts.map +1 -0
- package/prefab/database/timestream/timestream-database.js +21 -0
- package/prefab/database/timestream/timestream-database.js.map +1 -0
- package/prefab/database/timestream/timestream-table.d.ts +23 -0
- package/prefab/database/timestream/timestream-table.d.ts.map +1 -0
- package/prefab/database/timestream/timestream-table.js +62 -0
- package/prefab/database/timestream/timestream-table.js.map +1 -0
- package/prefab/gateway/alb-public/index.d.ts +44 -0
- package/prefab/gateway/alb-public/index.d.ts.map +1 -0
- package/prefab/gateway/alb-public/index.js +116 -0
- package/prefab/gateway/alb-public/index.js.map +1 -0
- package/prefab/gateway/api-gateway/api-http.d.ts +27 -0
- package/prefab/gateway/api-gateway/api-http.d.ts.map +1 -0
- package/prefab/gateway/api-gateway/api-http.js +48 -0
- package/prefab/gateway/api-gateway/api-http.js.map +1 -0
- package/prefab/gateway/api-gateway/api-rest.d.ts +26 -0
- package/prefab/gateway/api-gateway/api-rest.d.ts.map +1 -0
- package/prefab/gateway/api-gateway/api-rest.js +90 -0
- package/prefab/gateway/api-gateway/api-rest.js.map +1 -0
- package/prefab/gateway/api-gateway/index.d.ts +3 -0
- package/prefab/gateway/api-gateway/index.d.ts.map +1 -0
- package/prefab/gateway/api-gateway/index.js +19 -0
- package/prefab/gateway/api-gateway/index.js.map +1 -0
- package/prefab/gateway/app-sync/index.d.ts +36 -0
- package/prefab/gateway/app-sync/index.d.ts.map +1 -0
- package/prefab/gateway/app-sync/index.js +114 -0
- package/prefab/gateway/app-sync/index.js.map +1 -0
- package/prefab/gateway/app-sync/resolver-aggregate.d.ts +33 -0
- package/prefab/gateway/app-sync/resolver-aggregate.d.ts.map +1 -0
- package/prefab/gateway/app-sync/resolver-aggregate.js +125 -0
- package/prefab/gateway/app-sync/resolver-aggregate.js.map +1 -0
- package/prefab/gateway/app-sync/types.d.ts +29 -0
- package/prefab/gateway/app-sync/types.d.ts.map +1 -0
- package/prefab/gateway/app-sync/types.js +3 -0
- package/prefab/gateway/app-sync/types.js.map +1 -0
- package/prefab/gateway/index.d.ts +4 -0
- package/prefab/gateway/index.d.ts.map +1 -0
- package/prefab/gateway/index.js +20 -0
- package/prefab/gateway/index.js.map +1 -0
- package/prefab/index.d.ts +11 -0
- package/prefab/index.d.ts.map +1 -0
- package/prefab/index.js +27 -0
- package/prefab/index.js.map +1 -0
- package/prefab/integration/event-bus/index.d.ts +20 -0
- package/prefab/integration/event-bus/index.d.ts.map +1 -0
- package/prefab/integration/event-bus/index.js +46 -0
- package/prefab/integration/event-bus/index.js.map +1 -0
- package/prefab/integration/index.d.ts +4 -0
- package/prefab/integration/index.d.ts.map +1 -0
- package/prefab/integration/index.js +20 -0
- package/prefab/integration/index.js.map +1 -0
- package/prefab/integration/queue/index.d.ts +29 -0
- package/prefab/integration/queue/index.d.ts.map +1 -0
- package/prefab/integration/queue/index.js +70 -0
- package/prefab/integration/queue/index.js.map +1 -0
- package/prefab/integration/topic/index.d.ts +21 -0
- package/prefab/integration/topic/index.d.ts.map +1 -0
- package/prefab/integration/topic/index.js +48 -0
- package/prefab/integration/topic/index.js.map +1 -0
- package/prefab/networking/dns-domain-ref/index.d.ts +16 -0
- package/prefab/networking/dns-domain-ref/index.d.ts.map +1 -0
- package/prefab/networking/dns-domain-ref/index.js +28 -0
- package/prefab/networking/dns-domain-ref/index.js.map +1 -0
- package/prefab/networking/dns-subdomain-certificate/index.d.ts +13 -0
- package/prefab/networking/dns-subdomain-certificate/index.d.ts.map +1 -0
- package/prefab/networking/dns-subdomain-certificate/index.js +28 -0
- package/prefab/networking/dns-subdomain-certificate/index.js.map +1 -0
- package/prefab/networking/dns-subdomain-hosted-zone/index.d.ts +12 -0
- package/prefab/networking/dns-subdomain-hosted-zone/index.d.ts.map +1 -0
- package/prefab/networking/dns-subdomain-hosted-zone/index.js +27 -0
- package/prefab/networking/dns-subdomain-hosted-zone/index.js.map +1 -0
- package/prefab/networking/index.d.ts +6 -0
- package/prefab/networking/index.d.ts.map +1 -0
- package/prefab/networking/index.js +22 -0
- package/prefab/networking/index.js.map +1 -0
- package/prefab/networking/vpc/index.d.ts +20 -0
- package/prefab/networking/vpc/index.d.ts.map +1 -0
- package/prefab/networking/vpc/index.js +28 -0
- package/prefab/networking/vpc/index.js.map +1 -0
- package/prefab/networking/waf/index.d.ts +14 -0
- package/prefab/networking/waf/index.d.ts.map +1 -0
- package/prefab/networking/waf/index.js +45 -0
- package/prefab/networking/waf/index.js.map +1 -0
- package/prefab/storage/bucket/asset-bucket.d.ts +12 -0
- package/prefab/storage/bucket/asset-bucket.d.ts.map +1 -0
- package/prefab/storage/bucket/asset-bucket.js +19 -0
- package/prefab/storage/bucket/asset-bucket.js.map +1 -0
- package/prefab/storage/bucket/index.d.ts +3 -0
- package/prefab/storage/bucket/index.d.ts.map +1 -0
- package/prefab/storage/bucket/index.js +19 -0
- package/prefab/storage/bucket/index.js.map +1 -0
- package/prefab/storage/bucket/private-bucket.d.ts +26 -0
- package/prefab/storage/bucket/private-bucket.d.ts.map +1 -0
- package/prefab/storage/bucket/private-bucket.js +82 -0
- package/prefab/storage/bucket/private-bucket.js.map +1 -0
- package/prefab/storage/index.d.ts +2 -0
- package/prefab/storage/index.d.ts.map +1 -0
- package/prefab/storage/index.js +18 -0
- package/prefab/storage/index.js.map +1 -0
- package/prefab/utils/config/frontend-env-builder.d.ts +14 -0
- package/prefab/utils/config/frontend-env-builder.d.ts.map +1 -0
- package/prefab/utils/config/frontend-env-builder.js +25 -0
- package/prefab/utils/config/frontend-env-builder.js.map +1 -0
- package/prefab/utils/config/index.d.ts +4 -0
- package/prefab/utils/config/index.d.ts.map +1 -0
- package/prefab/utils/config/index.js +20 -0
- package/prefab/utils/config/index.js.map +1 -0
- package/prefab/utils/config/parameter-secret.d.ts +21 -0
- package/prefab/utils/config/parameter-secret.d.ts.map +1 -0
- package/prefab/utils/config/parameter-secret.js +42 -0
- package/prefab/utils/config/parameter-secret.js.map +1 -0
- package/prefab/utils/config/runtime-secret.d.ts +20 -0
- package/prefab/utils/config/runtime-secret.d.ts.map +1 -0
- package/prefab/utils/config/runtime-secret.js +37 -0
- package/prefab/utils/config/runtime-secret.js.map +1 -0
- package/prefab/utils/deploy-pipeline/catalog/integrations/index.d.ts +2 -0
- package/prefab/utils/deploy-pipeline/catalog/integrations/index.d.ts.map +1 -0
- package/prefab/utils/deploy-pipeline/catalog/integrations/index.js +28 -0
- package/prefab/utils/deploy-pipeline/catalog/integrations/index.js.map +1 -0
- package/prefab/utils/deploy-pipeline/catalog/integrations/slack.d.ts +28 -0
- package/prefab/utils/deploy-pipeline/catalog/integrations/slack.d.ts.map +1 -0
- package/prefab/utils/deploy-pipeline/catalog/integrations/slack.js +8 -0
- package/prefab/utils/deploy-pipeline/catalog/integrations/slack.js.map +1 -0
- package/prefab/utils/deploy-pipeline/entities/index.d.ts +29 -0
- package/prefab/utils/deploy-pipeline/entities/index.d.ts.map +1 -0
- package/prefab/utils/deploy-pipeline/entities/index.js +3 -0
- package/prefab/utils/deploy-pipeline/entities/index.js.map +1 -0
- package/prefab/utils/deploy-pipeline/handlers/send-to-slack/handler.d.ts +3 -0
- package/prefab/utils/deploy-pipeline/handlers/send-to-slack/handler.d.ts.map +1 -0
- package/prefab/utils/deploy-pipeline/handlers/send-to-slack/handler.js +28 -0
- package/prefab/utils/deploy-pipeline/handlers/send-to-slack/handler.js.map +1 -0
- package/prefab/utils/deploy-pipeline/index.d.ts +15 -0
- package/prefab/utils/deploy-pipeline/index.d.ts.map +1 -0
- package/prefab/utils/deploy-pipeline/index.js +173 -0
- package/prefab/utils/deploy-pipeline/index.js.map +1 -0
- package/prefab/utils/deploy-pipeline/platform/get-pipeline-detail.d.ts +6 -0
- package/prefab/utils/deploy-pipeline/platform/get-pipeline-detail.d.ts.map +1 -0
- package/prefab/utils/deploy-pipeline/platform/get-pipeline-detail.js +26 -0
- package/prefab/utils/deploy-pipeline/platform/get-pipeline-detail.js.map +1 -0
- package/prefab/utils/deploy-pipeline/platform/get-slack-payload.d.ts +4 -0
- package/prefab/utils/deploy-pipeline/platform/get-slack-payload.d.ts.map +1 -0
- package/prefab/utils/deploy-pipeline/platform/get-slack-payload.js +39 -0
- package/prefab/utils/deploy-pipeline/platform/get-slack-payload.js.map +1 -0
- package/prefab/utils/deploy-pipeline/platform/send-to-slack.d.ts +3 -0
- package/prefab/utils/deploy-pipeline/platform/send-to-slack.d.ts.map +1 -0
- package/prefab/utils/deploy-pipeline/platform/send-to-slack.js +14 -0
- package/prefab/utils/deploy-pipeline/platform/send-to-slack.js.map +1 -0
- package/prefab/utils/duration.d.ts +2 -0
- package/prefab/utils/duration.d.ts.map +1 -0
- package/prefab/utils/duration.js +6 -0
- package/prefab/utils/duration.js.map +1 -0
- package/prefab/utils/index.d.ts +5 -0
- package/prefab/utils/index.d.ts.map +1 -0
- package/prefab/utils/index.js +21 -0
- package/prefab/utils/index.js.map +1 -0
- package/prefab/utils/ses/index.d.ts +22 -0
- package/prefab/utils/ses/index.d.ts.map +1 -0
- package/prefab/utils/ses/index.js +124 -0
- package/prefab/utils/ses/index.js.map +1 -0
- package/script/config-command/bootstrap.d.ts +4 -0
- package/script/config-command/bootstrap.d.ts.map +1 -0
- package/script/config-command/bootstrap.js +66 -0
- package/script/config-command/bootstrap.js.map +1 -0
- package/script/config-command/deploy-spa.d.ts +4 -0
- package/script/config-command/deploy-spa.d.ts.map +1 -0
- package/script/config-command/deploy-spa.js +84 -0
- package/script/config-command/deploy-spa.js.map +1 -0
- package/script/config-command/deploy.d.ts +4 -0
- package/script/config-command/deploy.d.ts.map +1 -0
- package/script/config-command/deploy.js +26 -0
- package/script/config-command/deploy.js.map +1 -0
- package/script/config-command/destroy.d.ts +4 -0
- package/script/config-command/destroy.d.ts.map +1 -0
- package/script/config-command/destroy.js +26 -0
- package/script/config-command/destroy.js.map +1 -0
- package/script/config-command/env-ssr.d.ts +4 -0
- package/script/config-command/env-ssr.d.ts.map +1 -0
- package/script/config-command/env-ssr.js +51 -0
- package/script/config-command/env-ssr.js.map +1 -0
- package/script/config-command/invalidation-ssr.d.ts +4 -0
- package/script/config-command/invalidation-ssr.d.ts.map +1 -0
- package/script/config-command/invalidation-ssr.js +55 -0
- package/script/config-command/invalidation-ssr.js.map +1 -0
- package/script/config-command/rds-migration.d.ts +7 -0
- package/script/config-command/rds-migration.d.ts.map +1 -0
- package/script/config-command/rds-migration.js +125 -0
- package/script/config-command/rds-migration.js.map +1 -0
- package/script/config-command/rds-sync.d.ts +4 -0
- package/script/config-command/rds-sync.d.ts.map +1 -0
- package/script/config-command/rds-sync.js +66 -0
- package/script/config-command/rds-sync.js.map +1 -0
- package/script/config-command/ssm-connect.d.ts +4 -0
- package/script/config-command/ssm-connect.d.ts.map +1 -0
- package/script/config-command/ssm-connect.js +86 -0
- package/script/config-command/ssm-connect.js.map +1 -0
- package/script/config-command/start-spa.d.ts +4 -0
- package/script/config-command/start-spa.d.ts.map +1 -0
- package/script/config-command/start-spa.js +55 -0
- package/script/config-command/start-spa.js.map +1 -0
- package/script/config-command/start-ssr.d.ts +4 -0
- package/script/config-command/start-ssr.d.ts.map +1 -0
- package/script/config-command/start-ssr.js +55 -0
- package/script/config-command/start-ssr.js.map +1 -0
- package/script/config-command/synth.d.ts +4 -0
- package/script/config-command/synth.d.ts.map +1 -0
- package/script/config-command/synth.js +26 -0
- package/script/config-command/synth.js.map +1 -0
- package/script/index.d.ts +25 -0
- package/script/index.d.ts.map +1 -0
- package/script/index.js +70 -0
- package/script/index.js.map +1 -0
- package/script/output-command/create-user.d.ts +9 -0
- package/script/output-command/create-user.d.ts.map +1 -0
- package/script/output-command/create-user.js +61 -0
- package/script/output-command/create-user.js.map +1 -0
- package/script/output-command/gen-postman-env.d.ts +28 -0
- package/script/output-command/gen-postman-env.d.ts.map +1 -0
- package/script/output-command/gen-postman-env.js +56 -0
- package/script/output-command/gen-postman-env.js.map +1 -0
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CfnWebACL } from 'aws-cdk-lib/aws-wafv2';
|
|
2
|
+
import { Construct } from 'constructs';
|
|
3
|
+
|
|
4
|
+
import { ServiceStack, BaseServiceProps } from '../../../common';
|
|
5
|
+
|
|
6
|
+
export type WafProps = {
|
|
7
|
+
wafEnabled: boolean;
|
|
8
|
+
rules?: CfnWebACL['rules'];
|
|
9
|
+
};
|
|
10
|
+
export declare class WafPrefab extends Construct {
|
|
11
|
+
readonly webACL: CfnWebACL | undefined;
|
|
12
|
+
constructor(service: ServiceStack, props: BaseServiceProps & WafProps);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../prefab/networking/waf/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAmC,MAAM,QAAQ,CAAC;AAEzF,MAAM,MAAM,QAAQ,GAAG;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;CAC5B,CAAC;AAEF,qBAAa,SAAU,SAAQ,SAAS;IACtC,SAAgB,MAAM,EAAE,SAAS,GAAG,SAAS,CAAC;gBAElC,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,gBAAgB,GAAG,QAAQ;CAmCtE"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WafPrefab = void 0;
|
|
4
|
+
const aws_wafv2_1 = require("aws-cdk-lib/aws-wafv2");
|
|
5
|
+
const constructs_1 = require("constructs");
|
|
6
|
+
const common_1 = require("../../../common");
|
|
7
|
+
class WafPrefab extends constructs_1.Construct {
|
|
8
|
+
webACL;
|
|
9
|
+
constructor(service, props) {
|
|
10
|
+
super(service, (0, common_1.getLogicalName)(WafPrefab.name));
|
|
11
|
+
const defaultRules = [
|
|
12
|
+
{
|
|
13
|
+
priority: 0,
|
|
14
|
+
name: (0, common_1.getResourceName)('BotControlRule', props),
|
|
15
|
+
overrideAction: { none: {} },
|
|
16
|
+
visibilityConfig: {
|
|
17
|
+
sampledRequestsEnabled: true,
|
|
18
|
+
cloudWatchMetricsEnabled: true,
|
|
19
|
+
metricName: (0, common_1.getResourceName)('BotControlRuleMetric', props),
|
|
20
|
+
},
|
|
21
|
+
statement: {
|
|
22
|
+
managedRuleGroupStatement: {
|
|
23
|
+
vendorName: 'AWS',
|
|
24
|
+
name: 'AWSManagedRulesBotControlRuleSet',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
];
|
|
29
|
+
// if (props.wafEnabled) {
|
|
30
|
+
this.webACL = new aws_wafv2_1.CfnWebACL(this, (0, common_1.getLogicalName)(WafPrefab.name, 'WebACL'), {
|
|
31
|
+
name: (0, common_1.getResourceName)('WebACL', props),
|
|
32
|
+
scope: 'CLOUDFRONT',
|
|
33
|
+
defaultAction: { allow: {} },
|
|
34
|
+
visibilityConfig: {
|
|
35
|
+
sampledRequestsEnabled: true,
|
|
36
|
+
cloudWatchMetricsEnabled: true,
|
|
37
|
+
metricName: (0, common_1.getResourceName)('WebACLMetric', props),
|
|
38
|
+
},
|
|
39
|
+
rules: props.rules || defaultRules,
|
|
40
|
+
});
|
|
41
|
+
// }
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.WafPrefab = WafPrefab;
|
|
45
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../prefab/networking/waf/index.ts"],"names":[],"mappings":";;;AAAA,qDAAkD;AAClD,2CAAuC;AAEvC,mCAAyF;AAOzF,MAAa,SAAU,SAAQ,sBAAS;IACtB,MAAM,CAAwB;IAE9C,YAAY,OAAqB,EAAE,KAAkC;QACnE,KAAK,CAAC,OAAO,EAAE,IAAA,uBAAc,EAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;QAC/C,MAAM,YAAY,GAAG;YACnB;gBACE,QAAQ,EAAE,CAAC;gBACX,IAAI,EAAE,IAAA,wBAAe,EAAC,gBAAgB,EAAE,KAAK,CAAC;gBAC9C,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;gBAC5B,gBAAgB,EAAE;oBAChB,sBAAsB,EAAE,IAAI;oBAC5B,wBAAwB,EAAE,IAAI;oBAC9B,UAAU,EAAE,IAAA,wBAAe,EAAC,sBAAsB,EAAE,KAAK,CAAC;iBAC3D;gBACD,SAAS,EAAE;oBACT,yBAAyB,EAAE;wBACzB,UAAU,EAAE,KAAK;wBACjB,IAAI,EAAE,kCAAkC;qBACzC;iBACF;aACF;SACF,CAAC;QAEF,0BAA0B;QAC1B,IAAI,CAAC,MAAM,GAAG,IAAI,qBAAS,CAAC,IAAI,EAAE,IAAA,uBAAc,EAAC,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE;YAC1E,IAAI,EAAE,IAAA,wBAAe,EAAC,QAAQ,EAAE,KAAK,CAAC;YACtC,KAAK,EAAE,YAAY;YACnB,aAAa,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;YAC5B,gBAAgB,EAAE;gBAChB,sBAAsB,EAAE,IAAI;gBAC5B,wBAAwB,EAAE,IAAI;gBAC9B,UAAU,EAAE,IAAA,wBAAe,EAAC,cAAc,EAAE,KAAK,CAAC;aACnD;YACD,KAAK,EAAE,KAAK,CAAC,KAAK,IAAI,YAAY;SACnC,CAAC,CAAC;QACH,IAAI;IACN,CAAC;CACF;AAtCD,8BAsCC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ServiceStack } from '../../../common';
|
|
2
|
+
|
|
3
|
+
import { PrivateBucketParams, PrivateBucketPrefab } from './private-bucket';
|
|
4
|
+
|
|
5
|
+
export type AssetBucketParams = PrivateBucketParams & {
|
|
6
|
+
folder?: string;
|
|
7
|
+
prefix?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare class AssetBucketPrefab extends PrivateBucketPrefab {
|
|
10
|
+
constructor(service: ServiceStack, params: AssetBucketParams);
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=asset-bucket.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset-bucket.d.ts","sourceRoot":"","sources":["../../../../prefab/storage/bucket/asset-bucket.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5E,MAAM,MAAM,iBAAiB,GAAG,mBAAmB,GAAG;IACpD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,qBAAa,iBAAkB,SAAQ,mBAAmB;gBAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,iBAAiB;CAW7D"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AssetBucketPrefab = void 0;
|
|
4
|
+
const aws_s3_deployment_1 = require("aws-cdk-lib/aws-s3-deployment");
|
|
5
|
+
const private_bucket_1 = require("./private-bucket");
|
|
6
|
+
class AssetBucketPrefab extends private_bucket_1.PrivateBucketPrefab {
|
|
7
|
+
constructor(service, params) {
|
|
8
|
+
super(service, params);
|
|
9
|
+
if (params.folder) {
|
|
10
|
+
new aws_s3_deployment_1.BucketDeployment(this, 'DeployBucket', {
|
|
11
|
+
sources: [aws_s3_deployment_1.Source.asset(params.folder)],
|
|
12
|
+
destinationBucket: this.bucket,
|
|
13
|
+
destinationKeyPrefix: params.prefix,
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.AssetBucketPrefab = AssetBucketPrefab;
|
|
19
|
+
//# sourceMappingURL=asset-bucket.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset-bucket.js","sourceRoot":"","sources":["../../../../prefab/storage/bucket/asset-bucket.ts"],"names":[],"mappings":";;;AAAA,qEAAyE;AAIzE,qDAA4E;AAO5E,MAAa,iBAAkB,SAAQ,oCAAmB;IACxD,YAAY,OAAqB,EAAE,MAAyB;QAC1D,KAAK,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QAEvB,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;YAClB,IAAI,oCAAgB,CAAC,IAAI,EAAE,cAAc,EAAE;gBACzC,OAAO,EAAE,CAAC,0BAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;gBACtC,iBAAiB,EAAE,IAAI,CAAC,MAAM;gBAC9B,oBAAoB,EAAE,MAAM,CAAC,MAAM;aACpC,CAAC,CAAC;QACL,CAAC;IACH,CAAC;CACF;AAZD,8CAYC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../prefab/storage/bucket/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./asset-bucket"), exports);
|
|
18
|
+
__exportStar(require("./private-bucket"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../prefab/storage/bucket/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,mDAAiC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as awsS3 from 'aws-cdk-lib/aws-s3';
|
|
2
|
+
import { BucketProps } from 'aws-cdk-lib/aws-s3';
|
|
3
|
+
import { Topic } from 'aws-cdk-lib/aws-sns';
|
|
4
|
+
import { Queue } from 'aws-cdk-lib/aws-sqs';
|
|
5
|
+
import { Construct } from 'constructs';
|
|
6
|
+
|
|
7
|
+
import { ServiceStack, Modifier } from '../../../common';
|
|
8
|
+
|
|
9
|
+
export type PrivateBucketParams = {
|
|
10
|
+
bucketName: string;
|
|
11
|
+
bucketProps?: Omit<BucketProps, 'bucketName'>;
|
|
12
|
+
};
|
|
13
|
+
export type BucketNotFilter = awsS3.NotificationKeyFilter[];
|
|
14
|
+
export declare class PrivateBucketPrefab extends Construct {
|
|
15
|
+
readonly bucket: awsS3.Bucket;
|
|
16
|
+
constructor(service: ServiceStack, params: PrivateBucketParams);
|
|
17
|
+
addTopicNotification(params: { topic: Topic; eventType?: awsS3.EventType; filters?: BucketNotFilter }): void;
|
|
18
|
+
addQueueNotification(params: { queue: Queue; eventType?: awsS3.EventType; filters?: BucketNotFilter }): void;
|
|
19
|
+
useMod(variableName: string | undefined, mods: ((bucket: awsS3.Bucket) => any)[]): Modifier;
|
|
20
|
+
static modifier: {
|
|
21
|
+
reader: (bucket: awsS3.Bucket) => Modifier;
|
|
22
|
+
writer: (bucket: awsS3.Bucket) => Modifier;
|
|
23
|
+
delete: (bucket: awsS3.Bucket) => Modifier;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=private-bucket.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"private-bucket.d.ts","sourceRoot":"","sources":["../../../../prefab/storage/bucket/private-bucket.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,oBAAoB,CAAC;AAG5C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,YAAY,EAAiC,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAE/E,MAAM,MAAM,mBAAmB,GAAG;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC;CAC/C,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,qBAAqB,EAAE,CAAC;AAE5D,qBAAa,mBAAoB,SAAQ,SAAS;IAChD,SAAgB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;gBAEzB,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,mBAAmB;IAkBvD,oBAAoB,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,KAAK,CAAC;QAAC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QAAC,OAAO,CAAC,EAAE,eAAe,CAAA;KAAE,GAAG,IAAI;IAI5G,oBAAoB,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,KAAK,CAAC;QAAC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QAAC,OAAO,CAAC,EAAE,eAAe,CAAA;KAAE,GAAG,IAAI;IAK5G,MAAM,CAAC,YAAY,oBAAgB,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,KAAK,GAAG,CAAC,EAAE,GAAG,QAAQ;IAQ9F,OAAc,QAAQ;yBACH,KAAK,CAAC,MAAM,KAAG,QAAQ;yBAKvB,KAAK,CAAC,MAAM,KAAG,QAAQ;yBAKvB,KAAK,CAAC,MAAM,KAAG,QAAQ;MAKxC;CACH"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.PrivateBucketPrefab = void 0;
|
|
27
|
+
const awsS3 = __importStar(require("aws-cdk-lib/aws-s3"));
|
|
28
|
+
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
29
|
+
const aws_s3_notifications_1 = require("aws-cdk-lib/aws-s3-notifications");
|
|
30
|
+
const constructs_1 = require("constructs");
|
|
31
|
+
const common_1 = require("../../../common");
|
|
32
|
+
class PrivateBucketPrefab extends constructs_1.Construct {
|
|
33
|
+
bucket;
|
|
34
|
+
constructor(service, params) {
|
|
35
|
+
super(service, (0, common_1.getLogicalName)(PrivateBucketPrefab.name, params.bucketName));
|
|
36
|
+
const defaultProps = {
|
|
37
|
+
encryption: awsS3.BucketEncryption.S3_MANAGED,
|
|
38
|
+
blockPublicAccess: awsS3.BlockPublicAccess.BLOCK_ALL,
|
|
39
|
+
removalPolicy: service.props.envName === 'prod' ? aws_cdk_lib_1.RemovalPolicy.RETAIN : aws_cdk_lib_1.RemovalPolicy.DESTROY,
|
|
40
|
+
autoDeleteObjects: service.props.envName !== 'prod',
|
|
41
|
+
publicReadAccess: false,
|
|
42
|
+
};
|
|
43
|
+
this.bucket = new awsS3.Bucket(this, (0, common_1.getLogicalName)(PrivateBucketPrefab.name, 'Bucket'), {
|
|
44
|
+
bucketName: (0, common_1.getBucketName)(params.bucketName, service.props),
|
|
45
|
+
...defaultProps,
|
|
46
|
+
...params.bucketProps,
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
addTopicNotification(params) {
|
|
50
|
+
this.bucket.addEventNotification(params.eventType || awsS3.EventType.OBJECT_CREATED, new aws_s3_notifications_1.SnsDestination(params.topic), ...(params.filters || []));
|
|
51
|
+
}
|
|
52
|
+
addQueueNotification(params) {
|
|
53
|
+
this.bucket.addEventNotification(params.eventType || awsS3.EventType.OBJECT_CREATED, new aws_s3_notifications_1.SqsDestination(params.queue), ...(params.filters || []));
|
|
54
|
+
}
|
|
55
|
+
// Mods
|
|
56
|
+
useMod(variableName = 'BUCKET_NAME', mods) {
|
|
57
|
+
return (lambda) => {
|
|
58
|
+
lambda.addEnvironment(variableName, this.bucket.bucketName);
|
|
59
|
+
mods.map((fn) => fn(this.bucket)(lambda));
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
// Class Mods
|
|
63
|
+
static modifier = {
|
|
64
|
+
reader: (bucket) => {
|
|
65
|
+
return (lambda) => {
|
|
66
|
+
bucket.grantRead(lambda);
|
|
67
|
+
};
|
|
68
|
+
},
|
|
69
|
+
writer: (bucket) => {
|
|
70
|
+
return (lambda) => {
|
|
71
|
+
bucket.grantWrite(lambda);
|
|
72
|
+
};
|
|
73
|
+
},
|
|
74
|
+
delete: (bucket) => {
|
|
75
|
+
return (lambda) => {
|
|
76
|
+
bucket.grantDelete(lambda);
|
|
77
|
+
};
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
exports.PrivateBucketPrefab = PrivateBucketPrefab;
|
|
82
|
+
//# sourceMappingURL=private-bucket.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"private-bucket.js","sourceRoot":"","sources":["../../../../prefab/storage/bucket/private-bucket.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAA4C;AAC5C,6CAA4C;AAG5C,2EAAkF;AAGlF,2CAAuC;AAEvC,mCAA+E;AAS/E,MAAa,mBAAoB,SAAQ,sBAAS;IAChC,MAAM,CAAe;IAErC,YAAY,OAAqB,EAAE,MAA2B;QAC5D,KAAK,CAAC,OAAO,EAAE,IAAA,uBAAc,EAAC,mBAAmB,CAAC,IAAI,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;QAE5E,MAAM,YAAY,GAAgB;YAChC,UAAU,EAAE,KAAK,CAAC,gBAAgB,CAAC,UAAU;YAC7C,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC,SAAS;YACpD,aAAa,EAAE,OAAO,CAAC,KAAK,CAAC,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,2BAAa,CAAC,MAAM,CAAC,CAAC,CAAC,2BAAa,CAAC,OAAO;YAC9F,iBAAiB,EAAE,OAAO,CAAC,KAAK,CAAC,OAAO,KAAK,MAAM;YACnD,gBAAgB,EAAE,KAAK;SACxB,CAAC;QAEF,IAAI,CAAC,MAAM,GAAG,IAAI,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,IAAA,uBAAc,EAAC,mBAAmB,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE;YACvF,UAAU,EAAE,IAAA,sBAAa,EAAC,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,KAAK,CAAC;YAC3D,GAAG,YAAY;YACf,GAAG,MAAM,CAAC,WAAW;SACtB,CAAC,CAAC;IACL,CAAC;IAEM,oBAAoB,CAAC,MAAgF;QAC1G,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,MAAM,CAAC,SAAS,IAAI,KAAK,CAAC,SAAS,CAAC,cAAc,EAAE,IAAI,qCAAc,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAC;IACpJ,CAAC;IAEM,oBAAoB,CAAC,MAAgF;QAC1G,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,MAAM,CAAC,SAAS,IAAI,KAAK,CAAC,SAAS,CAAC,cAAc,EAAE,IAAI,qCAAc,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAC;IACpJ,CAAC;IAED,OAAO;IACA,MAAM,CAAC,YAAY,GAAG,aAAa,EAAE,IAAuC;QACjF,OAAO,CAAC,MAAsB,EAAQ,EAAE;YACtC,MAAM,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;YAC5D,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;QAC5C,CAAC,CAAC;IACJ,CAAC;IAED,aAAa;IACN,MAAM,CAAC,QAAQ,GAAG;QACvB,MAAM,EAAE,CAAC,MAAoB,EAAY,EAAE;YACzC,OAAO,CAAC,MAAM,EAAE,EAAE;gBAChB,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;YAC3B,CAAC,CAAC;QACJ,CAAC;QACD,MAAM,EAAE,CAAC,MAAoB,EAAY,EAAE;YACzC,OAAO,CAAC,MAAM,EAAE,EAAE;gBAChB,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;YAC5B,CAAC,CAAC;QACJ,CAAC;QACD,MAAM,EAAE,CAAC,MAAoB,EAAY,EAAE;YACzC,OAAO,CAAC,MAAM,EAAE,EAAE;gBAChB,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;YAC7B,CAAC,CAAC;QACJ,CAAC;KACF,CAAC;;AAtDJ,kDAuDC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../prefab/storage/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
@@ -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("./bucket"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../prefab/storage/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StringParameter } from 'aws-cdk-lib/aws-ssm';
|
|
2
|
+
import { Construct } from 'constructs';
|
|
3
|
+
|
|
4
|
+
import { ServiceStack } from '../../../common';
|
|
5
|
+
|
|
6
|
+
export type FrontendEnvBuilderParams = {
|
|
7
|
+
name: string;
|
|
8
|
+
calculatedSecrets?: Record<string, string>;
|
|
9
|
+
};
|
|
10
|
+
export declare class FrontendEnvBuilder extends Construct {
|
|
11
|
+
readonly secrets: Record<string, StringParameter>;
|
|
12
|
+
constructor(service: ServiceStack, params: FrontendEnvBuilderParams);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=frontend-env-builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frontend-env-builder.d.ts","sourceRoot":"","sources":["../../../../prefab/utils/config/frontend-env-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,YAAY,EAAmC,MAAM,QAAQ,CAAC;AAEvE,MAAM,MAAM,wBAAwB,GAAG;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC5C,CAAC;AAEF,qBAAa,kBAAmB,SAAQ,SAAS;IAC/C,SAAgB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAM;gBAElD,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,wBAAwB;CAgBpE"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FrontendEnvBuilder = void 0;
|
|
4
|
+
const aws_ssm_1 = require("aws-cdk-lib/aws-ssm");
|
|
5
|
+
const constructs_1 = require("constructs");
|
|
6
|
+
const common_1 = require("../../../common");
|
|
7
|
+
class FrontendEnvBuilder extends constructs_1.Construct {
|
|
8
|
+
secrets = {};
|
|
9
|
+
constructor(service, params) {
|
|
10
|
+
super(service, (0, common_1.getLogicalName)(FrontendEnvBuilder.name, params.name));
|
|
11
|
+
new aws_ssm_1.StringParameter(this, (0, common_1.getLogicalName)('Manual', params.name), {
|
|
12
|
+
parameterName: (0, common_1.getResourceName)('env-manual', service.props),
|
|
13
|
+
stringValue: 'REACT_ENV_EXAMPLE=example',
|
|
14
|
+
});
|
|
15
|
+
if (params.calculatedSecrets && Object.keys(params.calculatedSecrets).length > 0)
|
|
16
|
+
new aws_ssm_1.StringParameter(this, (0, common_1.getLogicalName)('Calculated', params.name), {
|
|
17
|
+
parameterName: (0, common_1.getResourceName)('env-calculated', service.props),
|
|
18
|
+
stringValue: Object.keys(params.calculatedSecrets)
|
|
19
|
+
.map((key) => `${key}=${params.calculatedSecrets[key]}`)
|
|
20
|
+
.join('\n'),
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.FrontendEnvBuilder = FrontendEnvBuilder;
|
|
25
|
+
//# sourceMappingURL=frontend-env-builder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frontend-env-builder.js","sourceRoot":"","sources":["../../../../prefab/utils/config/frontend-env-builder.ts"],"names":[],"mappings":";;;AAAA,iDAAsD;AACtD,2CAAuC;AAEvC,mCAAuE;AAOvE,MAAa,kBAAmB,SAAQ,sBAAS;IAC/B,OAAO,GAAoC,EAAE,CAAC;IAE9D,YAAY,OAAqB,EAAE,MAAgC;QACjE,KAAK,CAAC,OAAO,EAAE,IAAA,uBAAc,EAAC,kBAAkB,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;QAErE,IAAI,yBAAe,CAAC,IAAI,EAAE,IAAA,uBAAc,EAAC,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE;YAC/D,aAAa,EAAE,IAAA,wBAAe,EAAC,YAAY,EAAE,OAAO,CAAC,KAAK,CAAC;YAC3D,WAAW,EAAE,2BAA2B;SACzC,CAAC,CAAC;QAEH,IAAI,MAAM,CAAC,iBAAiB,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,MAAM,GAAG,CAAC;YAC9E,IAAI,yBAAe,CAAC,IAAI,EAAE,IAAA,uBAAc,EAAC,YAAY,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE;gBACnE,aAAa,EAAE,IAAA,wBAAe,EAAC,gBAAgB,EAAE,OAAO,CAAC,KAAK,CAAC;gBAC/D,WAAW,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC;qBAC/C,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,GAAG,IAAI,MAAM,CAAC,iBAAkB,CAAC,GAAG,CAAC,EAAE,CAAC;qBACxD,IAAI,CAAC,IAAI,CAAC;aACd,CAAC,CAAC;IACP,CAAC;CACF;AAnBD,gDAmBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../prefab/utils/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./frontend-env-builder"), exports);
|
|
18
|
+
__exportStar(require("./parameter-secret"), exports);
|
|
19
|
+
__exportStar(require("./runtime-secret"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../prefab/utils/config/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,qDAAmC;AACnC,mDAAiC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { NodejsFunction } from 'aws-cdk-lib/aws-lambda-nodejs';
|
|
2
|
+
import { IStringParameter } from 'aws-cdk-lib/aws-ssm';
|
|
3
|
+
import { Construct } from 'constructs';
|
|
4
|
+
|
|
5
|
+
import { ServiceStack } from '../../../common';
|
|
6
|
+
|
|
7
|
+
export type ParameterSecretParams = {
|
|
8
|
+
name?: string;
|
|
9
|
+
existingName?: string;
|
|
10
|
+
value?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare class ParameterSecret extends Construct {
|
|
13
|
+
readonly parameter: IStringParameter;
|
|
14
|
+
constructor(service: ServiceStack, params: ParameterSecretParams);
|
|
15
|
+
useModReader(variableName: string): (lambda: NodejsFunction) => void;
|
|
16
|
+
useMod(variableName: string, mods: ((parameter: IStringParameter) => any)[]): (lambda: NodejsFunction) => void;
|
|
17
|
+
static modifier: {
|
|
18
|
+
reader: (parameter: IStringParameter) => (lambda: NodejsFunction) => NodejsFunction;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=parameter-secret.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parameter-secret.d.ts","sourceRoot":"","sources":["../../../../prefab/utils/config/parameter-secret.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAmB,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAmC,YAAY,EAAc,MAAM,QAAQ,CAAC;AAEnF,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,qBAAa,eAAgB,SAAQ,SAAS;IAC5C,SAAgB,SAAS,EAAG,gBAAgB,CAAC;gBAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,qBAAqB;IAiBzD,YAAY,CAAC,YAAY,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI;IAIpE,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,EAAE,gBAAgB,KAAK,GAAG,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI;IAOrH,OAAc,QAAQ;4BACA,gBAAgB,KAAG,CAAC,CAAC,MAAM,EAAE,cAAc,KAAK,cAAc,CAAC;MAMnF;CACH"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ParameterSecret = void 0;
|
|
4
|
+
const aws_ssm_1 = require("aws-cdk-lib/aws-ssm");
|
|
5
|
+
const constructs_1 = require("constructs");
|
|
6
|
+
const common_1 = require("../../../common");
|
|
7
|
+
class ParameterSecret extends constructs_1.Construct {
|
|
8
|
+
parameter;
|
|
9
|
+
constructor(service, params) {
|
|
10
|
+
super(service, (0, common_1.getLogicalName)(ParameterSecret.name, params.name || params.existingName));
|
|
11
|
+
if (!params.existingName && !params.name)
|
|
12
|
+
throw new common_1.SynthError('name or existingName are required');
|
|
13
|
+
if (params.existingName) {
|
|
14
|
+
this.parameter = aws_ssm_1.StringParameter.fromStringParameterName(this, (0, common_1.getLogicalName)('param', params.existingName), params.existingName);
|
|
15
|
+
}
|
|
16
|
+
if (params.name) {
|
|
17
|
+
this.parameter = new aws_ssm_1.StringParameter(this, (0, common_1.getLogicalName)('param', params.name), {
|
|
18
|
+
parameterName: (0, common_1.getResourceName)(params.name, service.props),
|
|
19
|
+
stringValue: params.value || 'Default value: this need to be changed',
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
useModReader(variableName) {
|
|
24
|
+
return this.useMod(variableName, [ParameterSecret.modifier.reader]);
|
|
25
|
+
}
|
|
26
|
+
useMod(variableName, mods) {
|
|
27
|
+
return (lambda) => {
|
|
28
|
+
lambda.addEnvironment(variableName, this.parameter.parameterName);
|
|
29
|
+
mods.map((fn) => fn(this.parameter)(lambda));
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
static modifier = {
|
|
33
|
+
reader: (parameter) => {
|
|
34
|
+
return (lambda) => {
|
|
35
|
+
parameter.grantRead(lambda);
|
|
36
|
+
return lambda;
|
|
37
|
+
};
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.ParameterSecret = ParameterSecret;
|
|
42
|
+
//# sourceMappingURL=parameter-secret.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parameter-secret.js","sourceRoot":"","sources":["../../../../prefab/utils/config/parameter-secret.ts"],"names":[],"mappings":";;;AACA,iDAAwE;AACxE,2CAAuC;AAEvC,mCAAmF;AAQnF,MAAa,eAAgB,SAAQ,sBAAS;IAC5B,SAAS,CAAoB;IAE7C,YAAY,OAAqB,EAAE,MAA6B;QAC9D,KAAK,CAAC,OAAO,EAAE,IAAA,uBAAc,EAAC,eAAe,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC;QAEzF,IAAI,CAAC,MAAM,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,IAAI;YAAE,MAAM,IAAI,mBAAU,CAAC,mCAAmC,CAAC,CAAC;QAEpG,IAAI,MAAM,CAAC,YAAY,EAAE,CAAC;YACxB,IAAI,CAAC,SAAS,GAAG,yBAAe,CAAC,uBAAuB,CAAC,IAAI,EAAE,IAAA,uBAAc,EAAC,OAAO,EAAE,MAAM,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC;QACpI,CAAC;QAED,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;YAChB,IAAI,CAAC,SAAS,GAAG,IAAI,yBAAe,CAAC,IAAI,EAAE,IAAA,uBAAc,EAAC,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE;gBAC/E,aAAa,EAAE,IAAA,wBAAe,EAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC;gBAC1D,WAAW,EAAE,MAAM,CAAC,KAAK,IAAI,wCAAwC;aACtE,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAEM,YAAY,CAAC,YAAoB;QACtC,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC,eAAe,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;IACtE,CAAC;IAEM,MAAM,CAAC,YAAoB,EAAE,IAA8C;QAChF,OAAO,CAAC,MAAsB,EAAQ,EAAE;YACtC,MAAM,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;YAClE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;QAC/C,CAAC,CAAC;IACJ,CAAC;IAEM,MAAM,CAAC,QAAQ,GAAG;QACvB,MAAM,EAAE,CAAC,SAA2B,EAAgD,EAAE;YACpF,OAAO,CAAC,MAAsB,EAAkB,EAAE;gBAChD,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;gBAC5B,OAAO,MAAM,CAAC;YAChB,CAAC,CAAC;QACJ,CAAC;KACF,CAAC;;AAtCJ,0CAuCC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { NodejsFunction } from 'aws-cdk-lib/aws-lambda-nodejs';
|
|
2
|
+
import { ISecret } from 'aws-cdk-lib/aws-secretsmanager';
|
|
3
|
+
import { Construct } from 'constructs';
|
|
4
|
+
import { SecretConfig } from '@takumi-stack/sdk';
|
|
5
|
+
import { ServiceStack } from '../../../common';
|
|
6
|
+
export type RuntimeSecretBuilderProps = {
|
|
7
|
+
secretConfig: SecretConfig;
|
|
8
|
+
fromSecret?: ISecret;
|
|
9
|
+
};
|
|
10
|
+
export declare class RuntimeSecret extends Construct {
|
|
11
|
+
readonly secret: ISecret;
|
|
12
|
+
readonly secretName: string;
|
|
13
|
+
constructor(service: ServiceStack, params: RuntimeSecretBuilderProps);
|
|
14
|
+
useMod(mods: ((secret: ISecret) => any)[]): (lambda: NodejsFunction) => void;
|
|
15
|
+
useModReader(): (lambda: NodejsFunction) => void;
|
|
16
|
+
static modifier: {
|
|
17
|
+
reader: (secret: ISecret) => ((lambda: NodejsFunction) => void);
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=runtime-secret.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-secret.d.ts","sourceRoot":"","sources":["../../../../prefab/utils/config/runtime-secret.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAU,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,EAAE,YAAY,EAAmC,MAAM,QAAQ,CAAC;AAEvE,MAAM,MAAM,yBAAyB,GAAG;IACtC,YAAY,EAAE,YAAY,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,qBAAa,aAAc,SAAQ,SAAS;IAC1C,SAAgB,MAAM,EAAE,OAAO,CAAC;IAChC,SAAgB,UAAU,EAAE,MAAM,CAAC;gBAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,yBAAyB;IAY7D,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,OAAO,KAAK,GAAG,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI;IAO5E,YAAY,IAAI,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI;IAIvD,OAAc,QAAQ;yBACH,OAAO,KAAG,CAAC,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,CAAC;MAK7D;CACH"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RuntimeSecret = void 0;
|
|
4
|
+
const aws_secretsmanager_1 = require("aws-cdk-lib/aws-secretsmanager");
|
|
5
|
+
const constructs_1 = require("constructs");
|
|
6
|
+
const common_1 = require("../../../common");
|
|
7
|
+
class RuntimeSecret extends constructs_1.Construct {
|
|
8
|
+
secret;
|
|
9
|
+
secretName;
|
|
10
|
+
constructor(service, params) {
|
|
11
|
+
super(service, (0, common_1.getLogicalName)(RuntimeSecret.name, params.secretConfig.name));
|
|
12
|
+
this.secretName = params.secretConfig.name;
|
|
13
|
+
this.secret = params.fromSecret
|
|
14
|
+
? aws_secretsmanager_1.Secret.fromSecretCompleteArn(this, 'Secret', params.fromSecret.secretArn)
|
|
15
|
+
: new aws_secretsmanager_1.Secret(this, 'Secret', {
|
|
16
|
+
secretName: (0, common_1.getResourceName)(this.secretName, service.props),
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
useMod(mods) {
|
|
20
|
+
return (lambda) => {
|
|
21
|
+
lambda.addEnvironment(this.secretName, this.secret.secretArn);
|
|
22
|
+
mods.map((fn) => fn(this.secret)(lambda));
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
useModReader() {
|
|
26
|
+
return this.useMod([RuntimeSecret.modifier.reader]);
|
|
27
|
+
}
|
|
28
|
+
static modifier = {
|
|
29
|
+
reader: (secret) => {
|
|
30
|
+
return (lambda) => {
|
|
31
|
+
secret.grantRead(lambda);
|
|
32
|
+
};
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
exports.RuntimeSecret = RuntimeSecret;
|
|
37
|
+
//# sourceMappingURL=runtime-secret.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-secret.js","sourceRoot":"","sources":["../../../../prefab/utils/config/runtime-secret.ts"],"names":[],"mappings":";;;AACA,uEAAiE;AACjE,2CAAuC;AAIvC,mCAAuE;AAOvE,MAAa,aAAc,SAAQ,sBAAS;IAC1B,MAAM,CAAU;IAChB,UAAU,CAAS;IAEnC,YAAY,OAAqB,EAAE,MAAiC;QAClE,KAAK,CAAC,OAAO,EAAE,IAAA,uBAAc,EAAC,aAAa,CAAC,IAAI,EAAE,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC;QAE7E,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC;QAE3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,UAAU;YAC7B,CAAC,CAAC,2BAAM,CAAC,qBAAqB,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC;YAC3E,CAAC,CAAC,IAAI,2BAAM,CAAC,IAAI,EAAE,QAAQ,EAAE;gBACzB,UAAU,EAAE,IAAA,wBAAe,EAAC,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,KAAK,CAAC;aAC5D,CAAC,CAAC;IACT,CAAC;IAEM,MAAM,CAAC,IAAkC;QAC9C,OAAO,CAAC,MAAsB,EAAQ,EAAE;YACtC,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;YAC9D,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;QAC5C,CAAC,CAAC;IACJ,CAAC;IAEM,YAAY;QACjB,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;IACtD,CAAC;IAEM,MAAM,CAAC,QAAQ,GAAG;QACvB,MAAM,EAAE,CAAC,MAAe,EAAsC,EAAE;YAC9D,OAAO,CAAC,MAAsB,EAAQ,EAAE;gBACtC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;YAC3B,CAAC,CAAC;QACJ,CAAC;KACF,CAAC;;AAjCJ,sCAkCC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../prefab/utils/deploy-pipeline/catalog/integrations/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.Slack = void 0;
|
|
27
|
+
exports.Slack = __importStar(require("./slack"));
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../prefab/utils/deploy-pipeline/catalog/integrations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAiC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ApiIntegrationInterface, EmptyObject, ApiIntegrationConfig } from '@takumi-stack/sdk';
|
|
2
|
+
export type Interface = ApiIntegrationInterface<{
|
|
3
|
+
errorResponse: {
|
|
4
|
+
errorCode: string;
|
|
5
|
+
message: string;
|
|
6
|
+
};
|
|
7
|
+
response: EmptyObject;
|
|
8
|
+
pathParams: {
|
|
9
|
+
token: string;
|
|
10
|
+
};
|
|
11
|
+
body: {
|
|
12
|
+
channel: string;
|
|
13
|
+
attachments: {
|
|
14
|
+
pretext: string;
|
|
15
|
+
fallback: string;
|
|
16
|
+
color: string;
|
|
17
|
+
fields: {
|
|
18
|
+
title: string;
|
|
19
|
+
value: string;
|
|
20
|
+
short: boolean;
|
|
21
|
+
}[];
|
|
22
|
+
}[];
|
|
23
|
+
};
|
|
24
|
+
queryParams: EmptyObject;
|
|
25
|
+
headers: EmptyObject;
|
|
26
|
+
}>;
|
|
27
|
+
export declare const config: ApiIntegrationConfig<Interface>;
|
|
28
|
+
//# sourceMappingURL=slack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slack.d.ts","sourceRoot":"","sources":["../../../../../../prefab/utils/deploy-pipeline/catalog/integrations/slack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE/F,MAAM,MAAM,SAAS,GAAG,uBAAuB,CAAC;IAC9C,aAAa,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IACtD,QAAQ,EAAE,WAAW,CAAC;IACtB,UAAU,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9B,IAAI,EAAE;QACJ,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,EAAE;YACX,OAAO,EAAE,MAAM,CAAC;YAChB,QAAQ,EAAE,MAAM,CAAC;YACjB,KAAK,EAAE,MAAM,CAAC;YACd,MAAM,EAAE;gBAAE,KAAK,EAAE,MAAM,CAAC;gBAAC,KAAK,EAAE,MAAM,CAAC;gBAAC,KAAK,EAAE,OAAO,CAAA;aAAE,EAAE,CAAC;SAC5D,EAAE,CAAC;KACL,CAAC;IACF,WAAW,EAAE,WAAW,CAAC;IACzB,OAAO,EAAE,WAAW,CAAC;CACtB,CAAC,CAAC;AAEH,eAAO,MAAM,MAAM,EAAE,oBAAoB,CAAC,SAAS,CAGlD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slack.js","sourceRoot":"","sources":["../../../../../../prefab/utils/deploy-pipeline/catalog/integrations/slack.ts"],"names":[],"mappings":";;;AAmBa,QAAA,MAAM,GAAoC;IACrD,MAAM,EAAE,MAAM;IACd,GAAG,EAAE,0CAA0C;CAChD,CAAC"}
|