monorise 0.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/base/index.d.ts +254 -0
- package/dist/base/index.js +44 -0
- package/dist/base/index.js.map +1 -0
- package/dist/cli/cli.d.ts +1 -0
- package/dist/cli/cli.js +461 -0
- package/dist/cli/cli.js.map +1 -0
- package/dist/core/index.d.ts +4767 -0
- package/dist/core/index.js +7941 -0
- package/dist/core/index.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +11 -0
- package/dist/react/actions/app.action.d.ts +46 -0
- package/dist/react/actions/app.action.d.ts.map +1 -0
- package/dist/react/actions/auth.action.d.ts +24 -0
- package/dist/react/actions/auth.action.d.ts.map +1 -0
- package/dist/react/actions/config.action.d.ts +10 -0
- package/dist/react/actions/config.action.d.ts.map +1 -0
- package/dist/react/actions/core.action.d.ts +219 -0
- package/dist/react/actions/core.action.d.ts.map +1 -0
- package/dist/react/index.d.ts +1093 -0
- package/dist/react/index.d.ts.map +1 -0
- package/dist/react/index.js +2344 -0
- package/dist/react/index.js.map +1 -0
- package/dist/react/lib/api.d.ts +38 -0
- package/dist/react/lib/api.d.ts.map +1 -0
- package/dist/react/lib/constant.d.ts +2 -0
- package/dist/react/lib/constant.d.ts.map +1 -0
- package/dist/react/lib/entity.d.ts +10 -0
- package/dist/react/lib/entity.d.ts.map +1 -0
- package/dist/react/lib/utils.d.ts +10 -0
- package/dist/react/lib/utils.d.ts.map +1 -0
- package/dist/react/services/auth.service.d.ts +21 -0
- package/dist/react/services/auth.service.d.ts.map +1 -0
- package/dist/react/services/core.service.d.ts +76 -0
- package/dist/react/services/core.service.d.ts.map +1 -0
- package/dist/react/services/filestore.service.d.ts +22 -0
- package/dist/react/services/filestore.service.d.ts.map +1 -0
- package/dist/react/store/monorise.store.d.ts +169 -0
- package/dist/react/store/monorise.store.d.ts.map +1 -0
- package/dist/react/tsup.config.d.ts +3 -0
- package/dist/react/tsup.config.d.ts.map +1 -0
- package/dist/react/types/api.type.d.ts +30 -0
- package/dist/react/types/api.type.d.ts.map +1 -0
- package/dist/react/types/axios.type.d.ts +13 -0
- package/dist/react/types/axios.type.d.ts.map +1 -0
- package/dist/react/types/monorise.type.d.ts +8 -0
- package/dist/react/types/monorise.type.d.ts.map +1 -0
- package/dist/react/types/mutual.type.d.ts +21 -0
- package/dist/react/types/mutual.type.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/analog.d.ts +423 -0
- package/dist/sst/.sst/platform/src/components/aws/analog.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket-route.d.ts +74 -0
- package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket.d.ts +542 -0
- package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-api-key.d.ts +48 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-api-key.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-authorizer.d.ts +55 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-authorizer.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-base-route.d.ts +36 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-base-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-integration-route.d.ts +39 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-integration-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-lambda-route.d.ts +53 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-lambda-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-usage-plan.d.ts +53 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-usage-plan.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1.d.ts +1002 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-authorizer.d.ts +54 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-authorizer.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-base-route.d.ts +28 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-base-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-lambda-route.d.ts +59 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-lambda-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-private-route.d.ts +54 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-private-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-url-route.d.ts +44 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-url-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2.d.ts +931 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync-data-source.d.ts +52 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync-data-source.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync-function.d.ts +33 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync-function.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync-resolver.d.ts +41 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync-resolver.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync.d.ts +638 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/astro.d.ts +421 -0
- package/dist/sst/.sst/platform/src/components/aws/astro.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/aurora.d.ts +702 -0
- package/dist/sst/.sst/platform/src/components/aws/aurora.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/auth-v1.d.ts +26 -0
- package/dist/sst/.sst/platform/src/components/aws/auth-v1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/auth.d.ts +295 -0
- package/dist/sst/.sst/platform/src/components/aws/auth.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-lambda-subscriber.d.ts +61 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-notification.d.ts +47 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-notification.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-queue-subscriber.d.ts +55 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-queue-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-topic-subscriber.d.ts +55 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-topic-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket.d.ts +1216 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bus-base-subscriber.d.ts +20 -0
- package/dist/sst/.sst/platform/src/components/aws/bus-base-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bus-lambda-subscriber.d.ts +49 -0
- package/dist/sst/.sst/platform/src/components/aws/bus-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bus-queue-subscriber.d.ts +44 -0
- package/dist/sst/.sst/platform/src/components/aws/bus-queue-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bus.d.ts +403 -0
- package/dist/sst/.sst/platform/src/components/aws/bus.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cdn.d.ts +299 -0
- package/dist/sst/.sst/platform/src/components/aws/cdn.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cluster-v1.d.ts +882 -0
- package/dist/sst/.sst/platform/src/components/aws/cluster-v1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cluster.d.ts +306 -0
- package/dist/sst/.sst/platform/src/components/aws/cluster.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-identity-pool.d.ts +194 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-identity-pool.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-identity-provider.d.ts +38 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-identity-provider.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-user-pool-client.d.ts +50 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-user-pool-client.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-user-pool.d.ts +603 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-user-pool.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cron.d.ts +250 -0
- package/dist/sst/.sst/platform/src/components/aws/cron.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/dns-validated-certificate.d.ts +27 -0
- package/dist/sst/.sst/platform/src/components/aws/dns-validated-certificate.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/dns.d.ts +94 -0
- package/dist/sst/.sst/platform/src/components/aws/dns.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/dynamo-lambda-subscriber.d.ts +55 -0
- package/dist/sst/.sst/platform/src/components/aws/dynamo-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/dynamo.d.ts +568 -0
- package/dist/sst/.sst/platform/src/components/aws/dynamo.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/efs.d.ts +217 -0
- package/dist/sst/.sst/platform/src/components/aws/efs.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/email.d.ts +291 -0
- package/dist/sst/.sst/platform/src/components/aws/email.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/fargate.d.ts +803 -0
- package/dist/sst/.sst/platform/src/components/aws/fargate.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/function.d.ts +1629 -0
- package/dist/sst/.sst/platform/src/components/aws/function.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/apigateway-account.d.ts +3 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/apigateway-account.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/apigatewayv2-domain.d.ts +144 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/apigatewayv2-domain.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/arn.d.ts +40 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/arn.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/bootstrap.d.ts +13 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/bootstrap.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/container-builder.d.ts +4 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/container-builder.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/function-builder.d.ts +10 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/function-builder.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/provider.d.ts +3 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/provider.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/quota.d.ts +7 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/quota.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/site-builder.d.ts +4 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/site-builder.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/subscriber.d.ts +6 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/https-redirect.d.ts +38 -0
- package/dist/sst/.sst/platform/src/components/aws/https-redirect.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/iam-edit.d.ts +39 -0
- package/dist/sst/.sst/platform/src/components/aws/iam-edit.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/index.d.ts +48 -0
- package/dist/sst/.sst/platform/src/components/aws/index.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.d.ts +48 -0
- package/dist/sst/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/kinesis-stream.d.ts +249 -0
- package/dist/sst/.sst/platform/src/components/aws/kinesis-stream.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/linkable.d.ts +17 -0
- package/dist/sst/.sst/platform/src/components/aws/linkable.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/logging.d.ts +26 -0
- package/dist/sst/.sst/platform/src/components/aws/logging.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/mysql.d.ts +496 -0
- package/dist/sst/.sst/platform/src/components/aws/mysql.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/nextjs.d.ts +517 -0
- package/dist/sst/.sst/platform/src/components/aws/nextjs.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/nuxt.d.ts +495 -0
- package/dist/sst/.sst/platform/src/components/aws/nuxt.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/open-search.d.ts +295 -0
- package/dist/sst/.sst/platform/src/components/aws/open-search.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/opencontrol.d.ts +165 -0
- package/dist/sst/.sst/platform/src/components/aws/opencontrol.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/permission.d.ts +40 -0
- package/dist/sst/.sst/platform/src/components/aws/permission.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/postgres-v1.d.ts +317 -0
- package/dist/sst/.sst/platform/src/components/aws/postgres-v1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/postgres.d.ts +500 -0
- package/dist/sst/.sst/platform/src/components/aws/postgres.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/bucket-files.d.ts +18 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/bucket-files.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/distribution-deployment-waiter.d.ts +13 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/distribution-deployment-waiter.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/distribution-invalidation.d.ts +11 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/distribution-invalidation.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/function-environment-update.d.ts +29 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/function-environment-update.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/hosted-zone-lookup.d.ts +11 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/hosted-zone-lookup.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/kv-keys.d.ts +11 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/kv-keys.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/kv-routes-update.d.ts +11 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/kv-routes-update.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/origin-access-control.d.ts +8 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/origin-access-control.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/rds-role-lookup.d.ts +8 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/rds-role-lookup.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/vector-table.d.ts +12 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/vector-table.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/queue-lambda-subscriber.d.ts +48 -0
- package/dist/sst/.sst/platform/src/components/aws/queue-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/queue.d.ts +485 -0
- package/dist/sst/.sst/platform/src/components/aws/queue.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/react.d.ts +416 -0
- package/dist/sst/.sst/platform/src/components/aws/react.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/realtime-lambda-subscriber.d.ts +53 -0
- package/dist/sst/.sst/platform/src/components/aws/realtime-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/realtime.d.ts +232 -0
- package/dist/sst/.sst/platform/src/components/aws/realtime.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/redis-v1.d.ts +338 -0
- package/dist/sst/.sst/platform/src/components/aws/redis-v1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/redis.d.ts +364 -0
- package/dist/sst/.sst/platform/src/components/aws/redis.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/remix.d.ts +423 -0
- package/dist/sst/.sst/platform/src/components/aws/remix.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/router-base-route.d.ts +28 -0
- package/dist/sst/.sst/platform/src/components/aws/router-base-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/router-bucket-route.d.ts +29 -0
- package/dist/sst/.sst/platform/src/components/aws/router-bucket-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/router-url-route.d.ts +28 -0
- package/dist/sst/.sst/platform/src/components/aws/router-url-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/router.d.ts +1272 -0
- package/dist/sst/.sst/platform/src/components/aws/router.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/service-v1.d.ts +78 -0
- package/dist/sst/.sst/platform/src/components/aws/service-v1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/service.d.ts +1625 -0
- package/dist/sst/.sst/platform/src/components/aws/service.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.d.ts +53 -0
- package/dist/sst/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/sns-topic-queue-subscriber.d.ts +55 -0
- package/dist/sst/.sst/platform/src/components/aws/sns-topic-queue-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/sns-topic.d.ts +389 -0
- package/dist/sst/.sst/platform/src/components/aws/sns-topic.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/solid-start.d.ts +414 -0
- package/dist/sst/.sst/platform/src/components/aws/solid-start.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/ssr-site.d.ts +685 -0
- package/dist/sst/.sst/platform/src/components/aws/ssr-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/static-site.d.ts +736 -0
- package/dist/sst/.sst/platform/src/components/aws/static-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/choice.d.ts +73 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/choice.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/fail.d.ts +63 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/fail.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/map.d.ts +236 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/map.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/parallel.d.ts +127 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/parallel.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/pass.d.ts +39 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/pass.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/state.d.ts +231 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/state.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/succeed.d.ts +26 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/succeed.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/task.d.ts +477 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/task.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/wait.d.ts +91 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/wait.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions.d.ts +473 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/svelte-kit.d.ts +417 -0
- package/dist/sst/.sst/platform/src/components/aws/svelte-kit.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/tan-stack-start.d.ts +354 -0
- package/dist/sst/.sst/platform/src/components/aws/tan-stack-start.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/task.d.ts +322 -0
- package/dist/sst/.sst/platform/src/components/aws/task.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/vector.d.ts +150 -0
- package/dist/sst/.sst/platform/src/components/aws/vector.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/vpc-v1.d.ts +208 -0
- package/dist/sst/.sst/platform/src/components/aws/vpc-v1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/vpc.d.ts +444 -0
- package/dist/sst/.sst/platform/src/components/aws/vpc.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/base/base-site.d.ts +53 -0
- package/dist/sst/.sst/platform/src/components/base/base-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/base/base-ssr-site.d.ts +13 -0
- package/dist/sst/.sst/platform/src/components/base/base-ssr-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/base/base-static-site.d.ts +199 -0
- package/dist/sst/.sst/platform/src/components/base/base-static-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/account-id.d.ts +2 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/account-id.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/auth.d.ts +22 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/auth.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/binding.d.ts +69 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/binding.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/bucket.d.ts +103 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/bucket.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/cron.d.ts +121 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/cron.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/d1.d.ts +107 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/d1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/dns.d.ts +94 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/dns.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/astro.d.ts +186 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/astro.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/index.d.ts +4 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/index.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/solid-start.d.ts +171 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/solid-start.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/static-site.d.ts +222 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/static-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/helpers/fetch.d.ts +19 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/helpers/fetch.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/helpers/worker-builder.d.ts +10 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/helpers/worker-builder.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/index.d.ts +16 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/index.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/kv.d.ts +107 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/kv.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/dns-record.d.ts +20 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/dns-record.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/kv-data.d.ts +23 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/kv-data.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/worker-assets.d.ts +18 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/worker-assets.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/worker-url.d.ts +22 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/worker-url.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/zone-lookup.d.ts +22 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/zone-lookup.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/queue.d.ts +60 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/queue.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/ssr-site.d.ts +51 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/ssr-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/static-site.d.ts +262 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/static-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/worker.d.ts +295 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/worker.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/component.d.ts +37 -0
- package/dist/sst/.sst/platform/src/components/component.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cpu.d.ts +3 -0
- package/dist/sst/.sst/platform/src/components/cpu.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/dns.d.ts +59 -0
- package/dist/sst/.sst/platform/src/components/dns.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/duration.d.ts +7 -0
- package/dist/sst/.sst/platform/src/components/duration.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/error.d.ts +4 -0
- package/dist/sst/.sst/platform/src/components/error.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/experimental/dev-command.d.ts +99 -0
- package/dist/sst/.sst/platform/src/components/experimental/dev-command.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/experimental/index.d.ts +2 -0
- package/dist/sst/.sst/platform/src/components/experimental/index.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/index.d.ts +16 -0
- package/dist/sst/.sst/platform/src/components/index.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/input.d.ts +3 -0
- package/dist/sst/.sst/platform/src/components/input.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/link.d.ts +41 -0
- package/dist/sst/.sst/platform/src/components/link.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/linkable.d.ts +271 -0
- package/dist/sst/.sst/platform/src/components/linkable.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/naming.d.ts +7 -0
- package/dist/sst/.sst/platform/src/components/naming.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/path.d.ts +2 -0
- package/dist/sst/.sst/platform/src/components/path.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/rpc/rpc.d.ts +19 -0
- package/dist/sst/.sst/platform/src/components/rpc/rpc.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/secret.d.ts +125 -0
- package/dist/sst/.sst/platform/src/components/secret.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/size.d.ts +5 -0
- package/dist/sst/.sst/platform/src/components/size.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/vercel/account-id.d.ts +2 -0
- package/dist/sst/.sst/platform/src/components/vercel/account-id.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/vercel/dns.d.ts +73 -0
- package/dist/sst/.sst/platform/src/components/vercel/dns.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/vercel/index.d.ts +3 -0
- package/dist/sst/.sst/platform/src/components/vercel/index.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/vercel/providers/dns-record.d.ts +14 -0
- package/dist/sst/.sst/platform/src/components/vercel/providers/dns-record.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/config.d.ts +1258 -0
- package/dist/sst/.sst/platform/src/config.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/util/compare-semver.d.ts +4 -0
- package/dist/sst/.sst/platform/src/util/compare-semver.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/util/fs.d.ts +5 -0
- package/dist/sst/.sst/platform/src/util/fs.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/util/lazy.d.ts +2 -0
- package/dist/sst/.sst/platform/src/util/lazy.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/util/semaphore.d.ts +9 -0
- package/dist/sst/.sst/platform/src/util/semaphore.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/util/warn.d.ts +2 -0
- package/dist/sst/.sst/platform/src/util/warn.d.ts.map +1 -0
- package/dist/sst/components/dashboard.d.ts +2 -0
- package/dist/sst/components/dashboard.d.ts.map +1 -0
- package/dist/sst/components/monorise-core.d.ts +18 -0
- package/dist/sst/components/monorise-core.d.ts.map +1 -0
- package/dist/sst/components/q-function.d.ts +17 -0
- package/dist/sst/components/q-function.d.ts.map +1 -0
- package/dist/sst/components/single-table.d.ts +14 -0
- package/dist/sst/components/single-table.d.ts.map +1 -0
- package/dist/sst/constants/event.d.ts +73 -0
- package/dist/sst/constants/event.d.ts.map +1 -0
- package/dist/sst/constants/table.d.ts +3 -0
- package/dist/sst/constants/table.d.ts.map +1 -0
- package/dist/sst/index.d.ts +11 -0
- package/dist/sst/index.d.ts.map +1 -0
- package/dist/sst/index.js +609 -0
- package/dist/sst/index.js.map +1 -0
- package/dist/sst/sst.config.d.ts +3 -0
- package/dist/sst/sst.config.d.ts.map +1 -0
- package/dist/sst/tsup.config.d.ts +3 -0
- package/dist/sst/tsup.config.d.ts.map +1 -0
- package/package.json +83 -0
|
@@ -0,0 +1,496 @@
|
|
|
1
|
+
import { ComponentResourceOptions, Output } from "@pulumi/pulumi";
|
|
2
|
+
import { Component, Transform } from "../component";
|
|
3
|
+
import { Link } from "../link";
|
|
4
|
+
import { Input } from "../input.js";
|
|
5
|
+
import { rds } from "@pulumi/aws";
|
|
6
|
+
import { Vpc } from "./vpc";
|
|
7
|
+
import { SizeGbTb } from "../size";
|
|
8
|
+
export interface MysqlArgs {
|
|
9
|
+
/**
|
|
10
|
+
* The MySQL engine version. Check out the [available versions in your region](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/MySQL.Concepts.VersionMgmt.html).
|
|
11
|
+
* @default `"8.0.40"`
|
|
12
|
+
* @example
|
|
13
|
+
* ```js
|
|
14
|
+
* {
|
|
15
|
+
* version: "8.4.4"
|
|
16
|
+
* }
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
version?: Input<string>;
|
|
20
|
+
/**
|
|
21
|
+
* The username of the master user.
|
|
22
|
+
*
|
|
23
|
+
* :::caution
|
|
24
|
+
* Changing the username will cause the database to be destroyed and recreated.
|
|
25
|
+
* :::
|
|
26
|
+
*
|
|
27
|
+
* @default `"root"`
|
|
28
|
+
* @example
|
|
29
|
+
* ```js
|
|
30
|
+
* {
|
|
31
|
+
* username: "admin"
|
|
32
|
+
* }
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
username?: Input<string>;
|
|
36
|
+
/**
|
|
37
|
+
* The password of the master user.
|
|
38
|
+
* @default A random password is generated.
|
|
39
|
+
* @example
|
|
40
|
+
* ```js
|
|
41
|
+
* {
|
|
42
|
+
* password: "Passw0rd!"
|
|
43
|
+
* }
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* You can use a `Secret` to manage the password.
|
|
47
|
+
*
|
|
48
|
+
* ```js
|
|
49
|
+
* {
|
|
50
|
+
* password: new sst.Secret("MyDBPassword").value
|
|
51
|
+
* }
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
password?: Input<string>;
|
|
55
|
+
/**
|
|
56
|
+
* Name of a database that is automatically created.
|
|
57
|
+
*
|
|
58
|
+
* The name must begin with a letter and contain only lowercase letters, numbers, or
|
|
59
|
+
* underscores. By default, it takes the name of the app, and replaces the hyphens with
|
|
60
|
+
* underscores.
|
|
61
|
+
*
|
|
62
|
+
* @default Based on the name of the current app
|
|
63
|
+
* @example
|
|
64
|
+
* ```js
|
|
65
|
+
* {
|
|
66
|
+
* database: "acme"
|
|
67
|
+
* }
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
database?: Input<string>;
|
|
71
|
+
/**
|
|
72
|
+
* The type of instance to use for the database. Check out the [supported instance types](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.Types.html).
|
|
73
|
+
*
|
|
74
|
+
* @default `"t4g.micro"`
|
|
75
|
+
* @example
|
|
76
|
+
* ```js
|
|
77
|
+
* {
|
|
78
|
+
* instance: "m7g.xlarge"
|
|
79
|
+
* }
|
|
80
|
+
* ```
|
|
81
|
+
*
|
|
82
|
+
* By default, these changes are not applied immediately by RDS. Instead, they are
|
|
83
|
+
* applied in the next maintenance window. Check out the [full list](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ModifyInstance.Settings.html)
|
|
84
|
+
* of props that are not applied immediately.
|
|
85
|
+
*/
|
|
86
|
+
instance?: Input<string>;
|
|
87
|
+
/**
|
|
88
|
+
* The maximum storage limit for the database.
|
|
89
|
+
*
|
|
90
|
+
* RDS will autoscale your storage to match your usage up to the given limit.
|
|
91
|
+
* You are not billed for the maximum storage limit, You are only billed for the storage you use.
|
|
92
|
+
*
|
|
93
|
+
* :::note
|
|
94
|
+
* You are only billed for the storage you use, not the maximum limit.
|
|
95
|
+
* :::
|
|
96
|
+
*
|
|
97
|
+
* By default, [gp3 storage volumes](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#Concepts.Storage.GeneralSSD)
|
|
98
|
+
* are used without additional provisioned IOPS. This provides good baseline
|
|
99
|
+
* performance for most use cases.
|
|
100
|
+
*
|
|
101
|
+
* The minimum storage size is 20 GB. And the maximum storage size is 64 TB.
|
|
102
|
+
*
|
|
103
|
+
* @default `"20 GB"`
|
|
104
|
+
* @example
|
|
105
|
+
* ```js
|
|
106
|
+
* {
|
|
107
|
+
* storage: "100 GB"
|
|
108
|
+
* }
|
|
109
|
+
* ```
|
|
110
|
+
*/
|
|
111
|
+
storage?: Input<SizeGbTb>;
|
|
112
|
+
/**
|
|
113
|
+
* Enable [RDS Proxy](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-proxy.html) for the database.
|
|
114
|
+
* @default `false`
|
|
115
|
+
* @example
|
|
116
|
+
* ```js
|
|
117
|
+
* {
|
|
118
|
+
* proxy: true
|
|
119
|
+
* }
|
|
120
|
+
* ```
|
|
121
|
+
*/
|
|
122
|
+
proxy?: Input<boolean | {
|
|
123
|
+
/**
|
|
124
|
+
* Additional credentials the proxy can use to connect to the database. You don't
|
|
125
|
+
* need to specify the master user credentials as they are always added by default.
|
|
126
|
+
*
|
|
127
|
+
* :::note
|
|
128
|
+
* This component will not create the MySQL users listed here. You need to
|
|
129
|
+
* create them manually in the database.
|
|
130
|
+
* :::
|
|
131
|
+
*
|
|
132
|
+
* @example
|
|
133
|
+
* ```js
|
|
134
|
+
* {
|
|
135
|
+
* credentials: [
|
|
136
|
+
* {
|
|
137
|
+
* username: "metabase",
|
|
138
|
+
* password: "Passw0rd!"
|
|
139
|
+
* }
|
|
140
|
+
* ]
|
|
141
|
+
* }
|
|
142
|
+
* ```
|
|
143
|
+
*
|
|
144
|
+
* You can use a `Secret` to manage the password.
|
|
145
|
+
*
|
|
146
|
+
* ```js
|
|
147
|
+
* {
|
|
148
|
+
* credentials: [
|
|
149
|
+
* {
|
|
150
|
+
* username: "metabase",
|
|
151
|
+
* password: new sst.Secret("MyDBPassword").value
|
|
152
|
+
* }
|
|
153
|
+
* ]
|
|
154
|
+
* }
|
|
155
|
+
* ```
|
|
156
|
+
*/
|
|
157
|
+
credentials?: Input<Input<{
|
|
158
|
+
/**
|
|
159
|
+
* The username of the user.
|
|
160
|
+
*/
|
|
161
|
+
username: Input<string>;
|
|
162
|
+
/**
|
|
163
|
+
* The password of the user.
|
|
164
|
+
*/
|
|
165
|
+
password: Input<string>;
|
|
166
|
+
}>[]>;
|
|
167
|
+
}>;
|
|
168
|
+
/**
|
|
169
|
+
* Enable [Multi-AZ](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.MultiAZ.html)
|
|
170
|
+
* deployment for the database.
|
|
171
|
+
*
|
|
172
|
+
* This creates a standby replica for the database in another availability zone (AZ). The
|
|
173
|
+
* standby database provides automatic failover in case the primary database fails. However,
|
|
174
|
+
* when the primary database is healthy, the standby database is not used for serving read
|
|
175
|
+
* traffic.
|
|
176
|
+
*
|
|
177
|
+
* :::caution
|
|
178
|
+
* Using Multi-AZ will approximately double the cost of the database since it will be
|
|
179
|
+
* deployed in two AZs.
|
|
180
|
+
* :::
|
|
181
|
+
*
|
|
182
|
+
* @default `false`
|
|
183
|
+
* @example
|
|
184
|
+
* ```js
|
|
185
|
+
* {
|
|
186
|
+
* multiAz: true
|
|
187
|
+
* }
|
|
188
|
+
* ```
|
|
189
|
+
*/
|
|
190
|
+
multiAz?: Input<boolean>;
|
|
191
|
+
/**
|
|
192
|
+
* @internal
|
|
193
|
+
*/
|
|
194
|
+
replicas?: Input<number>;
|
|
195
|
+
/**
|
|
196
|
+
* The VPC subnets to use for the database.
|
|
197
|
+
*
|
|
198
|
+
* @example
|
|
199
|
+
* ```js
|
|
200
|
+
* {
|
|
201
|
+
* vpc: {
|
|
202
|
+
* subnets: ["subnet-0db7376a7ad4db5fd ", "subnet-06fc7ee8319b2c0ce"]
|
|
203
|
+
* }
|
|
204
|
+
* }
|
|
205
|
+
* ```
|
|
206
|
+
*
|
|
207
|
+
* Or create a `Vpc` component.
|
|
208
|
+
*
|
|
209
|
+
* ```ts title="sst.config.ts"
|
|
210
|
+
* const myVpc = new sst.aws.Vpc("MyVpc");
|
|
211
|
+
* ```
|
|
212
|
+
*
|
|
213
|
+
* And pass it in. The database will be placed in the private subnets.
|
|
214
|
+
*
|
|
215
|
+
* ```js
|
|
216
|
+
* {
|
|
217
|
+
* vpc: myVpc
|
|
218
|
+
* }
|
|
219
|
+
* ```
|
|
220
|
+
*/
|
|
221
|
+
vpc: Vpc | Input<{
|
|
222
|
+
/**
|
|
223
|
+
* A list of subnet IDs in the VPC.
|
|
224
|
+
*/
|
|
225
|
+
subnets: Input<Input<string>[]>;
|
|
226
|
+
}>;
|
|
227
|
+
/**
|
|
228
|
+
* Configure how this component works in `sst dev`.
|
|
229
|
+
*
|
|
230
|
+
* By default, your MySQL database is deployed in `sst dev`. But if you want to instead
|
|
231
|
+
* connect to a locally running MySQL database, you can configure the `dev` prop.
|
|
232
|
+
*
|
|
233
|
+
* :::note
|
|
234
|
+
* This will not create an RDS database in `sst dev`.
|
|
235
|
+
* :::
|
|
236
|
+
*
|
|
237
|
+
* This will skip deploying an RDS database and link to the locally running MySQL database
|
|
238
|
+
* instead.
|
|
239
|
+
*
|
|
240
|
+
* @example
|
|
241
|
+
*
|
|
242
|
+
* Setting the `dev` prop also means that any linked resources will connect to the right
|
|
243
|
+
* database both in `sst dev` and `sst deploy`.
|
|
244
|
+
*
|
|
245
|
+
* ```ts
|
|
246
|
+
* {
|
|
247
|
+
* dev: {
|
|
248
|
+
* username: "root",
|
|
249
|
+
* password: "password",
|
|
250
|
+
* database: "mysql",
|
|
251
|
+
* host: "localhost",
|
|
252
|
+
* port: 3306
|
|
253
|
+
* }
|
|
254
|
+
* }
|
|
255
|
+
* ```
|
|
256
|
+
*/
|
|
257
|
+
dev?: {
|
|
258
|
+
/**
|
|
259
|
+
* The host of the local MySQL to connect to when running in dev.
|
|
260
|
+
* @default `"localhost"`
|
|
261
|
+
*/
|
|
262
|
+
host?: Input<string>;
|
|
263
|
+
/**
|
|
264
|
+
* The port of the local MySQL to connect to when running in dev.
|
|
265
|
+
* @default `3306`
|
|
266
|
+
*/
|
|
267
|
+
port?: Input<number>;
|
|
268
|
+
/**
|
|
269
|
+
* The database of the local MySQL to connect to when running in dev.
|
|
270
|
+
* @default Inherit from the top-level [`database`](#database).
|
|
271
|
+
*/
|
|
272
|
+
database?: Input<string>;
|
|
273
|
+
/**
|
|
274
|
+
* The username of the local MySQL to connect to when running in dev.
|
|
275
|
+
* @default Inherit from the top-level [`username`](#username).
|
|
276
|
+
*/
|
|
277
|
+
username?: Input<string>;
|
|
278
|
+
/**
|
|
279
|
+
* The password of the local MySQL to connect to when running in dev.
|
|
280
|
+
* @default Inherit from the top-level [`password`](#password).
|
|
281
|
+
*/
|
|
282
|
+
password?: Input<string>;
|
|
283
|
+
};
|
|
284
|
+
/**
|
|
285
|
+
* [Transform](/docs/components#transform) how this component creates its underlying
|
|
286
|
+
* resources.
|
|
287
|
+
*/
|
|
288
|
+
transform?: {
|
|
289
|
+
/**
|
|
290
|
+
* Transform the RDS subnet group.
|
|
291
|
+
*/
|
|
292
|
+
subnetGroup?: Transform<rds.SubnetGroupArgs>;
|
|
293
|
+
/**
|
|
294
|
+
* Transform the RDS parameter group.
|
|
295
|
+
*/
|
|
296
|
+
parameterGroup?: Transform<rds.ParameterGroupArgs>;
|
|
297
|
+
/**
|
|
298
|
+
* Transform the database instance in the RDS Cluster.
|
|
299
|
+
*/
|
|
300
|
+
instance?: Transform<rds.InstanceArgs>;
|
|
301
|
+
/**
|
|
302
|
+
* Transform the RDS Proxy.
|
|
303
|
+
*/
|
|
304
|
+
proxy?: Transform<rds.ProxyArgs>;
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
export interface MysqlGetArgs {
|
|
308
|
+
/**
|
|
309
|
+
* The ID of the database.
|
|
310
|
+
*/
|
|
311
|
+
id: Input<string>;
|
|
312
|
+
/**
|
|
313
|
+
* The ID of the proxy.
|
|
314
|
+
*/
|
|
315
|
+
proxyId?: Input<string>;
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* The `Mysql` component lets you add a MySQL database to your app using
|
|
319
|
+
* [Amazon RDS MySQL](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html).
|
|
320
|
+
*
|
|
321
|
+
* @example
|
|
322
|
+
*
|
|
323
|
+
* #### Create the database
|
|
324
|
+
*
|
|
325
|
+
* ```js title="sst.config.ts"
|
|
326
|
+
* const vpc = new sst.aws.Vpc("MyVpc");
|
|
327
|
+
* const database = new sst.aws.Mysql("MyDatabase", { vpc });
|
|
328
|
+
* ```
|
|
329
|
+
*
|
|
330
|
+
* #### Link to a resource
|
|
331
|
+
*
|
|
332
|
+
* You can link your database to other resources, like a function or your Next.js app.
|
|
333
|
+
*
|
|
334
|
+
* ```ts title="sst.config.ts"
|
|
335
|
+
* new sst.aws.Nextjs("MyWeb", {
|
|
336
|
+
* link: [database],
|
|
337
|
+
* vpc
|
|
338
|
+
* });
|
|
339
|
+
* ```
|
|
340
|
+
*
|
|
341
|
+
* Once linked, you can connect to it from your function code.
|
|
342
|
+
*
|
|
343
|
+
* ```ts title="app/page.tsx" {1,5-9}
|
|
344
|
+
* import { Resource } from "sst";
|
|
345
|
+
* import mysql from "mysql2/promise";
|
|
346
|
+
*
|
|
347
|
+
* const connection = await mysql.createConnection({
|
|
348
|
+
* user: Resource.MyDatabase.username,
|
|
349
|
+
* password: Resource.MyDatabase.password,
|
|
350
|
+
* database: Resource.MyDatabase.database,
|
|
351
|
+
* host: Resource.MyDatabase.host,
|
|
352
|
+
* port: Resource.MyDatabase.port,
|
|
353
|
+
* });
|
|
354
|
+
* await connection.execute("SELECT NOW()");
|
|
355
|
+
* ```
|
|
356
|
+
*
|
|
357
|
+
* #### Running locally
|
|
358
|
+
*
|
|
359
|
+
* By default, your RDS MySQL database is deployed in `sst dev`. But let's say you are
|
|
360
|
+
* running MySQL locally.
|
|
361
|
+
*
|
|
362
|
+
* ```bash
|
|
363
|
+
* docker run \
|
|
364
|
+
* --rm \
|
|
365
|
+
* -p 3306:3306 \
|
|
366
|
+
* -v $(pwd)/.sst/storage/mysql:/var/lib/mysql/data \
|
|
367
|
+
* -e MYSQL_DATABASE=local \
|
|
368
|
+
* -e MYSQL_ROOT_PASSWORD=password \
|
|
369
|
+
* mysql:8.0
|
|
370
|
+
* ```
|
|
371
|
+
*
|
|
372
|
+
* You can connect to it in `sst dev` by configuring the `dev` prop.
|
|
373
|
+
*
|
|
374
|
+
* ```ts title="sst.config.ts" {3-8}
|
|
375
|
+
* const mysql = new sst.aws.Mysql("MyMysql", {
|
|
376
|
+
* vpc,
|
|
377
|
+
* dev: {
|
|
378
|
+
* username: "root",
|
|
379
|
+
* password: "password",
|
|
380
|
+
* database: "local",
|
|
381
|
+
* port: 3306
|
|
382
|
+
* }
|
|
383
|
+
* });
|
|
384
|
+
* ```
|
|
385
|
+
*
|
|
386
|
+
* This will skip deploying an RDS database and link to the locally running MySQL database
|
|
387
|
+
* instead.
|
|
388
|
+
*
|
|
389
|
+
* ---
|
|
390
|
+
*
|
|
391
|
+
* ### Cost
|
|
392
|
+
*
|
|
393
|
+
* By default this component uses a _Single-AZ Deployment_, _On-Demand DB Instances_ of a
|
|
394
|
+
* `db.t4g.micro` at $0.016 per hour. And 20GB of _General Purpose gp3 Storage_
|
|
395
|
+
* at $0.115 per GB per month.
|
|
396
|
+
*
|
|
397
|
+
* That works out to $0.016 x 24 x 30 + $0.115 x 20 or **$14 per month**. Adjust this for the
|
|
398
|
+
* `instance` type and the `storage` you are using.
|
|
399
|
+
*
|
|
400
|
+
* The above are rough estimates for _us-east-1_, check out the
|
|
401
|
+
* [RDS for MySQL pricing](https://aws.amazon.com/rds/mysql/pricing/#On-Demand_DB_Instances_costs) for more details.
|
|
402
|
+
*
|
|
403
|
+
* #### RDS Proxy
|
|
404
|
+
*
|
|
405
|
+
* If you enable the `proxy`, it uses _Provisioned instances_ with 2 vCPUs at $0.015 per hour.
|
|
406
|
+
*
|
|
407
|
+
* That works out to an **additional** $0.015 x 2 x 24 x 30 or **$22 per month**.
|
|
408
|
+
*
|
|
409
|
+
* This is a rough estimate for _us-east-1_, check out the
|
|
410
|
+
* [RDS Proxy pricing](https://aws.amazon.com/rds/proxy/pricing/) for more details.
|
|
411
|
+
*/
|
|
412
|
+
export declare class Mysql extends Component implements Link.Linkable {
|
|
413
|
+
private instance?;
|
|
414
|
+
private _password?;
|
|
415
|
+
private proxy?;
|
|
416
|
+
private dev?;
|
|
417
|
+
constructor(name: string, args: MysqlArgs, opts?: ComponentResourceOptions);
|
|
418
|
+
/**
|
|
419
|
+
* The identifier of the MySQL instance.
|
|
420
|
+
*/
|
|
421
|
+
get id(): Output<string>;
|
|
422
|
+
/**
|
|
423
|
+
* The name of the MySQL proxy.
|
|
424
|
+
*/
|
|
425
|
+
get proxyId(): Output<string>;
|
|
426
|
+
/** The username of the master user. */
|
|
427
|
+
get username(): Output<string>;
|
|
428
|
+
/** The password of the master user. */
|
|
429
|
+
get password(): Output<string>;
|
|
430
|
+
/**
|
|
431
|
+
* The name of the database.
|
|
432
|
+
*/
|
|
433
|
+
get database(): Output<string>;
|
|
434
|
+
/**
|
|
435
|
+
* The port of the database.
|
|
436
|
+
*/
|
|
437
|
+
get port(): $util.OutputInstance<number>;
|
|
438
|
+
/**
|
|
439
|
+
* The host of the database.
|
|
440
|
+
*/
|
|
441
|
+
get host(): Output<string>;
|
|
442
|
+
get nodes(): {
|
|
443
|
+
instance: import("@pulumi/aws/rds/instance").Instance | undefined;
|
|
444
|
+
};
|
|
445
|
+
/** @internal */
|
|
446
|
+
getSSTLink(): {
|
|
447
|
+
properties: {
|
|
448
|
+
database: Output<string>;
|
|
449
|
+
username: Output<string>;
|
|
450
|
+
password: Output<string>;
|
|
451
|
+
port: $util.OutputInstance<number>;
|
|
452
|
+
host: Output<string>;
|
|
453
|
+
};
|
|
454
|
+
};
|
|
455
|
+
/**
|
|
456
|
+
* Reference an existing MySQL database with the given name. This is useful when you
|
|
457
|
+
* create a MySQL database in one stage and want to share it in another. It avoids
|
|
458
|
+
* having to create a new MySQL database in the other stage.
|
|
459
|
+
*
|
|
460
|
+
* :::tip
|
|
461
|
+
* You can use the `static get` method to share MySQL databases across stages.
|
|
462
|
+
* :::
|
|
463
|
+
*
|
|
464
|
+
* @param name The name of the component.
|
|
465
|
+
* @param args The arguments to get the MySQL database.
|
|
466
|
+
* @param opts? Resource options.
|
|
467
|
+
*
|
|
468
|
+
* @example
|
|
469
|
+
* Imagine you create a database in the `dev` stage. And in your personal stage `frank`,
|
|
470
|
+
* instead of creating a new database, you want to share the same database from `dev`.
|
|
471
|
+
*
|
|
472
|
+
* ```ts title="sst.config.ts"
|
|
473
|
+
* const database = $app.stage === "frank"
|
|
474
|
+
* ? sst.aws.Mysql.get("MyDatabase", {
|
|
475
|
+
* id: "app-dev-mydatabase",
|
|
476
|
+
* proxyId: "app-dev-mydatabase-proxy"
|
|
477
|
+
* })
|
|
478
|
+
* : new sst.aws.Mysql("MyDatabase", {
|
|
479
|
+
* proxy: true
|
|
480
|
+
* });
|
|
481
|
+
* ```
|
|
482
|
+
*
|
|
483
|
+
* Here `app-dev-mydatabase` is the ID of the database, and `app-dev-mydatabase-proxy`
|
|
484
|
+
* is the ID of the proxy created in the `dev` stage. You can find these by outputting
|
|
485
|
+
* the database ID and proxy ID in the `dev` stage.
|
|
486
|
+
*
|
|
487
|
+
* ```ts title="sst.config.ts"
|
|
488
|
+
* return {
|
|
489
|
+
* id: database.id,
|
|
490
|
+
* proxyId: database.proxyId
|
|
491
|
+
* };
|
|
492
|
+
* ```
|
|
493
|
+
*/
|
|
494
|
+
static get(name: string, args: MysqlGetArgs, opts?: ComponentResourceOptions): Mysql;
|
|
495
|
+
}
|
|
496
|
+
//# sourceMappingURL=mysql.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mysql.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/aws/mysql.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,wBAAwB,EAGxB,MAAM,EAEP,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,SAAS,EAAa,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAO,GAAG,EAAkB,MAAM,aAAa,CAAC;AAEvD,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAG5B,OAAO,EAAE,QAAQ,EAAS,MAAM,SAAS,CAAC;AAI1C,MAAM,WAAW,SAAS;IACxB;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACxB;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACzB;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACzB;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACzB;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACzB;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC1B;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,KAAK,CACT,OAAO,GACP;QACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAiCG;QACH,WAAW,CAAC,EAAE,KAAK,CACjB,KAAK,CAAC;YACJ;;eAEG;YACH,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;YACxB;;eAEG;YACH,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;SACzB,CAAC,EAAE,CACL,CAAC;KACH,CACF,CAAC;IACF;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACzB;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,GAAG,EACD,GAAG,GACH,KAAK,CAAC;QACN;;WAEG;QACH,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;KACjC,CAAC,CAAC;IACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,GAAG,CAAC,EAAE;QACJ;;;WAGG;QACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACrB;;;WAGG;QACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACrB;;;WAGG;QACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACzB;;;WAGG;QACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACzB;;;WAGG;QACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KAC1B,CAAC;IACF;;;OAGG;IACH,SAAS,CAAC,EAAE;QACV;;WAEG;QACH,WAAW,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;QAC7C;;WAEG;QACH,cAAc,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;QACnD;;WAEG;QACH,QAAQ,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QACvC;;WAEG;QACH,KAAK,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;KAClC,CAAC;CACH;AAED,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,EAAE,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB;AAQD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8FG;AACH,qBAAa,KAAM,SAAQ,SAAU,YAAW,IAAI,CAAC,QAAQ;IAC3D,OAAO,CAAC,QAAQ,CAAC,CAAe;IAChC,OAAO,CAAC,SAAS,CAAC,CAAiB;IACnC,OAAO,CAAC,KAAK,CAAC,CAAgC;IAC9C,OAAO,CAAC,GAAG,CAAC,CAOV;gBAEU,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,wBAAwB;IAkZ1E;;OAEG;IACH,IAAW,EAAE,mBAGZ;IAED;;OAEG;IACH,IAAW,OAAO,mBAWjB;IAED,uCAAuC;IACvC,IAAW,QAAQ,mBAGlB;IAED,uCAAuC;IACvC,IAAW,QAAQ,mBAGlB;IAED;;OAEG;IACH,IAAW,QAAQ,mBAGlB;IAED;;OAEG;IACH,IAAW,IAAI,iCAGd;IAED;;OAEG;IACH,IAAW,IAAI,mBAMd;IAED,IAAW,KAAK;;MAIf;IAED,gBAAgB;IACT,UAAU;;;;;;;;;IAYjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;WACW,GAAG,CACf,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,YAAY,EAClB,IAAI,CAAC,EAAE,wBAAwB;CAYlC"}
|