getInvalidation2020_05_31 method
Get the information about an invalidation.
May throw NoSuchInvalidation. May throw NoSuchDistribution. May throw AccessDenied.
Parameter distributionId
:
The distribution's ID.
Parameter id
:
The identifier for the invalidation request, for example,
IDFDVBD632BHDS5
.
Implementation
Future<GetInvalidationResult> getInvalidation2020_05_31({
required String distributionId,
required String id,
}) async {
ArgumentError.checkNotNull(distributionId, 'distributionId');
ArgumentError.checkNotNull(id, 'id');
final $result = await _protocol.sendRaw(
method: 'GET',
requestUri:
'/2020-05-31/distribution/${Uri.encodeComponent(distributionId)}/invalidation/${Uri.encodeComponent(id)}',
exceptionFnMap: _exceptionFns,
);
final $elem = await _s.xmlFromResponse($result);
return GetInvalidationResult(
invalidation: Invalidation.fromXml($elem),
);
}