Capítulo 469 de 988

Chapter 469: getFunctionInfo()

Core Idea

Gets information about a function given its name and region.

Key Concepts

  • Example
  • Arguments
  • region
  • functionName
  • logLevel?<AvailableFrom v="4.0.115"/>
  • Return value
  • memorySizeInMb
  • diskSizeInMb

Code Examples

const info = await getFunctionInfo({
  functionName: 'remotion-render-d7nd2a9f',
  region: 'eu-central-1',
});
console.log(info.functionName); // remotion-render-d7nd2a9f
console.log(info.memorySizeInMb); // 1500
console.log(info.diskSizeInMb); // 2048 in Remotion 4.0, or 10240 in Remotion 5.0+
console.log(info.version); // '2021-07-14'
console.log(info.timeoutInSeconds); // 120
  • What it demonstrates: Usage pattern for getFunctionInfo() from the official docs.

Reference Tables

Remotion VersionDefault
<5.0.02048MB
>=5.0.010240MB

Key Takeaways

  1. Understand example when working with getFunctionInfo().
  2. Understand arguments when working with getFunctionInfo().
  3. Understand region when working with getFunctionInfo().
  4. Understand functionname when working with getFunctionInfo().
  5. Understand loglevel?<availablefrom v="4.0.115"/> when working with getFunctionInfo().

Connects To

  • api: related page in the Lambda (@remotion/lambda) section.
  • Approuterwebhook: related page in the Lambda (@remotion/lambda) section.
  • Authentication: related page in the Lambda (@remotion/lambda) section.