updateProject method
Modifies the definition of an existing DataBrew project.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter name :
The name of the project to be updated.
Parameter roleArn :
The Amazon Resource Name (ARN) of the IAM role to be assumed for this
request.
Implementation
Future<UpdateProjectResponse> updateProject({
required String name,
required String roleArn,
Sample? sample,
}) async {
final $payload = <String, dynamic>{
'RoleArn': roleArn,
if (sample != null) 'Sample': sample,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/projects/${Uri.encodeComponent(name)}',
exceptionFnMap: _exceptionFns,
);
return UpdateProjectResponse.fromJson(response);
}