listPackagingConfigurations method

Future<ListPackagingConfigurationsResponse> listPackagingConfigurations({
  1. int? maxResults,
  2. String? nextToken,
  3. String? packagingGroupId,
})

Returns a collection of MediaPackage VOD PackagingConfiguration resources.

May throw UnprocessableEntityException. May throw InternalServerErrorException. May throw ForbiddenException. May throw NotFoundException. May throw ServiceUnavailableException. May throw TooManyRequestsException.

Parameter maxResults : Upper bound on number of records to return.

Parameter nextToken : A token used to resume pagination from the end of a previous request.

Parameter packagingGroupId : Returns MediaPackage VOD PackagingConfigurations associated with the specified PackagingGroup.

Implementation

Future<ListPackagingConfigurationsResponse> listPackagingConfigurations({
  int? maxResults,
  String? nextToken,
  String? packagingGroupId,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    1000,
  );
  final $query = <String, List<String>>{
    if (maxResults != null) 'maxResults': [maxResults.toString()],
    if (nextToken != null) 'nextToken': [nextToken],
    if (packagingGroupId != null) 'packagingGroupId': [packagingGroupId],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/packaging_configurations',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListPackagingConfigurationsResponse.fromJson(response);
}