listReservations method
List purchased reservations.
May throw BadGatewayException.
May throw BadRequestException.
May throw ForbiddenException.
May throw GatewayTimeoutException.
May throw InternalServerErrorException.
May throw TooManyRequestsException.
Parameter channelClass :
Filter by channel class, 'STANDARD' or 'SINGLE_PIPELINE'
Parameter codec :
Filter by codec, 'AVC', 'HEVC', 'MPEG2', 'AUDIO', 'LINK', or 'AV1'
Parameter maximumBitrate :
Filter by bitrate, 'MAX_10_MBPS', 'MAX_20_MBPS', or 'MAX_50_MBPS'
Parameter maximumFramerate :
Filter by framerate, 'MAX_30_FPS' or 'MAX_60_FPS'
Parameter resolution :
Filter by resolution, 'SD', 'HD', 'FHD', or 'UHD'
Parameter resourceType :
Filter by resource type, 'INPUT', 'OUTPUT', 'MULTIPLEX', or 'CHANNEL'
Parameter specialFeature :
Filter by special feature, 'ADVANCED_AUDIO' or 'AUDIO_NORMALIZATION'
Parameter videoQuality :
Filter by video quality, 'STANDARD', 'ENHANCED', or 'PREMIUM'
Implementation
Future<ListReservationsResponse> listReservations({
String? channelClass,
String? codec,
int? maxResults,
String? maximumBitrate,
String? maximumFramerate,
String? nextToken,
String? resolution,
String? resourceType,
String? specialFeature,
String? videoQuality,
}) async {
final $query = <String, List<String>>{
if (channelClass != null) 'channelClass': [channelClass],
if (codec != null) 'codec': [codec],
if (maxResults != null) 'maxResults': [maxResults.toString()],
if (maximumBitrate != null) 'maximumBitrate': [maximumBitrate],
if (maximumFramerate != null) 'maximumFramerate': [maximumFramerate],
if (nextToken != null) 'nextToken': [nextToken],
if (resolution != null) 'resolution': [resolution],
if (resourceType != null) 'resourceType': [resourceType],
if (specialFeature != null) 'specialFeature': [specialFeature],
if (videoQuality != null) 'videoQuality': [videoQuality],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/prod/reservations',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListReservationsResponse.fromJson(response);
}