@monorise/sst 1.0.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/.sst/platform/src/components/aws/analog.d.ts +423 -0
- package/dist/.sst/platform/src/components/aws/analog.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/analog.js +118 -0
- package/dist/.sst/platform/src/components/aws/analog.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigateway-websocket-route.d.ts +74 -0
- package/dist/.sst/platform/src/components/aws/apigateway-websocket-route.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigateway-websocket-route.js +110 -0
- package/dist/.sst/platform/src/components/aws/apigateway-websocket-route.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigateway-websocket.d.ts +542 -0
- package/dist/.sst/platform/src/components/aws/apigateway-websocket.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigateway-websocket.js +409 -0
- package/dist/.sst/platform/src/components/aws/apigateway-websocket.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-api-key.d.ts +48 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-api-key.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-api-key.js +55 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-api-key.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-authorizer.d.ts +55 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-authorizer.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-authorizer.js +110 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-authorizer.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-base-route.d.ts +36 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-base-route.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-base-route.js +34 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-base-route.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-integration-route.d.ts +39 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-integration-route.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-integration-route.js +49 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-integration-route.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-lambda-route.d.ts +53 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-lambda-route.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-lambda-route.js +85 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-lambda-route.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-usage-plan.d.ts +53 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-usage-plan.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-usage-plan.js +66 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-usage-plan.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1.d.ts +1002 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1.js +749 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-authorizer.d.ts +54 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-authorizer.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-authorizer.js +98 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-authorizer.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-base-route.d.ts +28 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-base-route.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-base-route.js +28 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-base-route.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-lambda-route.d.ts +59 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-lambda-route.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-lambda-route.js +84 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-lambda-route.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-private-route.d.ts +54 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-private-route.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-private-route.js +55 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-private-route.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-url-route.d.ts +44 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-url-route.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-url-route.js +53 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-url-route.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2.d.ts +933 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2.js +648 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/app-sync-data-source.d.ts +52 -0
- package/dist/.sst/platform/src/components/aws/app-sync-data-source.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/app-sync-data-source.js +208 -0
- package/dist/.sst/platform/src/components/aws/app-sync-data-source.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/app-sync-function.d.ts +33 -0
- package/dist/.sst/platform/src/components/aws/app-sync-function.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/app-sync-function.js +52 -0
- package/dist/.sst/platform/src/components/aws/app-sync-function.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/app-sync-resolver.d.ts +41 -0
- package/dist/.sst/platform/src/components/aws/app-sync-resolver.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/app-sync-resolver.js +70 -0
- package/dist/.sst/platform/src/components/aws/app-sync-resolver.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/app-sync.d.ts +638 -0
- package/dist/.sst/platform/src/components/aws/app-sync.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/app-sync.js +330 -0
- package/dist/.sst/platform/src/components/aws/app-sync.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/astro.d.ts +421 -0
- package/dist/.sst/platform/src/components/aws/astro.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/astro.js +156 -0
- package/dist/.sst/platform/src/components/aws/astro.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/aurora.d.ts +702 -0
- package/dist/.sst/platform/src/components/aws/aurora.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/aurora.js +678 -0
- package/dist/.sst/platform/src/components/aws/aurora.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/auth-v1.d.ts +26 -0
- package/dist/.sst/platform/src/components/aws/auth-v1.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/auth-v1.js +36 -0
- package/dist/.sst/platform/src/components/aws/auth-v1.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/auth.d.ts +260 -0
- package/dist/.sst/platform/src/components/aws/auth.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/auth.js +209 -0
- package/dist/.sst/platform/src/components/aws/auth.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/bucket-lambda-subscriber.d.ts +61 -0
- package/dist/.sst/platform/src/components/aws/bucket-lambda-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/bucket-lambda-subscriber.js +99 -0
- package/dist/.sst/platform/src/components/aws/bucket-lambda-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/bucket-notification.d.ts +47 -0
- package/dist/.sst/platform/src/components/aws/bucket-notification.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/bucket-notification.js +170 -0
- package/dist/.sst/platform/src/components/aws/bucket-notification.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/bucket-queue-subscriber.d.ts +55 -0
- package/dist/.sst/platform/src/components/aws/bucket-queue-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/bucket-queue-subscriber.js +77 -0
- package/dist/.sst/platform/src/components/aws/bucket-queue-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/bucket-topic-subscriber.d.ts +55 -0
- package/dist/.sst/platform/src/components/aws/bucket-topic-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/bucket-topic-subscriber.js +99 -0
- package/dist/.sst/platform/src/components/aws/bucket-topic-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/bucket.d.ts +1115 -0
- package/dist/.sst/platform/src/components/aws/bucket.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/bucket.js +754 -0
- package/dist/.sst/platform/src/components/aws/bucket.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/bus-base-subscriber.d.ts +20 -0
- package/dist/.sst/platform/src/components/aws/bus-base-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/bus-base-subscriber.js +19 -0
- package/dist/.sst/platform/src/components/aws/bus-base-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/bus-lambda-subscriber.d.ts +49 -0
- package/dist/.sst/platform/src/components/aws/bus-lambda-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/bus-lambda-subscriber.js +81 -0
- package/dist/.sst/platform/src/components/aws/bus-lambda-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/bus-queue-subscriber.d.ts +44 -0
- package/dist/.sst/platform/src/components/aws/bus-queue-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/bus-queue-subscriber.js +63 -0
- package/dist/.sst/platform/src/components/aws/bus-queue-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/bus.d.ts +403 -0
- package/dist/.sst/platform/src/components/aws/bus.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/bus.js +350 -0
- package/dist/.sst/platform/src/components/aws/bus.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/cdn.d.ts +299 -0
- package/dist/.sst/platform/src/components/aws/cdn.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/cdn.js +234 -0
- package/dist/.sst/platform/src/components/aws/cdn.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/cluster-v1.d.ts +882 -0
- package/dist/.sst/platform/src/components/aws/cluster-v1.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/cluster-v1.js +245 -0
- package/dist/.sst/platform/src/components/aws/cluster-v1.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/cluster.d.ts +308 -0
- package/dist/.sst/platform/src/components/aws/cluster.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/cluster.js +321 -0
- package/dist/.sst/platform/src/components/aws/cluster.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/cognito-identity-pool.d.ts +194 -0
- package/dist/.sst/platform/src/components/aws/cognito-identity-pool.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/cognito-identity-pool.js +263 -0
- package/dist/.sst/platform/src/components/aws/cognito-identity-pool.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/cognito-identity-provider.d.ts +38 -0
- package/dist/.sst/platform/src/components/aws/cognito-identity-provider.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/cognito-identity-provider.js +67 -0
- package/dist/.sst/platform/src/components/aws/cognito-identity-provider.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/cognito-user-pool-client.d.ts +50 -0
- package/dist/.sst/platform/src/components/aws/cognito-user-pool-client.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/cognito-user-pool-client.js +81 -0
- package/dist/.sst/platform/src/components/aws/cognito-user-pool-client.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/cognito-user-pool.d.ts +599 -0
- package/dist/.sst/platform/src/components/aws/cognito-user-pool.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/cognito-user-pool.js +368 -0
- package/dist/.sst/platform/src/components/aws/cognito-user-pool.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/cron.d.ts +250 -0
- package/dist/.sst/platform/src/components/aws/cron.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/cron.js +200 -0
- package/dist/.sst/platform/src/components/aws/cron.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/dns-validated-certificate.d.ts +27 -0
- package/dist/.sst/platform/src/components/aws/dns-validated-certificate.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/dns-validated-certificate.js +55 -0
- package/dist/.sst/platform/src/components/aws/dns-validated-certificate.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/dns.d.ts +94 -0
- package/dist/.sst/platform/src/components/aws/dns.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/dns.js +121 -0
- package/dist/.sst/platform/src/components/aws/dns.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/dynamo-lambda-subscriber.d.ts +55 -0
- package/dist/.sst/platform/src/components/aws/dynamo-lambda-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/dynamo-lambda-subscriber.js +79 -0
- package/dist/.sst/platform/src/components/aws/dynamo-lambda-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/dynamo.d.ts +569 -0
- package/dist/.sst/platform/src/components/aws/dynamo.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/dynamo.js +291 -0
- package/dist/.sst/platform/src/components/aws/dynamo.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/efs.d.ts +217 -0
- package/dist/.sst/platform/src/components/aws/efs.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/efs.js +241 -0
- package/dist/.sst/platform/src/components/aws/efs.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/email.d.ts +291 -0
- package/dist/.sst/platform/src/components/aws/email.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/email.js +276 -0
- package/dist/.sst/platform/src/components/aws/email.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/fargate.d.ts +769 -0
- package/dist/.sst/platform/src/components/aws/fargate.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/fargate.js +434 -0
- package/dist/.sst/platform/src/components/aws/fargate.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/function.d.ts +1631 -0
- package/dist/.sst/platform/src/components/aws/function.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/function.js +1041 -0
- package/dist/.sst/platform/src/components/aws/function.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/apigateway-account.d.ts +3 -0
- package/dist/.sst/platform/src/components/aws/helpers/apigateway-account.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/apigateway-account.js +31 -0
- package/dist/.sst/platform/src/components/aws/helpers/apigateway-account.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/apigatewayv2-domain.d.ts +144 -0
- package/dist/.sst/platform/src/components/aws/helpers/apigatewayv2-domain.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/apigatewayv2-domain.js +2 -0
- package/dist/.sst/platform/src/components/aws/helpers/apigatewayv2-domain.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/arn.d.ts +35 -0
- package/dist/.sst/platform/src/components/aws/helpers/arn.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/arn.js +86 -0
- package/dist/.sst/platform/src/components/aws/helpers/arn.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/bootstrap.d.ts +13 -0
- package/dist/.sst/platform/src/components/aws/helpers/bootstrap.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/bootstrap.js +7 -0
- package/dist/.sst/platform/src/components/aws/helpers/bootstrap.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/container-builder.d.ts +4 -0
- package/dist/.sst/platform/src/components/aws/helpers/container-builder.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/container-builder.js +27 -0
- package/dist/.sst/platform/src/components/aws/helpers/container-builder.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/function-builder.d.ts +10 -0
- package/dist/.sst/platform/src/components/aws/helpers/function-builder.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/function-builder.js +51 -0
- package/dist/.sst/platform/src/components/aws/helpers/function-builder.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/provider.d.ts +3 -0
- package/dist/.sst/platform/src/components/aws/helpers/provider.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/provider.js +34 -0
- package/dist/.sst/platform/src/components/aws/helpers/provider.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/quota.d.ts +7 -0
- package/dist/.sst/platform/src/components/aws/helpers/quota.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/quota.js +20 -0
- package/dist/.sst/platform/src/components/aws/helpers/quota.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/site-builder.d.ts +4 -0
- package/dist/.sst/platform/src/components/aws/helpers/site-builder.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/site-builder.js +36 -0
- package/dist/.sst/platform/src/components/aws/helpers/site-builder.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/subscriber.d.ts +6 -0
- package/dist/.sst/platform/src/components/aws/helpers/subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/subscriber.js +13 -0
- package/dist/.sst/platform/src/components/aws/helpers/subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/https-redirect.d.ts +38 -0
- package/dist/.sst/platform/src/components/aws/https-redirect.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/https-redirect.js +124 -0
- package/dist/.sst/platform/src/components/aws/https-redirect.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/iam-edit.d.ts +39 -0
- package/dist/.sst/platform/src/components/aws/iam-edit.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/iam-edit.js +40 -0
- package/dist/.sst/platform/src/components/aws/iam-edit.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/index.d.ts +48 -0
- package/dist/.sst/platform/src/components/aws/index.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/index.js +49 -0
- package/dist/.sst/platform/src/components/aws/index.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.d.ts +48 -0
- package/dist/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.js +82 -0
- package/dist/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/kinesis-stream.d.ts +249 -0
- package/dist/.sst/platform/src/components/aws/kinesis-stream.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/kinesis-stream.js +134 -0
- package/dist/.sst/platform/src/components/aws/kinesis-stream.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/linkable.d.ts +17 -0
- package/dist/.sst/platform/src/components/aws/linkable.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/linkable.js +25 -0
- package/dist/.sst/platform/src/components/aws/linkable.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/logging.d.ts +26 -0
- package/dist/.sst/platform/src/components/aws/logging.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/logging.js +26 -0
- package/dist/.sst/platform/src/components/aws/logging.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/mysql.d.ts +496 -0
- package/dist/.sst/platform/src/components/aws/mysql.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/mysql.js +514 -0
- package/dist/.sst/platform/src/components/aws/mysql.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/nextjs.d.ts +517 -0
- package/dist/.sst/platform/src/components/aws/nextjs.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/nextjs.js +444 -0
- package/dist/.sst/platform/src/components/aws/nextjs.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/nuxt.d.ts +495 -0
- package/dist/.sst/platform/src/components/aws/nuxt.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/nuxt.js +113 -0
- package/dist/.sst/platform/src/components/aws/nuxt.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/open-search.d.ts +295 -0
- package/dist/.sst/platform/src/components/aws/open-search.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/open-search.js +365 -0
- package/dist/.sst/platform/src/components/aws/open-search.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/opencontrol.d.ts +165 -0
- package/dist/.sst/platform/src/components/aws/opencontrol.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/opencontrol.js +164 -0
- package/dist/.sst/platform/src/components/aws/opencontrol.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/permission.d.ts +27 -0
- package/dist/.sst/platform/src/components/aws/permission.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/permission.js +19 -0
- package/dist/.sst/platform/src/components/aws/permission.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/postgres-v1.d.ts +317 -0
- package/dist/.sst/platform/src/components/aws/postgres-v1.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/postgres-v1.js +304 -0
- package/dist/.sst/platform/src/components/aws/postgres-v1.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/postgres.d.ts +500 -0
- package/dist/.sst/platform/src/components/aws/postgres.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/postgres.js +532 -0
- package/dist/.sst/platform/src/components/aws/postgres.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/bucket-files.d.ts +18 -0
- package/dist/.sst/platform/src/components/aws/providers/bucket-files.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/bucket-files.js +8 -0
- package/dist/.sst/platform/src/components/aws/providers/bucket-files.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/distribution-deployment-waiter.d.ts +13 -0
- package/dist/.sst/platform/src/components/aws/providers/distribution-deployment-waiter.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/distribution-deployment-waiter.js +8 -0
- package/dist/.sst/platform/src/components/aws/providers/distribution-deployment-waiter.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/distribution-invalidation.d.ts +11 -0
- package/dist/.sst/platform/src/components/aws/providers/distribution-invalidation.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/distribution-invalidation.js +8 -0
- package/dist/.sst/platform/src/components/aws/providers/distribution-invalidation.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/function-environment-update.d.ts +29 -0
- package/dist/.sst/platform/src/components/aws/providers/function-environment-update.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/function-environment-update.js +18 -0
- package/dist/.sst/platform/src/components/aws/providers/function-environment-update.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/hosted-zone-lookup.d.ts +11 -0
- package/dist/.sst/platform/src/components/aws/providers/hosted-zone-lookup.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/hosted-zone-lookup.js +8 -0
- package/dist/.sst/platform/src/components/aws/providers/hosted-zone-lookup.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/kv-keys.d.ts +11 -0
- package/dist/.sst/platform/src/components/aws/providers/kv-keys.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/kv-keys.js +8 -0
- package/dist/.sst/platform/src/components/aws/providers/kv-keys.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/kv-routes-update.d.ts +11 -0
- package/dist/.sst/platform/src/components/aws/providers/kv-routes-update.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/kv-routes-update.js +8 -0
- package/dist/.sst/platform/src/components/aws/providers/kv-routes-update.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/origin-access-control.d.ts +8 -0
- package/dist/.sst/platform/src/components/aws/providers/origin-access-control.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/origin-access-control.js +8 -0
- package/dist/.sst/platform/src/components/aws/providers/origin-access-control.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/rds-role-lookup.d.ts +8 -0
- package/dist/.sst/platform/src/components/aws/providers/rds-role-lookup.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/rds-role-lookup.js +8 -0
- package/dist/.sst/platform/src/components/aws/providers/rds-role-lookup.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/vector-table.d.ts +12 -0
- package/dist/.sst/platform/src/components/aws/providers/vector-table.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/vector-table.js +8 -0
- package/dist/.sst/platform/src/components/aws/providers/vector-table.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/queue-lambda-subscriber.d.ts +48 -0
- package/dist/.sst/platform/src/components/aws/queue-lambda-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/queue-lambda-subscriber.js +81 -0
- package/dist/.sst/platform/src/components/aws/queue-lambda-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/queue.d.ts +485 -0
- package/dist/.sst/platform/src/components/aws/queue.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/queue.js +322 -0
- package/dist/.sst/platform/src/components/aws/queue.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/react.d.ts +416 -0
- package/dist/.sst/platform/src/components/aws/react.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/react.js +157 -0
- package/dist/.sst/platform/src/components/aws/react.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/realtime-lambda-subscriber.d.ts +53 -0
- package/dist/.sst/platform/src/components/aws/realtime-lambda-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/realtime-lambda-subscriber.js +78 -0
- package/dist/.sst/platform/src/components/aws/realtime-lambda-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/realtime.d.ts +226 -0
- package/dist/.sst/platform/src/components/aws/realtime.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/realtime.js +221 -0
- package/dist/.sst/platform/src/components/aws/realtime.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/redis-v1.d.ts +338 -0
- package/dist/.sst/platform/src/components/aws/redis-v1.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/redis-v1.js +335 -0
- package/dist/.sst/platform/src/components/aws/redis-v1.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/redis.d.ts +364 -0
- package/dist/.sst/platform/src/components/aws/redis.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/redis.js +382 -0
- package/dist/.sst/platform/src/components/aws/redis.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/remix.d.ts +423 -0
- package/dist/.sst/platform/src/components/aws/remix.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/remix.js +212 -0
- package/dist/.sst/platform/src/components/aws/remix.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/router-base-route.d.ts +28 -0
- package/dist/.sst/platform/src/components/aws/router-base-route.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/router-base-route.js +40 -0
- package/dist/.sst/platform/src/components/aws/router-base-route.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/router-bucket-route.d.ts +29 -0
- package/dist/.sst/platform/src/components/aws/router-bucket-route.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/router-bucket-route.js +40 -0
- package/dist/.sst/platform/src/components/aws/router-bucket-route.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/router-url-route.d.ts +28 -0
- package/dist/.sst/platform/src/components/aws/router-url-route.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/router-url-route.js +51 -0
- package/dist/.sst/platform/src/components/aws/router-url-route.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/router.d.ts +1266 -0
- package/dist/.sst/platform/src/components/aws/router.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/router.js +1156 -0
- package/dist/.sst/platform/src/components/aws/router.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/service-v1.d.ts +78 -0
- package/dist/.sst/platform/src/components/aws/service-v1.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/service-v1.js +606 -0
- package/dist/.sst/platform/src/components/aws/service-v1.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/service.d.ts +1599 -0
- package/dist/.sst/platform/src/components/aws/service.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/service.js +924 -0
- package/dist/.sst/platform/src/components/aws/service.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.d.ts +53 -0
- package/dist/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.js +75 -0
- package/dist/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/sns-topic-queue-subscriber.d.ts +55 -0
- package/dist/.sst/platform/src/components/aws/sns-topic-queue-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/sns-topic-queue-subscriber.js +59 -0
- package/dist/.sst/platform/src/components/aws/sns-topic-queue-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/sns-topic.d.ts +389 -0
- package/dist/.sst/platform/src/components/aws/sns-topic.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/sns-topic.js +233 -0
- package/dist/.sst/platform/src/components/aws/sns-topic.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/solid-start.d.ts +414 -0
- package/dist/.sst/platform/src/components/aws/solid-start.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/solid-start.js +120 -0
- package/dist/.sst/platform/src/components/aws/solid-start.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/ssr-site.d.ts +494 -0
- package/dist/.sst/platform/src/components/aws/ssr-site.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/ssr-site.js +792 -0
- package/dist/.sst/platform/src/components/aws/ssr-site.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/static-site.d.ts +736 -0
- package/dist/.sst/platform/src/components/aws/static-site.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/static-site.js +583 -0
- package/dist/.sst/platform/src/components/aws/static-site.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/choice.d.ts +73 -0
- package/dist/.sst/platform/src/components/aws/step-functions/choice.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/choice.js +98 -0
- package/dist/.sst/platform/src/components/aws/step-functions/choice.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/fail.d.ts +63 -0
- package/dist/.sst/platform/src/components/aws/step-functions/fail.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/fail.js +25 -0
- package/dist/.sst/platform/src/components/aws/step-functions/fail.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/map.d.ts +236 -0
- package/dist/.sst/platform/src/components/aws/step-functions/map.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/map.js +108 -0
- package/dist/.sst/platform/src/components/aws/step-functions/map.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/parallel.d.ts +127 -0
- package/dist/.sst/platform/src/components/aws/step-functions/parallel.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/parallel.js +129 -0
- package/dist/.sst/platform/src/components/aws/step-functions/parallel.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/pass.d.ts +39 -0
- package/dist/.sst/platform/src/components/aws/step-functions/pass.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/pass.js +41 -0
- package/dist/.sst/platform/src/components/aws/step-functions/pass.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/state.d.ts +197 -0
- package/dist/.sst/platform/src/components/aws/step-functions/state.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/state.js +134 -0
- package/dist/.sst/platform/src/components/aws/step-functions/state.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/succeed.d.ts +26 -0
- package/dist/.sst/platform/src/components/aws/step-functions/succeed.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/succeed.js +25 -0
- package/dist/.sst/platform/src/components/aws/step-functions/succeed.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/task.d.ts +477 -0
- package/dist/.sst/platform/src/components/aws/step-functions/task.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/task.js +116 -0
- package/dist/.sst/platform/src/components/aws/step-functions/task.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/wait.d.ts +91 -0
- package/dist/.sst/platform/src/components/aws/step-functions/wait.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/wait.js +46 -0
- package/dist/.sst/platform/src/components/aws/step-functions/wait.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions.d.ts +473 -0
- package/dist/.sst/platform/src/components/aws/step-functions.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions.js +576 -0
- package/dist/.sst/platform/src/components/aws/step-functions.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/svelte-kit.d.ts +417 -0
- package/dist/.sst/platform/src/components/aws/svelte-kit.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/svelte-kit.js +144 -0
- package/dist/.sst/platform/src/components/aws/svelte-kit.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/tan-stack-start.d.ts +354 -0
- package/dist/.sst/platform/src/components/aws/tan-stack-start.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/tan-stack-start.js +143 -0
- package/dist/.sst/platform/src/components/aws/tan-stack-start.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/task.d.ts +322 -0
- package/dist/.sst/platform/src/components/aws/task.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/task.js +311 -0
- package/dist/.sst/platform/src/components/aws/task.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/vector.d.ts +150 -0
- package/dist/.sst/platform/src/components/aws/vector.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/vector.js +224 -0
- package/dist/.sst/platform/src/components/aws/vector.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/vpc-v1.d.ts +208 -0
- package/dist/.sst/platform/src/components/aws/vpc-v1.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/vpc-v1.js +355 -0
- package/dist/.sst/platform/src/components/aws/vpc-v1.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/vpc.d.ts +444 -0
- package/dist/.sst/platform/src/components/aws/vpc.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/vpc.js +834 -0
- package/dist/.sst/platform/src/components/aws/vpc.js.map +1 -0
- package/dist/.sst/platform/src/components/base/base-site.d.ts +53 -0
- package/dist/.sst/platform/src/components/base/base-site.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/base/base-site.js +47 -0
- package/dist/.sst/platform/src/components/base/base-site.js.map +1 -0
- package/dist/.sst/platform/src/components/base/base-ssr-site.d.ts +111 -0
- package/dist/.sst/platform/src/components/base/base-ssr-site.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/base/base-ssr-site.js +72 -0
- package/dist/.sst/platform/src/components/base/base-ssr-site.js.map +1 -0
- package/dist/.sst/platform/src/components/base/base-static-site.d.ts +199 -0
- package/dist/.sst/platform/src/components/base/base-static-site.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/base/base-static-site.js +87 -0
- package/dist/.sst/platform/src/components/base/base-static-site.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/account-id.d.ts +2 -0
- package/dist/.sst/platform/src/components/cloudflare/account-id.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/account-id.js +2 -0
- package/dist/.sst/platform/src/components/cloudflare/account-id.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/auth.d.ts +22 -0
- package/dist/.sst/platform/src/components/cloudflare/auth.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/auth.js +37 -0
- package/dist/.sst/platform/src/components/cloudflare/auth.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/binding.d.ts +69 -0
- package/dist/.sst/platform/src/components/cloudflare/binding.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/binding.js +25 -0
- package/dist/.sst/platform/src/components/cloudflare/binding.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/bucket.d.ts +101 -0
- package/dist/.sst/platform/src/components/cloudflare/bucket.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/bucket.js +98 -0
- package/dist/.sst/platform/src/components/cloudflare/bucket.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/cron.d.ts +121 -0
- package/dist/.sst/platform/src/components/cloudflare/cron.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/cron.js +86 -0
- package/dist/.sst/platform/src/components/cloudflare/cron.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/d1.d.ts +107 -0
- package/dist/.sst/platform/src/components/cloudflare/d1.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/d1.js +104 -0
- package/dist/.sst/platform/src/components/cloudflare/d1.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/dns.d.ts +94 -0
- package/dist/.sst/platform/src/components/cloudflare/dns.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/dns.js +138 -0
- package/dist/.sst/platform/src/components/cloudflare/dns.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/helpers/fetch.d.ts +19 -0
- package/dist/.sst/platform/src/components/cloudflare/helpers/fetch.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/helpers/fetch.js +39 -0
- package/dist/.sst/platform/src/components/cloudflare/helpers/fetch.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/helpers/worker-builder.d.ts +10 -0
- package/dist/.sst/platform/src/components/cloudflare/helpers/worker-builder.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/helpers/worker-builder.js +25 -0
- package/dist/.sst/platform/src/components/cloudflare/helpers/worker-builder.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/index.d.ts +13 -0
- package/dist/.sst/platform/src/components/cloudflare/index.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/index.js +13 -0
- package/dist/.sst/platform/src/components/cloudflare/index.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/kv.d.ts +101 -0
- package/dist/.sst/platform/src/components/cloudflare/kv.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/kv.js +98 -0
- package/dist/.sst/platform/src/components/cloudflare/kv.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/dns-record.d.ts +20 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/dns-record.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/dns-record.js +11 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/dns-record.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/kv-data.d.ts +23 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/kv-data.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/kv-data.js +63 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/kv-data.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/worker-url.d.ts +22 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/worker-url.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/worker-url.js +83 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/worker-url.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/zone-lookup.d.ts +22 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/zone-lookup.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/zone-lookup.js +54 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/zone-lookup.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/queue.d.ts +60 -0
- package/dist/.sst/platform/src/components/cloudflare/queue.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/queue.js +57 -0
- package/dist/.sst/platform/src/components/cloudflare/queue.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/remix.d.ts +223 -0
- package/dist/.sst/platform/src/components/cloudflare/remix.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/remix.js +291 -0
- package/dist/.sst/platform/src/components/cloudflare/remix.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/ssr-site.d.ts +59 -0
- package/dist/.sst/platform/src/components/cloudflare/ssr-site.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/ssr-site.js +177 -0
- package/dist/.sst/platform/src/components/cloudflare/ssr-site.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/static-site.d.ts +262 -0
- package/dist/.sst/platform/src/components/cloudflare/static-site.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/static-site.js +315 -0
- package/dist/.sst/platform/src/components/cloudflare/static-site.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/worker.d.ts +273 -0
- package/dist/.sst/platform/src/components/cloudflare/worker.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/worker.js +326 -0
- package/dist/.sst/platform/src/components/cloudflare/worker.js.map +1 -0
- package/dist/.sst/platform/src/components/component.d.ts +37 -0
- package/dist/.sst/platform/src/components/component.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/component.js +395 -0
- package/dist/.sst/platform/src/components/component.js.map +1 -0
- package/dist/.sst/platform/src/components/cpu.d.ts +3 -0
- package/dist/.sst/platform/src/components/cpu.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cpu.js +9 -0
- package/dist/.sst/platform/src/components/cpu.js.map +1 -0
- package/dist/.sst/platform/src/components/dns.d.ts +59 -0
- package/dist/.sst/platform/src/components/dns.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/dns.js +7 -0
- package/dist/.sst/platform/src/components/dns.js.map +1 -0
- package/dist/.sst/platform/src/components/duration.d.ts +6 -0
- package/dist/.sst/platform/src/components/duration.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/duration.js +19 -0
- package/dist/.sst/platform/src/components/duration.js.map +1 -0
- package/dist/.sst/platform/src/components/error.d.ts +4 -0
- package/dist/.sst/platform/src/components/error.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/error.js +6 -0
- package/dist/.sst/platform/src/components/error.js.map +1 -0
- package/dist/.sst/platform/src/components/experimental/dev-command.d.ts +99 -0
- package/dist/.sst/platform/src/components/experimental/dev-command.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/experimental/dev-command.js +59 -0
- package/dist/.sst/platform/src/components/experimental/dev-command.js.map +1 -0
- package/dist/.sst/platform/src/components/experimental/index.d.ts +2 -0
- package/dist/.sst/platform/src/components/experimental/index.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/experimental/index.js +2 -0
- package/dist/.sst/platform/src/components/experimental/index.js.map +1 -0
- package/dist/.sst/platform/src/components/hint.d.ts +7 -0
- package/dist/.sst/platform/src/components/hint.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/hint.js +20 -0
- package/dist/.sst/platform/src/components/hint.js.map +1 -0
- package/dist/.sst/platform/src/components/index.d.ts +16 -0
- package/dist/.sst/platform/src/components/index.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/index.js +16 -0
- package/dist/.sst/platform/src/components/index.js.map +1 -0
- package/dist/.sst/platform/src/components/input.d.ts +3 -0
- package/dist/.sst/platform/src/components/input.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/input.js +2 -0
- package/dist/.sst/platform/src/components/input.js.map +1 -0
- package/dist/.sst/platform/src/components/link.d.ts +41 -0
- package/dist/.sst/platform/src/components/link.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/link.js +138 -0
- package/dist/.sst/platform/src/components/link.js.map +1 -0
- package/dist/.sst/platform/src/components/linkable.d.ts +271 -0
- package/dist/.sst/platform/src/components/linkable.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/linkable.js +244 -0
- package/dist/.sst/platform/src/components/linkable.js.map +1 -0
- package/dist/.sst/platform/src/components/naming.d.ts +7 -0
- package/dist/.sst/platform/src/components/naming.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/naming.js +58 -0
- package/dist/.sst/platform/src/components/naming.js.map +1 -0
- package/dist/.sst/platform/src/components/path.d.ts +2 -0
- package/dist/.sst/platform/src/components/path.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/path.js +5 -0
- package/dist/.sst/platform/src/components/path.js.map +1 -0
- package/dist/.sst/platform/src/components/rpc/rpc.d.ts +18 -0
- package/dist/.sst/platform/src/components/rpc/rpc.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/rpc/rpc.js +120 -0
- package/dist/.sst/platform/src/components/rpc/rpc.js.map +1 -0
- package/dist/.sst/platform/src/components/secret.d.ts +125 -0
- package/dist/.sst/platform/src/components/secret.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/secret.js +143 -0
- package/dist/.sst/platform/src/components/secret.js.map +1 -0
- package/dist/.sst/platform/src/components/size.d.ts +5 -0
- package/dist/.sst/platform/src/components/size.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/size.js +29 -0
- package/dist/.sst/platform/src/components/size.js.map +1 -0
- package/dist/.sst/platform/src/components/vercel/account-id.d.ts +2 -0
- package/dist/.sst/platform/src/components/vercel/account-id.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/vercel/account-id.js +2 -0
- package/dist/.sst/platform/src/components/vercel/account-id.js.map +1 -0
- package/dist/.sst/platform/src/components/vercel/dns.d.ts +73 -0
- package/dist/.sst/platform/src/components/vercel/dns.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/vercel/dns.js +104 -0
- package/dist/.sst/platform/src/components/vercel/dns.js.map +1 -0
- package/dist/.sst/platform/src/components/vercel/index.d.ts +3 -0
- package/dist/.sst/platform/src/components/vercel/index.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/vercel/index.js +3 -0
- package/dist/.sst/platform/src/components/vercel/index.js.map +1 -0
- package/dist/.sst/platform/src/components/vercel/providers/dns-record.d.ts +14 -0
- package/dist/.sst/platform/src/components/vercel/providers/dns-record.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/vercel/providers/dns-record.js +8 -0
- package/dist/.sst/platform/src/components/vercel/providers/dns-record.js.map +1 -0
- package/dist/.sst/platform/src/config.d.ts +1243 -0
- package/dist/.sst/platform/src/config.d.ts.map +1 -0
- package/dist/.sst/platform/src/config.js +5 -0
- package/dist/.sst/platform/src/config.js.map +1 -0
- package/dist/.sst/platform/src/util/compare-semver.d.ts +4 -0
- package/dist/.sst/platform/src/util/compare-semver.d.ts.map +1 -0
- package/dist/.sst/platform/src/util/compare-semver.js +24 -0
- package/dist/.sst/platform/src/util/compare-semver.js.map +1 -0
- package/dist/.sst/platform/src/util/lazy.d.ts +2 -0
- package/dist/.sst/platform/src/util/lazy.d.ts.map +1 -0
- package/dist/.sst/platform/src/util/lazy.js +12 -0
- package/dist/.sst/platform/src/util/lazy.js.map +1 -0
- package/dist/.sst/platform/src/util/path-to-regex.d.ts +128 -0
- package/dist/.sst/platform/src/util/path-to-regex.d.ts.map +1 -0
- package/dist/.sst/platform/src/util/path-to-regex.js +392 -0
- package/dist/.sst/platform/src/util/path-to-regex.js.map +1 -0
- package/dist/.sst/platform/src/util/semaphore.d.ts +9 -0
- package/dist/.sst/platform/src/util/semaphore.d.ts.map +1 -0
- package/dist/.sst/platform/src/util/semaphore.js +36 -0
- package/dist/.sst/platform/src/util/semaphore.js.map +1 -0
- package/dist/.sst/platform/src/util/warn.d.ts +2 -0
- package/dist/.sst/platform/src/util/warn.d.ts.map +1 -0
- package/dist/.sst/platform/src/util/warn.js +8 -0
- package/dist/.sst/platform/src/util/warn.js.map +1 -0
- package/dist/components/monorise-core.d.ts +17 -0
- package/dist/components/monorise-core.d.ts.map +1 -0
- package/dist/components/monorise-core.js +134 -0
- package/dist/components/monorise-core.js.map +1 -0
- package/dist/components/q-function.d.ts +17 -0
- package/dist/components/q-function.d.ts.map +1 -0
- package/dist/components/q-function.js +53 -0
- package/dist/components/q-function.js.map +1 -0
- package/dist/components/single-table.d.ts +12 -0
- package/dist/components/single-table.d.ts.map +1 -0
- package/dist/components/single-table.js +71 -0
- package/dist/components/single-table.js.map +1 -0
- package/dist/constants/event.d.ts +73 -0
- package/dist/constants/event.d.ts.map +1 -0
- package/dist/constants/event.js +74 -0
- package/dist/constants/event.js.map +1 -0
- package/dist/constants/table.d.ts +3 -0
- package/dist/constants/table.d.ts.map +1 -0
- package/dist/constants/table.js +3 -0
- package/dist/constants/table.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -0
- package/dist/sst.config.d.ts +3 -0
- package/dist/sst.config.d.ts.map +1 -0
- package/dist/sst.config.js +24 -0
- package/dist/sst.config.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +25 -0
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
import { output } from "@pulumi/pulumi";
|
|
2
|
+
import { Component, parseComponentVersion, transform, } from "../component";
|
|
3
|
+
import { Service } from "./service";
|
|
4
|
+
import { ecs } from "@pulumi/aws";
|
|
5
|
+
import { Cluster as ClusterV1 } from "./cluster-v1";
|
|
6
|
+
import { Vpc } from "./vpc";
|
|
7
|
+
import { Vpc as VpcV1 } from "./vpc-v1.js";
|
|
8
|
+
import { Task } from "./task";
|
|
9
|
+
import { VisibleError } from "../error";
|
|
10
|
+
/**
|
|
11
|
+
* The `Cluster` component lets you create an [ECS cluster](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html) for your app.
|
|
12
|
+
* add `Service` and `Task` components to it.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
*
|
|
16
|
+
* ```ts title="sst.config.ts"
|
|
17
|
+
* const vpc = new sst.aws.Vpc("MyVpc");
|
|
18
|
+
* const cluster = new sst.aws.Cluster("MyCluster", { vpc });
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* Once created, you can add the following to it:
|
|
22
|
+
*
|
|
23
|
+
* 1. `Service`: These are containers that are always running, like web or
|
|
24
|
+
* application servers. They automatically restart if they fail.
|
|
25
|
+
* 2. `Task`: These are containers that are used for long running asynchronous work,
|
|
26
|
+
* like data processing.
|
|
27
|
+
*/
|
|
28
|
+
export class Cluster extends Component {
|
|
29
|
+
constructor(name, args, opts = {}) {
|
|
30
|
+
super(__pulumiType, name, args, opts);
|
|
31
|
+
const _version = { major: 2, minor: 0 };
|
|
32
|
+
const self = this;
|
|
33
|
+
this.constructorOpts = opts;
|
|
34
|
+
if (args && "ref" in args) {
|
|
35
|
+
const ref = reference();
|
|
36
|
+
const vpc = normalizeVpc();
|
|
37
|
+
this.cluster = ref.cluster;
|
|
38
|
+
this._vpc = vpc;
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
registerVersion();
|
|
42
|
+
const vpc = normalizeVpc();
|
|
43
|
+
const cluster = createCluster();
|
|
44
|
+
createCapacityProviders();
|
|
45
|
+
this.cluster = output(cluster);
|
|
46
|
+
this._vpc = vpc;
|
|
47
|
+
function reference() {
|
|
48
|
+
const ref = args;
|
|
49
|
+
const cluster = ecs.Cluster.get(`${name}Cluster`, ref.id, undefined, {
|
|
50
|
+
parent: self,
|
|
51
|
+
});
|
|
52
|
+
const clusterValidated = cluster.tags.apply((tags) => {
|
|
53
|
+
const refVersion = (tags === null || tags === void 0 ? void 0 : tags["sst:ref:version"])
|
|
54
|
+
? parseComponentVersion(tags["sst:ref:version"])
|
|
55
|
+
: undefined;
|
|
56
|
+
if ((refVersion === null || refVersion === void 0 ? void 0 : refVersion.minor) !== _version.minor) {
|
|
57
|
+
throw new VisibleError([
|
|
58
|
+
`There have been some minor changes to the "Cluster" component that's being referenced by "${name}".\n`,
|
|
59
|
+
`To update, you'll need to redeploy the stage where the cluster was created. And then redeploy this stage.`,
|
|
60
|
+
].join("\n"));
|
|
61
|
+
}
|
|
62
|
+
registerVersion(refVersion);
|
|
63
|
+
return cluster;
|
|
64
|
+
});
|
|
65
|
+
return { cluster: clusterValidated };
|
|
66
|
+
}
|
|
67
|
+
function normalizeVpc() {
|
|
68
|
+
// "vpc" is a Vpc.v1 component
|
|
69
|
+
if (args.vpc instanceof VpcV1) {
|
|
70
|
+
throw new VisibleError(`You are using the "Vpc.v1" component. Please migrate to the latest "Vpc" component.`);
|
|
71
|
+
}
|
|
72
|
+
// "vpc" is a Vpc component
|
|
73
|
+
if (args.vpc instanceof Vpc) {
|
|
74
|
+
return args.vpc;
|
|
75
|
+
}
|
|
76
|
+
// "vpc" is object
|
|
77
|
+
return output(args.vpc).apply((vpc) => {
|
|
78
|
+
var _a;
|
|
79
|
+
if (vpc.containerSubnets && vpc.serviceSubnets)
|
|
80
|
+
throw new VisibleError(`You cannot provide both "vpc.containerSubnets" and "vpc.serviceSubnets" in the "${name}" Cluster component. The "serviceSubnets" property has been deprecated. Use "containerSubnets" instead.`);
|
|
81
|
+
if (!vpc.containerSubnets && !vpc.serviceSubnets)
|
|
82
|
+
throw new VisibleError(`Missing "vpc.containerSubnets" for the "${name}" Cluster component.`);
|
|
83
|
+
if ((vpc.cloudmapNamespaceId && !vpc.cloudmapNamespaceName) ||
|
|
84
|
+
(!vpc.cloudmapNamespaceId && vpc.cloudmapNamespaceName))
|
|
85
|
+
throw new VisibleError(`You must provide both "vpc.cloudmapNamespaceId" and "vpc.cloudmapNamespaceName" for the "${name}" Cluster component.`);
|
|
86
|
+
return Object.assign(Object.assign({}, vpc), { containerSubnets: ((_a = vpc.containerSubnets) !== null && _a !== void 0 ? _a : vpc.serviceSubnets), serviceSubnets: undefined });
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
function createCluster() {
|
|
90
|
+
var _a;
|
|
91
|
+
return new ecs.Cluster(...transform((_a = args.transform) === null || _a === void 0 ? void 0 : _a.cluster, `${name}Cluster`, {
|
|
92
|
+
tags: {
|
|
93
|
+
"sst:ref:version": `${_version.major}.${_version.minor}`,
|
|
94
|
+
},
|
|
95
|
+
}, { parent: self }));
|
|
96
|
+
}
|
|
97
|
+
function registerVersion(overrideVersion) {
|
|
98
|
+
var _a;
|
|
99
|
+
const newMajorVersion = _version.major;
|
|
100
|
+
const oldMajorVersion = (_a = overrideVersion === null || overrideVersion === void 0 ? void 0 : overrideVersion.major) !== null && _a !== void 0 ? _a : $cli.state.version[name];
|
|
101
|
+
self.registerVersion({
|
|
102
|
+
new: newMajorVersion,
|
|
103
|
+
old: oldMajorVersion,
|
|
104
|
+
message: [
|
|
105
|
+
`There is a new version of "Cluster" that has breaking changes.`,
|
|
106
|
+
``,
|
|
107
|
+
`What changed:`,
|
|
108
|
+
` - In the old version, load balancers were deployed in public subnets, and services were deployed in private subnets. The VPC was required to have NAT gateways.`,
|
|
109
|
+
` - In the latest version, both the load balancer and the services are deployed in public subnets. The VPC is not required to have NAT gateways. So the new default makes this cheaper to run.`,
|
|
110
|
+
``,
|
|
111
|
+
`To upgrade:`,
|
|
112
|
+
` - Set \`forceUpgrade: "v${newMajorVersion}"\` on the "Cluster" component. Learn more https://sst.dev/docs/component/aws/cluster#forceupgrade`,
|
|
113
|
+
``,
|
|
114
|
+
`To continue using v${$cli.state.version[name]}:`,
|
|
115
|
+
` - Rename "Cluster" to "Cluster.v${$cli.state.version[name]}". Learn more about versioning - https://sst.dev/docs/components/#versioning`,
|
|
116
|
+
].join("\n"),
|
|
117
|
+
forceUpgrade: args.forceUpgrade,
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
function createCapacityProviders() {
|
|
121
|
+
return new ecs.ClusterCapacityProviders(`${name}CapacityProviders`, {
|
|
122
|
+
clusterName: cluster.name,
|
|
123
|
+
capacityProviders: ["FARGATE", "FARGATE_SPOT"],
|
|
124
|
+
}, { parent: self });
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* The cluster ID.
|
|
129
|
+
*/
|
|
130
|
+
get id() {
|
|
131
|
+
return this.cluster.id;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* The underlying [resources](/docs/components/#nodes) this component creates.
|
|
135
|
+
*/
|
|
136
|
+
get nodes() {
|
|
137
|
+
return {
|
|
138
|
+
/**
|
|
139
|
+
* The Amazon ECS Cluster.
|
|
140
|
+
*/
|
|
141
|
+
cluster: this.cluster,
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* The VPC configuration for the cluster.
|
|
146
|
+
* @internal
|
|
147
|
+
*/
|
|
148
|
+
get vpc() {
|
|
149
|
+
return this._vpc;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Add a service to the cluster.
|
|
153
|
+
*
|
|
154
|
+
* @deprecated Use the `Service` component directly to create services. To migrate, change
|
|
155
|
+
*
|
|
156
|
+
* ```ts
|
|
157
|
+
* cluster.addService("MyService", { ...args });
|
|
158
|
+
* ```
|
|
159
|
+
*
|
|
160
|
+
* to
|
|
161
|
+
*
|
|
162
|
+
* ```ts
|
|
163
|
+
* new sst.aws.Service("MyService", { cluster, ...args });
|
|
164
|
+
* ```
|
|
165
|
+
*
|
|
166
|
+
* @param name Name of the service.
|
|
167
|
+
* @param args? Configure the service.
|
|
168
|
+
* @param opts? Resource options.
|
|
169
|
+
*
|
|
170
|
+
* @example
|
|
171
|
+
*
|
|
172
|
+
* ```ts title="sst.config.ts"
|
|
173
|
+
* cluster.addService("MyService");
|
|
174
|
+
* ```
|
|
175
|
+
*
|
|
176
|
+
* You can also configure the service. For example, set a custom domain.
|
|
177
|
+
*
|
|
178
|
+
* ```js {2} title="sst.config.ts"
|
|
179
|
+
* cluster.addService("MyService", {
|
|
180
|
+
* domain: "example.com"
|
|
181
|
+
* });
|
|
182
|
+
* ```
|
|
183
|
+
*
|
|
184
|
+
* Enable auto-scaling.
|
|
185
|
+
*
|
|
186
|
+
* ```ts title="sst.config.ts"
|
|
187
|
+
* cluster.addService("MyService", {
|
|
188
|
+
* scaling: {
|
|
189
|
+
* min: 4,
|
|
190
|
+
* max: 16,
|
|
191
|
+
* cpuUtilization: 50,
|
|
192
|
+
* memoryUtilization: 50,
|
|
193
|
+
* }
|
|
194
|
+
* });
|
|
195
|
+
* ```
|
|
196
|
+
*
|
|
197
|
+
* By default this starts a single container. To add multiple containers in the service, pass in an array of containers args.
|
|
198
|
+
*
|
|
199
|
+
* ```ts title="sst.config.ts"
|
|
200
|
+
* cluster.addService("MyService", {
|
|
201
|
+
* architecture: "arm64",
|
|
202
|
+
* containers: [
|
|
203
|
+
* {
|
|
204
|
+
* name: "app",
|
|
205
|
+
* image: "nginxdemos/hello:plain-text"
|
|
206
|
+
* },
|
|
207
|
+
* {
|
|
208
|
+
* name: "admin",
|
|
209
|
+
* image: {
|
|
210
|
+
* context: "./admin",
|
|
211
|
+
* dockerfile: "Dockerfile"
|
|
212
|
+
* }
|
|
213
|
+
* }
|
|
214
|
+
* ]
|
|
215
|
+
* });
|
|
216
|
+
* ```
|
|
217
|
+
*
|
|
218
|
+
* This is useful for running sidecar containers.
|
|
219
|
+
*/
|
|
220
|
+
addService(name, args, opts) {
|
|
221
|
+
// Do not prefix the service to allow `Resource.MyService` to work.
|
|
222
|
+
return new Service(name, Object.assign({ cluster: this }, args), Object.assign({ provider: this.constructorOpts.provider }, opts));
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Add a task to the cluster.
|
|
226
|
+
*
|
|
227
|
+
* @deprecated Use the `Task` component directly to create tasks. To migrate, change
|
|
228
|
+
*
|
|
229
|
+
* ```ts
|
|
230
|
+
* cluster.addTask("MyTask", { ...args });
|
|
231
|
+
* ```
|
|
232
|
+
*
|
|
233
|
+
* to
|
|
234
|
+
*
|
|
235
|
+
* ```ts
|
|
236
|
+
* new sst.aws.Task("MyTask", { cluster, ...args });
|
|
237
|
+
* ```
|
|
238
|
+
*
|
|
239
|
+
* @param name Name of the task.
|
|
240
|
+
* @param args? Configure the task.
|
|
241
|
+
* @param opts? Resource options.
|
|
242
|
+
*
|
|
243
|
+
* @example
|
|
244
|
+
*
|
|
245
|
+
* ```ts title="sst.config.ts"
|
|
246
|
+
* cluster.addTask("MyTask");
|
|
247
|
+
* ```
|
|
248
|
+
*
|
|
249
|
+
* You can also configure the task. By default this starts a single container.
|
|
250
|
+
* To add multiple containers in the task, pass in an array of containers args.
|
|
251
|
+
*
|
|
252
|
+
* ```ts title="sst.config.ts"
|
|
253
|
+
* cluster.addTask("MyTask", {
|
|
254
|
+
* architecture: "arm64",
|
|
255
|
+
* containers: [
|
|
256
|
+
* {
|
|
257
|
+
* name: "app",
|
|
258
|
+
* image: "nginxdemos/hello:plain-text"
|
|
259
|
+
* },
|
|
260
|
+
* {
|
|
261
|
+
* name: "admin",
|
|
262
|
+
* image: {
|
|
263
|
+
* context: "./admin",
|
|
264
|
+
* dockerfile: "Dockerfile"
|
|
265
|
+
* }
|
|
266
|
+
* }
|
|
267
|
+
* ]
|
|
268
|
+
* });
|
|
269
|
+
* ```
|
|
270
|
+
*
|
|
271
|
+
* This is useful for running sidecar containers.
|
|
272
|
+
*/
|
|
273
|
+
addTask(name, args, opts) {
|
|
274
|
+
// Do not prefix the task to allow `Resource.MyTask` to work.
|
|
275
|
+
return new Task(name, Object.assign({ cluster: this }, args), Object.assign({ provider: this.constructorOpts.provider }, opts));
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Reference an existing ECS Cluster with the given ID. This is useful when you
|
|
279
|
+
* create a cluster in one stage and want to share it in another. It avoids
|
|
280
|
+
* having to create a new cluster in the other stage.
|
|
281
|
+
*
|
|
282
|
+
* :::tip
|
|
283
|
+
* You can use the `static get` method to share cluster across stages.
|
|
284
|
+
* :::
|
|
285
|
+
*
|
|
286
|
+
* @param name The name of the component.
|
|
287
|
+
* @param args The arguments to get the cluster.
|
|
288
|
+
* @param opts? Resource options.
|
|
289
|
+
*
|
|
290
|
+
* @example
|
|
291
|
+
* Imagine you create a cluster in the `dev` stage. And in your personal stage `frank`,
|
|
292
|
+
* instead of creating a new cluster, you want to share the same cluster from `dev`.
|
|
293
|
+
*
|
|
294
|
+
* ```ts title="sst.config.ts"
|
|
295
|
+
* const cluster = $app.stage === "frank"
|
|
296
|
+
* ? sst.aws.Cluster.get("MyCluster", {
|
|
297
|
+
* id: "arn:aws:ecs:us-east-1:123456789012:cluster/app-dev-MyCluster",
|
|
298
|
+
* vpc,
|
|
299
|
+
* })
|
|
300
|
+
* : new sst.aws.Cluster("MyCluster", { vpc });
|
|
301
|
+
* ```
|
|
302
|
+
*
|
|
303
|
+
* Here `arn:aws:ecs:us-east-1:123456789012:cluster/app-dev-MyCluster` is the ID of the
|
|
304
|
+
* cluster created in the `dev` stage. You can find these by outputting the cluster ID
|
|
305
|
+
* in the `dev` stage.
|
|
306
|
+
*
|
|
307
|
+
* ```ts title="sst.config.ts"
|
|
308
|
+
* return {
|
|
309
|
+
* id: cluster.id,
|
|
310
|
+
* };
|
|
311
|
+
* ```
|
|
312
|
+
*/
|
|
313
|
+
static get(name, args, opts) {
|
|
314
|
+
return new Cluster(name, { ref: true, id: args.id, vpc: args.vpc }, opts);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
Cluster.v1 = ClusterV1;
|
|
318
|
+
const __pulumiType = "sst:aws:Cluster";
|
|
319
|
+
// @ts-expect-error
|
|
320
|
+
Cluster.__pulumiType = __pulumiType;
|
|
321
|
+
//# sourceMappingURL=cluster.js.map
|
|
@@ -0,0 +1 @@
|
|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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoEG;IACI,UAAU,CACf,IAAY,EACZ,IAAmC,EACnC,IAA+B;QAE/B,mEAAmE;QACnE,OAAO,IAAI,OAAO,CAChB,IAAI,kBAEF,OAAO,EAAE,IAAI,IACV,IAAI,mBAEP,QAAQ,EAAE,IAAI,CAAC,eAAe,CAAC,QAAQ,IAAK,IAAI,EACnD,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgDG;IACI,OAAO,CACZ,IAAY,EACZ,IAAgC,EAChC,IAA+B;QAE/B,6DAA6D;QAC7D,OAAO,IAAI,IAAI,CACb,IAAI,kBAEF,OAAO,EAAE,IAAI,IACV,IAAI,mBAEP,QAAQ,EAAE,IAAI,CAAC,eAAe,CAAC,QAAQ,IAAK,IAAI,EACnD,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACI,MAAM,CAAC,GAAG,CACf,IAAY,EACZ,IAAoB,EACpB,IAA+B;QAE/B,OAAO,IAAI,OAAO,CAChB,IAAI,EACJ,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAiB,EACxD,IAAI,CACL,CAAC;IACJ,CAAC;;AAjXa,UAAE,GAAG,SAAS,CAAC;AAoX/B,MAAM,YAAY,GAAG,iBAAiB,CAAC;AACvC,mBAAmB;AACnB,OAAO,CAAC,YAAY,GAAG,YAAY,CAAC"}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { ComponentResourceOptions } from "@pulumi/pulumi";
|
|
2
|
+
import { Component, Transform } from "../component";
|
|
3
|
+
import { FunctionArgs } from "./function.js";
|
|
4
|
+
import { Input } from "../input";
|
|
5
|
+
import { Link } from "../link";
|
|
6
|
+
import { cognito, iam } from "@pulumi/aws";
|
|
7
|
+
export interface CognitoIdentityPoolArgs {
|
|
8
|
+
/**
|
|
9
|
+
* Configure Cognito User Pools as identity providers to your identity pool.
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* {
|
|
13
|
+
* userPools: [
|
|
14
|
+
* {
|
|
15
|
+
* userPool: "us-east-1_QY6Ly46JH",
|
|
16
|
+
* client: "6va5jg3cgtrd170sgokikjm5m6"
|
|
17
|
+
* }
|
|
18
|
+
* ]
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
userPools?: Input<Input<{
|
|
23
|
+
/**
|
|
24
|
+
* The Cognito user pool ID.
|
|
25
|
+
*/
|
|
26
|
+
userPool: Input<string>;
|
|
27
|
+
/**
|
|
28
|
+
* The Cognito User Pool client ID.
|
|
29
|
+
*/
|
|
30
|
+
client: Input<string>;
|
|
31
|
+
}>[]>;
|
|
32
|
+
/**
|
|
33
|
+
* The permissions to attach to the authenticated and unauthenticated roles.
|
|
34
|
+
* This allows the authenticated and unauthenticated users to access other AWS resources.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```js
|
|
38
|
+
* {
|
|
39
|
+
* permissions: {
|
|
40
|
+
* authenticated: [
|
|
41
|
+
* {
|
|
42
|
+
* actions: ["s3:GetObject", "s3:PutObject"],
|
|
43
|
+
* resources: ["arn:aws:s3:::my-bucket/*"]
|
|
44
|
+
* }
|
|
45
|
+
* ],
|
|
46
|
+
* unauthenticated: [
|
|
47
|
+
* {
|
|
48
|
+
* actions: ["s3:GetObject"],
|
|
49
|
+
* resources: ["arn:aws:s3:::my-bucket/*"]
|
|
50
|
+
* }
|
|
51
|
+
* ]
|
|
52
|
+
* }
|
|
53
|
+
* }
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
permissions?: Input<{
|
|
57
|
+
/**
|
|
58
|
+
* Attaches the given list of permissions to the authenticated users.
|
|
59
|
+
*/
|
|
60
|
+
authenticated?: FunctionArgs["permissions"];
|
|
61
|
+
/**
|
|
62
|
+
* Attaches the given list of permissions to the unauthenticated users.
|
|
63
|
+
*/
|
|
64
|
+
unauthenticated?: FunctionArgs["permissions"];
|
|
65
|
+
}>;
|
|
66
|
+
/**
|
|
67
|
+
* [Transform](/docs/components#transform) how this component creates its underlying
|
|
68
|
+
* resources.
|
|
69
|
+
*/
|
|
70
|
+
transform?: {
|
|
71
|
+
/**
|
|
72
|
+
* Transform the Cognito identity pool resource.
|
|
73
|
+
*/
|
|
74
|
+
identityPool?: Transform<cognito.IdentityPoolArgs>;
|
|
75
|
+
/**
|
|
76
|
+
* Transform the authenticated IAM role resource.
|
|
77
|
+
*/
|
|
78
|
+
authenticatedRole?: Transform<iam.RoleArgs>;
|
|
79
|
+
/**
|
|
80
|
+
* Transform the unauthenticated IAM role resource.
|
|
81
|
+
*/
|
|
82
|
+
unauthenticatedRole?: Transform<iam.RoleArgs>;
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* The `CognitoIdentityPool` component lets you add a [Amazon Cognito identity pool](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-identity.html) to your app.
|
|
87
|
+
*
|
|
88
|
+
* #### Create the identity pool
|
|
89
|
+
*
|
|
90
|
+
* ```ts title="sst.config.ts"
|
|
91
|
+
* new sst.aws.CognitoIdentityPool("MyIdentityPool", {
|
|
92
|
+
* userPools: [
|
|
93
|
+
* {
|
|
94
|
+
* userPool: "us-east-1_QY6Ly46JH",
|
|
95
|
+
* client: "6va5jg3cgtrd170sgokikjm5m6"
|
|
96
|
+
* }
|
|
97
|
+
* ]
|
|
98
|
+
* });
|
|
99
|
+
* ```
|
|
100
|
+
*
|
|
101
|
+
* #### Configure permissions for authenticated users
|
|
102
|
+
*
|
|
103
|
+
* ```ts title="sst.config.ts"
|
|
104
|
+
* new sst.aws.CognitoIdentityPool("MyIdentityPool", {
|
|
105
|
+
* userPools: [
|
|
106
|
+
* {
|
|
107
|
+
* userPool: "us-east-1_QY6Ly46JH",
|
|
108
|
+
* client: "6va5jg3cgtrd170sgokikjm5m6"
|
|
109
|
+
* }
|
|
110
|
+
* ],
|
|
111
|
+
* permissions: {
|
|
112
|
+
* authenticated: [
|
|
113
|
+
* {
|
|
114
|
+
* actions: ["s3:GetObject", "s3:PutObject"],
|
|
115
|
+
* resources: ["arn:aws:s3:::my-bucket/*"]
|
|
116
|
+
* }
|
|
117
|
+
* ]
|
|
118
|
+
* }
|
|
119
|
+
* });
|
|
120
|
+
* ```
|
|
121
|
+
*/
|
|
122
|
+
export declare class CognitoIdentityPool extends Component implements Link.Linkable {
|
|
123
|
+
private identityPool;
|
|
124
|
+
private authRole;
|
|
125
|
+
private unauthRole;
|
|
126
|
+
constructor(name: string, args?: CognitoIdentityPoolArgs, opts?: ComponentResourceOptions);
|
|
127
|
+
/**
|
|
128
|
+
* The Cognito identity pool ID.
|
|
129
|
+
*/
|
|
130
|
+
get id(): $util.Output<string>;
|
|
131
|
+
/**
|
|
132
|
+
* The underlying [resources](/docs/components/#nodes) this component creates.
|
|
133
|
+
*/
|
|
134
|
+
get nodes(): {
|
|
135
|
+
/**
|
|
136
|
+
* The Amazon Cognito identity pool.
|
|
137
|
+
*/
|
|
138
|
+
identityPool: import("@pulumi/aws/cognito/identityPool").IdentityPool;
|
|
139
|
+
/**
|
|
140
|
+
* The authenticated IAM role.
|
|
141
|
+
*/
|
|
142
|
+
authenticatedRole: import("@pulumi/aws/iam/role").Role;
|
|
143
|
+
/**
|
|
144
|
+
* The unauthenticated IAM role.
|
|
145
|
+
*/
|
|
146
|
+
unauthenticatedRole: import("@pulumi/aws/iam/role").Role;
|
|
147
|
+
};
|
|
148
|
+
/** @internal */
|
|
149
|
+
getSSTLink(): {
|
|
150
|
+
properties: {
|
|
151
|
+
id: $util.Output<string>;
|
|
152
|
+
};
|
|
153
|
+
include: {
|
|
154
|
+
effect?: "allow" | "deny" | undefined;
|
|
155
|
+
actions: string[];
|
|
156
|
+
resources: Input<Input<string>[]>;
|
|
157
|
+
type: "aws.permission";
|
|
158
|
+
}[];
|
|
159
|
+
};
|
|
160
|
+
/**
|
|
161
|
+
* Reference an existing Identity Pool with the given ID. This is useful when you
|
|
162
|
+
* create a Identity Pool in one stage and want to share it in another. It avoids having to
|
|
163
|
+
* create a new Identity Pool in the other stage.
|
|
164
|
+
*
|
|
165
|
+
* :::tip
|
|
166
|
+
* You can use the `static get` method to share Identity Pools across stages.
|
|
167
|
+
* :::
|
|
168
|
+
*
|
|
169
|
+
* @param name The name of the component.
|
|
170
|
+
* @param identityPoolID The ID of the existing Identity Pool.
|
|
171
|
+
* @param opts? Resource options.
|
|
172
|
+
*
|
|
173
|
+
* @example
|
|
174
|
+
* Imagine you create a Identity Pool in the `dev` stage. And in your personal stage `frank`,
|
|
175
|
+
* instead of creating a new pool, you want to share the same pool from `dev`.
|
|
176
|
+
*
|
|
177
|
+
* ```ts title="sst.config.ts"
|
|
178
|
+
* const identityPool = $app.stage === "frank"
|
|
179
|
+
* ? sst.aws.CognitoIdentityPool.get("MyIdentityPool", "us-east-1:02facf30-e2f3-49ec-9e79-c55187415cf8")
|
|
180
|
+
* : new sst.aws.CognitoIdentityPool("MyIdentityPool");
|
|
181
|
+
* ```
|
|
182
|
+
*
|
|
183
|
+
* Here `us-east-1:02facf30-e2f3-49ec-9e79-c55187415cf8` is the ID of the Identity Pool created in the `dev` stage.
|
|
184
|
+
* You can find this by outputting the Identity Pool ID in the `dev` stage.
|
|
185
|
+
*
|
|
186
|
+
* ```ts title="sst.config.ts"
|
|
187
|
+
* return {
|
|
188
|
+
* identityPool: identityPool.id
|
|
189
|
+
* };
|
|
190
|
+
* ```
|
|
191
|
+
*/
|
|
192
|
+
static get(name: string, identityPoolID: Input<string>, opts?: ComponentResourceOptions): CognitoIdentityPool;
|
|
193
|
+
}
|
|
194
|
+
//# sourceMappingURL=cognito-identity-pool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cognito-identity-pool.d.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