Amazon web services – incompatible types: com.amazonaws.waiters.WaiterParameters is not a functional interface
When I create a dynamodb table, I try to use waiters to wait AWS service to complete its action. CreateTableRequest createRequest = new CreateTableRequest() .withTableName(tableName); CreateTableResult createResult = dynamoDbClient.createTable(createRequest); dynamoDbClient.waiters().tableExists().run(() -> new DescribeTableRequest(tableName)); return dynamoDB.getTable(tableName); But I get: incompatible types:…