getFunctionDefinition method
Future<GetFunctionDefinitionResponse>
getFunctionDefinition({
- required String functionDefinitionId,
Retrieves information about a Lambda function definition, including its creation time and latest version.
May throw BadRequestException.
Parameter functionDefinitionId
:
The ID of the Lambda function definition.
Implementation
Future<GetFunctionDefinitionResponse> getFunctionDefinition({
required String functionDefinitionId,
}) async {
ArgumentError.checkNotNull(functionDefinitionId, 'functionDefinitionId');
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/greengrass/definition/functions/${Uri.encodeComponent(functionDefinitionId)}',
exceptionFnMap: _exceptionFns,
);
return GetFunctionDefinitionResponse.fromJson(response);
}