getFunctionConfiguration method

Future<FunctionConfiguration> getFunctionConfiguration({
  1. required String functionName,
})

Returns the configuration information of the Lambda function. This the same information you provided as parameters when uploading the function by using UploadFunction.

This operation requires permission for the lambda:GetFunctionConfiguration operation.

May throw ServiceException. May throw ResourceNotFoundException.

Parameter functionName : The name of the Lambda function for which you want to retrieve the configuration information.

Implementation

Future<FunctionConfiguration> getFunctionConfiguration({
  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)}/configuration',
    exceptionFnMap: _exceptionFns,
  );
  return FunctionConfiguration.fromJson(response);
}