monorise 0.1.0 → 1.1.0-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base/index.d.ts +90 -5
- package/dist/base/index.js.map +1 -1
- package/dist/cli/cli.js +6 -0
- package/dist/cli/cli.js.map +1 -1
- package/dist/core/chunk-QV4Q5377.js +76 -0
- package/dist/core/chunk-QV4Q5377.js.map +1 -0
- package/dist/core/index.d.ts +187 -19
- package/dist/core/index.js +1583 -85
- package/dist/core/index.js.map +1 -1
- package/dist/core/service.config-ZJEZ6EKA.js +13 -0
- package/dist/core/service.config-ZJEZ6EKA.js.map +1 -0
- package/dist/proxy/index.d.ts +35 -0
- package/dist/proxy/index.js +75 -0
- package/dist/proxy/index.js.map +1 -0
- package/dist/react/actions/websocket.action.d.ts +71 -0
- package/dist/react/actions/websocket.action.d.ts.map +1 -0
- package/dist/react/chunk-4D22OCZG.js +65 -0
- package/dist/react/chunk-4D22OCZG.js.map +1 -0
- package/dist/react/chunk-4N3P4ONH.js +588 -0
- package/dist/react/chunk-4N3P4ONH.js.map +1 -0
- package/dist/react/chunk-4Y4KWGJD.js +182 -0
- package/dist/react/chunk-4Y4KWGJD.js.map +1 -0
- package/dist/react/chunk-757E5UYA.js +893 -0
- package/dist/react/chunk-757E5UYA.js.map +1 -0
- package/dist/react/chunk-A5TI2FW3.js +13 -0
- package/dist/react/chunk-A5TI2FW3.js.map +1 -0
- package/dist/react/chunk-B3XDGUFO.js +489 -0
- package/dist/react/chunk-B3XDGUFO.js.map +1 -0
- package/dist/react/chunk-BPBCUO2Z.js +248 -0
- package/dist/react/chunk-BPBCUO2Z.js.map +1 -0
- package/dist/react/chunk-CQBOIXWK.js +142 -0
- package/dist/react/chunk-CQBOIXWK.js.map +1 -0
- package/dist/react/chunk-DRH2BB7I.js +383 -0
- package/dist/react/chunk-DRH2BB7I.js.map +1 -0
- package/dist/react/chunk-EQ3PKQ2S.js +402 -0
- package/dist/react/chunk-EQ3PKQ2S.js.map +1 -0
- package/dist/react/chunk-H64MMAL7.js +245 -0
- package/dist/react/chunk-H64MMAL7.js.map +1 -0
- package/dist/react/chunk-KJX5LOMN.js +43 -0
- package/dist/react/chunk-KJX5LOMN.js.map +1 -0
- package/dist/react/chunk-MO35V2Y7.js +172 -0
- package/dist/react/chunk-MO35V2Y7.js.map +1 -0
- package/dist/react/chunk-UC3E72G7.js +73 -0
- package/dist/react/chunk-UC3E72G7.js.map +1 -0
- package/dist/react/chunk-UHMKB3OR.js +5568 -0
- package/dist/react/chunk-UHMKB3OR.js.map +1 -0
- package/dist/react/chunk-UQPQBWEQ.js +54 -0
- package/dist/react/chunk-UQPQBWEQ.js.map +1 -0
- package/dist/react/chunk-XCDCVRJR.js +43 -0
- package/dist/react/chunk-XCDCVRJR.js.map +1 -0
- package/dist/react/chunk-XOYAZDIH.js +47 -0
- package/dist/react/chunk-XOYAZDIH.js.map +1 -0
- package/dist/react/chunk-YNFQEPO5.js +29 -0
- package/dist/react/chunk-YNFQEPO5.js.map +1 -0
- package/dist/react/dist-es-35AO47NO.js +90 -0
- package/dist/react/dist-es-35AO47NO.js.map +1 -0
- package/dist/react/dist-es-5GDBXNKQ.js +333 -0
- package/dist/react/dist-es-5GDBXNKQ.js.map +1 -0
- package/dist/react/dist-es-B3JDGWY6.js +71 -0
- package/dist/react/dist-es-B3JDGWY6.js.map +1 -0
- package/dist/react/dist-es-IWIE5JLA.js +169 -0
- package/dist/react/dist-es-IWIE5JLA.js.map +1 -0
- package/dist/react/dist-es-NRIS3TYJ.js +494 -0
- package/dist/react/dist-es-NRIS3TYJ.js.map +1 -0
- package/dist/react/dist-es-VCXAEYYN.js +22 -0
- package/dist/react/dist-es-VCXAEYYN.js.map +1 -0
- package/dist/react/dist-es-VU33JFTZ.js +379 -0
- package/dist/react/dist-es-VU33JFTZ.js.map +1 -0
- package/dist/react/event-streams-OSOTOTTP.js +277 -0
- package/dist/react/event-streams-OSOTOTTP.js.map +1 -0
- package/dist/react/index.d.ts +53 -4
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +10948 -190
- package/dist/react/index.js.map +1 -1
- package/dist/react/loadSso-ME7MKAM3.js +556 -0
- package/dist/react/loadSso-ME7MKAM3.js.map +1 -0
- package/dist/react/service.config-ZJEZ6EKA-FC2TR3GH.js +14 -0
- package/dist/react/service.config-ZJEZ6EKA-FC2TR3GH.js.map +1 -0
- package/dist/react/services/core.service.d.ts +11 -1
- package/dist/react/services/core.service.d.ts.map +1 -1
- package/dist/react/signin-LOXYIE5I.js +653 -0
- package/dist/react/signin-LOXYIE5I.js.map +1 -0
- package/dist/react/sso-oidc-X63KRRLO.js +786 -0
- package/dist/react/sso-oidc-X63KRRLO.js.map +1 -0
- package/dist/react/sts-OXBEY7HY.js +3948 -0
- package/dist/react/sts-OXBEY7HY.js.map +1 -0
- package/dist/react/websocket/WebSocketManager.d.ts +68 -0
- package/dist/react/websocket/WebSocketManager.d.ts.map +1 -0
- package/dist/react/websocket/index.d.ts +3 -0
- package/dist/react/websocket/index.d.ts.map +1 -0
- package/dist/react/websocket/optimistic.d.ts +51 -0
- package/dist/react/websocket/optimistic.d.ts.map +1 -0
- package/dist/react/websocket-QHA7SQXG.js +10 -0
- package/dist/react/websocket-QHA7SQXG.js.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/alb.d.ts +280 -0
- package/dist/sst/.sst/platform/src/components/aws/alb.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket-route.d.ts +1 -1
- package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket-route.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket.d.ts +13 -2
- package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-authorizer.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-lambda-route.d.ts +1 -1
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-lambda-route.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1.d.ts +93 -83
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-authorizer.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-lambda-route.d.ts +1 -1
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-lambda-route.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2.d.ts +8 -2
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/app-sync-data-source.d.ts +1 -1
- package/dist/sst/.sst/platform/src/components/aws/app-sync-data-source.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/app-sync.d.ts +1 -1
- package/dist/sst/.sst/platform/src/components/aws/app-sync.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/aurora.d.ts +18 -0
- package/dist/sst/.sst/platform/src/components/aws/aurora.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/auth-v1.d.ts +1 -1
- package/dist/sst/.sst/platform/src/components/aws/auth-v1.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/auth.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/bucket-lambda-subscriber.d.ts +1 -1
- package/dist/sst/.sst/platform/src/components/aws/bucket-lambda-subscriber.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/bucket-notification.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/bucket.d.ts +13 -8
- package/dist/sst/.sst/platform/src/components/aws/bucket.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/bus-lambda-subscriber.d.ts +3 -2
- package/dist/sst/.sst/platform/src/components/aws/bus-lambda-subscriber.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/bus.d.ts +34 -3
- package/dist/sst/.sst/platform/src/components/aws/bus.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/cdn.d.ts +11 -0
- package/dist/sst/.sst/platform/src/components/aws/cdn.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/cluster.d.ts +59 -1
- package/dist/sst/.sst/platform/src/components/aws/cluster.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/cognito-identity-pool.d.ts +5 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-identity-pool.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/cognito-user-pool.d.ts +100 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-user-pool.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/cron-v2.d.ts +325 -0
- package/dist/sst/.sst/platform/src/components/aws/cron-v2.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cron.d.ts +15 -6
- package/dist/sst/.sst/platform/src/components/aws/cron.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/dsql.d.ts +369 -0
- package/dist/sst/.sst/platform/src/components/aws/dsql.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/dynamo-lambda-subscriber.d.ts +1 -1
- package/dist/sst/.sst/platform/src/components/aws/dynamo-lambda-subscriber.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/dynamo.d.ts +63 -3
- package/dist/sst/.sst/platform/src/components/aws/dynamo.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/email.d.ts +5 -0
- package/dist/sst/.sst/platform/src/components/aws/email.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/fargate.d.ts +95 -4
- package/dist/sst/.sst/platform/src/components/aws/fargate.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/function.d.ts +121 -21
- package/dist/sst/.sst/platform/src/components/aws/function.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/helpers/arn.d.ts +11 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/arn.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/helpers/container-builder.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/helpers/function-builder.d.ts +7 -3
- package/dist/sst/.sst/platform/src/components/aws/helpers/function-builder.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/helpers/load-balancer.d.ts +9 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/load-balancer.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/provider.d.ts +2 -2
- package/dist/sst/.sst/platform/src/components/aws/helpers/provider.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/helpers/site-builder.d.ts +1 -1
- package/dist/sst/.sst/platform/src/components/aws/helpers/site-builder.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/helpers/subscriber.d.ts +1 -1
- package/dist/sst/.sst/platform/src/components/aws/helpers/subscriber.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/https-redirect.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/index.d.ts +4 -0
- package/dist/sst/.sst/platform/src/components/aws/index.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/kinesis-stream.d.ts +8 -3
- package/dist/sst/.sst/platform/src/components/aws/kinesis-stream.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/linkable.d.ts +1 -1
- package/dist/sst/.sst/platform/src/components/aws/linkable.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/mysql.d.ts +34 -5
- package/dist/sst/.sst/platform/src/components/aws/mysql.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/nextjs.d.ts +39 -5
- package/dist/sst/.sst/platform/src/components/aws/nextjs.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/nuxt.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/open-search.d.ts +12 -1
- package/dist/sst/.sst/platform/src/components/aws/open-search.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/opencontrol.d.ts +7 -3
- package/dist/sst/.sst/platform/src/components/aws/opencontrol.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/permission.d.ts +5 -0
- package/dist/sst/.sst/platform/src/components/aws/permission.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/postgres-v1.d.ts +13 -2
- package/dist/sst/.sst/platform/src/components/aws/postgres-v1.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/postgres.d.ts +34 -5
- package/dist/sst/.sst/platform/src/components/aws/postgres.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/queue-lambda-subscriber.d.ts +6 -1
- package/dist/sst/.sst/platform/src/components/aws/queue-lambda-subscriber.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/queue.d.ts +10 -1
- package/dist/sst/.sst/platform/src/components/aws/queue.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/realtime-lambda-subscriber.d.ts +1 -1
- package/dist/sst/.sst/platform/src/components/aws/realtime-lambda-subscriber.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/realtime.d.ts +6 -1
- package/dist/sst/.sst/platform/src/components/aws/realtime.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/redis-v1.d.ts +10 -0
- package/dist/sst/.sst/platform/src/components/aws/redis-v1.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/redis.d.ts +14 -0
- package/dist/sst/.sst/platform/src/components/aws/redis.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/router.d.ts +482 -2
- package/dist/sst/.sst/platform/src/components/aws/router.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/service-v1.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/service.d.ts +125 -0
- package/dist/sst/.sst/platform/src/components/aws/service.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.d.ts +1 -1
- package/dist/sst/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/sns-topic.d.ts +6 -1
- package/dist/sst/.sst/platform/src/components/aws/sns-topic.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/ssr-site.d.ts +7 -7
- package/dist/sst/.sst/platform/src/components/aws/ssr-site.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/static-site.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/step-functions/state.d.ts +1 -1
- package/dist/sst/.sst/platform/src/components/aws/step-functions/state.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/step-functions/task.d.ts +10 -2
- package/dist/sst/.sst/platform/src/components/aws/step-functions/task.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/step-functions.d.ts +5 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/tan-stack-start.d.ts +20 -6
- package/dist/sst/.sst/platform/src/components/aws/tan-stack-start.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/task.d.ts +35 -15
- package/dist/sst/.sst/platform/src/components/aws/task.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/vector.d.ts +5 -0
- package/dist/sst/.sst/platform/src/components/aws/vector.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/vpc.d.ts +51 -4
- package/dist/sst/.sst/platform/src/components/aws/vpc.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/aws/workflow.d.ts +331 -0
- package/dist/sst/.sst/platform/src/components/aws/workflow.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/ai.d.ts +82 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/ai.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/binding.d.ts +15 -1
- package/dist/sst/.sst/platform/src/components/cloudflare/binding.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/cloudflare/bucket.d.ts +4 -2
- package/dist/sst/.sst/platform/src/components/cloudflare/bucket.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/cloudflare/cron.d.ts +29 -5
- package/dist/sst/.sst/platform/src/components/cloudflare/cron.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/cloudflare/d1.d.ts +37 -2
- package/dist/sst/.sst/platform/src/components/cloudflare/d1.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/cloudflare/index.d.ts +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/index.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/cloudflare/kv.d.ts +36 -2
- package/dist/sst/.sst/platform/src/components/cloudflare/kv.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/worker-placement.d.ts +27 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/worker-placement.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/zone-lookup.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/cloudflare/queue-worker-subscriber.d.ts +116 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/queue-worker-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/queue.d.ts +186 -3
- package/dist/sst/.sst/platform/src/components/cloudflare/queue.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/cloudflare/static-site.d.ts +2 -2
- package/dist/sst/.sst/platform/src/components/cloudflare/static-site.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/cloudflare/worker.d.ts +39 -5
- package/dist/sst/.sst/platform/src/components/cloudflare/worker.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/component.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/duration.d.ts +2 -0
- package/dist/sst/.sst/platform/src/components/duration.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/esbuild.d.ts +3 -0
- package/dist/sst/.sst/platform/src/components/esbuild.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/link.d.ts +2 -2
- package/dist/sst/.sst/platform/src/components/link.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/linkable.d.ts +32 -2
- package/dist/sst/.sst/platform/src/components/linkable.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/rpc/rpc.d.ts.map +1 -1
- package/dist/sst/.sst/platform/src/components/vercel/dns.d.ts +2 -2
- package/dist/sst/.sst/platform/src/util/minify.d.ts +2 -0
- package/dist/sst/.sst/platform/src/util/minify.d.ts.map +1 -0
- package/dist/sst/components/monorise-core.d.ts +10 -0
- package/dist/sst/components/monorise-core.d.ts.map +1 -1
- package/dist/sst/components/q-function.d.ts +2 -3
- package/dist/sst/components/q-function.d.ts.map +1 -1
- package/dist/sst/index.js +75 -12
- package/dist/sst/index.js.map +1 -1
- package/package.json +10 -2
- package/dist/sst/.sst/platform/src/components/aws/helpers/quota.d.ts +0 -7
- package/dist/sst/.sst/platform/src/components/aws/helpers/quota.d.ts.map +0 -1
|
@@ -143,6 +143,11 @@ export declare class Vector extends Component implements Link.Linkable {
|
|
|
143
143
|
effect?: "allow" | "deny" | undefined;
|
|
144
144
|
actions: string[];
|
|
145
145
|
resources: Input<Input<string>[]>;
|
|
146
|
+
conditions?: Input<Input<{
|
|
147
|
+
test: Input<string>;
|
|
148
|
+
variable: Input<string>;
|
|
149
|
+
values: Input<Input<string>[]>;
|
|
150
|
+
}>[]> | undefined;
|
|
146
151
|
type: "aws.permission";
|
|
147
152
|
}[];
|
|
148
153
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vector.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/aws/vector.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,SAAS,EAAa,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAG1D,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGpC,MAAM,WAAW,UAAU;IACzB;;;;;;;;;;;;;;;;;OAiBG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACzB;;;OAGG;IACH,SAAS,CAAC,EAAE;QACV;;WAEG;QACH,QAAQ,CAAC,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;KACpC,CAAC;CACH;AAOD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,qBAAa,MAAO,SAAQ,SAAU,YAAW,IAAI,CAAC,QAAQ;IAC5D,OAAO,CAAC,QAAQ,CAAW;IAC3B,OAAO,CAAC,YAAY,CAAW;IAC/B,OAAO,CAAC,UAAU,CAAW;IAC7B,OAAO,CAAC,aAAa,CAAW;gBAEpB,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,CAAC,EAAE,wBAAwB;IA6H3E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC;IAQxD;;OAEG;IACH,IAAW,SAAS,yBAEnB;IAED;;OAEG;IACH,IAAW,KAAK;QAEZ;;WAEG;;MAGN;IAED,gBAAgB;IACT,UAAU;;YAGX,gBAAgB;;YAEhB,gBAAgB;;YAEhB,gBAAgB
|
|
1
|
+
{"version":3,"file":"vector.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/aws/vector.ts"],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
|
|
134
134
|
ami?: Input<string>;
|
|
135
|
+
/**
|
|
136
|
+
* The Name of an existing IAM role to use for the NAT instance.
|
|
137
|
+
*
|
|
138
|
+
* By default, a new IAM role with SSM managed instance core permissions is created.
|
|
139
|
+
* Use this to provide a custom role with additional permissions or to comply with
|
|
140
|
+
* organizational policies.
|
|
141
|
+
*
|
|
142
|
+
* @default A new IAM role is created
|
|
143
|
+
* @example
|
|
144
|
+
* ```ts
|
|
145
|
+
* {
|
|
146
|
+
* nat: {
|
|
147
|
+
* ec2: {
|
|
148
|
+
* role: "my-nat-instance-role"
|
|
149
|
+
* }
|
|
150
|
+
* }
|
|
151
|
+
* }
|
|
152
|
+
* ```
|
|
153
|
+
*/
|
|
154
|
+
role?: Input<string>;
|
|
135
155
|
}>;
|
|
136
156
|
}>;
|
|
137
157
|
/**
|
|
@@ -139,7 +159,8 @@ export interface VpcArgs {
|
|
|
139
159
|
*
|
|
140
160
|
* When enabled, an EC2 instance of type `t4g.nano` with the bastion AMI will be launched
|
|
141
161
|
* in a public subnet. The instance will have AWS SSM (AWS Session Manager) enabled for
|
|
142
|
-
* secure access without the need for SSH key.
|
|
162
|
+
* secure access without the need for SSH key. You can optionally provide an existing
|
|
163
|
+
* IAM instance profile by name for the bastion.
|
|
143
164
|
*
|
|
144
165
|
* It costs roughly $3 per month to run the `t4g.nano` instance.
|
|
145
166
|
*
|
|
@@ -162,8 +183,24 @@ export interface VpcArgs {
|
|
|
162
183
|
* bastion: true
|
|
163
184
|
* }
|
|
164
185
|
* ```
|
|
186
|
+
*
|
|
187
|
+
* Use an existing instance profile by name.
|
|
188
|
+
* Bastion is automatically enabled when you provide an instance profile.
|
|
189
|
+
* @example
|
|
190
|
+
* ```ts
|
|
191
|
+
* {
|
|
192
|
+
* bastion: {
|
|
193
|
+
* instanceProfile: "my-bastion-profile"
|
|
194
|
+
* }
|
|
195
|
+
* }
|
|
196
|
+
* ```
|
|
165
197
|
*/
|
|
166
|
-
bastion?: Input<boolean
|
|
198
|
+
bastion?: Input<boolean | {
|
|
199
|
+
/**
|
|
200
|
+
* The name of an existing IAM instance profile to use for the bastion.
|
|
201
|
+
*/
|
|
202
|
+
instanceProfile: Input<string>;
|
|
203
|
+
}>;
|
|
167
204
|
/**
|
|
168
205
|
* [Transform](/docs/components#transform) how this component creates its underlying
|
|
169
206
|
* resources.
|
|
@@ -269,8 +306,8 @@ export interface VpcArgs {
|
|
|
269
306
|
*
|
|
270
307
|
* ### Cost
|
|
271
308
|
*
|
|
272
|
-
* By default, this component
|
|
273
|
-
* options.
|
|
309
|
+
* By default, this component costs **$0.50 per month** for the CloudMap hosted zone used for
|
|
310
|
+
* service discovery. Following is the cost to enable the `nat` or `bastion` options.
|
|
274
311
|
*
|
|
275
312
|
* #### Managed NAT
|
|
276
313
|
*
|
|
@@ -318,12 +355,14 @@ export declare class Vpc extends Component implements Link.Linkable {
|
|
|
318
355
|
private securityGroup;
|
|
319
356
|
private natGateways;
|
|
320
357
|
private natInstances;
|
|
358
|
+
private natSecurityGroup;
|
|
321
359
|
private elasticIps;
|
|
322
360
|
private _publicSubnets;
|
|
323
361
|
private _privateSubnets;
|
|
324
362
|
private publicRouteTables;
|
|
325
363
|
private privateRouteTables;
|
|
326
364
|
private bastionInstance;
|
|
365
|
+
private bastionSecurityGroup;
|
|
327
366
|
private cloudmapNamespace;
|
|
328
367
|
private privateKeyValue;
|
|
329
368
|
static v1: typeof VpcV1;
|
|
@@ -372,6 +411,10 @@ export declare class Vpc extends Component implements Link.Linkable {
|
|
|
372
411
|
* The Amazon EC2 NAT instances.
|
|
373
412
|
*/
|
|
374
413
|
natInstances: Output<import("@pulumi/aws/ec2/instance").Instance[]>;
|
|
414
|
+
/**
|
|
415
|
+
* The Amazon EC2 Security Group for the NAT instances.
|
|
416
|
+
*/
|
|
417
|
+
natSecurityGroup: Output<import("@pulumi/aws/ec2/securityGroup").SecurityGroup | undefined>;
|
|
375
418
|
/**
|
|
376
419
|
* The Amazon EC2 Elastic IP.
|
|
377
420
|
*/
|
|
@@ -396,6 +439,10 @@ export declare class Vpc extends Component implements Link.Linkable {
|
|
|
396
439
|
* The Amazon EC2 bastion instance.
|
|
397
440
|
*/
|
|
398
441
|
bastionInstance: Output<import("@pulumi/aws/ec2/instance").Instance | undefined>;
|
|
442
|
+
/**
|
|
443
|
+
* The Amazon EC2 Security Group for the bastion instance.
|
|
444
|
+
*/
|
|
445
|
+
bastionSecurityGroup: Output<import("@pulumi/aws/ec2/securityGroup").SecurityGroup | undefined>;
|
|
399
446
|
/**
|
|
400
447
|
* The AWS Cloudmap namespace.
|
|
401
448
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vpc.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/aws/vpc.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,wBAAwB,EAExB,MAAM,EAEP,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,SAAS,EAAa,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EACL,GAAG,EAOJ,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,GAAG,IAAI,KAAK,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAK/B,YAAY,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,UAAU,CAAC;AAErD,MAAM,WAAW,OAAO;IACtB;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,EAAE,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkCG;IACH,GAAG,CAAC,EAAE,KAAK,CACP,KAAK,GACL,SAAS,GACT;QACE;;;;;WAKG;QACH,IAAI,CAAC,EAAE,KAAK,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC;QA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AAa,6BAIvB;IAED;;OAEG;IACH,IAAW,cAAc,6BAIxB;IAED;;OAEG;IACH,IAAW,cAAc,6BAExB;IAED;;OAEG;IACH,IAAW,OAAO,mBASjB;IAED;;OAEG;IACH,IAAW,KAAK;QAEZ;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;MAGN;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;WACW,GAAG,CACf,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EACpB,IAAI,CAAC,EAAE,wBAAwB;IAYjC,gBAAgB;IACT,UAAU;;;;;CAOlB"}
|
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
import { ComponentResourceOptions, Input } from "@pulumi/pulumi";
|
|
2
|
+
import { Duration, DurationDays, DurationMinutes } from "../duration.js";
|
|
3
|
+
import { Component } from "../component.js";
|
|
4
|
+
import { RETENTION } from "./logging.js";
|
|
5
|
+
import { Function, FunctionArgs } from "./function.js";
|
|
6
|
+
export interface WorkflowArgs extends Omit<FunctionArgs, "concurrency" | "durable" | "injections" | "live" | "logging" | "retries" | "runtime" | "streaming" | "timeout" | "transform" | "url" | "versioning" | "_skipHint" | "_skipMetadata"> {
|
|
7
|
+
/**
|
|
8
|
+
* The language runtime for the workflow.
|
|
9
|
+
*
|
|
10
|
+
* AWS Lambda durable functions currently support `"nodejs22.x"`, `"nodejs24.x"`, and
|
|
11
|
+
* `"python3.13"`.
|
|
12
|
+
*
|
|
13
|
+
* @default `"nodejs24.x"`
|
|
14
|
+
* @example
|
|
15
|
+
* ```js
|
|
16
|
+
* {
|
|
17
|
+
* runtime: "python3.13"
|
|
18
|
+
* }
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
runtime?: Input<"nodejs22.x" | "nodejs24.x" | "python3.13">;
|
|
22
|
+
/**
|
|
23
|
+
* Number of days to retain the workflow execution state.
|
|
24
|
+
*
|
|
25
|
+
* @default `"30 days"`
|
|
26
|
+
*/
|
|
27
|
+
retention?: Input<DurationDays>;
|
|
28
|
+
/**
|
|
29
|
+
* Configure timeout limits for the workflow execution and each underlying Lambda invocation.
|
|
30
|
+
*/
|
|
31
|
+
timeout?: Input<{
|
|
32
|
+
/**
|
|
33
|
+
* Maximum execution time for the entire workflow execution, from when it starts until it completes.
|
|
34
|
+
*
|
|
35
|
+
* This includes time spent across retries, replays, waits, and all durable invocations.
|
|
36
|
+
*
|
|
37
|
+
* @default `"14 days"`
|
|
38
|
+
*/
|
|
39
|
+
execution?: Input<Duration>;
|
|
40
|
+
/**
|
|
41
|
+
* Maximum execution time for each underlying Lambda invocation.
|
|
42
|
+
*
|
|
43
|
+
* This is not a per-step timeout. A single invocation can run multiple steps before the
|
|
44
|
+
* workflow yields, waits, or replays.
|
|
45
|
+
*
|
|
46
|
+
* @default `"5 minutes"`
|
|
47
|
+
*/
|
|
48
|
+
invocation?: Input<DurationMinutes>;
|
|
49
|
+
}>;
|
|
50
|
+
/**
|
|
51
|
+
* Configure the workflow logs in CloudWatch. Or pass in `false` to disable writing logs.
|
|
52
|
+
* The only supported log format is `json`.
|
|
53
|
+
*
|
|
54
|
+
* @default `{retention: "1 month", format: "json"}`
|
|
55
|
+
*/
|
|
56
|
+
logging?: false | {
|
|
57
|
+
/**
|
|
58
|
+
* The log format for the workflow.
|
|
59
|
+
*
|
|
60
|
+
* AWS Lambda durable functions require structured JSON logs, so `"json"` is the only
|
|
61
|
+
* supported value.
|
|
62
|
+
*
|
|
63
|
+
* @default `"json"`
|
|
64
|
+
*/
|
|
65
|
+
format?: Input<"json">;
|
|
66
|
+
/**
|
|
67
|
+
* The duration the workflow logs are kept in CloudWatch.
|
|
68
|
+
*
|
|
69
|
+
* Not applicable when an existing log group is provided.
|
|
70
|
+
*
|
|
71
|
+
* @default `1 month`
|
|
72
|
+
* @example
|
|
73
|
+
* ```js
|
|
74
|
+
* {
|
|
75
|
+
* logging: {
|
|
76
|
+
* retention: "forever"
|
|
77
|
+
* }
|
|
78
|
+
* }
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
retention?: Input<keyof typeof RETENTION>;
|
|
82
|
+
/**
|
|
83
|
+
* Assigns the given CloudWatch log group name to the workflow. This allows you to
|
|
84
|
+
* pass in a previously created log group.
|
|
85
|
+
*
|
|
86
|
+
* By default, the workflow creates a new log group when it's created.
|
|
87
|
+
*
|
|
88
|
+
* @default Creates a log group
|
|
89
|
+
* @example
|
|
90
|
+
* ```js
|
|
91
|
+
* {
|
|
92
|
+
* logging: {
|
|
93
|
+
* logGroup: "/existing/log-group"
|
|
94
|
+
* }
|
|
95
|
+
* }
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
logGroup?: Input<string>;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* [Transform](/docs/components#transform) how this component creates its underlying resources.
|
|
102
|
+
*/
|
|
103
|
+
transform?: {
|
|
104
|
+
/**
|
|
105
|
+
* Transform the underlying SST Function component resources.
|
|
106
|
+
*/
|
|
107
|
+
function?: FunctionArgs["transform"];
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* The `Workflow` component lets you add serverless workflows to your app using
|
|
112
|
+
* [AWS Lambda Durable Functions](https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html).
|
|
113
|
+
*
|
|
114
|
+
* It's a thin wrapper around the [`Function`](/docs/component/aws/function) component
|
|
115
|
+
* with durable execution enabled.
|
|
116
|
+
* It includes an [SDK](/docs/components/aws/workflow/#sdk) that wraps the AWS SDK with a simpler interface, adds helper methods, and makes it easier to integrate with other SST components.
|
|
117
|
+
*
|
|
118
|
+
* @example
|
|
119
|
+
*
|
|
120
|
+
* #### Minimal example
|
|
121
|
+
*
|
|
122
|
+
* ```ts title="sst.config.ts"
|
|
123
|
+
* new sst.aws.Workflow("MyWorkflow", {
|
|
124
|
+
* handler: "src/workflow.handler",
|
|
125
|
+
* });
|
|
126
|
+
* ```
|
|
127
|
+
*
|
|
128
|
+
* ```ts title="src/workflow.ts"
|
|
129
|
+
* import { workflow } from "sst/aws/workflow";
|
|
130
|
+
*
|
|
131
|
+
* export const handler = workflow.handler(async (event, ctx) => {
|
|
132
|
+
* const user = await ctx.step("load-user", async () => {
|
|
133
|
+
* return { id: "user_123", email: "alice@example.com" };
|
|
134
|
+
* });
|
|
135
|
+
*
|
|
136
|
+
* await ctx.wait("pause-before-email", "1 minute");
|
|
137
|
+
*
|
|
138
|
+
* return ctx.step("send-email", async () => {
|
|
139
|
+
* return { sent: true, userId: user.id };
|
|
140
|
+
* });
|
|
141
|
+
* });
|
|
142
|
+
* ```
|
|
143
|
+
*
|
|
144
|
+
* #### Configure timeout and retention
|
|
145
|
+
*
|
|
146
|
+
* ```ts {3-7} title="sst.config.ts"
|
|
147
|
+
* new sst.aws.Workflow("MyWorkflow", {
|
|
148
|
+
* handler: "src/workflow.handler",
|
|
149
|
+
* retention: "30 days",
|
|
150
|
+
* timeout: {
|
|
151
|
+
* execution: "2 hours",
|
|
152
|
+
* invocation: "30 seconds",
|
|
153
|
+
* },
|
|
154
|
+
* });
|
|
155
|
+
* ```
|
|
156
|
+
*
|
|
157
|
+
* #### Link resources
|
|
158
|
+
*
|
|
159
|
+
* ```ts {1,5} title="sst.config.ts"
|
|
160
|
+
* const bucket = new sst.aws.Bucket("MyBucket");
|
|
161
|
+
*
|
|
162
|
+
* new sst.aws.Workflow("MyWorkflow", {
|
|
163
|
+
* handler: "src/workflow.handler",
|
|
164
|
+
* link: [bucket],
|
|
165
|
+
* });
|
|
166
|
+
* ```
|
|
167
|
+
*
|
|
168
|
+
* ```ts title="src/workflow.ts"
|
|
169
|
+
* import { Resource } from "sst";
|
|
170
|
+
* import { workflow } from "sst/aws/workflow";
|
|
171
|
+
*
|
|
172
|
+
* export const handler = workflow.handler(async (event, ctx) => {
|
|
173
|
+
* return ctx.step("get-bucket-name", async () => {
|
|
174
|
+
* return Resource.MyBucket.name;
|
|
175
|
+
* });
|
|
176
|
+
* });
|
|
177
|
+
* ```
|
|
178
|
+
*
|
|
179
|
+
* #### Trigger with a cron job
|
|
180
|
+
*
|
|
181
|
+
* ```ts {5-8} title="sst.config.ts"
|
|
182
|
+
* const workflow = new sst.aws.Workflow("MyWorkflow", {
|
|
183
|
+
* handler: "src/workflow.handler",
|
|
184
|
+
* });
|
|
185
|
+
*
|
|
186
|
+
* new sst.aws.CronV2("MyCron", {
|
|
187
|
+
* schedule: "rate(1 minute)",
|
|
188
|
+
* function: workflow,
|
|
189
|
+
* });
|
|
190
|
+
* ```
|
|
191
|
+
*
|
|
192
|
+
* ```ts title="src/workflow.ts"
|
|
193
|
+
* import { workflow } from "sst/aws/workflow";
|
|
194
|
+
*
|
|
195
|
+
* export const handler = workflow.handler(async (event, ctx) => {
|
|
196
|
+
* await ctx.step("start", async ({ logger }) => {
|
|
197
|
+
* logger.info({ message: "Workflow invoked by cron" });
|
|
198
|
+
* });
|
|
199
|
+
* });
|
|
200
|
+
* ```
|
|
201
|
+
*
|
|
202
|
+
* [Check out the full example](/docs/examples/#aws-workflow-cron).
|
|
203
|
+
*
|
|
204
|
+
* #### Subscribe to a bus
|
|
205
|
+
*
|
|
206
|
+
* ```ts {6-9} title="sst.config.ts"
|
|
207
|
+
* const workflow = new sst.aws.Workflow("MyWorkflow", {
|
|
208
|
+
* handler: "src/workflow.handler",
|
|
209
|
+
* });
|
|
210
|
+
*
|
|
211
|
+
* const bus = new sst.aws.Bus("MyBus");
|
|
212
|
+
*
|
|
213
|
+
* bus.subscribe("MySubscriber", workflow, {
|
|
214
|
+
* pattern: {
|
|
215
|
+
* detailType: ["app.workflow.requested"],
|
|
216
|
+
* },
|
|
217
|
+
* });
|
|
218
|
+
* ```
|
|
219
|
+
*
|
|
220
|
+
* ```ts title="src/workflow.ts"
|
|
221
|
+
* import { workflow } from "sst/aws/workflow";
|
|
222
|
+
*
|
|
223
|
+
* interface Event {
|
|
224
|
+
* "detail-type": string;
|
|
225
|
+
* detail: {
|
|
226
|
+
* properties: {
|
|
227
|
+
* message: string;
|
|
228
|
+
* requestId: string;
|
|
229
|
+
* };
|
|
230
|
+
* };
|
|
231
|
+
* }
|
|
232
|
+
*
|
|
233
|
+
* export const handler = workflow.handler<Event>(async (event, ctx) => {
|
|
234
|
+
* await ctx.step("start", async ({ logger }) => {
|
|
235
|
+
* logger.info({
|
|
236
|
+
* message: "Workflow invoked by bus",
|
|
237
|
+
* requestId: event.detail.properties.requestId,
|
|
238
|
+
* });
|
|
239
|
+
* });
|
|
240
|
+
* });
|
|
241
|
+
* ```
|
|
242
|
+
*
|
|
243
|
+
* [Check out the full example](/docs/examples/#aws-workflow-bus).
|
|
244
|
+
*
|
|
245
|
+
* ---
|
|
246
|
+
*
|
|
247
|
+
* ### Limitations
|
|
248
|
+
*
|
|
249
|
+
* Durable workflows replay from the top on resume and retry. Keep the control flow
|
|
250
|
+
* deterministic, and move side effects like API calls, database writes, timestamps, and random
|
|
251
|
+
* ID generation inside durable operations like `ctx.step()`.
|
|
252
|
+
*
|
|
253
|
+
* :::caution
|
|
254
|
+
* Workflow handlers have versioning enabled. Deploying an update won't update existing running workflows.
|
|
255
|
+
* :::
|
|
256
|
+
*
|
|
257
|
+
* Before using workflows in production, review the
|
|
258
|
+
* [AWS best practices for durable functions](https://docs.aws.amazon.com/lambda/latest/dg/durable-best-practices.html).
|
|
259
|
+
*
|
|
260
|
+
* ---
|
|
261
|
+
*
|
|
262
|
+
* ### Cost
|
|
263
|
+
*
|
|
264
|
+
* A workflow has no idle monthly cost. You pay the standard Lambda request and compute charges
|
|
265
|
+
* for each invocation.
|
|
266
|
+
*
|
|
267
|
+
* :::tip
|
|
268
|
+
* When a workflow is suspended in a `wait`, functions don't incur costs until execution resumes.
|
|
269
|
+
* :::
|
|
270
|
+
*
|
|
271
|
+
* Lambda durable functions usage is billed separately.
|
|
272
|
+
*
|
|
273
|
+
* - Durable operations like starting an execution, completing a step, and creating a wait are
|
|
274
|
+
* billed at $8.00 per 1 million operations.
|
|
275
|
+
* - Data written by durable operations is billed at $0.25 per GB.
|
|
276
|
+
* - Retained execution state is billed at $0.15 per GB-month.
|
|
277
|
+
*
|
|
278
|
+
* For example, a workflow with two `step()` calls and one `wait()` uses four durable operations:
|
|
279
|
+
* one start, two steps, and one wait. That's about **$0.000032 per execution** for durable
|
|
280
|
+
* operations, before Lambda compute, requests, written data, and retention.
|
|
281
|
+
*
|
|
282
|
+
* These are rough _us-east-1_ estimates. Check out the
|
|
283
|
+
* [AWS Lambda pricing](https://aws.amazon.com/lambda/pricing/#Lambda_Durable_Functions_Pricing)
|
|
284
|
+
* for more details.
|
|
285
|
+
*/
|
|
286
|
+
export declare class Workflow extends Component {
|
|
287
|
+
private readonly fn;
|
|
288
|
+
constructor(name: string, args: WorkflowArgs, opts?: ComponentResourceOptions);
|
|
289
|
+
/** @internal */
|
|
290
|
+
getFunction(): Function;
|
|
291
|
+
/**
|
|
292
|
+
* The underlying [resources](/docs/components/#nodes) this component creates.
|
|
293
|
+
*/
|
|
294
|
+
get nodes(): {
|
|
295
|
+
/**
|
|
296
|
+
* The SST Function component backing the workflow.
|
|
297
|
+
*/
|
|
298
|
+
function: Function;
|
|
299
|
+
};
|
|
300
|
+
/**
|
|
301
|
+
* The name of the Lambda function backing the workflow.
|
|
302
|
+
*/
|
|
303
|
+
get name(): $util.Output<string>;
|
|
304
|
+
/**
|
|
305
|
+
* The ARN of the Lambda function backing the workflow.
|
|
306
|
+
*/
|
|
307
|
+
get arn(): $util.Output<string>;
|
|
308
|
+
/**
|
|
309
|
+
* The published version qualifier backing the workflow.
|
|
310
|
+
*/
|
|
311
|
+
get qualifier(): $util.Output<string | undefined>;
|
|
312
|
+
/** @internal */
|
|
313
|
+
getSSTLink(): {
|
|
314
|
+
properties: {
|
|
315
|
+
name: $util.Output<string>;
|
|
316
|
+
qualifier: $util.Output<string | undefined>;
|
|
317
|
+
};
|
|
318
|
+
include: {
|
|
319
|
+
effect?: "allow" | "deny" | undefined;
|
|
320
|
+
actions: string[];
|
|
321
|
+
resources: import("../input.js").Input<import("../input.js").Input<string>[]>;
|
|
322
|
+
conditions?: import("../input.js").Input<import("../input.js").Input<{
|
|
323
|
+
test: import("../input.js").Input<string>;
|
|
324
|
+
variable: import("../input.js").Input<string>;
|
|
325
|
+
values: import("../input.js").Input<import("../input.js").Input<string>[]>;
|
|
326
|
+
}>[]> | undefined;
|
|
327
|
+
type: "aws.permission";
|
|
328
|
+
}[];
|
|
329
|
+
};
|
|
330
|
+
}
|
|
331
|
+
//# sourceMappingURL=workflow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/aws/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,KAAK,EAAU,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAEvD,MAAM,WAAW,YACf,SAAQ,IAAI,CACV,YAAY,EACV,aAAa,GACb,SAAS,GACT,YAAY,GACZ,MAAM,GACN,SAAS,GACT,SAAS,GACT,SAAS,GACT,WAAW,GACX,SAAS,GACT,WAAW,GACX,KAAK,GACL,YAAY,GACZ,WAAW,GACX,eAAe,CAClB;IACD;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,YAAY,GAAG,YAAY,GAAG,YAAY,CAAC,CAAC;IAC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AEb;IAED;;OAEG;IACH,IAAW,SAAS,qCAEnB;IAED,gBAAgB;IACT,UAAU;;;;;;;;;;;;;;;;;CAUlB"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { ComponentResourceOptions } from "@pulumi/pulumi";
|
|
2
|
+
import { Component } from "../component";
|
|
3
|
+
import { Link } from "../link";
|
|
4
|
+
export interface AiArgs {
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* The `Ai` component lets you add a [Cloudflare Workers AI](https://developers.cloudflare.com/workers-ai/) binding to
|
|
8
|
+
* your app.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
*
|
|
12
|
+
* #### Minimal example
|
|
13
|
+
*
|
|
14
|
+
* ```ts title="sst.config.ts"
|
|
15
|
+
* const ai = new sst.cloudflare.Ai("MyAi");
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* #### Link to a worker
|
|
19
|
+
*
|
|
20
|
+
* You can link AI to a worker.
|
|
21
|
+
*
|
|
22
|
+
* ```ts {3} title="sst.config.ts"
|
|
23
|
+
* new sst.cloudflare.Worker("MyWorker", {
|
|
24
|
+
* handler: "./index.ts",
|
|
25
|
+
* link: [ai],
|
|
26
|
+
* url: true
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* Once linked, you can use the SDK to interact with the AI binding.
|
|
31
|
+
*
|
|
32
|
+
* ```ts title="index.ts" {3}
|
|
33
|
+
* import { Resource } from "sst";
|
|
34
|
+
*
|
|
35
|
+
* const result = await Resource.MyAi.run("@cf/meta/llama-3-8b-instruct", {
|
|
36
|
+
* prompt: "What is the origin of the phrase 'Hello, World'"
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
export declare class Ai extends Component implements Link.Linkable {
|
|
41
|
+
constructor(name: string, args?: AiArgs, opts?: ComponentResourceOptions);
|
|
42
|
+
/**
|
|
43
|
+
* When you link an AI binding, it will be available to the worker and you can
|
|
44
|
+
* interact with it using its [API methods](https://developers.cloudflare.com/workers-ai/).
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts title="index.ts" {3}
|
|
48
|
+
* import { Resource } from "sst";
|
|
49
|
+
*
|
|
50
|
+
* const result = await Resource.MyAi.run("@cf/meta/llama-3-8b-instruct", {
|
|
51
|
+
* prompt: "What is the origin of the phrase 'Hello, World'"
|
|
52
|
+
* });
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @internal
|
|
56
|
+
*/
|
|
57
|
+
getSSTLink(): {
|
|
58
|
+
properties: {};
|
|
59
|
+
include: {
|
|
60
|
+
type: "cloudflare.binding";
|
|
61
|
+
binding: "aiBindings" | "kvNamespaceBindings" | "secretTextBindings" | "serviceBindings" | "plainTextBindings" | "queueBindings" | "r2BucketBindings" | "d1DatabaseBindings" | "hyperdriveBindings" | "versionMetadataBindings";
|
|
62
|
+
properties: Record<string, never> | {
|
|
63
|
+
namespaceId: import("../input").Input<string>;
|
|
64
|
+
} | {
|
|
65
|
+
text: import("../input").Input<string>;
|
|
66
|
+
} | {
|
|
67
|
+
service: import("../input").Input<string>;
|
|
68
|
+
} | {
|
|
69
|
+
text: import("../input").Input<string>;
|
|
70
|
+
} | {
|
|
71
|
+
queueName: import("../input").Input<string>;
|
|
72
|
+
} | {
|
|
73
|
+
bucketName: import("../input").Input<string>;
|
|
74
|
+
} | {
|
|
75
|
+
id: import("../input").Input<string>;
|
|
76
|
+
} | {
|
|
77
|
+
id: import("../input").Input<string>;
|
|
78
|
+
};
|
|
79
|
+
}[];
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=ai.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/cloudflare/ai.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAG/B,MAAM,WAAW,MAAM;CAAG;AAE1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,qBAAa,EAAG,SAAQ,SAAU,YAAW,IAAI,CAAC,QAAQ;gBAC5C,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,wBAAwB;IAIxE;;;;;;;;;;;;;;OAcG;IACH,UAAU;;;;;;;;;;;;;;;;;;;;;;;;CAWX"}
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
* @packageDocumentation
|
|
17
17
|
*/
|
|
18
18
|
import { Input } from "../input";
|
|
19
|
+
export interface AiBinding {
|
|
20
|
+
type: "aiBindings";
|
|
21
|
+
properties: Record<string, never>;
|
|
22
|
+
}
|
|
19
23
|
export interface KvBinding {
|
|
20
24
|
type: "kvNamespaceBindings";
|
|
21
25
|
properties: {
|
|
@@ -58,7 +62,17 @@ export interface D1DatabaseBinding {
|
|
|
58
62
|
id: Input<string>;
|
|
59
63
|
};
|
|
60
64
|
}
|
|
61
|
-
export
|
|
65
|
+
export interface HyperdriveBinding {
|
|
66
|
+
type: "hyperdriveBindings";
|
|
67
|
+
properties: {
|
|
68
|
+
id: Input<string>;
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
export interface VersionMetadataBinding {
|
|
72
|
+
type: "versionMetadataBindings";
|
|
73
|
+
properties: Record<string, never>;
|
|
74
|
+
}
|
|
75
|
+
export type Binding = AiBinding | KvBinding | SecretTextBinding | ServiceBinding | PlainTextBinding | QueueBinding | R2BucketBinding | D1DatabaseBinding | HyperdriveBinding | VersionMetadataBinding;
|
|
62
76
|
export declare function binding<T extends Binding["type"]>(input: Binding & {}): {
|
|
63
77
|
type: "cloudflare.binding";
|
|
64
78
|
binding: T;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binding.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/cloudflare/binding.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,qBAAqB,CAAC;IAC5B,UAAU,EAAE;QACV,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KAC5B,CAAC;CACH;AACD,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,oBAAoB,CAAC;IAC3B,UAAU,EAAE;QACV,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KACrB,CAAC;CACH;AACD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,iBAAiB,CAAC;IACxB,UAAU,EAAE;QACV,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KACxB,CAAC;CACH;AACD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,mBAAmB,CAAC;IAC1B,UAAU,EAAE;QACV,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KACrB,CAAC;CACH;AACD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,eAAe,CAAC;IACtB,UAAU,EAAE;QACV,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KAC1B,CAAC;CACH;AACD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,kBAAkB,CAAC;IACzB,UAAU,EAAE;QACV,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KAC3B,CAAC;CACH;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,oBAAoB,CAAC;IAC3B,UAAU,EAAE;QACV,EAAE,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KACnB,CAAC;CACH;AAED,MAAM,MAAM,OAAO,GACf,SAAS,GACT,iBAAiB,GACjB,cAAc,GACd,gBAAgB,GAChB,YAAY,GACZ,eAAe,GACf,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"binding.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/cloudflare/binding.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,YAAY,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;CACnC;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,qBAAqB,CAAC;IAC5B,UAAU,EAAE;QACV,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KAC5B,CAAC;CACH;AACD,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,oBAAoB,CAAC;IAC3B,UAAU,EAAE;QACV,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KACrB,CAAC;CACH;AACD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,iBAAiB,CAAC;IACxB,UAAU,EAAE;QACV,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KACxB,CAAC;CACH;AACD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,mBAAmB,CAAC;IAC1B,UAAU,EAAE;QACV,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KACrB,CAAC;CACH;AACD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,eAAe,CAAC;IACtB,UAAU,EAAE;QACV,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KAC1B,CAAC;CACH;AACD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,kBAAkB,CAAC;IACzB,UAAU,EAAE;QACV,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KAC3B,CAAC;CACH;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,oBAAoB,CAAC;IAC3B,UAAU,EAAE;QACV,EAAE,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KACnB,CAAC;CACH;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,oBAAoB,CAAC;IAC3B,UAAU,EAAE;QACV,EAAE,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KACnB,CAAC;CACH;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,yBAAyB,CAAC;IAChC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;CACnC;AAED,MAAM,MAAM,OAAO,GACf,SAAS,GACT,SAAS,GACT,iBAAiB,GACjB,cAAc,GACd,gBAAgB,GAChB,YAAY,GACZ,eAAe,GACf,iBAAiB,GACjB,iBAAiB,GACjB,sBAAsB,CAAC;AAE3B,wBAAgB,OAAO,CAAC,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE;;aAG3C,CAAC;gBACQ,OAAO,CAAC,OAAO,EAAE;QAAE,IAAI,EAAE,CAAC,CAAA;KAAE,CAAC,CAAC,YAAY,CAAC;EAE9E"}
|
|
@@ -68,8 +68,8 @@ export declare class Bucket extends Component implements Link.Linkable {
|
|
|
68
68
|
};
|
|
69
69
|
include: {
|
|
70
70
|
type: "cloudflare.binding";
|
|
71
|
-
binding: "kvNamespaceBindings" | "secretTextBindings" | "serviceBindings" | "plainTextBindings" | "queueBindings" | "r2BucketBindings" | "d1DatabaseBindings";
|
|
72
|
-
properties: {
|
|
71
|
+
binding: "aiBindings" | "kvNamespaceBindings" | "secretTextBindings" | "serviceBindings" | "plainTextBindings" | "queueBindings" | "r2BucketBindings" | "d1DatabaseBindings" | "hyperdriveBindings" | "versionMetadataBindings";
|
|
72
|
+
properties: Record<string, never> | {
|
|
73
73
|
namespaceId: import("../input").Input<string>;
|
|
74
74
|
} | {
|
|
75
75
|
text: import("../input").Input<string>;
|
|
@@ -83,6 +83,8 @@ export declare class Bucket extends Component implements Link.Linkable {
|
|
|
83
83
|
bucketName: import("../input").Input<string>;
|
|
84
84
|
} | {
|
|
85
85
|
id: import("../input").Input<string>;
|
|
86
|
+
} | {
|
|
87
|
+
id: import("../input").Input<string>;
|
|
86
88
|
};
|
|
87
89
|
}[];
|
|
88
90
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bucket.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/cloudflare/bucket.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAa,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAIlC,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,SAAS,CAAC,EAAE;QACV;;WAEG;QACH,MAAM,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;KAC7C,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,qBAAa,MAAO,SAAQ,SAAU,YAAW,IAAI,CAAC,QAAQ;IAC5D,OAAO,CAAC,MAAM,CAAsB;gBAGlC,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,UAAU,EACjB,IAAI,CAAC,EAAE,wBAAwB;IAyBjC;;;;;;;;;;;;OAYG;IACH,UAAU
|
|
1
|
+
{"version":3,"file":"bucket.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/cloudflare/bucket.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAa,MAAM,cAAc,CAAC;AAC/D,OAAO,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