Annotation Type FunctionName
-
@Retention(RUNTIME) @Target(METHOD) public @interface FunctionNameThe
FunctionNameannotation is used to specify to the Azure Functions tooling what name is to be applied to the associated function when the function is deployed onto Azure. This becomes the endpoint (in the case of anhttp triggeredfunction, for example, but more generally it is what is shown to users in the Azure Portal, so a succinct and understandable function name is useful.An example of how the
FunctionNameannotation is shown in the code snippet below. Note that it is applied to the function that will be called by Azure, based on the specified trigger (in the code below it is aHttpTrigger).@FunctionName("redirect") public HttpResponseMessage<String> redirectFunction( @HttpTrigger(name = "req", methods = {"get"}, authLevel = AuthorizationLevel.ANONYMOUS) HttpRequestMessage<Optional<String>> request) { .... }- Since:
- 1.0.0
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.StringvalueThe name of the function.
-