publishRecipe method
Publishes a new version of a DataBrew recipe.
May throw ResourceNotFoundException.
May throw ServiceQuotaExceededException.
May throw ValidationException.
Parameter name :
The name of the recipe to be published.
Parameter description :
A description of the recipe to be published, for this version of the
recipe.
Implementation
Future<PublishRecipeResponse> publishRecipe({
required String name,
String? description,
}) async {
final $payload = <String, dynamic>{
if (description != null) 'Description': description,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/recipes/${Uri.encodeComponent(name)}/publishRecipe',
exceptionFnMap: _exceptionFns,
);
return PublishRecipeResponse.fromJson(response);
}