listChannels method
Returns a list of Channels for a NotificationConfiguration.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter notificationConfigurationArn :
The Amazon Resource Name (ARN) of the
NotificationConfiguration.
Parameter maxResults :
The maximum number of results to be returned in this call. The default
value is 20.
Parameter nextToken :
The start token for paginated calls. Retrieved from the response of a
previous ListNotificationEvents call. NextToken uses Base64
encoding.
Implementation
Future<ListChannelsResponse> listChannels({
required String notificationConfigurationArn,
int? maxResults,
String? nextToken,
}) async {
final $query = <String, List<String>>{
'notificationConfigurationArn': [notificationConfigurationArn],
if (maxResults != null) 'maxResults': [maxResults.toString()],
if (nextToken != null) 'nextToken': [nextToken],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/channels',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListChannelsResponse.fromJson(response);
}