getFunction method
Returns the configuration information of the Lambda function and a presigned URL link to the .zip file you uploaded with UploadFunction so you can download the .zip file. Note that the URL is valid for up to 10 minutes. The configuration information is the same information you provided as parameters when uploading the function.
This operation requires permission for the lambda:GetFunction
action.
May throw ServiceException. May throw ResourceNotFoundException.
Parameter functionName
:
The Lambda function name.
Implementation
Future<GetFunctionResponse> getFunction({
required String functionName,
}) async {
ArgumentError.checkNotNull(functionName, 'functionName');
_s.validateStringLength(
'functionName',
functionName,
1,
64,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/2014-11-13/functions/${Uri.encodeComponent(functionName)}',
exceptionFnMap: _exceptionFns,
);
return GetFunctionResponse.fromJson(response);
}