listTriggers method
Lists Triggers in the specified agent space
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter agentSpaceId :
The unique identifier for the agent space whose Triggers should be listed
Parameter maxResults :
The maximum number of results to return in a single response
Parameter nextToken :
Pagination token from a previous response to retrieve the next page of
results
Parameter status :
Filter results to Triggers in this status
Implementation
Future<ListTriggersResponse> listTriggers({
required String agentSpaceId,
int? maxResults,
String? nextToken,
String? status,
}) async {
final $query = <String, List<String>>{
if (maxResults != null) 'maxResults': [maxResults.toString()],
if (nextToken != null) 'nextToken': [nextToken],
if (status != null) 'status': [status],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/trigger/agent-space/${Uri.encodeComponent(agentSpaceId)}/triggers',
queryParams: $query,
hostPrefix: 'dp.',
exceptionFnMap: _exceptionFns,
);
return ListTriggersResponse.fromJson(response);
}