getDistribution2018_06_18 method
Get the information about a distribution.
May throw NoSuchDistribution. May throw AccessDenied.
Parameter id
:
The distribution's ID.
Implementation
Future<GetDistributionResult> getDistribution2018_06_18({
required String id,
}) async {
ArgumentError.checkNotNull(id, 'id');
final $result = await _protocol.sendRaw(
method: 'GET',
requestUri: '/2018-06-18/distribution/${Uri.encodeComponent(id)}',
exceptionFnMap: _exceptionFns,
);
final $elem = await _s.xmlFromResponse($result);
return GetDistributionResult(
distribution: Distribution.fromXml($elem),
eTag: _s.extractHeaderStringValue($result.headers, 'ETag'),
);
}