updateFunctionDefinition method
Updates a Lambda function definition.
May throw BadRequestException.
Parameter functionDefinitionId
:
The ID of the Lambda function definition.
Parameter name
:
The name of the definition.
Implementation
Future<void> updateFunctionDefinition({
required String functionDefinitionId,
String? name,
}) async {
ArgumentError.checkNotNull(functionDefinitionId, 'functionDefinitionId');
final $payload = <String, dynamic>{
if (name != null) 'Name': name,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri:
'/greengrass/definition/functions/${Uri.encodeComponent(functionDefinitionId)}',
exceptionFnMap: _exceptionFns,
);
}