getInvalidation2019_03_26 method

Future<GetInvalidationResult> getInvalidation2019_03_26({
  1. required String distributionId,
  2. required String id,
})

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> getInvalidation2019_03_26({
  required String distributionId,
  required String id,
}) async {
  ArgumentError.checkNotNull(distributionId, 'distributionId');
  ArgumentError.checkNotNull(id, 'id');
  final $result = await _protocol.sendRaw(
    method: 'GET',
    requestUri:
        '/2019-03-26/distribution/${Uri.encodeComponent(distributionId)}/invalidation/${Uri.encodeComponent(id)}',
    exceptionFnMap: _exceptionFns,
  );
  final $elem = await _s.xmlFromResponse($result);
  return GetInvalidationResult(
    invalidation: Invalidation.fromXml($elem),
  );
}