regenerateSecurityToken method
Regenerates the security token for a bot.
May throw BadRequestException.
May throw ForbiddenException.
May throw NotFoundException.
May throw ServiceFailureException.
May throw ServiceUnavailableException.
May throw ThrottledClientException.
May throw UnauthorizedClientException.
Parameter accountId :
The Amazon Chime account ID.
Parameter botId :
The bot ID.
Implementation
Future<RegenerateSecurityTokenResponse> regenerateSecurityToken({
required String accountId,
required String botId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'POST',
requestUri:
'/accounts/${Uri.encodeComponent(accountId)}/bots/${Uri.encodeComponent(botId)}?operation=regenerate-security-token',
exceptionFnMap: _exceptionFns,
);
return RegenerateSecurityTokenResponse.fromJson(response);
}