getKeyGroupConfig2020_05_31 method
Gets a key group configuration.
To get a key group configuration, you must provide the key group’s
identifier. If the key group is referenced in a distribution’s cache
behavior, you can get the key group’s identifier using
ListDistributions
or GetDistribution
. If the key
group is not referenced in a cache behavior, you can get the identifier
using ListKeyGroups
.
May throw NoSuchResource.
Parameter id
:
The identifier of the key group whose configuration you are getting. To
get the identifier, use ListKeyGroups
.
Implementation
Future<GetKeyGroupConfigResult> getKeyGroupConfig2020_05_31({
required String id,
}) async {
ArgumentError.checkNotNull(id, 'id');
final $result = await _protocol.sendRaw(
method: 'GET',
requestUri: '/2020-05-31/key-group/${Uri.encodeComponent(id)}/config',
exceptionFnMap: _exceptionFns,
);
final $elem = await _s.xmlFromResponse($result);
return GetKeyGroupConfigResult(
keyGroupConfig: KeyGroupConfig.fromXml($elem),
eTag: _s.extractHeaderStringValue($result.headers, 'ETag'),
);
}