monorise 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base/index.d.ts +254 -0
- package/dist/base/index.js +44 -0
- package/dist/base/index.js.map +1 -0
- package/dist/cli/cli.d.ts +1 -0
- package/dist/cli/cli.js +461 -0
- package/dist/cli/cli.js.map +1 -0
- package/dist/core/index.d.ts +4767 -0
- package/dist/core/index.js +7941 -0
- package/dist/core/index.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +11 -0
- package/dist/react/actions/app.action.d.ts +46 -0
- package/dist/react/actions/app.action.d.ts.map +1 -0
- package/dist/react/actions/auth.action.d.ts +24 -0
- package/dist/react/actions/auth.action.d.ts.map +1 -0
- package/dist/react/actions/config.action.d.ts +10 -0
- package/dist/react/actions/config.action.d.ts.map +1 -0
- package/dist/react/actions/core.action.d.ts +219 -0
- package/dist/react/actions/core.action.d.ts.map +1 -0
- package/dist/react/index.d.ts +1093 -0
- package/dist/react/index.d.ts.map +1 -0
- package/dist/react/index.js +2344 -0
- package/dist/react/index.js.map +1 -0
- package/dist/react/lib/api.d.ts +38 -0
- package/dist/react/lib/api.d.ts.map +1 -0
- package/dist/react/lib/constant.d.ts +2 -0
- package/dist/react/lib/constant.d.ts.map +1 -0
- package/dist/react/lib/entity.d.ts +10 -0
- package/dist/react/lib/entity.d.ts.map +1 -0
- package/dist/react/lib/utils.d.ts +10 -0
- package/dist/react/lib/utils.d.ts.map +1 -0
- package/dist/react/services/auth.service.d.ts +21 -0
- package/dist/react/services/auth.service.d.ts.map +1 -0
- package/dist/react/services/core.service.d.ts +76 -0
- package/dist/react/services/core.service.d.ts.map +1 -0
- package/dist/react/services/filestore.service.d.ts +22 -0
- package/dist/react/services/filestore.service.d.ts.map +1 -0
- package/dist/react/store/monorise.store.d.ts +169 -0
- package/dist/react/store/monorise.store.d.ts.map +1 -0
- package/dist/react/tsup.config.d.ts +3 -0
- package/dist/react/tsup.config.d.ts.map +1 -0
- package/dist/react/types/api.type.d.ts +30 -0
- package/dist/react/types/api.type.d.ts.map +1 -0
- package/dist/react/types/axios.type.d.ts +13 -0
- package/dist/react/types/axios.type.d.ts.map +1 -0
- package/dist/react/types/monorise.type.d.ts +8 -0
- package/dist/react/types/monorise.type.d.ts.map +1 -0
- package/dist/react/types/mutual.type.d.ts +21 -0
- package/dist/react/types/mutual.type.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/analog.d.ts +423 -0
- package/dist/sst/.sst/platform/src/components/aws/analog.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket-route.d.ts +74 -0
- package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket.d.ts +542 -0
- package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-api-key.d.ts +48 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-api-key.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-authorizer.d.ts +55 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-authorizer.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-base-route.d.ts +36 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-base-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-integration-route.d.ts +39 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-integration-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-lambda-route.d.ts +53 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-lambda-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-usage-plan.d.ts +53 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-usage-plan.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1.d.ts +1002 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-authorizer.d.ts +54 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-authorizer.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-base-route.d.ts +28 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-base-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-lambda-route.d.ts +59 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-lambda-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-private-route.d.ts +54 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-private-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-url-route.d.ts +44 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-url-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2.d.ts +931 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync-data-source.d.ts +52 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync-data-source.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync-function.d.ts +33 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync-function.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync-resolver.d.ts +41 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync-resolver.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync.d.ts +638 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/astro.d.ts +421 -0
- package/dist/sst/.sst/platform/src/components/aws/astro.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/aurora.d.ts +702 -0
- package/dist/sst/.sst/platform/src/components/aws/aurora.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/auth-v1.d.ts +26 -0
- package/dist/sst/.sst/platform/src/components/aws/auth-v1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/auth.d.ts +295 -0
- package/dist/sst/.sst/platform/src/components/aws/auth.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-lambda-subscriber.d.ts +61 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-notification.d.ts +47 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-notification.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-queue-subscriber.d.ts +55 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-queue-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-topic-subscriber.d.ts +55 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-topic-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket.d.ts +1216 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bus-base-subscriber.d.ts +20 -0
- package/dist/sst/.sst/platform/src/components/aws/bus-base-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bus-lambda-subscriber.d.ts +49 -0
- package/dist/sst/.sst/platform/src/components/aws/bus-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bus-queue-subscriber.d.ts +44 -0
- package/dist/sst/.sst/platform/src/components/aws/bus-queue-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bus.d.ts +403 -0
- package/dist/sst/.sst/platform/src/components/aws/bus.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cdn.d.ts +299 -0
- package/dist/sst/.sst/platform/src/components/aws/cdn.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cluster-v1.d.ts +882 -0
- package/dist/sst/.sst/platform/src/components/aws/cluster-v1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cluster.d.ts +306 -0
- package/dist/sst/.sst/platform/src/components/aws/cluster.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-identity-pool.d.ts +194 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-identity-pool.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-identity-provider.d.ts +38 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-identity-provider.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-user-pool-client.d.ts +50 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-user-pool-client.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-user-pool.d.ts +603 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-user-pool.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cron.d.ts +250 -0
- package/dist/sst/.sst/platform/src/components/aws/cron.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/dns-validated-certificate.d.ts +27 -0
- package/dist/sst/.sst/platform/src/components/aws/dns-validated-certificate.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/dns.d.ts +94 -0
- package/dist/sst/.sst/platform/src/components/aws/dns.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/dynamo-lambda-subscriber.d.ts +55 -0
- package/dist/sst/.sst/platform/src/components/aws/dynamo-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/dynamo.d.ts +568 -0
- package/dist/sst/.sst/platform/src/components/aws/dynamo.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/efs.d.ts +217 -0
- package/dist/sst/.sst/platform/src/components/aws/efs.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/email.d.ts +291 -0
- package/dist/sst/.sst/platform/src/components/aws/email.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/fargate.d.ts +803 -0
- package/dist/sst/.sst/platform/src/components/aws/fargate.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/function.d.ts +1629 -0
- package/dist/sst/.sst/platform/src/components/aws/function.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/apigateway-account.d.ts +3 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/apigateway-account.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/apigatewayv2-domain.d.ts +144 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/apigatewayv2-domain.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/arn.d.ts +40 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/arn.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/bootstrap.d.ts +13 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/bootstrap.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/container-builder.d.ts +4 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/container-builder.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/function-builder.d.ts +10 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/function-builder.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/provider.d.ts +3 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/provider.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/quota.d.ts +7 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/quota.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/site-builder.d.ts +4 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/site-builder.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/subscriber.d.ts +6 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/https-redirect.d.ts +38 -0
- package/dist/sst/.sst/platform/src/components/aws/https-redirect.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/iam-edit.d.ts +39 -0
- package/dist/sst/.sst/platform/src/components/aws/iam-edit.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/index.d.ts +48 -0
- package/dist/sst/.sst/platform/src/components/aws/index.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.d.ts +48 -0
- package/dist/sst/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/kinesis-stream.d.ts +249 -0
- package/dist/sst/.sst/platform/src/components/aws/kinesis-stream.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/linkable.d.ts +17 -0
- package/dist/sst/.sst/platform/src/components/aws/linkable.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/logging.d.ts +26 -0
- package/dist/sst/.sst/platform/src/components/aws/logging.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/mysql.d.ts +496 -0
- package/dist/sst/.sst/platform/src/components/aws/mysql.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/nextjs.d.ts +517 -0
- package/dist/sst/.sst/platform/src/components/aws/nextjs.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/nuxt.d.ts +495 -0
- package/dist/sst/.sst/platform/src/components/aws/nuxt.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/open-search.d.ts +295 -0
- package/dist/sst/.sst/platform/src/components/aws/open-search.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/opencontrol.d.ts +165 -0
- package/dist/sst/.sst/platform/src/components/aws/opencontrol.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/permission.d.ts +40 -0
- package/dist/sst/.sst/platform/src/components/aws/permission.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/postgres-v1.d.ts +317 -0
- package/dist/sst/.sst/platform/src/components/aws/postgres-v1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/postgres.d.ts +500 -0
- package/dist/sst/.sst/platform/src/components/aws/postgres.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/bucket-files.d.ts +18 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/bucket-files.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/distribution-deployment-waiter.d.ts +13 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/distribution-deployment-waiter.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/distribution-invalidation.d.ts +11 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/distribution-invalidation.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/function-environment-update.d.ts +29 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/function-environment-update.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/hosted-zone-lookup.d.ts +11 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/hosted-zone-lookup.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/kv-keys.d.ts +11 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/kv-keys.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/kv-routes-update.d.ts +11 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/kv-routes-update.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/origin-access-control.d.ts +8 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/origin-access-control.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/rds-role-lookup.d.ts +8 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/rds-role-lookup.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/vector-table.d.ts +12 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/vector-table.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/queue-lambda-subscriber.d.ts +48 -0
- package/dist/sst/.sst/platform/src/components/aws/queue-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/queue.d.ts +485 -0
- package/dist/sst/.sst/platform/src/components/aws/queue.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/react.d.ts +416 -0
- package/dist/sst/.sst/platform/src/components/aws/react.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/realtime-lambda-subscriber.d.ts +53 -0
- package/dist/sst/.sst/platform/src/components/aws/realtime-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/realtime.d.ts +232 -0
- package/dist/sst/.sst/platform/src/components/aws/realtime.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/redis-v1.d.ts +338 -0
- package/dist/sst/.sst/platform/src/components/aws/redis-v1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/redis.d.ts +364 -0
- package/dist/sst/.sst/platform/src/components/aws/redis.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/remix.d.ts +423 -0
- package/dist/sst/.sst/platform/src/components/aws/remix.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/router-base-route.d.ts +28 -0
- package/dist/sst/.sst/platform/src/components/aws/router-base-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/router-bucket-route.d.ts +29 -0
- package/dist/sst/.sst/platform/src/components/aws/router-bucket-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/router-url-route.d.ts +28 -0
- package/dist/sst/.sst/platform/src/components/aws/router-url-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/router.d.ts +1272 -0
- package/dist/sst/.sst/platform/src/components/aws/router.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/service-v1.d.ts +78 -0
- package/dist/sst/.sst/platform/src/components/aws/service-v1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/service.d.ts +1625 -0
- package/dist/sst/.sst/platform/src/components/aws/service.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.d.ts +53 -0
- package/dist/sst/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/sns-topic-queue-subscriber.d.ts +55 -0
- package/dist/sst/.sst/platform/src/components/aws/sns-topic-queue-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/sns-topic.d.ts +389 -0
- package/dist/sst/.sst/platform/src/components/aws/sns-topic.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/solid-start.d.ts +414 -0
- package/dist/sst/.sst/platform/src/components/aws/solid-start.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/ssr-site.d.ts +685 -0
- package/dist/sst/.sst/platform/src/components/aws/ssr-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/static-site.d.ts +736 -0
- package/dist/sst/.sst/platform/src/components/aws/static-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/choice.d.ts +73 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/choice.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/fail.d.ts +63 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/fail.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/map.d.ts +236 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/map.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/parallel.d.ts +127 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/parallel.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/pass.d.ts +39 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/pass.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/state.d.ts +231 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/state.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/succeed.d.ts +26 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/succeed.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/task.d.ts +477 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/task.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/wait.d.ts +91 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/wait.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions.d.ts +473 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/svelte-kit.d.ts +417 -0
- package/dist/sst/.sst/platform/src/components/aws/svelte-kit.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/tan-stack-start.d.ts +354 -0
- package/dist/sst/.sst/platform/src/components/aws/tan-stack-start.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/task.d.ts +322 -0
- package/dist/sst/.sst/platform/src/components/aws/task.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/vector.d.ts +150 -0
- package/dist/sst/.sst/platform/src/components/aws/vector.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/vpc-v1.d.ts +208 -0
- package/dist/sst/.sst/platform/src/components/aws/vpc-v1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/vpc.d.ts +444 -0
- package/dist/sst/.sst/platform/src/components/aws/vpc.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/base/base-site.d.ts +53 -0
- package/dist/sst/.sst/platform/src/components/base/base-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/base/base-ssr-site.d.ts +13 -0
- package/dist/sst/.sst/platform/src/components/base/base-ssr-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/base/base-static-site.d.ts +199 -0
- package/dist/sst/.sst/platform/src/components/base/base-static-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/account-id.d.ts +2 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/account-id.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/auth.d.ts +22 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/auth.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/binding.d.ts +69 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/binding.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/bucket.d.ts +103 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/bucket.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/cron.d.ts +121 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/cron.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/d1.d.ts +107 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/d1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/dns.d.ts +94 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/dns.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/astro.d.ts +186 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/astro.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/index.d.ts +4 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/index.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/solid-start.d.ts +171 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/solid-start.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/static-site.d.ts +222 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/static-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/helpers/fetch.d.ts +19 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/helpers/fetch.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/helpers/worker-builder.d.ts +10 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/helpers/worker-builder.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/index.d.ts +16 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/index.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/kv.d.ts +107 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/kv.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/dns-record.d.ts +20 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/dns-record.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/kv-data.d.ts +23 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/kv-data.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/worker-assets.d.ts +18 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/worker-assets.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/worker-url.d.ts +22 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/worker-url.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/zone-lookup.d.ts +22 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/zone-lookup.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/queue.d.ts +60 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/queue.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/ssr-site.d.ts +51 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/ssr-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/static-site.d.ts +262 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/static-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/worker.d.ts +295 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/worker.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/component.d.ts +37 -0
- package/dist/sst/.sst/platform/src/components/component.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cpu.d.ts +3 -0
- package/dist/sst/.sst/platform/src/components/cpu.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/dns.d.ts +59 -0
- package/dist/sst/.sst/platform/src/components/dns.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/duration.d.ts +7 -0
- package/dist/sst/.sst/platform/src/components/duration.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/error.d.ts +4 -0
- package/dist/sst/.sst/platform/src/components/error.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/experimental/dev-command.d.ts +99 -0
- package/dist/sst/.sst/platform/src/components/experimental/dev-command.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/experimental/index.d.ts +2 -0
- package/dist/sst/.sst/platform/src/components/experimental/index.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/index.d.ts +16 -0
- package/dist/sst/.sst/platform/src/components/index.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/input.d.ts +3 -0
- package/dist/sst/.sst/platform/src/components/input.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/link.d.ts +41 -0
- package/dist/sst/.sst/platform/src/components/link.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/linkable.d.ts +271 -0
- package/dist/sst/.sst/platform/src/components/linkable.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/naming.d.ts +7 -0
- package/dist/sst/.sst/platform/src/components/naming.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/path.d.ts +2 -0
- package/dist/sst/.sst/platform/src/components/path.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/rpc/rpc.d.ts +19 -0
- package/dist/sst/.sst/platform/src/components/rpc/rpc.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/secret.d.ts +125 -0
- package/dist/sst/.sst/platform/src/components/secret.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/size.d.ts +5 -0
- package/dist/sst/.sst/platform/src/components/size.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/vercel/account-id.d.ts +2 -0
- package/dist/sst/.sst/platform/src/components/vercel/account-id.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/vercel/dns.d.ts +73 -0
- package/dist/sst/.sst/platform/src/components/vercel/dns.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/vercel/index.d.ts +3 -0
- package/dist/sst/.sst/platform/src/components/vercel/index.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/vercel/providers/dns-record.d.ts +14 -0
- package/dist/sst/.sst/platform/src/components/vercel/providers/dns-record.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/config.d.ts +1258 -0
- package/dist/sst/.sst/platform/src/config.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/util/compare-semver.d.ts +4 -0
- package/dist/sst/.sst/platform/src/util/compare-semver.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/util/fs.d.ts +5 -0
- package/dist/sst/.sst/platform/src/util/fs.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/util/lazy.d.ts +2 -0
- package/dist/sst/.sst/platform/src/util/lazy.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/util/semaphore.d.ts +9 -0
- package/dist/sst/.sst/platform/src/util/semaphore.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/util/warn.d.ts +2 -0
- package/dist/sst/.sst/platform/src/util/warn.d.ts.map +1 -0
- package/dist/sst/components/dashboard.d.ts +2 -0
- package/dist/sst/components/dashboard.d.ts.map +1 -0
- package/dist/sst/components/monorise-core.d.ts +18 -0
- package/dist/sst/components/monorise-core.d.ts.map +1 -0
- package/dist/sst/components/q-function.d.ts +17 -0
- package/dist/sst/components/q-function.d.ts.map +1 -0
- package/dist/sst/components/single-table.d.ts +14 -0
- package/dist/sst/components/single-table.d.ts.map +1 -0
- package/dist/sst/constants/event.d.ts +73 -0
- package/dist/sst/constants/event.d.ts.map +1 -0
- package/dist/sst/constants/table.d.ts +3 -0
- package/dist/sst/constants/table.d.ts.map +1 -0
- package/dist/sst/index.d.ts +11 -0
- package/dist/sst/index.d.ts.map +1 -0
- package/dist/sst/index.js +609 -0
- package/dist/sst/index.js.map +1 -0
- package/dist/sst/sst.config.d.ts +3 -0
- package/dist/sst/sst.config.d.ts.map +1 -0
- package/dist/sst/tsup.config.d.ts +3 -0
- package/dist/sst/tsup.config.d.ts.map +1 -0
- package/package.json +83 -0
|
@@ -0,0 +1,542 @@
|
|
|
1
|
+
import { ComponentResourceOptions, Output } from "@pulumi/pulumi";
|
|
2
|
+
import { Component, Prettify, Transform } from "../component";
|
|
3
|
+
import { Link } from "../link";
|
|
4
|
+
import type { Input } from "../input";
|
|
5
|
+
import { FunctionArgs, FunctionArn } from "./function";
|
|
6
|
+
import { RETENTION } from "./logging";
|
|
7
|
+
import { ApiGatewayV2DomainArgs } from "./helpers/apigatewayv2-domain";
|
|
8
|
+
import { ApiGatewayV2Authorizer } from "./apigatewayv2-authorizer";
|
|
9
|
+
import { ApiGatewayWebSocketRoute } from "./apigateway-websocket-route";
|
|
10
|
+
import { apigatewayv2, cloudwatch } from "@pulumi/aws";
|
|
11
|
+
export interface ApiGatewayWebSocketArgs {
|
|
12
|
+
/**
|
|
13
|
+
* Set a custom domain for your WebSocket API.
|
|
14
|
+
*
|
|
15
|
+
* Automatically manages domains hosted on AWS Route 53, Cloudflare, and Vercel. For other
|
|
16
|
+
* providers, you'll need to pass in a `cert` that validates domain ownership and add the
|
|
17
|
+
* DNS records.
|
|
18
|
+
*
|
|
19
|
+
* :::tip
|
|
20
|
+
* Built-in support for AWS Route 53, Cloudflare, and Vercel. And manual setup for other
|
|
21
|
+
* providers.
|
|
22
|
+
* :::
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
*
|
|
26
|
+
* By default this assumes the domain is hosted on Route 53.
|
|
27
|
+
*
|
|
28
|
+
* ```js
|
|
29
|
+
* {
|
|
30
|
+
* domain: "example.com"
|
|
31
|
+
* }
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* For domains hosted on Cloudflare.
|
|
35
|
+
*
|
|
36
|
+
* ```js
|
|
37
|
+
* {
|
|
38
|
+
* domain: {
|
|
39
|
+
* name: "example.com",
|
|
40
|
+
* dns: sst.cloudflare.dns()
|
|
41
|
+
* }
|
|
42
|
+
* }
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
domain?: Input<string | Prettify<ApiGatewayV2DomainArgs>>;
|
|
46
|
+
/**
|
|
47
|
+
* Configure the [API Gateway logs](https://docs.aws.amazon.com/apigateway/latest/developerguide/view-cloudwatch-log-events-in-cloudwatch-console.html) in CloudWatch. By default, access logs are enabled and kept for 1 month.
|
|
48
|
+
* @default `{retention: "1 month"}`
|
|
49
|
+
* @example
|
|
50
|
+
* ```js
|
|
51
|
+
* {
|
|
52
|
+
* accessLog: {
|
|
53
|
+
* retention: "forever"
|
|
54
|
+
* }
|
|
55
|
+
* }
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
accessLog?: Input<{
|
|
59
|
+
/**
|
|
60
|
+
* The duration the API Gateway logs are kept in CloudWatch.
|
|
61
|
+
* @default `1 month`
|
|
62
|
+
*/
|
|
63
|
+
retention?: Input<keyof typeof RETENTION>;
|
|
64
|
+
}>;
|
|
65
|
+
/**
|
|
66
|
+
* [Transform](/docs/components#transform) how this component creates its underlying
|
|
67
|
+
* resources.
|
|
68
|
+
*/
|
|
69
|
+
transform?: {
|
|
70
|
+
/**
|
|
71
|
+
* Transform the API Gateway WebSocket API resource.
|
|
72
|
+
*/
|
|
73
|
+
api?: Transform<apigatewayv2.ApiArgs>;
|
|
74
|
+
/**
|
|
75
|
+
* Transform the API Gateway WebSocket API stage resource.
|
|
76
|
+
*/
|
|
77
|
+
stage?: Transform<apigatewayv2.StageArgs>;
|
|
78
|
+
/**
|
|
79
|
+
* Transform the API Gateway WebSocket API domain name resource.
|
|
80
|
+
*/
|
|
81
|
+
domainName?: Transform<apigatewayv2.DomainNameArgs>;
|
|
82
|
+
/**
|
|
83
|
+
* Transform the CloudWatch LogGroup resource used for access logs.
|
|
84
|
+
*/
|
|
85
|
+
accessLog?: Transform<cloudwatch.LogGroupArgs>;
|
|
86
|
+
/**
|
|
87
|
+
* Transform the routes. This can be used to customize the handler function and
|
|
88
|
+
* the arguments for each route.
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* ```js
|
|
92
|
+
* {
|
|
93
|
+
* transform: {
|
|
94
|
+
* route: {
|
|
95
|
+
* handler: {
|
|
96
|
+
* link: [bucket, stripeKey]
|
|
97
|
+
* },
|
|
98
|
+
* args: {
|
|
99
|
+
* auth: { iam: true }
|
|
100
|
+
* }
|
|
101
|
+
* }
|
|
102
|
+
* }
|
|
103
|
+
* }
|
|
104
|
+
* ```
|
|
105
|
+
*/
|
|
106
|
+
route?: {
|
|
107
|
+
/**
|
|
108
|
+
* Transform the handler function for the route.
|
|
109
|
+
*/
|
|
110
|
+
handler?: Transform<FunctionArgs>;
|
|
111
|
+
/**
|
|
112
|
+
* Transform the arguments for the route.
|
|
113
|
+
*/
|
|
114
|
+
args?: Transform<ApiGatewayWebSocketRouteArgs>;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
export interface ApiGatewayWebSocketAuthorizerArgs {
|
|
119
|
+
/**
|
|
120
|
+
* Create a JWT or JSON Web Token authorizer that can be used by the routes.
|
|
121
|
+
*
|
|
122
|
+
* @example
|
|
123
|
+
* Configure JWT auth.
|
|
124
|
+
*
|
|
125
|
+
* ```js
|
|
126
|
+
* {
|
|
127
|
+
* jwt: {
|
|
128
|
+
* issuer: "https://issuer.com/",
|
|
129
|
+
* audiences: ["https://api.example.com"],
|
|
130
|
+
* identitySource: "$request.header.AccessToken"
|
|
131
|
+
* }
|
|
132
|
+
* }
|
|
133
|
+
* ```
|
|
134
|
+
*
|
|
135
|
+
* You can also use Cognito as the identity provider.
|
|
136
|
+
*
|
|
137
|
+
* ```js
|
|
138
|
+
* {
|
|
139
|
+
* jwt: {
|
|
140
|
+
* audiences: [userPoolClient.id],
|
|
141
|
+
* issuer: $interpolate`https://cognito-idp.${aws.getArnOutput(userPool).region}.amazonaws.com/${userPool.id}`,
|
|
142
|
+
* }
|
|
143
|
+
* }
|
|
144
|
+
* ```
|
|
145
|
+
*
|
|
146
|
+
* Where `userPool` and `userPoolClient` are:
|
|
147
|
+
*
|
|
148
|
+
* ```js
|
|
149
|
+
* const userPool = new aws.cognito.UserPool();
|
|
150
|
+
* const userPoolClient = new aws.cognito.UserPoolClient();
|
|
151
|
+
* ```
|
|
152
|
+
*/
|
|
153
|
+
jwt?: Input<{
|
|
154
|
+
/**
|
|
155
|
+
* Base domain of the identity provider that issues JSON Web Tokens.
|
|
156
|
+
* @example
|
|
157
|
+
* ```js
|
|
158
|
+
* {
|
|
159
|
+
* issuer: "https://issuer.com/"
|
|
160
|
+
* }
|
|
161
|
+
* ```
|
|
162
|
+
*/
|
|
163
|
+
issuer: Input<string>;
|
|
164
|
+
/**
|
|
165
|
+
* List of the intended recipients of the JWT. A valid JWT must provide an `aud` that matches at least one entry in this list.
|
|
166
|
+
*/
|
|
167
|
+
audiences: Input<Input<string>[]>;
|
|
168
|
+
/**
|
|
169
|
+
* Specifies where to extract the JWT from the request.
|
|
170
|
+
* @default `"route.request.header.Authorization"`
|
|
171
|
+
*/
|
|
172
|
+
identitySource?: Input<string>;
|
|
173
|
+
}>;
|
|
174
|
+
/**
|
|
175
|
+
* Create a Lambda authorizer that can be used by the routes.
|
|
176
|
+
*
|
|
177
|
+
* @example
|
|
178
|
+
* Configure Lambda auth.
|
|
179
|
+
*
|
|
180
|
+
* ```js
|
|
181
|
+
* {
|
|
182
|
+
* lambda: {
|
|
183
|
+
* function: "src/authorizer.index"
|
|
184
|
+
* }
|
|
185
|
+
* }
|
|
186
|
+
* ```
|
|
187
|
+
*/
|
|
188
|
+
lambda?: Input<{
|
|
189
|
+
/**
|
|
190
|
+
* The Lambda authorizer function. Takes the handler path or the function args.
|
|
191
|
+
* @example
|
|
192
|
+
* Add a simple authorizer.
|
|
193
|
+
*
|
|
194
|
+
* ```js
|
|
195
|
+
* {
|
|
196
|
+
* function: "src/authorizer.index"
|
|
197
|
+
* }
|
|
198
|
+
* ```
|
|
199
|
+
*
|
|
200
|
+
* Customize the authorizer handler.
|
|
201
|
+
*
|
|
202
|
+
* ```js
|
|
203
|
+
* {
|
|
204
|
+
* function: {
|
|
205
|
+
* handler: "src/authorizer.index",
|
|
206
|
+
* memory: "2048 MB"
|
|
207
|
+
* }
|
|
208
|
+
* }
|
|
209
|
+
* ```
|
|
210
|
+
*/
|
|
211
|
+
function: Input<string | FunctionArgs>;
|
|
212
|
+
/**
|
|
213
|
+
* The JWT payload version.
|
|
214
|
+
* @default `"2.0"`
|
|
215
|
+
* @example
|
|
216
|
+
* ```js
|
|
217
|
+
* {
|
|
218
|
+
* payload: "2.0"
|
|
219
|
+
* }
|
|
220
|
+
* ```
|
|
221
|
+
*/
|
|
222
|
+
payload?: Input<"1.0" | "2.0">;
|
|
223
|
+
/**
|
|
224
|
+
* The response type.
|
|
225
|
+
* @default `"simple"`
|
|
226
|
+
* @example
|
|
227
|
+
* ```js
|
|
228
|
+
* {
|
|
229
|
+
* response: "iam"
|
|
230
|
+
* }
|
|
231
|
+
* ```
|
|
232
|
+
*/
|
|
233
|
+
response?: Input<"simple" | "iam">;
|
|
234
|
+
/**
|
|
235
|
+
* Specifies where to extract the identity from.
|
|
236
|
+
* @default `["route.request.header.Authorization"]`
|
|
237
|
+
* @example
|
|
238
|
+
* ```js
|
|
239
|
+
* {
|
|
240
|
+
* identitySources: ["$request.header.RequestToken"]
|
|
241
|
+
* }
|
|
242
|
+
* ```
|
|
243
|
+
*/
|
|
244
|
+
identitySources?: Input<Input<string>[]>;
|
|
245
|
+
}>;
|
|
246
|
+
/**
|
|
247
|
+
* [Transform](/docs/components#transform) how this component creates its underlying
|
|
248
|
+
* resources.
|
|
249
|
+
*/
|
|
250
|
+
transform?: {
|
|
251
|
+
/**
|
|
252
|
+
* Transform the API Gateway authorizer resource.
|
|
253
|
+
*/
|
|
254
|
+
authorizer?: Transform<apigatewayv2.AuthorizerArgs>;
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
export interface ApiGatewayWebSocketRouteArgs {
|
|
258
|
+
/**
|
|
259
|
+
* Enable auth for your WebSocket API. By default, auth is disabled.
|
|
260
|
+
*
|
|
261
|
+
* @example
|
|
262
|
+
* ```js
|
|
263
|
+
* {
|
|
264
|
+
* auth: {
|
|
265
|
+
* iam: true
|
|
266
|
+
* }
|
|
267
|
+
* }
|
|
268
|
+
* ```
|
|
269
|
+
*/
|
|
270
|
+
auth?: Input<false | {
|
|
271
|
+
/**
|
|
272
|
+
* Enable IAM authorization for a given API route. When IAM auth is enabled, clients
|
|
273
|
+
* need to use Signature Version 4 to sign their requests with their AWS credentials.
|
|
274
|
+
*/
|
|
275
|
+
iam?: Input<boolean>;
|
|
276
|
+
/**
|
|
277
|
+
* Enable JWT or JSON Web Token authorization for a given API route. When JWT auth is enabled, clients need to include a valid JWT in their requests.
|
|
278
|
+
*
|
|
279
|
+
* @example
|
|
280
|
+
* You can configure JWT auth.
|
|
281
|
+
*
|
|
282
|
+
* ```js
|
|
283
|
+
* {
|
|
284
|
+
* auth: {
|
|
285
|
+
* jwt: {
|
|
286
|
+
* authorizer: myAuthorizer.id,
|
|
287
|
+
* scopes: ["read:profile", "write:profile"]
|
|
288
|
+
* }
|
|
289
|
+
* }
|
|
290
|
+
* }
|
|
291
|
+
* ```
|
|
292
|
+
*
|
|
293
|
+
* Where `myAuthorizer` is created by calling the `addAuthorizer` method.
|
|
294
|
+
*/
|
|
295
|
+
jwt?: Input<{
|
|
296
|
+
/**
|
|
297
|
+
* Authorizer ID of the JWT authorizer.
|
|
298
|
+
*/
|
|
299
|
+
authorizer: Input<string>;
|
|
300
|
+
/**
|
|
301
|
+
* Defines the permissions or access levels that the JWT grants. If the JWT does not have the required scope, the request is rejected. By default it does not require any scopes.
|
|
302
|
+
*/
|
|
303
|
+
scopes?: Input<Input<string>[]>;
|
|
304
|
+
}>;
|
|
305
|
+
/**
|
|
306
|
+
* Enable custom Lambda authorization for a given API route. Pass in the authorizer ID.
|
|
307
|
+
*
|
|
308
|
+
* @example
|
|
309
|
+
* ```js
|
|
310
|
+
* {
|
|
311
|
+
* auth: {
|
|
312
|
+
* lambda: myAuthorizer.id
|
|
313
|
+
* }
|
|
314
|
+
* }
|
|
315
|
+
* ```
|
|
316
|
+
*
|
|
317
|
+
* Where `myAuthorizer` is created by calling the `addAuthorizer` method.
|
|
318
|
+
*/
|
|
319
|
+
lambda?: Input<string>;
|
|
320
|
+
}>;
|
|
321
|
+
/**
|
|
322
|
+
* [Transform](/docs/components#transform) how this component creates its underlying
|
|
323
|
+
* resources.
|
|
324
|
+
*/
|
|
325
|
+
transform?: {
|
|
326
|
+
/**
|
|
327
|
+
* Transform the API Gateway WebSocket API integration resource.
|
|
328
|
+
*/
|
|
329
|
+
integration?: Transform<apigatewayv2.IntegrationArgs>;
|
|
330
|
+
/**
|
|
331
|
+
* Transform the API Gateway WebSocket API route resource.
|
|
332
|
+
*/
|
|
333
|
+
route?: Transform<apigatewayv2.RouteArgs>;
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* The `ApiGatewayWebSocket` component lets you add an [Amazon API Gateway WebSocket API](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api.html)
|
|
338
|
+
* to your app.
|
|
339
|
+
*
|
|
340
|
+
* @example
|
|
341
|
+
*
|
|
342
|
+
* #### Create the API
|
|
343
|
+
*
|
|
344
|
+
* ```ts title="sst.config.ts"
|
|
345
|
+
* const api = new sst.aws.ApiGatewayWebSocket("MyApi");
|
|
346
|
+
* ```
|
|
347
|
+
*
|
|
348
|
+
* #### Add a custom domain
|
|
349
|
+
*
|
|
350
|
+
* ```js {2} title="sst.config.ts"
|
|
351
|
+
* new sst.aws.ApiGatewayWebSocket("MyApi", {
|
|
352
|
+
* domain: "api.example.com"
|
|
353
|
+
* });
|
|
354
|
+
* ```
|
|
355
|
+
*
|
|
356
|
+
* #### Add routes
|
|
357
|
+
*
|
|
358
|
+
* ```ts title="sst.config.ts"
|
|
359
|
+
* api.route("$connect", "src/connect.handler");
|
|
360
|
+
* api.route("$disconnect", "src/disconnect.handler");
|
|
361
|
+
* api.route("$default", "src/default.handler");
|
|
362
|
+
* api.route("sendMessage", "src/sendMessage.handler");
|
|
363
|
+
* ```
|
|
364
|
+
*/
|
|
365
|
+
export declare class ApiGatewayWebSocket extends Component implements Link.Linkable {
|
|
366
|
+
private constructorName;
|
|
367
|
+
private constructorArgs;
|
|
368
|
+
private constructorOpts;
|
|
369
|
+
private api;
|
|
370
|
+
private stage;
|
|
371
|
+
private apigDomain?;
|
|
372
|
+
private apiMapping?;
|
|
373
|
+
private logGroup;
|
|
374
|
+
constructor(name: string, args?: ApiGatewayWebSocketArgs, opts?: ComponentResourceOptions);
|
|
375
|
+
/**
|
|
376
|
+
* The URL of the API.
|
|
377
|
+
*
|
|
378
|
+
* If the `domain` is set, this is the URL with the custom domain.
|
|
379
|
+
* Otherwise, it's the auto-generated API Gateway URL.
|
|
380
|
+
*/
|
|
381
|
+
get url(): Output<string>;
|
|
382
|
+
/**
|
|
383
|
+
* The management endpoint for the API used by the API Gateway Management API client.
|
|
384
|
+
* This is useful for sending messages to connected clients.
|
|
385
|
+
*
|
|
386
|
+
* @example
|
|
387
|
+
* ```js
|
|
388
|
+
* import { Resource } from "sst";
|
|
389
|
+
* import { ApiGatewayManagementApiClient } from "@aws-sdk/client-apigatewaymanagementapi";
|
|
390
|
+
*
|
|
391
|
+
* const client = new ApiGatewayManagementApiClient({
|
|
392
|
+
* endpoint: Resource.MyApi.managementEndpoint,
|
|
393
|
+
* });
|
|
394
|
+
* ```
|
|
395
|
+
*/
|
|
396
|
+
get managementEndpoint(): Output<string>;
|
|
397
|
+
/**
|
|
398
|
+
* The underlying [resources](/docs/components/#nodes) this component creates.
|
|
399
|
+
*/
|
|
400
|
+
get nodes(): {
|
|
401
|
+
/**
|
|
402
|
+
* The Amazon API Gateway V2 API.
|
|
403
|
+
*/
|
|
404
|
+
api: import("@pulumi/aws/apigatewayv2/api").Api;
|
|
405
|
+
/**
|
|
406
|
+
* The API Gateway HTTP API domain name.
|
|
407
|
+
*/
|
|
408
|
+
readonly domainName: Output<import("@pulumi/aws/apigatewayv2/domainName").DomainName>;
|
|
409
|
+
/**
|
|
410
|
+
* The CloudWatch LogGroup for the access logs.
|
|
411
|
+
*/
|
|
412
|
+
logGroup: import("@pulumi/aws/cloudwatch/logGroup").LogGroup;
|
|
413
|
+
};
|
|
414
|
+
/**
|
|
415
|
+
* Add a route to the API Gateway WebSocket API.
|
|
416
|
+
*
|
|
417
|
+
* There are three predefined routes:
|
|
418
|
+
* - `$connect`: When the client connects to the API.
|
|
419
|
+
* - `$disconnect`: When the client or the server disconnects from the API.
|
|
420
|
+
* - `$default`: The default or catch-all route.
|
|
421
|
+
*
|
|
422
|
+
* In addition, you can create custom routes. When a request comes in, the API Gateway
|
|
423
|
+
* will look for the specific route defined by the user. If no route matches, the `$default`
|
|
424
|
+
* route will be invoked.
|
|
425
|
+
*
|
|
426
|
+
* @param route The path for the route.
|
|
427
|
+
* @param handler The function that'll be invoked.
|
|
428
|
+
* @param args Configure the route.
|
|
429
|
+
*
|
|
430
|
+
* @example
|
|
431
|
+
* Add a simple route.
|
|
432
|
+
*
|
|
433
|
+
* ```js title="sst.config.ts"
|
|
434
|
+
* api.route("sendMessage", "src/sendMessage.handler");
|
|
435
|
+
* ```
|
|
436
|
+
*
|
|
437
|
+
* Add a predefined route.
|
|
438
|
+
*
|
|
439
|
+
* ```js title="sst.config.ts"
|
|
440
|
+
* api.route("$default", "src/default.handler");
|
|
441
|
+
* ```
|
|
442
|
+
*
|
|
443
|
+
* Enable auth for a route.
|
|
444
|
+
*
|
|
445
|
+
* ```js title="sst.config.ts"
|
|
446
|
+
* api.route("sendMessage", "src/sendMessage.handler", {
|
|
447
|
+
* auth: {
|
|
448
|
+
* iam: true
|
|
449
|
+
* }
|
|
450
|
+
* });
|
|
451
|
+
* ```
|
|
452
|
+
*
|
|
453
|
+
* Customize the route handler.
|
|
454
|
+
*
|
|
455
|
+
* ```js title="sst.config.ts"
|
|
456
|
+
* api.route("sendMessage", {
|
|
457
|
+
* handler: "src/sendMessage.handler",
|
|
458
|
+
* memory: "2048 MB"
|
|
459
|
+
* });
|
|
460
|
+
* ```
|
|
461
|
+
*
|
|
462
|
+
* Or pass in the ARN of an existing Lambda function.
|
|
463
|
+
*
|
|
464
|
+
* ```js title="sst.config.ts"
|
|
465
|
+
* api.route("sendMessage", "arn:aws:lambda:us-east-1:123456789012:function:my-function");
|
|
466
|
+
* ```
|
|
467
|
+
*/
|
|
468
|
+
route(route: string, handler: Input<string | FunctionArgs | FunctionArn>, args?: ApiGatewayWebSocketRouteArgs): ApiGatewayWebSocketRoute;
|
|
469
|
+
/**
|
|
470
|
+
* Add an authorizer to the API Gateway WebSocket API.
|
|
471
|
+
*
|
|
472
|
+
* @param name The name of the authorizer.
|
|
473
|
+
* @param args Configure the authorizer.
|
|
474
|
+
*
|
|
475
|
+
* @example
|
|
476
|
+
* Add a Lambda authorizer.
|
|
477
|
+
*
|
|
478
|
+
* ```js title="sst.config.ts"
|
|
479
|
+
* api.addAuthorizer({
|
|
480
|
+
* name: "myAuthorizer",
|
|
481
|
+
* lambda: {
|
|
482
|
+
* function: "src/authorizer.index"
|
|
483
|
+
* }
|
|
484
|
+
* });
|
|
485
|
+
* ```
|
|
486
|
+
*
|
|
487
|
+
* Add a JWT authorizer.
|
|
488
|
+
*
|
|
489
|
+
* ```js title="sst.config.ts"
|
|
490
|
+
* const authorizer = api.addAuthorizer({
|
|
491
|
+
* name: "myAuthorizer",
|
|
492
|
+
* jwt: {
|
|
493
|
+
* issuer: "https://issuer.com/",
|
|
494
|
+
* audiences: ["https://api.example.com"],
|
|
495
|
+
* identitySource: "$request.header.AccessToken"
|
|
496
|
+
* }
|
|
497
|
+
* });
|
|
498
|
+
* ```
|
|
499
|
+
*
|
|
500
|
+
* Add a Cognito UserPool as a JWT authorizer.
|
|
501
|
+
*
|
|
502
|
+
* ```js title="sst.config.ts"
|
|
503
|
+
* const pool = new sst.aws.CognitoUserPool("MyUserPool");
|
|
504
|
+
* const poolClient = userPool.addClient("Web");
|
|
505
|
+
*
|
|
506
|
+
* const authorizer = api.addAuthorizer({
|
|
507
|
+
* name: "myCognitoAuthorizer",
|
|
508
|
+
* jwt: {
|
|
509
|
+
* issuer: $interpolate`https://cognito-idp.${aws.getRegionOutput().name}.amazonaws.com/${pool.id}`,
|
|
510
|
+
* audiences: [poolClient.id]
|
|
511
|
+
* }
|
|
512
|
+
* });
|
|
513
|
+
* ```
|
|
514
|
+
*
|
|
515
|
+
* Now you can use the authorizer in your routes.
|
|
516
|
+
*
|
|
517
|
+
* ```js title="sst.config.ts"
|
|
518
|
+
* api.route("GET /", "src/get.handler", {
|
|
519
|
+
* auth: {
|
|
520
|
+
* jwt: {
|
|
521
|
+
* authorizer: authorizer.id
|
|
522
|
+
* }
|
|
523
|
+
* }
|
|
524
|
+
* });
|
|
525
|
+
* ```
|
|
526
|
+
*/
|
|
527
|
+
addAuthorizer(name: string, args: ApiGatewayWebSocketAuthorizerArgs): ApiGatewayV2Authorizer;
|
|
528
|
+
/** @internal */
|
|
529
|
+
getSSTLink(): {
|
|
530
|
+
properties: {
|
|
531
|
+
url: Output<string>;
|
|
532
|
+
managementEndpoint: Output<string>;
|
|
533
|
+
};
|
|
534
|
+
include: {
|
|
535
|
+
effect?: "allow" | "deny" | undefined;
|
|
536
|
+
actions: string[];
|
|
537
|
+
resources: Input<Input<string>[]>;
|
|
538
|
+
type: "aws.permission";
|
|
539
|
+
}[];
|
|
540
|
+
};
|
|
541
|
+
}
|
|
542
|
+
//# sourceMappingURL=apigateway-websocket.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apigateway-websocket.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/aws/apigateway-websocket.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ComponentResourceOptions, Input } from "@pulumi/pulumi";
|
|
2
|
+
import { Component } from "../component";
|
|
3
|
+
import { ApiGatewayV1ApiKeyArgs } from "./apigatewayv1";
|
|
4
|
+
import { Link } from "../link";
|
|
5
|
+
export interface ApiKeyArgs extends ApiGatewayV1ApiKeyArgs {
|
|
6
|
+
/**
|
|
7
|
+
* The API Gateway REST API to use for the API key.
|
|
8
|
+
*/
|
|
9
|
+
apiId: Input<string>;
|
|
10
|
+
/**
|
|
11
|
+
* The API Gateway Usage Plan to use for the API key.
|
|
12
|
+
*/
|
|
13
|
+
usagePlanId: Input<string>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The `ApiGatewayV1ApiKey` component is internally used by the `ApiGatewayV1UsagePlan` component
|
|
17
|
+
* to add API keys to [Amazon API Gateway REST API](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-rest-api.html).
|
|
18
|
+
*
|
|
19
|
+
* :::note
|
|
20
|
+
* This component is not intended to be created directly.
|
|
21
|
+
* :::
|
|
22
|
+
*
|
|
23
|
+
* You'll find this component returned by the `addApiKey` method of the `ApiGatewayV1UsagePlan` component.
|
|
24
|
+
*/
|
|
25
|
+
export declare class ApiGatewayV1ApiKey extends Component implements Link.Linkable {
|
|
26
|
+
private readonly key;
|
|
27
|
+
constructor(name: string, args: ApiKeyArgs, opts?: ComponentResourceOptions);
|
|
28
|
+
/**
|
|
29
|
+
* The API key value.
|
|
30
|
+
*/
|
|
31
|
+
get value(): $util.Output<string>;
|
|
32
|
+
/**
|
|
33
|
+
* The underlying [resources](/docs/components/#nodes) this component creates.
|
|
34
|
+
*/
|
|
35
|
+
get nodes(): {
|
|
36
|
+
/**
|
|
37
|
+
* The API Gateway API Key.
|
|
38
|
+
*/
|
|
39
|
+
apiKey: import("@pulumi/aws/apigateway/apiKey").ApiKey;
|
|
40
|
+
};
|
|
41
|
+
/** @internal */
|
|
42
|
+
getSSTLink(): {
|
|
43
|
+
properties: {
|
|
44
|
+
value: $util.Output<string>;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=apigatewayv1-api-key.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apigatewayv1-api-key.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/aws/apigatewayv1-api-key.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,MAAM,WAAW,UAAW,SAAQ,sBAAsB;IACxD;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrB;;OAEG;IACH,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B;AAED;;;;;;;;;GASG;AACH,qBAAa,kBAAmB,SAAQ,SAAU,YAAW,IAAI,CAAC,QAAQ;IACxE,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAoB;gBAGtC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,UAAU,EAChB,IAAI,GAAE,wBAA6B;IAyBrC;;OAEG;IACH,IAAW,KAAK,yBAEf;IAED;;OAEG;IACH,IAAW,KAAK;QAEZ;;WAEG;;MAGN;IAED,gBAAgB;IACT,UAAU;;;;;CAOlB"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ComponentResourceOptions, Input, Output } from "@pulumi/pulumi";
|
|
2
|
+
import { Component } from "../component";
|
|
3
|
+
import { ApiGatewayV1AuthorizerArgs } from "./apigatewayv1";
|
|
4
|
+
export interface AuthorizerArgs extends ApiGatewayV1AuthorizerArgs {
|
|
5
|
+
/**
|
|
6
|
+
* The API Gateway to use for the route.
|
|
7
|
+
*/
|
|
8
|
+
api: Input<{
|
|
9
|
+
/**
|
|
10
|
+
* The name of the API Gateway.
|
|
11
|
+
*/
|
|
12
|
+
name: Input<string>;
|
|
13
|
+
/**
|
|
14
|
+
* The ID of the API Gateway.
|
|
15
|
+
*/
|
|
16
|
+
id: Input<string>;
|
|
17
|
+
/**
|
|
18
|
+
* The execution ARN of the API Gateway.
|
|
19
|
+
*/
|
|
20
|
+
executionArn: Input<string>;
|
|
21
|
+
}>;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The `ApiGatewayV1Authorizer` component is internally used by the `ApiGatewayV1` component
|
|
25
|
+
* to add authorizers to [Amazon API Gateway REST API](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-rest-api.html).
|
|
26
|
+
*
|
|
27
|
+
* :::note
|
|
28
|
+
* This component is not intended to be created directly.
|
|
29
|
+
* :::
|
|
30
|
+
*
|
|
31
|
+
* You'll find this component returned by the `addAuthorizer` method of the `ApiGatewayV1` component.
|
|
32
|
+
*/
|
|
33
|
+
export declare class ApiGatewayV1Authorizer extends Component {
|
|
34
|
+
private readonly authorizer;
|
|
35
|
+
private readonly fn?;
|
|
36
|
+
constructor(name: string, args: AuthorizerArgs, opts?: ComponentResourceOptions);
|
|
37
|
+
/**
|
|
38
|
+
* The ID of the authorizer.
|
|
39
|
+
*/
|
|
40
|
+
get id(): Output<string>;
|
|
41
|
+
/**
|
|
42
|
+
* The underlying [resources](/docs/components/#nodes) this component creates.
|
|
43
|
+
*/
|
|
44
|
+
get nodes(): {
|
|
45
|
+
/**
|
|
46
|
+
* The API Gateway Authorizer.
|
|
47
|
+
*/
|
|
48
|
+
authorizer: import("@pulumi/aws/apigateway/authorizer").Authorizer;
|
|
49
|
+
/**
|
|
50
|
+
* The Lambda function used by the authorizer.
|
|
51
|
+
*/
|
|
52
|
+
readonly function: Output<sst.aws.Function>;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=apigatewayv1-authorizer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apigatewayv1-authorizer.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/aws/apigatewayv1-authorizer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,KAAK,EACL,MAAM,EAGP,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,SAAS,EAAa,MAAM,cAAc,CAAC;AAEpD,OAAO,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAI5D,MAAM,WAAW,cAAe,SAAQ,0BAA0B;IAChE;;OAEG;IACH,GAAG,EAAE,KAAK,CAAC;QACT;;WAEG;QACH,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACpB;;WAEG;QACH,EAAE,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAClB;;WAEG;QACH,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KAC7B,CAAC,CAAC;CACJ;AAED;;;;;;;;;GASG;AACH,qBAAa,sBAAuB,SAAQ,SAAS;IACnD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAwB;IACnD,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAkB;gBAGpC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,cAAc,EACpB,IAAI,GAAE,wBAA6B;IA6FrC;;OAEG;IACH,IAAW,EAAE,mBAEZ;IAED;;OAEG;IACH,IAAW,KAAK;QAGZ;;WAEG;;QAEH;;WAEG;;MASN;CACF"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Input, Output } from "@pulumi/pulumi";
|
|
2
|
+
import { Component } from "../component";
|
|
3
|
+
import { ApiGatewayV1RouteArgs } from "./apigatewayv1";
|
|
4
|
+
export interface ApiGatewayV1BaseRouteArgs extends ApiGatewayV1RouteArgs {
|
|
5
|
+
/**
|
|
6
|
+
* The API Gateway to use for the route.
|
|
7
|
+
*/
|
|
8
|
+
api: Input<{
|
|
9
|
+
/**
|
|
10
|
+
* The name of the API Gateway.
|
|
11
|
+
*/
|
|
12
|
+
name: Input<string>;
|
|
13
|
+
/**
|
|
14
|
+
* The ID of the API Gateway.
|
|
15
|
+
*/
|
|
16
|
+
id: Input<string>;
|
|
17
|
+
/**
|
|
18
|
+
* The execution ARN of the API Gateway.
|
|
19
|
+
*/
|
|
20
|
+
executionArn: Input<string>;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* The route method.
|
|
24
|
+
*/
|
|
25
|
+
method: string;
|
|
26
|
+
/**
|
|
27
|
+
* The route path.
|
|
28
|
+
*/
|
|
29
|
+
path: string;
|
|
30
|
+
/**
|
|
31
|
+
* The route resource ID.
|
|
32
|
+
*/
|
|
33
|
+
resourceId: Input<string>;
|
|
34
|
+
}
|
|
35
|
+
export declare function createMethod(name: string, args: ApiGatewayV1BaseRouteArgs, parent: Component): Output<import("@pulumi/aws/apigateway/method").Method>;
|
|
36
|
+
//# sourceMappingURL=apigatewayv1-base-route.d.ts.map
|