Objective
This article explains how to set the visibility of functions to public, protected, or private.
Product
Functions
Environment
legacy Twilio Console
Procedure
The visibility of a function or asset can be set via the Twilio Console or via the Serverless Toolkit.
Twilio Console
In the Functions Editor of the Twilio Console, the visibility of a function can be set by clicking on the icon that is to the right of the function name, and then selecting the desired level of visibility.
Serverless Toolkit
When developing an application using the Serverless Toolkit, a function or assets visibility can be specified by prepending either protected or private in front of the file extension. For example:
- Protected:
names.protected.json - Private:
function.private.js
Note: A file without protected or private in front of the file extension indicates that the file is public. For example:
- Public:
rickroll.mp3
Additional Information
More information regarding how to set the visibility of functions and assets can be found at the following links: