deleteToken method
Deletes the specified token. Must be called in the license home Region.
May throw AccessDeniedException.
May throw AuthorizationException.
May throw RateLimitExceededException.
May throw RedirectException.
May throw ResourceNotFoundException.
May throw ServerInternalException.
May throw ValidationException.
Parameter tokenId :
Token ID.
Implementation
Future<void> deleteToken({
required String tokenId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSLicenseManager.DeleteToken'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'TokenId': tokenId,
},
);
}