listNotifications method
List lens notifications.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ThrottlingException.
May throw ValidationException.
Parameter maxResults :
The maximum number of results to return for this request.
Parameter resourceArn :
The ARN for the related resource for the notification.
Implementation
Future<ListNotificationsOutput> listNotifications({
int? maxResults,
String? nextToken,
String? resourceArn,
String? workloadId,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
50,
);
final $payload = <String, dynamic>{
if (maxResults != null) 'MaxResults': maxResults,
if (nextToken != null) 'NextToken': nextToken,
if (resourceArn != null) 'ResourceArn': resourceArn,
if (workloadId != null) 'WorkloadId': workloadId,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/notifications',
exceptionFnMap: _exceptionFns,
);
return ListNotificationsOutput.fromJson(response);
}