Creates a Function object.
Function
A function is a reusable entity. You can use multiple functions to compose the resolver logic.
Use a bare-bones client and the command you need to make an API call.
import { AppSyncClient, CreateFunctionCommand } from "@aws-sdk/client-appsync"; // ES Modules import // const { AppSyncClient, CreateFunctionCommand } = require("@aws-sdk/client-appsync"); // CommonJS import const client = new AppSyncClient(config); const command = new CreateFunctionCommand(input); const response = await client.send(command);
CreateFunctionCommandInput for command's input shape.
input
CreateFunctionCommandOutput for command's response shape.
response
config for AppSyncClient's config shape.
config
Creates a
Function
object.A function is a reusable entity. You can use multiple functions to compose the resolver logic.
Use a bare-bones client and the command you need to make an API call.
import { AppSyncClient, CreateFunctionCommand } from "@aws-sdk/client-appsync"; // ES Modules import // const { AppSyncClient, CreateFunctionCommand } = require("@aws-sdk/client-appsync"); // CommonJS import const client = new AppSyncClient(config); const command = new CreateFunctionCommand(input); const response = await client.send(command);
CreateFunctionCommandInput for command's
input
shape.CreateFunctionCommandOutput for command's
response
shape.config for AppSyncClient's
config
shape.