deleteToken method

Future<void> deleteToken({
  1. required String tokenId,
})

Deletes the specified token. Must be called in the license home Region.

May throw ValidationException. May throw AuthorizationException. May throw AccessDeniedException. May throw RateLimitExceededException. May throw ServerInternalException. May throw ResourceNotFoundException. May throw RedirectException.

Parameter tokenId : Token ID.

Implementation

Future<void> deleteToken({
  required String tokenId,
}) async {
  ArgumentError.checkNotNull(tokenId, 'tokenId');
  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,
    },
  );
}