listProfileNotifications method
List profile notifications.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ThrottlingException.
May throw ValidationException.
Implementation
Future<ListProfileNotificationsOutput> listProfileNotifications({
int? maxResults,
String? nextToken,
String? workloadId,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
50,
);
final $query = <String, List<String>>{
if (maxResults != null) 'MaxResults': [maxResults.toString()],
if (nextToken != null) 'NextToken': [nextToken],
if (workloadId != null) 'WorkloadId': [workloadId],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/profileNotifications',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListProfileNotificationsOutput.fromJson(response);
}