getInvalidationForDistributionTenant method
Gets information about a specific invalidation for a distribution tenant.
May throw AccessDenied.
May throw EntityNotFound.
May throw NoSuchInvalidation.
Parameter distributionTenantId :
The ID of the distribution tenant.
Parameter id :
The ID of the invalidation to retrieve.
Implementation
Future<GetInvalidationForDistributionTenantResult>
getInvalidationForDistributionTenant({
required String distributionTenantId,
required String id,
}) async {
final $result = await _protocol.sendRaw(
method: 'GET',
requestUri:
'/2020-05-31/distribution-tenant/${Uri.encodeComponent(distributionTenantId)}/invalidation/${Uri.encodeComponent(id)}',
exceptionFnMap: _exceptionFns,
);
final $elem = await _s.xmlFromResponse($result);
return GetInvalidationForDistributionTenantResult(
invalidation: Invalidation.fromXml($elem),
);
}