AppSyncFunction
Reference doc for the `sst.aws.AppSyncFunction` component.
The AppSyncFunction
component is internally used by the AppSync
component to add
functions to AWS AppSync.
You’ll find this component returned by the addFunction
method of the AppSync
component.
Constructor
Parameters
-
name
string
-
args
FunctionArgs
-
opts?
ComponentResourceOptions
Properties
nodes
nodes.function
Type Function
The Amazon AppSync Function.
FunctionArgs
apiId
Type Input
<
string
>
The AppSync GraphQL API ID.
code?
Type Input
<
string
>
The function code that contains the request and response functions.
dataSource
Type Input
<
string
>
The data source this resolver is using.
name
Type string
The name of the AppSync function.
requestMappingTemplate?
Type Input
<
string
>
The function request mapping template.
responseMappingTemplate?
Type Input
<
string
>
The function response mapping template.
transform?
transform.function?
Type FunctionArgs
|
(
args
:
FunctionArgs
,
opts
:
ComponentResourceOptions
,
name
:
string
)
=>
void
Transform the AppSync Function resource.