getStreamingDistribution2016_11_25 method

Future<GetStreamingDistributionResult> getStreamingDistribution2016_11_25({
  1. required String id,
})

Gets information about a specified RTMP distribution, including the distribution configuration.

May throw NoSuchStreamingDistribution. May throw AccessDenied.

Parameter id : The streaming distribution's ID.

Implementation

Future<GetStreamingDistributionResult> getStreamingDistribution2016_11_25({
  required String id,
}) async {
  ArgumentError.checkNotNull(id, 'id');
  final $result = await _protocol.sendRaw(
    method: 'GET',
    requestUri:
        '/2016-11-25/streaming-distribution/${Uri.encodeComponent(id)}',
    exceptionFnMap: _exceptionFns,
  );
  final $elem = await _s.xmlFromResponse($result);
  return GetStreamingDistributionResult(
    streamingDistribution: StreamingDistribution.fromXml($elem),
    eTag: _s.extractHeaderStringValue($result.headers, 'ETag'),
  );
}