Header menu logo FsCDK

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

ApiName

Full Usage: ApiName

Field type: string
Field type: string

ConstructId

Full Usage: ConstructId

Field type: string option
Field type: string option

LogLevel

Full Usage: LogLevel

Field type: FieldLogLevel voption
Field type: FieldLogLevel voption

SchemaDefinition

Full Usage: SchemaDefinition

Field type: SchemaFile option
Field type: SchemaFile option

XrayEnabled

Full Usage: XrayEnabled

Field type: bool voption
Field type: bool voption

Type something to start searching.