listNetworkMigrationExecutions method
Lists network migration execution instances for a given definition, showing the status and progress of each execution.
May throw AccessDeniedException.
May throw ResourceNotFoundException.
Parameter networkMigrationDefinitionID :
The unique identifier of the network migration definition to list
executions for.
Parameter filters :
Filters to apply when listing executions, such as status or execution ID.
Parameter maxResults :
The maximum number of results to return in a single call.
Parameter nextToken :
The token for the next page of results.
Implementation
Future<ListNetworkMigrationExecutionsResponse>
listNetworkMigrationExecutions({
required String networkMigrationDefinitionID,
ListNetworkMigrationExecutionRequestFilters? filters,
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
1000,
);
final $payload = <String, dynamic>{
'networkMigrationDefinitionID': networkMigrationDefinitionID,
if (filters != null) 'filters': filters,
if (maxResults != null) 'maxResults': maxResults,
if (nextToken != null) 'nextToken': nextToken,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/network-migration/ListNetworkMigrationExecutions',
exceptionFnMap: _exceptionFns,
);
return ListNetworkMigrationExecutionsResponse.fromJson(response);
}