CDK API Reference
This page is the canonical human-readable overview of the AppTheory CDK surface. For exact prop types and exported
constructs, read cdk/.jsii, cdk/lib/index.ts, and cdk/lib/*.d.ts.
Core API constructs
AppTheoryHttpApi: API Gateway HTTP API v2 plus Lambda proxy routesAppTheoryRestApi: API Gateway REST API v1 plus single-Lambda proxy routesAppTheoryRestApiRouter: REST API v1 multi-Lambda routing with streaming supportAppTheoryMcpServer: HTTP API v2POST /mcpfor Bedrock AgentCoreAppTheoryRemoteMcpServer: REST API v1/mcpwith streaming for Remote MCPAppTheoryMcpProtectedResource:/.well-known/oauth-protected-resourcemetadata routeAppTheoryJobsTable: opinionated DynamoDB jobs ledger tableAppTheoryS3Ingest: secure S3 ingest front door with optional notificationsAppTheoryVectorIndex: S3 vector bucket/index plus vectorstore and Bedrock embedding env/grantsAppTheoryCodeBuildJobRunner: batch-step runner for import pipelinesAppTheoryEventBridgeBus: custom EventBridge bus with explicit cross-account publish allowlistAppTheoryEventBridgeRuleTarget: EventBridge rule or schedule to Lambda targetAppTheoryKinesisStream: create or wrap the encrypted Kinesis Data Stream used by AppTheory stream consumersAppTheoryKinesisStreamMapping: Kinesis stream to AppTheory Lambda event-source mapping with partial-batch failures enabled by defaultAppTheoryCloudWatchLogsDestination: CloudWatch Logs destination and fail-closed source allowlist for Logs-to-Kinesis deliveryAppTheoryCloudWatchLogsSubscription: source-side CloudWatch Logs subscription attachment for a caller-provided log group, destination ARN, filter pattern, and optional delivery roleAppTheoryHttpIngestionEndpoint: authenticated HTTP API v2 ingestion endpoint with Lambda request authorizerAppTheoryMicrovmNetworkConnector: caller-owned VPC/subnet/security-group egress wiring plus typed ingress/egress/shell connector references for Lambda MicroVMsAppTheoryMicrovmImage:AWS::Lambda::MicrovmImagedeployment with AppTheory hook, logging, resource, and connector validationAppTheoryMicrovmController: protected controller routes, controller Lambda, IAM grants, and durablepk/sk/ttlsession registry tableAppTheorySsrSite: FaceTheory-first CloudFront + S3 + Lambda URL deployment for SSR, SSG, and ISRAppTheoryQueue,AppTheoryQueueConsumer,AppTheoryQueueProcessor: SQS queue and consumer patterns
Supporting constructs exported from cdk/lib/index.ts
AppTheoryFunctionAppTheoryFunctionAlarmsAppTheoryDynamoDBStreamMappingAppTheoryDynamoTableAppTheoryEventBusTable: durable EventBus DynamoDB table plus Lambda binding helper for publish/query/replay flowsAppTheoryLambdaRoleAppTheoryPathRoutedFrontendAppTheoryMediaCdnAppTheoryWebSocketApi
Selection guide
- Use
AppTheoryHttpApifor the simplest HTTP API v2 deployment - Use
AppTheoryRestApiwhen you need REST API v1 but not multi-Lambda routing - Use
AppTheoryRestApiRouterwhen you need SSE or response streaming - Use
AppTheoryMcpServerfor Bedrock AgentCore - Use
AppTheoryRemoteMcpServerplusAppTheoryMcpProtectedResourcefor Claude Remote MCP - Use
AppTheorySsrSitewhen you need the canonical FaceTheory-first SSR/SSG/ISR deployment story - Use
AppTheoryJobsTable,AppTheoryS3Ingest, andAppTheoryCodeBuildJobRunnerfor import pipelines - Use
AppTheoryVectorIndexwhen an import pipeline or MCP tool needs S3 Vectors semantic recall - Use
AppTheoryMicrovmNetworkConnector,AppTheoryMicrovmImage, andAppTheoryMicrovmControllertogether for the corrective M16 AWS Lambda MicroVM golden path. The controller requires an authorizer, explicit ingress/egress/shell connector references, endpoint-dispatched no-hook image wiring for the live example path, token-hidden invoke routes, and fails closed when omitted.
Event workload wiring:
- use
AppTheoryEventBridgeRuleTargetfor scheduled workloads and EventBridge pattern intake - use
targetPropson EventBridge targets for DLQ, retry, and maximum-event-age policy - use
AppTheoryDynamoDBStreamMappingfor DynamoDB Streams to Lambda wiring - use
AppTheoryKinesisStreamplusAppTheoryKinesisStreamMappingfor Kinesis stream consumers - use
AppTheoryCloudWatchLogsDestinationwhen CloudWatch Logs subscriptions deliver through Kinesis; configureallowedSourceAccountsand/orallowedOrganizationIdsexplicitly - use
AppTheoryCloudWatchLogsSubscriptionto attach one source log group to the destination ARN from TypeScript (new AppTheoryCloudWatchLogsSubscription(...)) or Go (apptheorycdk.NewAppTheoryCloudWatchLogsSubscription(...)) - use
AppTheoryJobsTablewhen the workload needs durable run state, idempotency, leases, or record status - keep handlers on AppTheory runtime entrypoints so routing, retry posture, and observability stay fixture-backed
Runtime guide:
Kinesis guide and example:
- Kinesis + CloudWatch Logs
examples/cdk/kinesis-cloudwatch-logs
Guide:
MicroVM guide and example:
- Lambda MicroVM CDK Constructs
examples/cdk/microvm-controller
AppSync note
AppTheory does not currently export an AppSync-specific CDK construct.
Use aws-cdk-lib/aws-appsync for the GraphQL API, schema, auth, and Lambda data source wiring, and keep the Lambda
handler on AppTheory’s AppSync runtime entrypoints.
Guide: