@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,749 @@
|
|
|
1
|
+
import { all, interpolate, output, } from "@pulumi/pulumi";
|
|
2
|
+
import { Component, outputId, transform, } from "../component";
|
|
3
|
+
import { hashStringToPrettyString, physicalName, logicalName } from "../naming";
|
|
4
|
+
import { VisibleError } from "../error";
|
|
5
|
+
import { RETENTION } from "./logging";
|
|
6
|
+
import { ApiGatewayV1LambdaRoute } from "./apigatewayv1-lambda-route";
|
|
7
|
+
import { ApiGatewayV1Authorizer } from "./apigatewayv1-authorizer";
|
|
8
|
+
import { setupApiGatewayAccount } from "./helpers/apigateway-account";
|
|
9
|
+
import { apigateway, cloudwatch, getRegionOutput } from "@pulumi/aws";
|
|
10
|
+
import { dns as awsDns } from "./dns";
|
|
11
|
+
import { DnsValidatedCertificate } from "./dns-validated-certificate";
|
|
12
|
+
import { ApiGatewayV1IntegrationRoute } from "./apigatewayv1-integration-route";
|
|
13
|
+
import { ApiGatewayV1UsagePlan } from "./apigatewayv1-usage-plan";
|
|
14
|
+
import { useProvider } from "./helpers/provider";
|
|
15
|
+
/**
|
|
16
|
+
* The `ApiGatewayV1` component lets you add an [Amazon API Gateway REST API](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-rest-api.html) to your app.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
*
|
|
20
|
+
* #### Create the API
|
|
21
|
+
*
|
|
22
|
+
* ```ts title="sst.config.ts"
|
|
23
|
+
* const api = new sst.aws.ApiGatewayV1("MyApi");
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* #### Add routes
|
|
27
|
+
*
|
|
28
|
+
* ```ts title="sst.config.ts"
|
|
29
|
+
* api.route("GET /", "src/get.handler");
|
|
30
|
+
* api.route("POST /", "src/post.handler");
|
|
31
|
+
*
|
|
32
|
+
* api.deploy();
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* :::note
|
|
36
|
+
* You need to call `deploy` after you've added all your routes.
|
|
37
|
+
* :::
|
|
38
|
+
*
|
|
39
|
+
* #### Configure the routes
|
|
40
|
+
*
|
|
41
|
+
* ```ts title="sst.config.ts"
|
|
42
|
+
* api.route("GET /", "src/get.handler", {
|
|
43
|
+
* auth: { iam: true }
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* #### Configure the route handler
|
|
48
|
+
*
|
|
49
|
+
* You can configure the Lambda function that'll handle the route.
|
|
50
|
+
*
|
|
51
|
+
* ```ts title="sst.config.ts"
|
|
52
|
+
* api.route("POST /", {
|
|
53
|
+
* handler: "src/post.handler",
|
|
54
|
+
* memory: "2048 MB"
|
|
55
|
+
* });
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* #### Default props for all routes
|
|
59
|
+
*
|
|
60
|
+
* You can use a `transform` to set some default props for all your routes. For
|
|
61
|
+
* example, instead of setting the `memory` for each route.
|
|
62
|
+
*
|
|
63
|
+
* ```ts title="sst.config.ts"
|
|
64
|
+
* api.route("GET /", { handler: "src/get.handler", memory: "2048 MB" });
|
|
65
|
+
* api.route("POST /", { handler: "src/post.handler", memory: "2048 MB" });
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
68
|
+
* You can set it through the `transform`.
|
|
69
|
+
*
|
|
70
|
+
* ```ts title="sst.config.ts" {6}
|
|
71
|
+
* const api = new sst.aws.ApiGatewayV1("MyApi", {
|
|
72
|
+
* transform: {
|
|
73
|
+
* route: {
|
|
74
|
+
* handler: (args, opts) => {
|
|
75
|
+
* // Set the default if it's not set by the route
|
|
76
|
+
* args.memory ??= "2048 MB";
|
|
77
|
+
* }
|
|
78
|
+
* }
|
|
79
|
+
* }
|
|
80
|
+
* });
|
|
81
|
+
*
|
|
82
|
+
* api.route("GET /", "src/get.handler");
|
|
83
|
+
* api.route("POST /", "src/post.handler");
|
|
84
|
+
* ```
|
|
85
|
+
*
|
|
86
|
+
* With this we set the `memory` if it's not overridden by the route.
|
|
87
|
+
*/
|
|
88
|
+
export class ApiGatewayV1 extends Component {
|
|
89
|
+
constructor(name, args = {}, opts = {}) {
|
|
90
|
+
super(__pulumiType, name, args, opts);
|
|
91
|
+
this.resources = {};
|
|
92
|
+
this.routes = [];
|
|
93
|
+
this.deployed = false;
|
|
94
|
+
const parent = this;
|
|
95
|
+
const region = normalizeRegion();
|
|
96
|
+
const endpoint = normalizeEndpoint();
|
|
97
|
+
const apigAccount = setupApiGatewayAccount(name, opts);
|
|
98
|
+
const api = createApi();
|
|
99
|
+
this.resources["/"] = api.rootResourceId;
|
|
100
|
+
this.constructorName = name;
|
|
101
|
+
this.constructorArgs = args;
|
|
102
|
+
this.constructorOpts = opts;
|
|
103
|
+
this.api = api;
|
|
104
|
+
this.region = region;
|
|
105
|
+
this.endpointType = endpoint.types;
|
|
106
|
+
function normalizeRegion() {
|
|
107
|
+
return getRegionOutput(undefined, { parent }).name;
|
|
108
|
+
}
|
|
109
|
+
function normalizeEndpoint() {
|
|
110
|
+
return output(args.endpoint).apply((endpoint) => {
|
|
111
|
+
if (!endpoint)
|
|
112
|
+
return { types: "EDGE" };
|
|
113
|
+
if (endpoint.type === "private" && !endpoint.vpcEndpointIds)
|
|
114
|
+
throw new VisibleError("Please provide the VPC endpoint IDs for the private endpoint.");
|
|
115
|
+
return endpoint.type === "regional"
|
|
116
|
+
? { types: "REGIONAL" }
|
|
117
|
+
: endpoint.type === "private"
|
|
118
|
+
? {
|
|
119
|
+
types: "PRIVATE",
|
|
120
|
+
vpcEndpointIds: endpoint.vpcEndpointIds,
|
|
121
|
+
}
|
|
122
|
+
: { types: "EDGE" };
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
function createApi() {
|
|
126
|
+
var _a;
|
|
127
|
+
return new apigateway.RestApi(...transform((_a = args.transform) === null || _a === void 0 ? void 0 : _a.api, `${name}Api`, {
|
|
128
|
+
endpointConfiguration: endpoint,
|
|
129
|
+
}, { parent, dependsOn: apigAccount }));
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* The URL of the API.
|
|
134
|
+
*/
|
|
135
|
+
get url() {
|
|
136
|
+
return this.apigDomain && this.apiMapping
|
|
137
|
+
? all([this.apigDomain.domainName, this.apiMapping.basePath]).apply(([domain, key]) => key ? `https://${domain}/${key}/` : `https://${domain}`)
|
|
138
|
+
: interpolate `https://${this.api.id}.execute-api.${this.region}.amazonaws.com/${$app.stage}/`;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* The underlying [resources](/docs/components/#nodes) this component creates.
|
|
142
|
+
*/
|
|
143
|
+
get nodes() {
|
|
144
|
+
const self = this;
|
|
145
|
+
return {
|
|
146
|
+
/**
|
|
147
|
+
* The Amazon API Gateway REST API
|
|
148
|
+
*/
|
|
149
|
+
api: this.api,
|
|
150
|
+
/**
|
|
151
|
+
* The Amazon API Gateway REST API stage
|
|
152
|
+
*/
|
|
153
|
+
stage: this.stage,
|
|
154
|
+
/**
|
|
155
|
+
* The CloudWatch LogGroup for the access logs.
|
|
156
|
+
*/
|
|
157
|
+
logGroup: this.logGroup,
|
|
158
|
+
/**
|
|
159
|
+
* The API Gateway REST API domain name.
|
|
160
|
+
*/
|
|
161
|
+
get domainName() {
|
|
162
|
+
if (!self.deployed)
|
|
163
|
+
throw new VisibleError(`"nodes.domainName" is not available before the "${self.constructorName}" API is deployed.`);
|
|
164
|
+
if (!self.apigDomain)
|
|
165
|
+
throw new VisibleError(`"nodes.domainName" is not available when domain is not configured for the "${self.constructorName}" API.`);
|
|
166
|
+
return self.apigDomain;
|
|
167
|
+
},
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Add a route to the API Gateway REST API. The route is a combination of an HTTP method and a path, `{METHOD} /{path}`.
|
|
172
|
+
*
|
|
173
|
+
* A method could be one of `GET`, `POST`, `PUT`, `DELETE`, `PATCH`, `HEAD`, `OPTIONS`, or `ANY`. Here `ANY` matches any HTTP method.
|
|
174
|
+
*
|
|
175
|
+
* The path can be a combination of
|
|
176
|
+
* - Literal segments, `/notes`, `/notes/new`, etc.
|
|
177
|
+
* - Parameter segments, `/notes/{noteId}`, `/notes/{noteId}/attachments/{attachmentId}`, etc.
|
|
178
|
+
* - Greedy segments, `/{proxy+}`, `/notes/{proxy+}`, etc. The `{proxy+}` segment is a greedy segment that matches all child paths. It needs to be at the end of the path.
|
|
179
|
+
*
|
|
180
|
+
* :::tip
|
|
181
|
+
* The `{proxy+}` is a greedy segment, it matches all its child paths.
|
|
182
|
+
* :::
|
|
183
|
+
*
|
|
184
|
+
* When a request comes in, the API Gateway will look for the most specific match.
|
|
185
|
+
*
|
|
186
|
+
* :::note
|
|
187
|
+
* You cannot have duplicate routes.
|
|
188
|
+
* :::
|
|
189
|
+
*
|
|
190
|
+
* @param route The path for the route.
|
|
191
|
+
* @param handler The function that'll be invoked.
|
|
192
|
+
* @param args Configure the route.
|
|
193
|
+
*
|
|
194
|
+
* @example
|
|
195
|
+
* Add a simple route.
|
|
196
|
+
*
|
|
197
|
+
* ```js title="sst.config.ts"
|
|
198
|
+
* api.route("GET /", "src/get.handler");
|
|
199
|
+
* ```
|
|
200
|
+
*
|
|
201
|
+
* Match any HTTP method.
|
|
202
|
+
*
|
|
203
|
+
* ```js title="sst.config.ts"
|
|
204
|
+
* api.route("ANY /", "src/route.handler");
|
|
205
|
+
* ```
|
|
206
|
+
*
|
|
207
|
+
* Add a default or fallback route. Here for every request other than `GET /hi`,
|
|
208
|
+
* the `default.handler` function will be invoked.
|
|
209
|
+
*
|
|
210
|
+
* ```js title="sst.config.ts"
|
|
211
|
+
* api.route("GET /hi", "src/get.handler");
|
|
212
|
+
*
|
|
213
|
+
* api.route("ANY /", "src/default.handler");
|
|
214
|
+
* api.route("ANY /{proxy+}", "src/default.handler");
|
|
215
|
+
* ```
|
|
216
|
+
*
|
|
217
|
+
* The `/{proxy+}` matches any path that starts with `/`, so if you want a
|
|
218
|
+
* fallback route for the root `/` path, you need to add a `ANY /` route as well.
|
|
219
|
+
*
|
|
220
|
+
* Add a parameterized route.
|
|
221
|
+
*
|
|
222
|
+
* ```js title="sst.config.ts"
|
|
223
|
+
* api.route("GET /notes/{id}", "src/get.handler");
|
|
224
|
+
* ```
|
|
225
|
+
*
|
|
226
|
+
* Add a greedy route.
|
|
227
|
+
*
|
|
228
|
+
* ```js title="sst.config.ts"
|
|
229
|
+
* api.route("GET /notes/{proxy+}", "src/greedy.handler");
|
|
230
|
+
* ```
|
|
231
|
+
*
|
|
232
|
+
* Enable auth for a route.
|
|
233
|
+
*
|
|
234
|
+
* ```js title="sst.config.ts"
|
|
235
|
+
* api.route("GET /", "src/get.handler")
|
|
236
|
+
* api.route("POST /", "src/post.handler", {
|
|
237
|
+
* auth: {
|
|
238
|
+
* iam: true
|
|
239
|
+
* }
|
|
240
|
+
* });
|
|
241
|
+
* ```
|
|
242
|
+
*
|
|
243
|
+
* Customize the route handler.
|
|
244
|
+
*
|
|
245
|
+
* ```js title="sst.config.ts"
|
|
246
|
+
* api.route("GET /", {
|
|
247
|
+
* handler: "src/get.handler",
|
|
248
|
+
* memory: "2048 MB"
|
|
249
|
+
* });
|
|
250
|
+
* ```
|
|
251
|
+
*
|
|
252
|
+
* Or pass in the ARN of an existing Lambda function.
|
|
253
|
+
*
|
|
254
|
+
* ```js title="sst.config.ts"
|
|
255
|
+
* api.route("GET /", "arn:aws:lambda:us-east-1:123456789012:function:my-function");
|
|
256
|
+
* ```
|
|
257
|
+
*/
|
|
258
|
+
route(route, handler, args = {}) {
|
|
259
|
+
var _a, _b, _c, _d;
|
|
260
|
+
const { method, path } = this.parseRoute(route);
|
|
261
|
+
this.createResource(path);
|
|
262
|
+
const transformed = transform((_b = (_a = this.constructorArgs.transform) === null || _a === void 0 ? void 0 : _a.route) === null || _b === void 0 ? void 0 : _b.args, this.buildRouteId(method, path), args, { provider: this.constructorOpts.provider });
|
|
263
|
+
const apigRoute = new ApiGatewayV1LambdaRoute(transformed[0], Object.assign({ api: {
|
|
264
|
+
name: this.constructorName,
|
|
265
|
+
id: this.api.id,
|
|
266
|
+
executionArn: this.api.executionArn,
|
|
267
|
+
}, method,
|
|
268
|
+
path, resourceId: this.resources[path], handler, handlerTransform: (_d = (_c = this.constructorArgs.transform) === null || _c === void 0 ? void 0 : _c.route) === null || _d === void 0 ? void 0 : _d.handler }, transformed[1]), transformed[2]);
|
|
269
|
+
this.routes.push(apigRoute);
|
|
270
|
+
return apigRoute;
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Add a custom integration to the API Gateway REST API. [Learn more about
|
|
274
|
+
* integrations](https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-integration-settings.html).
|
|
275
|
+
*
|
|
276
|
+
* @param route The path for the route.
|
|
277
|
+
* @param integration The integration configuration.
|
|
278
|
+
* @param args Configure the route.
|
|
279
|
+
*
|
|
280
|
+
* @example
|
|
281
|
+
* Add a route to trigger a Step Function state machine execution.
|
|
282
|
+
*
|
|
283
|
+
* ```js title="sst.config.ts"
|
|
284
|
+
* api.routeIntegration("POST /run-my-state-machine", {
|
|
285
|
+
* type: "aws",
|
|
286
|
+
* uri: "arn:aws:apigateway:us-east-1:states:startExecution",
|
|
287
|
+
* credentials: "arn:aws:iam::123456789012:role/apigateway-execution-role",
|
|
288
|
+
* integrationHttpMethod: "POST",
|
|
289
|
+
* requestTemplates: {
|
|
290
|
+
* "application/json": JSON.stringify({
|
|
291
|
+
* input: "$input.json('$')",
|
|
292
|
+
* stateMachineArn: "arn:aws:states:us-east-1:123456789012:stateMachine:MyStateMachine"
|
|
293
|
+
* })
|
|
294
|
+
* },
|
|
295
|
+
* passthroughBehavior: "when-no-match"
|
|
296
|
+
* });
|
|
297
|
+
* ```
|
|
298
|
+
*/
|
|
299
|
+
routeIntegration(route, integration, args = {}) {
|
|
300
|
+
var _a, _b;
|
|
301
|
+
const { method, path } = this.parseRoute(route);
|
|
302
|
+
this.createResource(path);
|
|
303
|
+
const transformed = transform((_b = (_a = this.constructorArgs.transform) === null || _a === void 0 ? void 0 : _a.route) === null || _b === void 0 ? void 0 : _b.args, this.buildRouteId(method, path), args, { provider: this.constructorOpts.provider });
|
|
304
|
+
const apigRoute = new ApiGatewayV1IntegrationRoute(transformed[0], Object.assign({ api: {
|
|
305
|
+
name: this.constructorName,
|
|
306
|
+
id: this.api.id,
|
|
307
|
+
executionArn: this.api.executionArn,
|
|
308
|
+
}, method,
|
|
309
|
+
path, resourceId: this.resources[path], integration }, transformed[1]), transformed[2]);
|
|
310
|
+
this.routes.push(apigRoute);
|
|
311
|
+
return apigRoute;
|
|
312
|
+
}
|
|
313
|
+
parseRoute(route) {
|
|
314
|
+
const parts = route.split(" ");
|
|
315
|
+
if (parts.length !== 2) {
|
|
316
|
+
throw new VisibleError(`Invalid route ${route}. A route must be in the format "METHOD /path".`);
|
|
317
|
+
}
|
|
318
|
+
const [methodRaw, path] = route.split(" ");
|
|
319
|
+
const method = methodRaw.toUpperCase();
|
|
320
|
+
if (![
|
|
321
|
+
"ANY",
|
|
322
|
+
"DELETE",
|
|
323
|
+
"GET",
|
|
324
|
+
"HEAD",
|
|
325
|
+
"OPTIONS",
|
|
326
|
+
"PATCH",
|
|
327
|
+
"POST",
|
|
328
|
+
"PUT",
|
|
329
|
+
].includes(method))
|
|
330
|
+
throw new VisibleError(`Invalid method ${methodRaw} in route ${route}`);
|
|
331
|
+
if (!path.startsWith("/"))
|
|
332
|
+
throw new VisibleError(`Invalid path ${path} in route ${route}. Path must start with "/".`);
|
|
333
|
+
return { method, path };
|
|
334
|
+
}
|
|
335
|
+
buildRouteId(method, path) {
|
|
336
|
+
const suffix = logicalName(hashStringToPrettyString([outputId, method, path].join(""), 6));
|
|
337
|
+
return `${this.constructorName}Route${suffix}`;
|
|
338
|
+
}
|
|
339
|
+
createResource(path) {
|
|
340
|
+
const pathParts = path.replace(/^\//, "").split("/");
|
|
341
|
+
for (let i = 0, l = pathParts.length; i < l; i++) {
|
|
342
|
+
const parentPath = "/" + pathParts.slice(0, i).join("/");
|
|
343
|
+
const subPath = "/" + pathParts.slice(0, i + 1).join("/");
|
|
344
|
+
if (!this.resources[subPath]) {
|
|
345
|
+
const suffix = logicalName(hashStringToPrettyString([this.api.id, subPath].join(""), 6));
|
|
346
|
+
const resource = new apigateway.Resource(`${this.constructorName}Resource${suffix}`, {
|
|
347
|
+
restApi: this.api.id,
|
|
348
|
+
parentId: parentPath === "/"
|
|
349
|
+
? this.api.rootResourceId
|
|
350
|
+
: this.resources[parentPath],
|
|
351
|
+
pathPart: pathParts[i],
|
|
352
|
+
}, { parent: this });
|
|
353
|
+
this.resources[subPath] = resource.id;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* Add an authorizer to the API Gateway REST API.
|
|
359
|
+
*
|
|
360
|
+
* @param args Configure the authorizer.
|
|
361
|
+
* @example
|
|
362
|
+
* For example, add a Lambda token authorizer.
|
|
363
|
+
*
|
|
364
|
+
* ```js title="sst.config.ts"
|
|
365
|
+
* api.addAuthorizer({
|
|
366
|
+
* name: "myAuthorizer",
|
|
367
|
+
* tokenFunction: "src/authorizer.index"
|
|
368
|
+
* });
|
|
369
|
+
* ```
|
|
370
|
+
*
|
|
371
|
+
* Add a Lambda REQUEST authorizer.
|
|
372
|
+
*
|
|
373
|
+
* ```js title="sst.config.ts"
|
|
374
|
+
* api.addAuthorizer({
|
|
375
|
+
* name: "myAuthorizer",
|
|
376
|
+
* requestFunction: "src/authorizer.index"
|
|
377
|
+
* });
|
|
378
|
+
* ```
|
|
379
|
+
*
|
|
380
|
+
* Add a Cognito User Pool authorizer.
|
|
381
|
+
*
|
|
382
|
+
* ```js title="sst.config.ts"
|
|
383
|
+
* const userPool = new aws.cognito.UserPool();
|
|
384
|
+
*
|
|
385
|
+
* api.addAuthorizer({
|
|
386
|
+
* name: "myAuthorizer",
|
|
387
|
+
* userPools: [userPool.arn]
|
|
388
|
+
* });
|
|
389
|
+
* ```
|
|
390
|
+
*
|
|
391
|
+
* You can also customize the authorizer.
|
|
392
|
+
*
|
|
393
|
+
* ```js title="sst.config.ts"
|
|
394
|
+
* api.addAuthorizer({
|
|
395
|
+
* name: "myAuthorizer",
|
|
396
|
+
* tokenFunction: "src/authorizer.index",
|
|
397
|
+
* ttl: 30
|
|
398
|
+
* });
|
|
399
|
+
* ```
|
|
400
|
+
*/
|
|
401
|
+
addAuthorizer(args) {
|
|
402
|
+
const self = this;
|
|
403
|
+
const selfName = this.constructorName;
|
|
404
|
+
const nameSuffix = logicalName(args.name);
|
|
405
|
+
return new ApiGatewayV1Authorizer(`${selfName}Authorizer${nameSuffix}`, Object.assign({ api: {
|
|
406
|
+
id: self.api.id,
|
|
407
|
+
name: selfName,
|
|
408
|
+
executionArn: self.api.executionArn,
|
|
409
|
+
} }, args), { provider: this.constructorOpts.provider });
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* Add a usage plan to the API Gateway REST API.
|
|
413
|
+
*
|
|
414
|
+
* @param name The name of the usage plan.
|
|
415
|
+
* @param args Configure the usage plan.
|
|
416
|
+
* @example
|
|
417
|
+
*
|
|
418
|
+
* To add a usage plan to an API, you need to enable the API key for a route, and
|
|
419
|
+
* then deploy the API.
|
|
420
|
+
*
|
|
421
|
+
* ```ts title="sst.config.ts" {4}
|
|
422
|
+
* const api = new sst.aws.ApiGatewayV1("MyApi");
|
|
423
|
+
*
|
|
424
|
+
* api.route("GET /", "src/get.handler", {
|
|
425
|
+
* apiKey: true
|
|
426
|
+
* });
|
|
427
|
+
*
|
|
428
|
+
* api.deploy();
|
|
429
|
+
* ```
|
|
430
|
+
*
|
|
431
|
+
* Then define your usage plan.
|
|
432
|
+
*
|
|
433
|
+
* ```js title="sst.config.ts"
|
|
434
|
+
* const plan = api.addUsagePlan("MyPlan", {
|
|
435
|
+
* throttle: {
|
|
436
|
+
* rate: 100,
|
|
437
|
+
* burst: 200
|
|
438
|
+
* },
|
|
439
|
+
* quota: {
|
|
440
|
+
* limit: 1000,
|
|
441
|
+
* period: "month",
|
|
442
|
+
* offset: 0
|
|
443
|
+
* }
|
|
444
|
+
* });
|
|
445
|
+
* ```
|
|
446
|
+
*
|
|
447
|
+
* And create the API key for the plan.
|
|
448
|
+
*
|
|
449
|
+
* ```js title="sst.config.ts"
|
|
450
|
+
* const key = plan.addApiKey("MyKey");
|
|
451
|
+
* ```
|
|
452
|
+
*
|
|
453
|
+
* You can now link the API and API key to other resources, like a function.
|
|
454
|
+
*
|
|
455
|
+
* ```ts title="sst.config.ts"
|
|
456
|
+
* new sst.aws.Function("MyFunction", {
|
|
457
|
+
* handler: "src/lambda.handler",
|
|
458
|
+
* link: [api, key]
|
|
459
|
+
* });
|
|
460
|
+
* ```
|
|
461
|
+
*
|
|
462
|
+
* Once linked, include the key in the `x-api-key` header with your requests.
|
|
463
|
+
*
|
|
464
|
+
* ```ts title="src/lambda.ts"
|
|
465
|
+
* import { Resource } from "sst";
|
|
466
|
+
*
|
|
467
|
+
* await fetch(Resource.MyApi.url, {
|
|
468
|
+
* headers: {
|
|
469
|
+
* "x-api-key": Resource.MyKey.value
|
|
470
|
+
* }
|
|
471
|
+
* });
|
|
472
|
+
* ```
|
|
473
|
+
*/
|
|
474
|
+
addUsagePlan(name, args) {
|
|
475
|
+
if (!this.stage)
|
|
476
|
+
throw new VisibleError(`Cannot add a usage plan to the "${this.constructorName}" API before it's deployed. Make sure to call deploy() to deploy the API first.`);
|
|
477
|
+
return new ApiGatewayV1UsagePlan(name, Object.assign({ apiId: this.api.id, apiStage: this.stage.stageName }, args), { provider: this.constructorOpts.provider });
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* Creates a deployment for the API Gateway REST API.
|
|
481
|
+
*
|
|
482
|
+
* :::caution
|
|
483
|
+
* Your routes won't be added if `deploy` isn't called.
|
|
484
|
+
* :::
|
|
485
|
+
*
|
|
486
|
+
* Your routes won't be added if this isn't called after you've added them. This
|
|
487
|
+
* is due to a quirk in the way API Gateway V1 is created internally.
|
|
488
|
+
*/
|
|
489
|
+
deploy() {
|
|
490
|
+
const name = this.constructorName;
|
|
491
|
+
const args = this.constructorArgs;
|
|
492
|
+
const parent = this;
|
|
493
|
+
const api = this.api;
|
|
494
|
+
const routes = this.routes;
|
|
495
|
+
const region = this.region;
|
|
496
|
+
const endpointType = this.endpointType;
|
|
497
|
+
const accessLog = normalizeAccessLog();
|
|
498
|
+
const domain = normalizeDomain();
|
|
499
|
+
const corsRoutes = createCorsRoutes();
|
|
500
|
+
const corsResponses = createCorsResponses();
|
|
501
|
+
const deployment = createDeployment();
|
|
502
|
+
const logGroup = createLogGroup();
|
|
503
|
+
const stage = createStage();
|
|
504
|
+
const certificateArn = createSsl();
|
|
505
|
+
const apigDomain = createDomainName();
|
|
506
|
+
createDnsRecords();
|
|
507
|
+
const apiMapping = createDomainMapping();
|
|
508
|
+
this.deployed = true;
|
|
509
|
+
this.logGroup = logGroup;
|
|
510
|
+
this.stage = stage;
|
|
511
|
+
this.apigDomain = apigDomain;
|
|
512
|
+
this.apiMapping = apiMapping;
|
|
513
|
+
this.registerOutputs({
|
|
514
|
+
_hint: this.url,
|
|
515
|
+
});
|
|
516
|
+
function normalizeAccessLog() {
|
|
517
|
+
return output(args.accessLog).apply((accessLog) => {
|
|
518
|
+
var _a;
|
|
519
|
+
return (Object.assign(Object.assign({}, accessLog), { retention: (_a = accessLog === null || accessLog === void 0 ? void 0 : accessLog.retention) !== null && _a !== void 0 ? _a : "1 month" }));
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
function normalizeDomain() {
|
|
523
|
+
if (!args.domain)
|
|
524
|
+
return;
|
|
525
|
+
return output(args.domain).apply((domain) => {
|
|
526
|
+
var _a;
|
|
527
|
+
// validate
|
|
528
|
+
if (typeof domain !== "string") {
|
|
529
|
+
if (domain.name && domain.nameId)
|
|
530
|
+
throw new VisibleError(`Cannot configure both domain "name" and "nameId" for the "${name}" API.`);
|
|
531
|
+
if (!domain.name && !domain.nameId)
|
|
532
|
+
throw new VisibleError(`Either domain "name" or "nameId" is required for the "${name}" API.`);
|
|
533
|
+
if (domain.dns === false && !domain.cert)
|
|
534
|
+
throw new VisibleError(`Domain "cert" is required when "dns" is disabled for the "${name}" API.`);
|
|
535
|
+
}
|
|
536
|
+
// normalize
|
|
537
|
+
const norm = typeof domain === "string" ? { name: domain } : domain;
|
|
538
|
+
return {
|
|
539
|
+
name: norm.name,
|
|
540
|
+
nameId: norm.nameId,
|
|
541
|
+
path: norm.path,
|
|
542
|
+
dns: norm.dns === false ? undefined : (_a = norm.dns) !== null && _a !== void 0 ? _a : awsDns(),
|
|
543
|
+
cert: norm.cert,
|
|
544
|
+
};
|
|
545
|
+
});
|
|
546
|
+
}
|
|
547
|
+
function createCorsRoutes() {
|
|
548
|
+
const resourceIds = routes.map((route) => route.nodes.integration.resourceId);
|
|
549
|
+
return all([args.cors, resourceIds]).apply(([cors, resourceIds]) => {
|
|
550
|
+
if (cors === false)
|
|
551
|
+
return [];
|
|
552
|
+
// filter unique resource ids
|
|
553
|
+
const uniqueResourceIds = [...new Set(resourceIds)];
|
|
554
|
+
// create cors integrations for the paths
|
|
555
|
+
return uniqueResourceIds.map((resourceId) => {
|
|
556
|
+
const method = new apigateway.Method(`${name}CorsMethod${resourceId}`, {
|
|
557
|
+
restApi: api.id,
|
|
558
|
+
resourceId,
|
|
559
|
+
httpMethod: "OPTIONS",
|
|
560
|
+
authorization: "NONE",
|
|
561
|
+
}, { parent });
|
|
562
|
+
const methodResponse = new apigateway.MethodResponse(`${name}CorsMethodResponse${resourceId}`, {
|
|
563
|
+
restApi: api.id,
|
|
564
|
+
resourceId,
|
|
565
|
+
httpMethod: method.httpMethod,
|
|
566
|
+
statusCode: "204",
|
|
567
|
+
responseParameters: {
|
|
568
|
+
"method.response.header.Access-Control-Allow-Headers": true,
|
|
569
|
+
"method.response.header.Access-Control-Allow-Methods": true,
|
|
570
|
+
"method.response.header.Access-Control-Allow-Origin": true,
|
|
571
|
+
},
|
|
572
|
+
}, { parent });
|
|
573
|
+
const integration = new apigateway.Integration(`${name}CorsIntegration${resourceId}`, {
|
|
574
|
+
restApi: api.id,
|
|
575
|
+
resourceId,
|
|
576
|
+
httpMethod: method.httpMethod,
|
|
577
|
+
type: "MOCK",
|
|
578
|
+
requestTemplates: {
|
|
579
|
+
"application/json": "{ statusCode: 200 }",
|
|
580
|
+
},
|
|
581
|
+
}, { parent });
|
|
582
|
+
const integrationResponse = new apigateway.IntegrationResponse(`${name}CorsIntegrationResponse${resourceId}`, {
|
|
583
|
+
restApi: api.id,
|
|
584
|
+
resourceId,
|
|
585
|
+
httpMethod: method.httpMethod,
|
|
586
|
+
statusCode: methodResponse.statusCode,
|
|
587
|
+
responseParameters: {
|
|
588
|
+
"method.response.header.Access-Control-Allow-Headers": "'*'",
|
|
589
|
+
"method.response.header.Access-Control-Allow-Methods": "'OPTIONS,GET,PUT,POST,DELETE,PATCH,HEAD'",
|
|
590
|
+
"method.response.header.Access-Control-Allow-Origin": "'*'",
|
|
591
|
+
},
|
|
592
|
+
}, { parent, dependsOn: [integration] });
|
|
593
|
+
return { method, methodResponse, integration, integrationResponse };
|
|
594
|
+
});
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
function createCorsResponses() {
|
|
598
|
+
return output(args.cors).apply((cors) => {
|
|
599
|
+
if (cors === false)
|
|
600
|
+
return [];
|
|
601
|
+
return ["4XX", "5XX"].map((type) => new apigateway.Response(`${name}Cors${type}Response`, {
|
|
602
|
+
restApiId: api.id,
|
|
603
|
+
responseType: `DEFAULT_${type}`,
|
|
604
|
+
responseParameters: {
|
|
605
|
+
"gatewayresponse.header.Access-Control-Allow-Origin": "'*'",
|
|
606
|
+
"gatewayresponse.header.Access-Control-Allow-Headers": "'*'",
|
|
607
|
+
},
|
|
608
|
+
responseTemplates: {
|
|
609
|
+
"application/json": '{"message":$context.error.messageString}',
|
|
610
|
+
},
|
|
611
|
+
}, { parent }));
|
|
612
|
+
});
|
|
613
|
+
}
|
|
614
|
+
function createDeployment() {
|
|
615
|
+
var _a;
|
|
616
|
+
const resources = all([corsRoutes, corsResponses]).apply(([corsRoutes, corsResponses]) => [
|
|
617
|
+
api,
|
|
618
|
+
corsRoutes.map((v) => Object.values(v)),
|
|
619
|
+
corsResponses,
|
|
620
|
+
routes.map((route) => [
|
|
621
|
+
route.nodes.integration,
|
|
622
|
+
route.nodes.method,
|
|
623
|
+
]),
|
|
624
|
+
].flat(3));
|
|
625
|
+
// filter serializable output values
|
|
626
|
+
const resourcesSanitized = all([resources]).apply(([resources]) => resources.map((resource) => Object.fromEntries(Object.entries(resource).filter(([k, v]) => !k.startsWith("_") && typeof v !== "function"))));
|
|
627
|
+
return new apigateway.Deployment(...transform((_a = args.transform) === null || _a === void 0 ? void 0 : _a.deployment, `${name}Deployment`, {
|
|
628
|
+
restApi: api.id,
|
|
629
|
+
triggers: all([resourcesSanitized]).apply(([resources]) => Object.fromEntries(resources.map((resource) => [
|
|
630
|
+
resource.urn,
|
|
631
|
+
JSON.stringify(resource),
|
|
632
|
+
]))),
|
|
633
|
+
}, { parent }));
|
|
634
|
+
}
|
|
635
|
+
function createLogGroup() {
|
|
636
|
+
var _a;
|
|
637
|
+
return new cloudwatch.LogGroup(...transform((_a = args.transform) === null || _a === void 0 ? void 0 : _a.accessLog, `${name}AccessLog`, {
|
|
638
|
+
name: `/aws/vendedlogs/apis/${physicalName(64, name)}`,
|
|
639
|
+
retentionInDays: accessLog.apply((accessLog) => RETENTION[accessLog.retention]),
|
|
640
|
+
}, { parent, ignoreChanges: ["name"] }));
|
|
641
|
+
}
|
|
642
|
+
function createStage() {
|
|
643
|
+
var _a;
|
|
644
|
+
return new apigateway.Stage(...transform((_a = args.transform) === null || _a === void 0 ? void 0 : _a.stage, `${name}Stage`, {
|
|
645
|
+
restApi: api.id,
|
|
646
|
+
stageName: $app.stage,
|
|
647
|
+
deployment: deployment.id,
|
|
648
|
+
accessLogSettings: {
|
|
649
|
+
destinationArn: logGroup.arn,
|
|
650
|
+
format: JSON.stringify({
|
|
651
|
+
// request info
|
|
652
|
+
requestTime: `"$context.requestTime"`,
|
|
653
|
+
requestId: `"$context.requestId"`,
|
|
654
|
+
httpMethod: `"$context.httpMethod"`,
|
|
655
|
+
path: `"$context.path"`,
|
|
656
|
+
resourcePath: `"$context.resourcePath"`,
|
|
657
|
+
status: `$context.status`, // integer value, do not wrap in quotes
|
|
658
|
+
responseLatency: `$context.responseLatency`, // integer value, do not wrap in quotes
|
|
659
|
+
xrayTraceId: `"$context.xrayTraceId"`,
|
|
660
|
+
// integration info
|
|
661
|
+
functionResponseStatus: `"$context.integration.status"`,
|
|
662
|
+
integrationRequestId: `"$context.integration.requestId"`,
|
|
663
|
+
integrationLatency: `"$context.integration.latency"`,
|
|
664
|
+
integrationServiceStatus: `"$context.integration.integrationStatus"`,
|
|
665
|
+
// caller info
|
|
666
|
+
ip: `"$context.identity.sourceIp"`,
|
|
667
|
+
userAgent: `"$context.identity.userAgent"`,
|
|
668
|
+
principalId: `"$context.authorizer.principalId"`,
|
|
669
|
+
}),
|
|
670
|
+
},
|
|
671
|
+
}, { parent }));
|
|
672
|
+
}
|
|
673
|
+
function createSsl() {
|
|
674
|
+
if (!domain)
|
|
675
|
+
return;
|
|
676
|
+
return all([domain, endpointType, region]).apply(([domain, endpointType, region]) => {
|
|
677
|
+
if (domain.cert)
|
|
678
|
+
return output(domain.cert);
|
|
679
|
+
if (domain.nameId)
|
|
680
|
+
return output(undefined);
|
|
681
|
+
return new DnsValidatedCertificate(`${name}Ssl`, {
|
|
682
|
+
domainName: domain.name,
|
|
683
|
+
dns: domain.dns,
|
|
684
|
+
}, {
|
|
685
|
+
parent,
|
|
686
|
+
provider: endpointType === "EDGE" && region !== "us-east-1"
|
|
687
|
+
? useProvider("us-east-1")
|
|
688
|
+
: undefined,
|
|
689
|
+
}).arn;
|
|
690
|
+
});
|
|
691
|
+
}
|
|
692
|
+
function createDomainName() {
|
|
693
|
+
if (!domain || !certificateArn)
|
|
694
|
+
return;
|
|
695
|
+
return all([domain, endpointType]).apply(([domain, endpointType]) => {
|
|
696
|
+
var _a;
|
|
697
|
+
return domain.nameId
|
|
698
|
+
? apigateway.DomainName.get(`${name}DomainName`, domain.nameId, {}, { parent })
|
|
699
|
+
: new apigateway.DomainName(...transform((_a = args.transform) === null || _a === void 0 ? void 0 : _a.domainName, `${name}DomainName`, Object.assign({ domainName: domain === null || domain === void 0 ? void 0 : domain.name, endpointConfiguration: { types: endpointType } }, (endpointType === "REGIONAL"
|
|
700
|
+
? {
|
|
701
|
+
regionalCertificateArn: certificateArn,
|
|
702
|
+
}
|
|
703
|
+
: { certificateArn: certificateArn })), { parent }));
|
|
704
|
+
});
|
|
705
|
+
}
|
|
706
|
+
function createDnsRecords() {
|
|
707
|
+
if (!domain || !apigDomain)
|
|
708
|
+
return;
|
|
709
|
+
domain.apply((domain) => {
|
|
710
|
+
if (!domain.dns)
|
|
711
|
+
return;
|
|
712
|
+
if (domain.nameId)
|
|
713
|
+
return;
|
|
714
|
+
domain.dns.createAlias(name, {
|
|
715
|
+
name: domain.name,
|
|
716
|
+
aliasName: endpointType.apply((v) => v === "EDGE"
|
|
717
|
+
? apigDomain.cloudfrontDomainName
|
|
718
|
+
: apigDomain.regionalDomainName),
|
|
719
|
+
aliasZone: endpointType.apply((v) => v === "EDGE"
|
|
720
|
+
? apigDomain.cloudfrontZoneId
|
|
721
|
+
: apigDomain.regionalZoneId),
|
|
722
|
+
}, { parent });
|
|
723
|
+
});
|
|
724
|
+
}
|
|
725
|
+
function createDomainMapping() {
|
|
726
|
+
var _a;
|
|
727
|
+
if (!domain || !apigDomain)
|
|
728
|
+
return;
|
|
729
|
+
return (_a = domain.path) === null || _a === void 0 ? void 0 : _a.apply((path) => new apigateway.BasePathMapping(`${name}DomainMapping`, {
|
|
730
|
+
restApi: api.id,
|
|
731
|
+
domainName: apigDomain.id,
|
|
732
|
+
stageName: stage.stageName,
|
|
733
|
+
basePath: path,
|
|
734
|
+
}, { parent }));
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
/** @internal */
|
|
738
|
+
getSSTLink() {
|
|
739
|
+
return {
|
|
740
|
+
properties: {
|
|
741
|
+
url: this.url,
|
|
742
|
+
},
|
|
743
|
+
};
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
const __pulumiType = "sst:aws:ApiGatewayV1";
|
|
747
|
+
// @ts-expect-error
|
|
748
|
+
ApiGatewayV1.__pulumiType = __pulumiType;
|
|
749
|
+
//# sourceMappingURL=apigatewayv1.js.map
|