Classes
Structs
class AppSyncTransformer 🔹
AppSyncTransformer Construct.
Implements : IConstruct , IConstruct , IConstruct , IDependable
Extends : Construct
new AppSyncTransformer ( scope : Construct , id : string , props : AppSyncTransformerProps )
scope (Construct ) No description
id (string) No description
props (AppSyncTransformerProps ) No description
schemaPath (string) Relative path where schema.graphql exists.
apiName (string) String value representing the api name. Default : ${id}-api
authorizationConfig (AuthorizationConfig ) Optional. Default : API_KEY authorization config
fieldLogLevel (FieldLogLevel ) Optional. Default : FieldLogLevel.NONE
syncEnabled (boolean) Whether to enable Amplify DataStore and Sync Tables. Default : false
xrayEnabled (boolean) Determines whether xray should be enabled on the AppSync API. Default : false
addLambdaDataSourceAndResolvers(functionName, id, lambdaFunction, options?)🔹
Adds the function as a lambdaDataSource to the AppSync api Adds all of the functions resolvers to the AppSync api.
addLambdaDataSourceAndResolvers ( functionName : string, id : string , lambdaFunction : IFunction , options ?: DataSourceOptions ) : LambdaDataSource
functionName (string) The function name specified in the.
id (string) The id to give.
lambdaFunction (IFunction ) The lambda function to attach.
options (DataSourceOptions ) No description
description (string) The description of the data source. Default : No description
name (string) The name of the data source, overrides the id given by cdk. Default : generated by cdk given the id
Returns :
struct AppSyncTransformerProps 🔹
Name
Type
Description
schemaPath 🔹
string
Relative path where schema.graphql exists.
apiName ?🔹
string
String value representing the api name.Default : ${id}-api
authorizationConfig ?🔹
AuthorizationConfig
Optional.Default : API_KEY authorization config
fieldLogLevel ?🔹
FieldLogLevel
Optional.Default : FieldLogLevel.NONE
syncEnabled ?🔹
boolean
Whether to enable Amplify DataStore and Sync Tables.Default : false
xrayEnabled ?🔹
boolean
Determines whether xray should be enabled on the AppSync API.Default : false
struct CdkTransformerFunctionResolver 🔹
Name
Type
Description
defaultRequestMappingTemplate 🔹
string
defaultResponseMappingTemplate 🔹
string
fieldName 🔹
string
typeName 🔹
string
struct CdkTransformerGlobalSecondaryIndex 🔹
struct CdkTransformerHttpResolver 🔹
Name
Type
Description
defaultRequestMappingTemplate 🔹
string
defaultResponseMappingTemplate 🔹
string
fieldName 🔹
string
httpConfig 🔹
any
typeName 🔹
string
struct CdkTransformerResolver 🔹
Name
Type
Description
fieldName 🔹
string
typeName 🔹
string
struct CdkTransformerTable 🔹
struct CdkTransformerTableKey 🔹
Name
Type
Description
name 🔹
string
type 🔹
string
struct CdkTransformerTableTtl 🔹
Name
Type
Description
attributeName 🔹
string
enabled 🔹
boolean
struct SchemaTransformerOutputs 🔹