getInvalidation2018_06_18 method

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