regenerateSecurityToken method

Future<RegenerateSecurityTokenResponse> regenerateSecurityToken({
  1. required String accountId,
  2. required String botId,
})

Regenerates the security token for a bot.

May throw ServiceUnavailableException. May throw ServiceFailureException. May throw ForbiddenException. May throw BadRequestException. May throw UnauthorizedClientException. May throw NotFoundException. May throw ThrottledClientException.

Parameter accountId : The Amazon Chime account ID.

Parameter botId : The bot ID.

Implementation

Future<RegenerateSecurityTokenResponse> regenerateSecurityToken({
  required String accountId,
  required String botId,
}) async {
  ArgumentError.checkNotNull(accountId, 'accountId');
  ArgumentError.checkNotNull(botId, 'botId');
  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);
}