deleteBotVersion method
Deletes a specific version of a bot. To delete all versions of a bot, use the DeleteBot operation.
This operation requires permissions for the
lex:DeleteBotVersion action.
May throw BadRequestException.
May throw ConflictException.
May throw InternalFailureException.
May throw LimitExceededException.
May throw NotFoundException.
May throw ResourceInUseException.
Parameter name :
The name of the bot.
Parameter version :
The version of the bot to delete. You cannot delete the
$LATEST version of the bot. To delete the
$LATEST version, use the DeleteBot operation.
Implementation
Future<void> deleteBotVersion({
required String name,
required String version,
}) async {
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/bots/${Uri.encodeComponent(name)}/versions/${Uri.encodeComponent(version)}',
exceptionFnMap: _exceptionFns,
);
}