Invocation context
Invocation context is an object that is optionally accepted by the request handler in case you use the YcFunction interface model. The object type is yandex.cloud.sdk.functions.Context
. It provides methods for getting more information about function version properties:
getFunctionId()
: Returns the string ID of the function.getFunctionVersionId()
: Returns the string ID of the function version.getMemoryLimitInMB()
: Returns the amount of memory specified when creating the version, MB.getRequestId()
: Returns the ID of the request being handled.getTokenJson()
: Returns the parameters required for authentication in the Yandex.Cloud API.
To extract information from the invocation context, use the appropriate method.