getFunction method
Retrieves the configuration and metadata for a function. For more information about functions, see Working with functions in the MediaTailor User Guide.
Parameter functionId :
The identifier of the function.
Implementation
Future<GetFunctionResponse> getFunction({
required String functionId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/function/${Uri.encodeComponent(functionId)}',
exceptionFnMap: _exceptionFns,
);
return GetFunctionResponse.fromJson(response);
}