listBlueprints method
Lists all existing Amazon Bedrock Data Automation Blueprints
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Implementation
Future<ListBlueprintsResponse> listBlueprints({
String? blueprintArn,
BlueprintStageFilter? blueprintStageFilter,
int? maxResults,
String? nextToken,
DataAutomationProjectFilter? projectFilter,
ResourceOwner? resourceOwner,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
1000,
);
final $payload = <String, dynamic>{
if (blueprintArn != null) 'blueprintArn': blueprintArn,
if (blueprintStageFilter != null)
'blueprintStageFilter': blueprintStageFilter.value,
if (maxResults != null) 'maxResults': maxResults,
if (nextToken != null) 'nextToken': nextToken,
if (projectFilter != null) 'projectFilter': projectFilter,
if (resourceOwner != null) 'resourceOwner': resourceOwner.value,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/blueprints/',
exceptionFnMap: _exceptionFns,
);
return ListBlueprintsResponse.fromJson(response);
}