listDataAutomationProjects method
Lists all existing Amazon Bedrock Data Automation Projects
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Implementation
Future<ListDataAutomationProjectsResponse> listDataAutomationProjects({
BlueprintFilter? blueprintFilter,
DataAutomationLibraryFilter? libraryFilter,
int? maxResults,
String? nextToken,
DataAutomationProjectStageFilter? projectStageFilter,
ResourceOwner? resourceOwner,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
1000,
);
final $payload = <String, dynamic>{
if (blueprintFilter != null) 'blueprintFilter': blueprintFilter,
if (libraryFilter != null) 'libraryFilter': libraryFilter,
if (maxResults != null) 'maxResults': maxResults,
if (nextToken != null) 'nextToken': nextToken,
if (projectStageFilter != null)
'projectStageFilter': projectStageFilter.value,
if (resourceOwner != null) 'resourceOwner': resourceOwner.value,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/data-automation-projects/',
exceptionFnMap: _exceptionFns,
);
return ListDataAutomationProjectsResponse.fromJson(response);
}