Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreateFunctionCommand

Creates a Function object.

A function is a reusable entity. You can use multiple functions to compose the resolver logic.

example

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);
see

CreateFunctionCommandInput for command's input shape.

see

CreateFunctionCommandOutput for command's response shape.

see

config for AppSyncClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: CreateFunctionCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<CreateFunctionCommandInput, CreateFunctionCommandOutput>