getInvalidation2017_03_25 method

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