getKeyGroup2020_05_31 method
Gets a key group, including the date and time when the key group was last modified.
To get a key group, 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 that you are getting. To get the
identifier, use ListKeyGroups
.
Implementation
Future<GetKeyGroupResult> getKeyGroup2020_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)}',
exceptionFnMap: _exceptionFns,
);
final $elem = await _s.xmlFromResponse($result);
return GetKeyGroupResult(
keyGroup: KeyGroup.fromXml($elem),
eTag: _s.extractHeaderStringValue($result.headers, 'ETag'),
);
}