describeDeliveryChannels method
Returns details about the specified delivery channel. If a delivery channel is not specified, this action returns the details of all delivery channels associated with the account.
May throw NoSuchDeliveryChannelException.
Parameter deliveryChannelNames
:
A list of delivery channel names.
Implementation
Future<DescribeDeliveryChannelsResponse> describeDeliveryChannels({
List<String>? deliveryChannelNames,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'StarlingDoveService.DescribeDeliveryChannels'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (deliveryChannelNames != null)
'DeliveryChannelNames': deliveryChannelNames,
},
);
return DescribeDeliveryChannelsResponse.fromJson(jsonResponse.body);
}