getDistributionConfig2017_03_25 method
Get the configuration information about a distribution.
May throw NoSuchDistribution. May throw AccessDenied.
Parameter id
:
The distribution's ID.
Implementation
Future<GetDistributionConfigResult> getDistributionConfig2017_03_25({
required String id,
}) async {
ArgumentError.checkNotNull(id, 'id');
final $result = await _protocol.sendRaw(
method: 'GET',
requestUri: '/2017-03-25/distribution/${Uri.encodeComponent(id)}/config',
exceptionFnMap: _exceptionFns,
);
final $elem = await _s.xmlFromResponse($result);
return GetDistributionConfigResult(
distributionConfig: DistributionConfig.fromXml($elem),
eTag: _s.extractHeaderStringValue($result.headers, 'ETag'),
);
}