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 @@
|
|
|
1
|
+
{"version":3,"file":"realtime.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/aws/realtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,EAAO,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAa,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEjE,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,GAAG,EAAU,MAAM,aAAa,CAAC;AAG1C,MAAM,WAAW,YAAY;IAC3B;;;;;;;;OAQG;IACH,UAAU,EAAE,KAAK,CAAC,MAAM,GAAG,YAAY,CAAC,CAAC;IACzC;;;OAGG;IACH,SAAS,CAAC,EAAE;QACV;;WAEG;QACH,UAAU,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;KAC5C,CAAC;CACH;AAED,MAAM,WAAW,sBAAsB;IACrC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB;;;OAGG;IACH,SAAS,CAAC,EAAE;QACV;;WAEG;QACH,SAAS,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;KAC1C,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuFG;AACH,qBAAa,QAAS,SAAQ,SAAU,YAAW,IAAI,CAAC,QAAQ;IAC9D,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAS;IACzC,OAAO,CAAC,eAAe,CAA2B;IAClD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAmB;IAC9C,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAiB;IAC/C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAiB;gBAG3C,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,YAAY,EAClB,IAAI,GAAE,wBAA6B;IAiErC;;OAEG;IACH,IAAW,QAAQ,mBAElB;IAED;;OAEG;IACH,IAAW,UAAU,mBAEpB;IAED;;OAEG;IACH,IAAW,KAAK;QAEZ;;WAEG;;QAEH;;WAEG;;MAGN;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACI,SAAS,CACd,UAAU,EAAE,KAAK,CAAC,MAAM,GAAG,YAAY,GAAG,WAAW,CAAC,EACtD,IAAI,EAAE,sBAAsB;IAyB9B,gBAAgB;IACT,UAAU;;;;;;;;;;;;CAclB"}
|
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
import { ComponentResourceOptions, Output } from "@pulumi/pulumi";
|
|
2
|
+
import { Component, Transform } from "../component.js";
|
|
3
|
+
import { Link } from "../link.js";
|
|
4
|
+
import { Input } from "../input.js";
|
|
5
|
+
import { elasticache } from "@pulumi/aws";
|
|
6
|
+
import { Vpc } from "./vpc.js";
|
|
7
|
+
export interface RedisArgs {
|
|
8
|
+
/**
|
|
9
|
+
* The Redis engine to use. The following engines are supported:
|
|
10
|
+
*
|
|
11
|
+
* - `"redis"`: The open-source version of Redis.
|
|
12
|
+
* - `"valkey"`: [Valkey](https://valkey.io/) is a Redis-compatible in-memory key-value store.
|
|
13
|
+
*
|
|
14
|
+
* @default `"redis"`
|
|
15
|
+
*/
|
|
16
|
+
engine?: Input<"redis" | "valkey">;
|
|
17
|
+
/**
|
|
18
|
+
* The version of Redis.
|
|
19
|
+
*
|
|
20
|
+
* The default is `"7.1"` for the `"redis"` engine and `"7.2"` for the `"valkey"` engine.
|
|
21
|
+
*
|
|
22
|
+
* Check out the [supported versions](https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/supported-engine-versions.html).
|
|
23
|
+
*
|
|
24
|
+
* @default `"7.1"` for Redis, `"7.2"` for Valkey
|
|
25
|
+
* @example
|
|
26
|
+
* ```js
|
|
27
|
+
* {
|
|
28
|
+
* version: "6.2"
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
version?: Input<string>;
|
|
33
|
+
/**
|
|
34
|
+
* The type of instance to use for the nodes of the Redis cluster. Check out the [supported instance types](https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html).
|
|
35
|
+
*
|
|
36
|
+
* @default `"t4g.micro"`
|
|
37
|
+
* @example
|
|
38
|
+
* ```js
|
|
39
|
+
* {
|
|
40
|
+
* instance: "m7g.xlarge"
|
|
41
|
+
* }
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
instance?: Input<string>;
|
|
45
|
+
/**
|
|
46
|
+
* The number of nodes to use for the Redis cluster.
|
|
47
|
+
*
|
|
48
|
+
* @default `1`
|
|
49
|
+
* @example
|
|
50
|
+
* ```js
|
|
51
|
+
* {
|
|
52
|
+
* nodes: 4
|
|
53
|
+
* }
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
nodes?: Input<number>;
|
|
57
|
+
/**
|
|
58
|
+
* The VPC to use for the Redis cluster.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* Create a VPC component.
|
|
62
|
+
*
|
|
63
|
+
* ```js
|
|
64
|
+
* const myVpc = new sst.aws.Vpc("MyVpc");
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* And pass it in.
|
|
68
|
+
*
|
|
69
|
+
* ```js
|
|
70
|
+
* {
|
|
71
|
+
* vpc: myVpc
|
|
72
|
+
* }
|
|
73
|
+
* ```
|
|
74
|
+
*
|
|
75
|
+
* Or pass in a custom VPC configuration.
|
|
76
|
+
*
|
|
77
|
+
* ```js
|
|
78
|
+
* {
|
|
79
|
+
* vpc: {
|
|
80
|
+
* subnets: ["subnet-0db7376a7ad4db5fd ", "subnet-06fc7ee8319b2c0ce"],
|
|
81
|
+
* securityGroups: ["sg-0399348378a4c256c"]
|
|
82
|
+
* }
|
|
83
|
+
* }
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
vpc: Vpc | Input<{
|
|
87
|
+
/**
|
|
88
|
+
* A list of subnet IDs in the VPC to deploy the Redis cluster in.
|
|
89
|
+
*/
|
|
90
|
+
subnets: Input<Input<string>[]>;
|
|
91
|
+
/**
|
|
92
|
+
* A list of VPC security group IDs.
|
|
93
|
+
*/
|
|
94
|
+
securityGroups: Input<Input<string>[]>;
|
|
95
|
+
}>;
|
|
96
|
+
/**
|
|
97
|
+
* Configure how this component works in `sst dev`.
|
|
98
|
+
*
|
|
99
|
+
* By default, your Redis cluster is deployed in `sst dev`. But if you want to instead
|
|
100
|
+
* connect to a locally running Redis server, you can configure the `dev` prop.
|
|
101
|
+
*
|
|
102
|
+
* :::note
|
|
103
|
+
* By default, this creates a new Redis ElastiCache cluster even in `sst dev`.
|
|
104
|
+
* :::
|
|
105
|
+
*
|
|
106
|
+
* This will skip deploying a Redis ElastiCache cluster and link to the locally running Redis
|
|
107
|
+
* server instead.
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
*
|
|
111
|
+
* Setting the `dev` prop also means that any linked resources will connect to the right
|
|
112
|
+
* Redis instance both in `sst dev` and `sst deploy`.
|
|
113
|
+
*
|
|
114
|
+
* ```ts
|
|
115
|
+
* {
|
|
116
|
+
* dev: {
|
|
117
|
+
* host: "localhost",
|
|
118
|
+
* port: 6379
|
|
119
|
+
* }
|
|
120
|
+
* }
|
|
121
|
+
* ```
|
|
122
|
+
*/
|
|
123
|
+
dev?: {
|
|
124
|
+
/**
|
|
125
|
+
* The host of the local Redis server to connect to when running in dev.
|
|
126
|
+
* @default `"localhost"`
|
|
127
|
+
*/
|
|
128
|
+
host?: Input<string>;
|
|
129
|
+
/**
|
|
130
|
+
* The port of the local Redis server when running in dev.
|
|
131
|
+
* @default `6379`
|
|
132
|
+
*/
|
|
133
|
+
port?: Input<number>;
|
|
134
|
+
/**
|
|
135
|
+
* The username of the local Redis server to connect to when running in dev.
|
|
136
|
+
* @default `"default"`
|
|
137
|
+
*/
|
|
138
|
+
username?: Input<string>;
|
|
139
|
+
/**
|
|
140
|
+
* The password of the local Redis server to connect to when running in dev.
|
|
141
|
+
* @default No password
|
|
142
|
+
*/
|
|
143
|
+
password?: Input<string>;
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* [Transform](/docs/components#transform) how this component creates its underlying
|
|
147
|
+
* resources.
|
|
148
|
+
*/
|
|
149
|
+
transform?: {
|
|
150
|
+
/**
|
|
151
|
+
* Transform the Redis subnet group.
|
|
152
|
+
*/
|
|
153
|
+
subnetGroup?: Transform<elasticache.SubnetGroupArgs>;
|
|
154
|
+
/**
|
|
155
|
+
* Transform the Redis cluster.
|
|
156
|
+
*/
|
|
157
|
+
cluster?: Transform<elasticache.ReplicationGroupArgs>;
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* The `Redis` component lets you add a Redis cluster to your app using
|
|
162
|
+
* [Amazon ElastiCache](https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/WhatIs.html).
|
|
163
|
+
*
|
|
164
|
+
* For existing usage, rename `sst.aws.Redis` to `sst.aws.Redis.v1`. For new Redis, use
|
|
165
|
+
* the latest [`Redis`](/docs/component/aws/redis) component instead.
|
|
166
|
+
*
|
|
167
|
+
* :::caution
|
|
168
|
+
* This component has been deprecated.
|
|
169
|
+
* :::
|
|
170
|
+
*
|
|
171
|
+
* What changed:
|
|
172
|
+
* - In this version, the Redis/Valkey cluster uses the default parameter group, which
|
|
173
|
+
* cannot be customized.
|
|
174
|
+
* - In the new version, the cluster now creates a custom parameter group. This allows
|
|
175
|
+
* you to customize the parameters via the `transform` prop.
|
|
176
|
+
*
|
|
177
|
+
* @example
|
|
178
|
+
*
|
|
179
|
+
* #### Create the cluster
|
|
180
|
+
*
|
|
181
|
+
* ```js title="sst.config.ts"
|
|
182
|
+
* const vpc = new sst.aws.Vpc("MyVpc");
|
|
183
|
+
* const redis = new sst.aws.Redis.v1("MyRedis", { vpc });
|
|
184
|
+
* ```
|
|
185
|
+
*
|
|
186
|
+
* #### Link to a resource
|
|
187
|
+
*
|
|
188
|
+
* You can link your cluster to other resources, like a function or your Next.js app.
|
|
189
|
+
*
|
|
190
|
+
* ```ts title="sst.config.ts"
|
|
191
|
+
* new sst.aws.Nextjs("MyWeb", {
|
|
192
|
+
* link: [redis],
|
|
193
|
+
* vpc
|
|
194
|
+
* });
|
|
195
|
+
* ```
|
|
196
|
+
*
|
|
197
|
+
* Once linked, you can connect to it from your function code.
|
|
198
|
+
*
|
|
199
|
+
* ```ts title="app/page.tsx" {1,6,7,12,13}
|
|
200
|
+
* import { Resource } from "sst";
|
|
201
|
+
* import { Cluster } from "ioredis";
|
|
202
|
+
*
|
|
203
|
+
* const client = new Cluster(
|
|
204
|
+
* [{
|
|
205
|
+
* host: Resource.MyRedis.host,
|
|
206
|
+
* port: Resource.MyRedis.port
|
|
207
|
+
* }],
|
|
208
|
+
* {
|
|
209
|
+
* redisOptions: {
|
|
210
|
+
* tls: { checkServerIdentity: () => undefined },
|
|
211
|
+
* username: Resource.MyRedis.username,
|
|
212
|
+
* password: Resource.MyRedis.password
|
|
213
|
+
* }
|
|
214
|
+
* }
|
|
215
|
+
* );
|
|
216
|
+
* ```
|
|
217
|
+
*
|
|
218
|
+
* #### Running locally
|
|
219
|
+
*
|
|
220
|
+
* By default, your Redis cluster is deployed in `sst dev`. But let's say you are running Redis
|
|
221
|
+
* locally.
|
|
222
|
+
*
|
|
223
|
+
* ```bash
|
|
224
|
+
* docker run \
|
|
225
|
+
* --rm \
|
|
226
|
+
* -p 6379:6379 \
|
|
227
|
+
* -v $(pwd)/.sst/storage/redis:/data \
|
|
228
|
+
* redis:latest
|
|
229
|
+
* ```
|
|
230
|
+
*
|
|
231
|
+
* You can connect to it in `sst dev` by configuring the `dev` prop.
|
|
232
|
+
*
|
|
233
|
+
* ```ts title="sst.config.ts" {3-6}
|
|
234
|
+
* const redis = new sst.aws.Redis.v1("MyRedis", {
|
|
235
|
+
* vpc,
|
|
236
|
+
* dev: {
|
|
237
|
+
* host: "localhost",
|
|
238
|
+
* port: 6379
|
|
239
|
+
* }
|
|
240
|
+
* });
|
|
241
|
+
* ```
|
|
242
|
+
*
|
|
243
|
+
* This will skip deploying a Redis ElastiCache cluster and link to the locally running Redis
|
|
244
|
+
* server instead. [Check out the full example](/docs/examples/#aws-redis-local).
|
|
245
|
+
*
|
|
246
|
+
* ---
|
|
247
|
+
*
|
|
248
|
+
* ### Cost
|
|
249
|
+
*
|
|
250
|
+
* By default this component uses _On-demand nodes_ with a single `cache.t4g.micro` instance.
|
|
251
|
+
*
|
|
252
|
+
* The default `redis` engine costs $0.016 per hour. That works out to $0.016 x 24 x 30 or **$12 per month**.
|
|
253
|
+
*
|
|
254
|
+
* If the `valkey` engine is used, the cost is $0.0128 per hour. That works out to $0.0128 x 24 x 30 or **$9 per month**.
|
|
255
|
+
*
|
|
256
|
+
* Adjust this for the `instance` type and number of `nodes` you are using.
|
|
257
|
+
*
|
|
258
|
+
* The above are rough estimates for _us-east-1_, check out the
|
|
259
|
+
* [ElastiCache pricing](https://aws.amazon.com/elasticache/pricing/) for more details.
|
|
260
|
+
*/
|
|
261
|
+
export declare class Redis extends Component implements Link.Linkable {
|
|
262
|
+
private cluster?;
|
|
263
|
+
private _authToken?;
|
|
264
|
+
private dev?;
|
|
265
|
+
constructor(name: string, args: RedisArgs, opts?: ComponentResourceOptions);
|
|
266
|
+
/**
|
|
267
|
+
* The ID of the Redis cluster.
|
|
268
|
+
*/
|
|
269
|
+
get clusterID(): Output<string>;
|
|
270
|
+
/**
|
|
271
|
+
* The username to connect to the Redis cluster.
|
|
272
|
+
*/
|
|
273
|
+
get username(): Output<string>;
|
|
274
|
+
/**
|
|
275
|
+
* The password to connect to the Redis cluster.
|
|
276
|
+
*/
|
|
277
|
+
get password(): Output<string> | undefined;
|
|
278
|
+
/**
|
|
279
|
+
* The host to connect to the Redis cluster.
|
|
280
|
+
*/
|
|
281
|
+
get host(): Output<string>;
|
|
282
|
+
/**
|
|
283
|
+
* The port to connect to the Redis cluster.
|
|
284
|
+
*/
|
|
285
|
+
get port(): $util.OutputInstance<number>;
|
|
286
|
+
/**
|
|
287
|
+
* The underlying [resources](/docs/components/#nodes) this component creates.
|
|
288
|
+
*/
|
|
289
|
+
get nodes(): {
|
|
290
|
+
/**
|
|
291
|
+
* The ElastiCache Redis cluster.
|
|
292
|
+
*/
|
|
293
|
+
readonly cluster: import("@pulumi/aws/elasticache/replicationGroup.js").ReplicationGroup;
|
|
294
|
+
};
|
|
295
|
+
/** @internal */
|
|
296
|
+
getSSTLink(): {
|
|
297
|
+
properties: {
|
|
298
|
+
host: Output<string>;
|
|
299
|
+
port: $util.OutputInstance<number>;
|
|
300
|
+
username: Output<string>;
|
|
301
|
+
password: Output<string> | undefined;
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
/**
|
|
305
|
+
* Reference an existing Redis cluster with the given cluster name. This is useful when you
|
|
306
|
+
* create a Redis cluster in one stage and want to share it in another. It avoids having to
|
|
307
|
+
* create a new Redis cluster in the other stage.
|
|
308
|
+
*
|
|
309
|
+
* :::tip
|
|
310
|
+
* You can use the `static get` method to share Redis clusters across stages.
|
|
311
|
+
* :::
|
|
312
|
+
*
|
|
313
|
+
* @param name The name of the component.
|
|
314
|
+
* @param clusterID The id of the existing Redis cluster.
|
|
315
|
+
* @param opts? Resource options.
|
|
316
|
+
*
|
|
317
|
+
* @example
|
|
318
|
+
* Imagine you create a cluster in the `dev` stage. And in your personal stage `frank`,
|
|
319
|
+
* instead of creating a new cluster, you want to share the same cluster from `dev`.
|
|
320
|
+
*
|
|
321
|
+
* ```ts title="sst.config.ts"
|
|
322
|
+
* const redis = $app.stage === "frank"
|
|
323
|
+
* ? sst.aws.Redis.v1.get("MyRedis", "app-dev-myredis")
|
|
324
|
+
* : new sst.aws.Redis.v1("MyRedis");
|
|
325
|
+
* ```
|
|
326
|
+
*
|
|
327
|
+
* Here `app-dev-myredis` is the ID of the cluster created in the `dev` stage.
|
|
328
|
+
* You can find this by outputting the cluster ID in the `dev` stage.
|
|
329
|
+
*
|
|
330
|
+
* ```ts title="sst.config.ts"
|
|
331
|
+
* return {
|
|
332
|
+
* cluster: redis.clusterID
|
|
333
|
+
* };
|
|
334
|
+
* ```
|
|
335
|
+
*/
|
|
336
|
+
static get(name: string, clusterID: Input<string>, opts?: ComponentResourceOptions): Redis;
|
|
337
|
+
}
|
|
338
|
+
//# sourceMappingURL=redis-v1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redis-v1.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/aws/redis-v1.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,wBAAwB,EAGxB,MAAM,EAEP,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,SAAS,EAAE,SAAS,EAAa,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,WAAW,EAAkB,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAI/B,MAAM,WAAW,SAAS;IACxB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,OAAO,GAAG,QAAQ,CAAC,CAAC;IACnC;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACxB;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACzB;;;;;;;;;;OAUG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,GAAG,EACC,GAAG,GACH,KAAK,CAAC;QACJ;;WAEG;QACH,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QAChC;;WAEG;QACH,cAAc,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;KACxC,CAAC,CAAC;IACP;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;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;KAC1B,CAAC;IACF;;;OAGG;IACH,SAAS,CAAC,EAAE;QACV;;WAEG;QACH,WAAW,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;QACrD;;WAEG;QACH,OAAO,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;KACvD,CAAC;CACH;AAQD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoGG;AACH,qBAAa,KAAM,SAAQ,SAAU,YAAW,IAAI,CAAC,QAAQ;IAC3D,OAAO,CAAC,OAAO,CAAC,CAA+B;IAC/C,OAAO,CAAC,UAAU,CAAC,CAAiB;IACpC,OAAO,CAAC,GAAG,CAAC,CAMV;gBAEU,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,wBAAwB;IA2J1E;;OAEG;IACH,IAAW,SAAS,mBAEnB;IAED;;OAEG;IACH,IAAW,QAAQ,mBAElB;IAED;;OAEG;IACH,IAAW,QAAQ,+BAElB;IAED;;OAEG;IACH,IAAW,IAAI,mBAId;IAED;;OAEG;IACH,IAAW,IAAI,iCAEd;IAED;;OAEG;IACH,IAAW,KAAK;QAGZ;;WAEG;;MAON;IAED,gBAAgB;IACT,UAAU;;;;;;;;IAWjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;WACW,GAAG,CACf,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,EACxB,IAAI,CAAC,EAAE,wBAAwB;CA8BlC"}
|
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
import { ComponentResourceOptions, Output } from "@pulumi/pulumi";
|
|
2
|
+
import { Component, Transform } from "../component.js";
|
|
3
|
+
import { Link } from "../link.js";
|
|
4
|
+
import { Input } from "../input.js";
|
|
5
|
+
import { elasticache } from "@pulumi/aws";
|
|
6
|
+
import { Vpc } from "./vpc.js";
|
|
7
|
+
import { Redis as RedisV1 } from "./redis-v1";
|
|
8
|
+
export interface RedisArgs {
|
|
9
|
+
/**
|
|
10
|
+
* The Redis engine to use. The following engines are supported:
|
|
11
|
+
*
|
|
12
|
+
* - `"redis"`: The open-source version of Redis.
|
|
13
|
+
* - `"valkey"`: [Valkey](https://valkey.io/) is a Redis-compatible in-memory key-value store.
|
|
14
|
+
*
|
|
15
|
+
* @default `"redis"`
|
|
16
|
+
*/
|
|
17
|
+
engine?: Input<"redis" | "valkey">;
|
|
18
|
+
/**
|
|
19
|
+
* The version of Redis.
|
|
20
|
+
*
|
|
21
|
+
* The default is `"7.1"` for the `"redis"` engine and `"7.2"` for the `"valkey"` engine.
|
|
22
|
+
*
|
|
23
|
+
* Check out the [supported versions](https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/supported-engine-versions.html).
|
|
24
|
+
*
|
|
25
|
+
* @default `"7.1"` for Redis, `"7.2"` for Valkey
|
|
26
|
+
* @example
|
|
27
|
+
* ```js
|
|
28
|
+
* {
|
|
29
|
+
* version: "6.2"
|
|
30
|
+
* }
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
version?: Input<string>;
|
|
34
|
+
/**
|
|
35
|
+
* The type of instance to use for the nodes of the Redis instance. Check out the [supported instance types](https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html).
|
|
36
|
+
*
|
|
37
|
+
* @default `"t4g.micro"`
|
|
38
|
+
* @example
|
|
39
|
+
* ```js
|
|
40
|
+
* {
|
|
41
|
+
* instance: "m7g.xlarge"
|
|
42
|
+
* }
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
instance?: Input<string>;
|
|
46
|
+
/**
|
|
47
|
+
* @deprecated The `cluster.nodes` prop is now the recommended way to configure the
|
|
48
|
+
* number of nodes in the cluster.
|
|
49
|
+
*/
|
|
50
|
+
nodes?: Input<number>;
|
|
51
|
+
/**
|
|
52
|
+
* Configure cluster mode for Redis.
|
|
53
|
+
*
|
|
54
|
+
* @default `{ nodes: 1 }`
|
|
55
|
+
* @example
|
|
56
|
+
* Disable cluster mode.
|
|
57
|
+
* ```js
|
|
58
|
+
* {
|
|
59
|
+
* cluster: false
|
|
60
|
+
* }
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
cluster?: Input<boolean | {
|
|
64
|
+
/**
|
|
65
|
+
* The number of nodes to use for the Redis cluster.
|
|
66
|
+
*
|
|
67
|
+
* @default `1`
|
|
68
|
+
* @example
|
|
69
|
+
* ```js
|
|
70
|
+
* {
|
|
71
|
+
* nodes: 4
|
|
72
|
+
* }
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
nodes: Input<number>;
|
|
76
|
+
}>;
|
|
77
|
+
/**
|
|
78
|
+
* Key-value pairs that define custom parameters for the Redis's parameter group.
|
|
79
|
+
* These values override the defaults set by AWS.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```js
|
|
83
|
+
* {
|
|
84
|
+
* parameters: {
|
|
85
|
+
* "maxmemory-policy": "noeviction"
|
|
86
|
+
* }
|
|
87
|
+
* }
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
90
|
+
parameters?: Input<Record<string, Input<string>>>;
|
|
91
|
+
/**
|
|
92
|
+
* The VPC to use for the Redis instance.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* Create a VPC component.
|
|
96
|
+
*
|
|
97
|
+
* ```js
|
|
98
|
+
* const myVpc = new sst.aws.Vpc("MyVpc");
|
|
99
|
+
* ```
|
|
100
|
+
*
|
|
101
|
+
* And pass it in.
|
|
102
|
+
*
|
|
103
|
+
* ```js
|
|
104
|
+
* {
|
|
105
|
+
* vpc: myVpc
|
|
106
|
+
* }
|
|
107
|
+
* ```
|
|
108
|
+
*
|
|
109
|
+
* Or pass in a custom VPC configuration.
|
|
110
|
+
*
|
|
111
|
+
* ```js
|
|
112
|
+
* {
|
|
113
|
+
* vpc: {
|
|
114
|
+
* subnets: ["subnet-0db7376a7ad4db5fd ", "subnet-06fc7ee8319b2c0ce"],
|
|
115
|
+
* securityGroups: ["sg-0399348378a4c256c"]
|
|
116
|
+
* }
|
|
117
|
+
* }
|
|
118
|
+
* ```
|
|
119
|
+
*/
|
|
120
|
+
vpc: Vpc | Input<{
|
|
121
|
+
/**
|
|
122
|
+
* A list of subnet IDs in the VPC to deploy the Redis instance in.
|
|
123
|
+
*/
|
|
124
|
+
subnets: Input<Input<string>[]>;
|
|
125
|
+
/**
|
|
126
|
+
* A list of VPC security group IDs.
|
|
127
|
+
*/
|
|
128
|
+
securityGroups: Input<Input<string>[]>;
|
|
129
|
+
}>;
|
|
130
|
+
/**
|
|
131
|
+
* Configure how this component works in `sst dev`.
|
|
132
|
+
*
|
|
133
|
+
* By default, your Redis instance is deployed in `sst dev`. But if you want to instead
|
|
134
|
+
* connect to a locally running Redis server, you can configure the `dev` prop.
|
|
135
|
+
*
|
|
136
|
+
* :::note
|
|
137
|
+
* By default, this creates a new Redis ElastiCache instance even in `sst dev`.
|
|
138
|
+
* :::
|
|
139
|
+
*
|
|
140
|
+
* This will skip deploying a Redis ElastiCache instance and link to the locally running
|
|
141
|
+
* Redis server instead.
|
|
142
|
+
*
|
|
143
|
+
* @example
|
|
144
|
+
*
|
|
145
|
+
* Setting the `dev` prop also means that any linked resources will connect to the right
|
|
146
|
+
* Redis instance both in `sst dev` and `sst deploy`.
|
|
147
|
+
*
|
|
148
|
+
* ```ts
|
|
149
|
+
* {
|
|
150
|
+
* dev: {
|
|
151
|
+
* host: "localhost",
|
|
152
|
+
* port: 6379
|
|
153
|
+
* }
|
|
154
|
+
* }
|
|
155
|
+
* ```
|
|
156
|
+
*/
|
|
157
|
+
dev?: {
|
|
158
|
+
/**
|
|
159
|
+
* The host of the local Redis server to connect to when running in dev.
|
|
160
|
+
* @default `"localhost"`
|
|
161
|
+
*/
|
|
162
|
+
host?: Input<string>;
|
|
163
|
+
/**
|
|
164
|
+
* The port of the local Redis server when running in dev.
|
|
165
|
+
* @default `6379`
|
|
166
|
+
*/
|
|
167
|
+
port?: Input<number>;
|
|
168
|
+
/**
|
|
169
|
+
* The username of the local Redis server to connect to when running in dev.
|
|
170
|
+
* @default `"default"`
|
|
171
|
+
*/
|
|
172
|
+
username?: Input<string>;
|
|
173
|
+
/**
|
|
174
|
+
* The password of the local Redis server to connect to when running in dev.
|
|
175
|
+
* @default No password
|
|
176
|
+
*/
|
|
177
|
+
password?: Input<string>;
|
|
178
|
+
};
|
|
179
|
+
/**
|
|
180
|
+
* [Transform](/docs/components#transform) how this component creates its underlying
|
|
181
|
+
* resources.
|
|
182
|
+
*/
|
|
183
|
+
transform?: {
|
|
184
|
+
/**
|
|
185
|
+
* Transform the Redis subnet group.
|
|
186
|
+
*/
|
|
187
|
+
subnetGroup?: Transform<elasticache.SubnetGroupArgs>;
|
|
188
|
+
/**
|
|
189
|
+
* Transform the Redis parameter group.
|
|
190
|
+
*/
|
|
191
|
+
parameterGroup?: Transform<elasticache.ParameterGroupArgs>;
|
|
192
|
+
/**
|
|
193
|
+
* Transform the Redis cluster.
|
|
194
|
+
*/
|
|
195
|
+
cluster?: Transform<elasticache.ReplicationGroupArgs>;
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* The `Redis` component lets you add a Redis cluster to your app using
|
|
200
|
+
* [Amazon ElastiCache](https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/WhatIs.html).
|
|
201
|
+
*
|
|
202
|
+
* @example
|
|
203
|
+
*
|
|
204
|
+
* #### Create the cluster
|
|
205
|
+
*
|
|
206
|
+
* ```js title="sst.config.ts"
|
|
207
|
+
* const vpc = new sst.aws.Vpc("MyVpc");
|
|
208
|
+
* const redis = new sst.aws.Redis("MyRedis", { vpc });
|
|
209
|
+
* ```
|
|
210
|
+
*
|
|
211
|
+
* #### Link to a resource
|
|
212
|
+
*
|
|
213
|
+
* You can link your cluster to other resources, like a function or your Next.js app.
|
|
214
|
+
*
|
|
215
|
+
* ```ts title="sst.config.ts"
|
|
216
|
+
* new sst.aws.Nextjs("MyWeb", {
|
|
217
|
+
* link: [redis],
|
|
218
|
+
* vpc
|
|
219
|
+
* });
|
|
220
|
+
* ```
|
|
221
|
+
*
|
|
222
|
+
* Once linked, you can connect to it from your function code.
|
|
223
|
+
*
|
|
224
|
+
* ```ts title="app/page.tsx" {1,6,7,12,13}
|
|
225
|
+
* import { Resource } from "sst";
|
|
226
|
+
* import { Cluster } from "ioredis";
|
|
227
|
+
*
|
|
228
|
+
* const client = new Cluster(
|
|
229
|
+
* [{
|
|
230
|
+
* host: Resource.MyRedis.host,
|
|
231
|
+
* port: Resource.MyRedis.port
|
|
232
|
+
* }],
|
|
233
|
+
* {
|
|
234
|
+
* redisOptions: {
|
|
235
|
+
* tls: { checkServerIdentity: () => undefined },
|
|
236
|
+
* username: Resource.MyRedis.username,
|
|
237
|
+
* password: Resource.MyRedis.password
|
|
238
|
+
* }
|
|
239
|
+
* }
|
|
240
|
+
* );
|
|
241
|
+
* ```
|
|
242
|
+
*
|
|
243
|
+
* #### Running locally
|
|
244
|
+
*
|
|
245
|
+
* By default, your Redis cluster is deployed in `sst dev`. But let's say you are running Redis
|
|
246
|
+
* locally.
|
|
247
|
+
*
|
|
248
|
+
* ```bash
|
|
249
|
+
* docker run \
|
|
250
|
+
* --rm \
|
|
251
|
+
* -p 6379:6379 \
|
|
252
|
+
* -v $(pwd)/.sst/storage/redis:/data \
|
|
253
|
+
* redis:latest
|
|
254
|
+
* ```
|
|
255
|
+
*
|
|
256
|
+
* You can connect to it in `sst dev` by configuring the `dev` prop.
|
|
257
|
+
*
|
|
258
|
+
* ```ts title="sst.config.ts" {3-6}
|
|
259
|
+
* const redis = new sst.aws.Redis("MyRedis", {
|
|
260
|
+
* vpc,
|
|
261
|
+
* dev: {
|
|
262
|
+
* host: "localhost",
|
|
263
|
+
* port: 6379
|
|
264
|
+
* }
|
|
265
|
+
* });
|
|
266
|
+
* ```
|
|
267
|
+
*
|
|
268
|
+
* This will skip deploying a Redis ElastiCache cluster and link to the locally running Redis
|
|
269
|
+
* server instead. [Check out the full example](/docs/examples/#aws-redis-local).
|
|
270
|
+
*
|
|
271
|
+
* ---
|
|
272
|
+
*
|
|
273
|
+
* ### Cost
|
|
274
|
+
*
|
|
275
|
+
* By default this component uses _On-demand nodes_ with a single `cache.t4g.micro` instance.
|
|
276
|
+
*
|
|
277
|
+
* The default `redis` engine costs $0.016 per hour. That works out to $0.016 x 24 x 30 or **$12 per month**.
|
|
278
|
+
*
|
|
279
|
+
* If the `valkey` engine is used, the cost is $0.0128 per hour. That works out to $0.0128 x 24 x 30 or **$9 per month**.
|
|
280
|
+
*
|
|
281
|
+
* Adjust this for the `instance` type and number of `nodes` you are using.
|
|
282
|
+
*
|
|
283
|
+
* The above are rough estimates for _us-east-1_, check out the
|
|
284
|
+
* [ElastiCache pricing](https://aws.amazon.com/elasticache/pricing/) for more details.
|
|
285
|
+
*/
|
|
286
|
+
export declare class Redis extends Component implements Link.Linkable {
|
|
287
|
+
private cluster?;
|
|
288
|
+
private _authToken?;
|
|
289
|
+
private dev?;
|
|
290
|
+
static v1: typeof RedisV1;
|
|
291
|
+
constructor(name: string, args: RedisArgs, opts?: ComponentResourceOptions);
|
|
292
|
+
/**
|
|
293
|
+
* The ID of the Redis cluster.
|
|
294
|
+
*/
|
|
295
|
+
get clusterId(): Output<string>;
|
|
296
|
+
/**
|
|
297
|
+
* The username to connect to the Redis cluster.
|
|
298
|
+
*/
|
|
299
|
+
get username(): Output<string>;
|
|
300
|
+
/**
|
|
301
|
+
* The password to connect to the Redis cluster.
|
|
302
|
+
*/
|
|
303
|
+
get password(): Output<string> | undefined;
|
|
304
|
+
/**
|
|
305
|
+
* The host to connect to the Redis cluster.
|
|
306
|
+
*/
|
|
307
|
+
get host(): Output<string>;
|
|
308
|
+
/**
|
|
309
|
+
* The port to connect to the Redis cluster.
|
|
310
|
+
*/
|
|
311
|
+
get port(): $util.OutputInstance<number>;
|
|
312
|
+
/**
|
|
313
|
+
* The underlying [resources](/docs/components/#nodes) this component creates.
|
|
314
|
+
*/
|
|
315
|
+
get nodes(): {
|
|
316
|
+
/**
|
|
317
|
+
* The ElastiCache Redis cluster.
|
|
318
|
+
*/
|
|
319
|
+
readonly cluster: Output<import("@pulumi/aws/elasticache/replicationGroup.js").ReplicationGroup>;
|
|
320
|
+
};
|
|
321
|
+
/** @internal */
|
|
322
|
+
getSSTLink(): {
|
|
323
|
+
properties: {
|
|
324
|
+
host: Output<string>;
|
|
325
|
+
port: $util.OutputInstance<number>;
|
|
326
|
+
username: Output<string>;
|
|
327
|
+
password: Output<string> | undefined;
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
/**
|
|
331
|
+
* Reference an existing Redis cluster with the given cluster name. This is useful when you
|
|
332
|
+
* create a Redis cluster in one stage and want to share it in another. It avoids having to
|
|
333
|
+
* create a new Redis cluster in the other stage.
|
|
334
|
+
*
|
|
335
|
+
* :::tip
|
|
336
|
+
* You can use the `static get` method to share Redis clusters across stages.
|
|
337
|
+
* :::
|
|
338
|
+
*
|
|
339
|
+
* @param name The name of the component.
|
|
340
|
+
* @param clusterId The id of the existing Redis cluster.
|
|
341
|
+
* @param opts? Resource options.
|
|
342
|
+
*
|
|
343
|
+
* @example
|
|
344
|
+
* Imagine you create a cluster in the `dev` stage. And in your personal stage `frank`,
|
|
345
|
+
* instead of creating a new cluster, you want to share the same cluster from `dev`.
|
|
346
|
+
*
|
|
347
|
+
* ```ts title="sst.config.ts"
|
|
348
|
+
* const redis = $app.stage === "frank"
|
|
349
|
+
* ? sst.aws.Redis.get("MyRedis", "app-dev-myredis")
|
|
350
|
+
* : new sst.aws.Redis("MyRedis");
|
|
351
|
+
* ```
|
|
352
|
+
*
|
|
353
|
+
* Here `app-dev-myredis` is the ID of the cluster created in the `dev` stage.
|
|
354
|
+
* You can find this by outputting the cluster ID in the `dev` stage.
|
|
355
|
+
*
|
|
356
|
+
* ```ts title="sst.config.ts"
|
|
357
|
+
* return {
|
|
358
|
+
* cluster: redis.clusterId
|
|
359
|
+
* };
|
|
360
|
+
* ```
|
|
361
|
+
*/
|
|
362
|
+
static get(name: string, clusterId: Input<string>, opts?: ComponentResourceOptions): Redis;
|
|
363
|
+
}
|
|
364
|
+
//# sourceMappingURL=redis.d.ts.map
|