AppSyncApiConfig Type
High-level AWS AppSync (GraphQL API) builder following AWS best practices. **Default Settings:** - AuthorizationMode = API_KEY (for development) - XrayEnabled = true (distributed tracing) - LogLevel = ALL (comprehensive logging) **Rationale:** These defaults follow Yan Cui's GraphQL API recommendations: - AppSync provides managed GraphQL with subscriptions - Built-in caching and offline support - Better than API Gateway for complex mobile/web apps - X-Ray tracing for debugging **Use Cases:** - Mobile applications (iOS, Android) - Real-time web applications - Offline-first applications - Complex data fetching requirements - GraphQL subscriptions **Escape Hatch:** Access the underlying CDK GraphqlApi via the `GraphqlApi` property for advanced scenarios not covered by this builder.
Record fields
| Record Field | Description |
Full Usage:
ApiName
Field type: string
|
|
Full Usage:
ConstructId
Field type: string option
|
|
|
|
|
|
Full Usage:
XrayEnabled
Field type: bool voption
|
|
FsCDK